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_FormObject Class Referencefinal

#include <cpdf_formobject.h>

Inheritance diagram for CPDF_FormObject:
Collaboration diagram for CPDF_FormObject:

Public Member Functions

 CPDF_FormObject (int32_t content_stream, std::unique_ptr< CPDF_Form > pForm, const CFX_Matrix &matrix)
 ~CPDF_FormObject () override
Type GetType () const override
void Transform (const CFX_Matrix &matrix) override
bool IsForm () const override
CPDF_FormObjectAsForm () override
const CPDF_FormObjectAsForm () const override
void CalcBoundingBox ()
const CPDF_Formform () const
const CFX_Matrixform_matrix () const
void SetFormMatrix (const CFX_Matrix &matrix)
Public Member Functions inherited from CPDF_PageObject
 CPDF_PageObject (int32_t content_stream)
 CPDF_PageObject (const CPDF_PageObject &src)=delete
CPDF_PageObjectoperator= (const CPDF_PageObject &src)=delete
virtual ~CPDF_PageObject ()
virtual bool IsText () const
virtual bool IsPath () const
virtual bool IsImage () const
virtual bool IsShading () const
virtual CPDF_TextObjectAsText ()
virtual const CPDF_TextObjectAsText () const
virtual CPDF_PathObjectAsPath ()
virtual const CPDF_PathObjectAsPath () const
virtual CPDF_ImageObjectAsImage ()
virtual const CPDF_ImageObjectAsImage () const
virtual CPDF_ShadingObjectAsShading ()
virtual const CPDF_ShadingObjectAsShading () const
void SetDirty (bool value)
bool IsDirty () const
void TransformClipPath (const CFX_Matrix &matrix)
void SetOriginalRect (const CFX_FloatRect &rect)
const CFX_FloatRectGetOriginalRect () const
void SetRect (const CFX_FloatRect &rect)
const CFX_FloatRectGetRect () const
FX_RECT GetBBox () const
FX_RECT GetTransformedBBox (const CFX_Matrix &matrix) const
CPDF_ContentMarksGetContentMarks ()
const CPDF_ContentMarksGetContentMarks () const
void SetContentMarks (const CPDF_ContentMarks &marks)
int32_t GetContentStream () const
void SetContentStream (int32_t new_content_stream)
const ByteStringGetResourceName () const
void SetResourceName (const ByteString &resource_name)
pdfium::span< const ByteStringGetGraphicsResourceNames () const
const CPDF_ClipPathclip_path () const
CPDF_ClipPathmutable_clip_path ()
const CFX_GraphStategraph_state () const
CFX_GraphStatemutable_graph_state ()
const CPDF_ColorStatecolor_state () const
CPDF_ColorStatemutable_color_state ()
const CPDF_TextStatetext_state () const
CPDF_TextStatemutable_text_state ()
const CPDF_GeneralStategeneral_state () const
CPDF_GeneralStatemutable_general_state ()
const CPDF_GraphicStatesgraphic_states () const
void SetDefaultStates ()

Additional Inherited Members

Public Types inherited from CPDF_PageObject
enum class  Type {
  kText = 1 , kPath , kImage , kShading ,
  kForm
}
Static Public Attributes inherited from CPDF_PageObject
static constexpr int32_t kNoContentStream = -1
Protected Member Functions inherited from CPDF_PageObject
void CopyData (const CPDF_PageObject *pSrcObject)

Detailed Description

Definition at line 17 of file cpdf_formobject.h.

Constructor & Destructor Documentation

◆ CPDF_FormObject()

CPDF_FormObject::CPDF_FormObject ( int32_t content_stream,
std::unique_ptr< CPDF_Form > pForm,
const CFX_Matrix & matrix )

Definition at line 13 of file cpdf_formobject.cpp.

References CFX_Matrix::CFX_Matrix(), CPDF_FormObject(), and CPDF_PageObject::CPDF_PageObject().

Referenced by CPDF_FormObject().

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

◆ ~CPDF_FormObject()

CPDF_FormObject::~CPDF_FormObject ( )
overridedefault

Member Function Documentation

◆ AsForm() [1/2]

const CPDF_FormObject * CPDF_FormObject::AsForm ( ) const
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 36 of file cpdf_formobject.cpp.

◆ AsForm() [2/2]

CPDF_FormObject * CPDF_FormObject::AsForm ( )
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 32 of file cpdf_formobject.cpp.

◆ CalcBoundingBox()

void CPDF_FormObject::CalcBoundingBox ( )

Definition at line 44 of file cpdf_formobject.cpp.

Referenced by SetFormMatrix(), and Transform().

Here is the caller graph for this function:

◆ form()

const CPDF_Form * CPDF_FormObject::form ( ) const
inline

Definition at line 32 of file cpdf_formobject.h.

Referenced by FPDFPageObj_HasTransparency(), and TEST_F().

Here is the caller graph for this function:

◆ form_matrix()

const CFX_Matrix & CPDF_FormObject::form_matrix ( ) const
inline

Definition at line 33 of file cpdf_formobject.h.

Referenced by FPDFPageObj_GetMatrix().

Here is the caller graph for this function:

◆ GetType()

CPDF_PageObject::Type CPDF_FormObject::GetType ( ) const
overridevirtual

Implements CPDF_PageObject.

Definition at line 40 of file cpdf_formobject.cpp.

References CPDF_PageObject::kForm.

◆ IsForm()

bool CPDF_FormObject::IsForm ( ) const
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 28 of file cpdf_formobject.cpp.

◆ SetFormMatrix()

void CPDF_FormObject::SetFormMatrix ( const CFX_Matrix & matrix)

Definition at line 48 of file cpdf_formobject.cpp.

References CalcBoundingBox(), and CFX_Matrix::operator=().

Referenced by FPDFPageObj_SetMatrix().

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

◆ Transform()

void CPDF_FormObject::Transform ( const CFX_Matrix & matrix)
overridevirtual

Implements CPDF_PageObject.

Definition at line 22 of file cpdf_formobject.cpp.

References CalcBoundingBox(), CFX_Matrix::Concat(), and CPDF_PageObject::SetDirty().

Here is the call graph for this function:

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