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_TestDocument Class Reference

#include <cpdf_test_document.h>

+ Inheritance diagram for CPDF_TestDocument:
+ Collaboration diagram for CPDF_TestDocument:

Public Member Functions

 CPDF_TestDocument ()
 
void SetRoot (RetainPtr< CPDF_Dictionary > root)
 
- Public Member Functions inherited from CPDF_Document
 CPDF_Document (std::unique_ptr< RenderDataIface > pRenderData, std::unique_ptr< PageDataIface > pPageData)
 
 ~CPDF_Document () override
 
ExtensionGetExtension () const
 
void SetExtension (std::unique_ptr< Extension > pExt)
 
CPDF_ParserGetParser () const
 
const CPDF_DictionaryGetRoot () const
 
RetainPtr< CPDF_DictionaryGetMutableRoot ()
 
RetainPtr< CPDF_DictionaryGetInfo ()
 
RetainPtr< const CPDF_ArrayGetFileIdentifier () const
 
void DeletePage (int iPage)
 
bool MovePages (pdfium::span< const int > page_indices, int dest_page_index)
 
int GetPageCount () const
 
bool IsPageLoaded (int iPage) const
 
RetainPtr< const CPDF_DictionaryGetPageDictionary (int iPage)
 
RetainPtr< CPDF_DictionaryGetMutablePageDictionary (int iPage)
 
int GetPageIndex (uint32_t objnum)
 
uint32_t GetUserPermissions (bool get_owner_perms) const
 
RetainPtr< CPDF_StreamAccGetFontFileStreamAcc (RetainPtr< const CPDF_Stream > pFontStream)
 
void MaybePurgeFontFileStreamAcc (RetainPtr< CPDF_StreamAcc > &&pStreamAcc)
 
void MaybePurgeImage (uint32_t objnum)
 
PageDataIfaceGetPageData () const
 
RenderDataIfaceGetRenderData () const
 
void SetPageObjNum (int iPage, uint32_t objNum)
 
JBig2_DocumentContextGetOrCreateCodecContext ()
 
LinkListIfaceGetLinksContext () const
 
void SetLinksContext (std::unique_ptr< LinkListIface > pContext)
 
RetainPtr< CPDF_StreamCreateModifiedAPStream ()
 
bool IsModifiedAPStream (const CPDF_Stream *stream) const
 
bool TryInit () override
 
RetainPtr< CPDF_ObjectParseIndirectObject (uint32_t objnum) override
 
CPDF_Parser::Error LoadDoc (RetainPtr< IFX_SeekableReadStream > pFileAccess, const ByteString &password)
 
CPDF_Parser::Error LoadLinearizedDoc (RetainPtr< CPDF_ReadValidator > validator, const ByteString &password)
 
bool has_valid_cross_reference_table () const
 
void LoadPages ()
 
void CreateNewDoc ()
 
RetainPtr< CPDF_DictionaryCreateNewPage (int iPage)
 
void IncrementParsedPageCount ()
 
uint32_t GetParsedPageCountForTesting ()
 
- Public Member Functions inherited from fxcrt::Observable
 Observable ()
 
 Observable (const Observable &that)=delete
 
Observableoperator= (const Observable &that)=delete
 
 ~Observable ()
 
void AddObserver (ObserverIface *pObserver)
 
void RemoveObserver (ObserverIface *pObserver)
 
void NotifyObservers ()
 
- Public Member Functions inherited from CPDF_Parser::ParsedObjectsHolder
- Public Member Functions inherited from CPDF_IndirectObjectHolder
 CPDF_IndirectObjectHolder ()
 
virtual ~CPDF_IndirectObjectHolder ()
 
RetainPtr< CPDF_ObjectGetOrParseIndirectObject (uint32_t objnum)
 
RetainPtr< const CPDF_ObjectGetIndirectObject (uint32_t objnum) const
 
RetainPtr< CPDF_ObjectGetMutableIndirectObject (uint32_t objnum)
 
void DeleteIndirectObject (uint32_t objnum)
 
template<typename T , typename... Args>
RetainPtr< T > NewIndirect (Args &&... args)
 
template<typename T , typename... Args>
std::enable_if< CanInternStrings< T >::value, RetainPtr< T > >::type New (Args &&... args)
 
template<typename T , typename... Args>
std::enable_if<!CanInternStrings< T >::value, RetainPtr< T > >::type New (Args &&... args)
 
uint32_t AddIndirectObject (RetainPtr< CPDF_Object > pObj)
 
bool ReplaceIndirectObjectIfHigherGeneration (uint32_t objnum, RetainPtr< CPDF_Object > pObj)
 
uint32_t GetLastObjNum () const
 
void SetLastObjNum (uint32_t objnum)
 
WeakPtr< ByteStringPoolGetByteStringPool () const
 
const_iterator begin () const
 
const_iterator end () const
 

Additional Inherited Members

- Public Types inherited from CPDF_IndirectObjectHolder
using const_iterator
 
- Static Public Member Functions inherited from CPDF_Document
static bool IsValidPageObject (const CPDF_Object *obj)
 
- Static Public Attributes inherited from CPDF_Document
static constexpr int kPageMaxNum = 0xFFFFF
 
- Protected Member Functions inherited from CPDF_Document
void SetParser (std::unique_ptr< CPDF_Parser > pParser)
 
void SetRootForTesting (RetainPtr< CPDF_Dictionary > root)
 
void ResizePageListForTesting (size_t size)
 
- Protected Member Functions inherited from fxcrt::Observable
size_t ActiveObserversForTesting () const
 
- Protected Member Functions inherited from CPDF_IndirectObjectHolder

Detailed Description

Definition at line 13 of file cpdf_test_document.h.

Constructor & Destructor Documentation

◆ CPDF_TestDocument()

CPDF_TestDocument::CPDF_TestDocument ( )

Definition at line 13 of file cpdf_test_document.cpp.

Member Function Documentation

◆ SetRoot()

void CPDF_TestDocument::SetRoot ( RetainPtr< CPDF_Dictionary > root)

Definition at line 17 of file cpdf_test_document.cpp.

References CPDF_Document::SetRootForTesting().

Referenced by TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: