Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_null.cpp
Go to the documentation of this file.
1
// Copyright 2016 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
include
"core/fpdfapi/parser/cpdf_null.h"
8
9
#
include
"core/fxcrt/fx_stream.h"
10
11
CPDF_Null::CPDF_Null() =
default
;
12
13
CPDF_Object
::
Type
CPDF_Null::
GetType
()
const
{
14
return
kNullobj
;
15
}
16
17
RetainPtr
<
CPDF_Object
> CPDF_Null::
Clone
()
const
{
18
return
pdfium::MakeRetain<CPDF_Null>();
19
}
20
21
CPDF_Null* CPDF_Null::
AsMutableNull
() {
22
return
this
;
23
}
24
25
bool
CPDF_Null::
WriteTo
(
IFX_ArchiveStream
* archive,
26
const
CPDF_Encryptor
* encryptor)
const
{
27
return
archive
->
WriteString
(
" null"
);
28
}
CPDF_Encryptor
Definition
cpdf_encryptor.h:18
CPDF_Null::WriteTo
bool WriteTo(IFX_ArchiveStream *archive, const CPDF_Encryptor *encryptor) const override
Definition
cpdf_null.cpp:25
CPDF_Null::Clone
RetainPtr< CPDF_Object > Clone() const override
Definition
cpdf_null.cpp:17
CPDF_Null::GetType
Type GetType() const override
Definition
cpdf_null.cpp:13
CPDF_Null::AsMutableNull
CPDF_Null * AsMutableNull() override
Definition
cpdf_null.cpp:21
CPDF_Object
Definition
cpdf_object.h:50
CPDF_Object::Type
Type
Definition
cpdf_object.h:53
CPDF_Object::kNullobj
@ kNullobj
Definition
cpdf_object.h:61
IFX_ArchiveStream
Definition
fx_stream.h:32
IFX_WriteStream::WriteString
bool WriteString(ByteStringView str)
Definition
fx_stream.cpp:47
fxcrt::RetainPtr
Definition
retain_ptr.h:29
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfapi
parser
cpdf_null.cpp
Generated on Sat Sep 21 2024 00:53:12 for Qt by
1.12.0