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

#include <cpdf_annot.h>

+ Collaboration diagram for CPDF_Annot:

Public Types

enum class  AppearanceMode { kNormal , kRollover , kDown }
 
enum class  Subtype : uint8_t {
  UNKNOWN = 0 , TEXT , LINK , FREETEXT ,
  LINE , SQUARE , CIRCLE , POLYGON ,
  POLYLINE , HIGHLIGHT , UNDERLINE , SQUIGGLY ,
  STRIKEOUT , STAMP , CARET , INK ,
  POPUP , FILEATTACHMENT , SOUND , MOVIE ,
  WIDGET , SCREEN , PRINTERMARK , TRAPNET ,
  WATERMARK , THREED , RICHMEDIA , XFAWIDGET ,
  REDACT
}
 

Public Member Functions

 CPDF_Annot (RetainPtr< CPDF_Dictionary > pDict, CPDF_Document *pDocument)
 
 ~CPDF_Annot ()
 
Subtype GetSubtype () const
 
uint32_t GetFlags () const
 
CFX_FloatRect GetRect () const
 
const CPDF_DictionaryGetAnnotDict () const
 
RetainPtr< CPDF_DictionaryGetMutableAnnotDict ()
 
bool IsHidden () const
 
bool DrawAppearance (CPDF_Page *pPage, CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, AppearanceMode mode)
 
bool DrawInContext (CPDF_Page *pPage, CPDF_RenderContext *pContext, const CFX_Matrix &mtUser2Device, AppearanceMode mode)
 
void ClearCachedAP ()
 
void DrawBorder (CFX_RenderDevice *pDevice, const CFX_Matrix *pUser2Device)
 
CPDF_FormGetAPForm (CPDF_Page *pPage, AppearanceMode mode)
 
void SetOpenState (bool bOpenState)
 
void SetPopupAnnotOpenState (bool bOpenState)
 
absl::optional< CFX_FloatRectGetPopupAnnotRect () const
 
void SetPopupAnnot (CPDF_Annot *pAnnot)
 

Static Public Member Functions

static Subtype StringToAnnotSubtype (const ByteString &sSubtype)
 
static ByteString AnnotSubtypeToString (Subtype nSubtype)
 
static CFX_FloatRect RectFromQuadPointsArray (const CPDF_Array *pArray, size_t nIndex)
 
static CFX_FloatRect BoundingRectFromQuadPoints (const CPDF_Dictionary *pAnnotDict)
 
static CFX_FloatRect RectFromQuadPoints (const CPDF_Dictionary *pAnnotDict, size_t nIndex)
 
static size_t QuadPointCount (const CPDF_Array *pArray)
 

Detailed Description

Definition at line 32 of file cpdf_annot.h.

Member Enumeration Documentation

◆ AppearanceMode

enum class CPDF_Annot::AppearanceMode
strong
Enumerator
kNormal 
kRollover 
kDown 

Definition at line 34 of file cpdf_annot.h.

◆ Subtype

enum class CPDF_Annot::Subtype : uint8_t
strong
Enumerator
UNKNOWN 
TEXT 
LINK 
FREETEXT 
LINE 
SQUARE 
CIRCLE 
POLYGON 
POLYLINE 
HIGHLIGHT 
UNDERLINE 
SQUIGGLY 
STRIKEOUT 
STAMP 
CARET 
INK 
POPUP 
FILEATTACHMENT 
SOUND 
MOVIE 
WIDGET 
SCREEN 
PRINTERMARK 
TRAPNET 
WATERMARK 
THREED 
RICHMEDIA 
XFAWIDGET 
REDACT 

Definition at line 35 of file cpdf_annot.h.

Constructor & Destructor Documentation

◆ CPDF_Annot()

CPDF_Annot::CPDF_Annot ( RetainPtr< CPDF_Dictionary > pDict,
CPDF_Document * pDocument )

Definition at line 118 of file cpdf_annot.cpp.

References CPDF_Annot().

Referenced by CPDF_Annot().

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

◆ ~CPDF_Annot()

CPDF_Annot::~CPDF_Annot ( )

Definition at line 130 of file cpdf_annot.cpp.

References ClearCachedAP().

+ Here is the call graph for this function:

Member Function Documentation

◆ AnnotSubtypeToString()

ByteString CPDF_Annot::AnnotSubtypeToString ( CPDF_Annot::Subtype nSubtype)
static

Definition at line 346 of file cpdf_annot.cpp.

References fxcrt::ByteString::ByteString(), CARET, CIRCLE, FILEATTACHMENT, FREETEXT, HIGHLIGHT, INK, LINE, LINK, MOVIE, POLYGON, POLYLINE, POPUP, PRINTERMARK, REDACT, RICHMEDIA, SCREEN, SOUND, SQUARE, SQUIGGLY, STAMP, STRIKEOUT, TEXT, THREED, TRAPNET, UNDERLINE, WATERMARK, WIDGET, and XFAWIDGET.

Referenced by FPDFPage_CreateAnnot().

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

◆ BoundingRectFromQuadPoints()

CFX_FloatRect CPDF_Annot::BoundingRectFromQuadPoints ( const CPDF_Dictionary * pAnnotDict)
static

Definition at line 257 of file cpdf_annot.cpp.

References CFX_FloatRect::Union().

Referenced by TEST().

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

◆ ClearCachedAP()

void CPDF_Annot::ClearCachedAP ( )

Definition at line 163 of file cpdf_annot.cpp.

Referenced by ~CPDF_Annot().

+ Here is the caller graph for this function:

◆ DrawAppearance()

bool CPDF_Annot::DrawAppearance ( CPDF_Page * pPage,
CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device,
AppearanceMode mode )

Definition at line 411 of file cpdf_annot.cpp.

References CPDF_RenderContext::AppendLayer(), CPDF_Page::GetDocument(), CPDF_Page::GetPageImageCache(), and CPDF_RenderContext::Render().

+ Here is the call graph for this function:

◆ DrawBorder()

void CPDF_Annot::DrawBorder ( CFX_RenderDevice * pDevice,
const CFX_Matrix * pUser2Device )

◆ DrawInContext()

bool CPDF_Annot::DrawInContext ( CPDF_Page * pPage,
CPDF_RenderContext * pContext,
const CFX_Matrix & mtUser2Device,
AppearanceMode mode )

Definition at line 438 of file cpdf_annot.cpp.

References CPDF_RenderContext::AppendLayer().

+ Here is the call graph for this function:

◆ GetAnnotDict()

const CPDF_Dictionary * CPDF_Annot::GetAnnotDict ( ) const
inline

Definition at line 83 of file cpdf_annot.h.

Referenced by CheckForUnsupportedAnnot().

+ Here is the caller graph for this function:

◆ GetAPForm()

CPDF_Form * CPDF_Annot::GetAPForm ( CPDF_Page * pPage,
AppearanceMode mode )

Definition at line 205 of file cpdf_annot.cpp.

◆ GetFlags()

uint32_t CPDF_Annot::GetFlags ( ) const

Definition at line 185 of file cpdf_annot.cpp.

Referenced by DrawBorder(), and IsHidden().

+ Here is the caller graph for this function:

◆ GetMutableAnnotDict()

RetainPtr< CPDF_Dictionary > CPDF_Annot::GetMutableAnnotDict ( )
inline

Definition at line 84 of file cpdf_annot.h.

◆ GetPopupAnnotRect()

absl::optional< CFX_FloatRect > CPDF_Annot::GetPopupAnnotRect ( ) const

Definition at line 228 of file cpdf_annot.cpp.

◆ GetRect()

CFX_FloatRect CPDF_Annot::GetRect ( ) const

Definition at line 179 of file cpdf_annot.cpp.

References CFX_FloatRect::Normalize().

Referenced by DrawBorder(), FPDFPage_TransformAnnots(), and CFFL_InteractiveFormFiller::GetViewBBox().

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

◆ GetSubtype()

CPDF_Annot::Subtype CPDF_Annot::GetSubtype ( ) const

Definition at line 167 of file cpdf_annot.cpp.

Referenced by CheckForUnsupportedAnnot(), and DrawBorder().

+ Here is the caller graph for this function:

◆ IsHidden()

bool CPDF_Annot::IsHidden ( ) const

Definition at line 189 of file cpdf_annot.cpp.

References GetFlags(), and pdfium::annotation_flags::kHidden.

+ Here is the call graph for this function:

◆ QuadPointCount()

size_t CPDF_Annot::QuadPointCount ( const CPDF_Array * pArray)
static

Definition at line 407 of file cpdf_annot.cpp.

◆ RectFromQuadPoints()

CFX_FloatRect CPDF_Annot::RectFromQuadPoints ( const CPDF_Dictionary * pAnnotDict,
size_t nIndex )
static

Definition at line 274 of file cpdf_annot.cpp.

References CFX_FloatRect::CFX_FloatRect().

+ Here is the call graph for this function:

◆ RectFromQuadPointsArray()

CFX_FloatRect CPDF_Annot::RectFromQuadPointsArray ( const CPDF_Array * pArray,
size_t nIndex )
static

Definition at line 235 of file cpdf_annot.cpp.

◆ SetOpenState()

void CPDF_Annot::SetOpenState ( bool bOpenState)
inline

Definition at line 100 of file cpdf_annot.h.

◆ SetPopupAnnot()

void CPDF_Annot::SetPopupAnnot ( CPDF_Annot * pAnnot)
inline

Definition at line 103 of file cpdf_annot.h.

◆ SetPopupAnnotOpenState()

void CPDF_Annot::SetPopupAnnotOpenState ( bool bOpenState)

Definition at line 223 of file cpdf_annot.cpp.

◆ StringToAnnotSubtype()

CPDF_Annot::Subtype CPDF_Annot::StringToAnnotSubtype ( const ByteString & sSubtype)
static

Definition at line 284 of file cpdf_annot.cpp.

References CARET, CIRCLE, FILEATTACHMENT, FREETEXT, HIGHLIGHT, INK, LINE, LINK, MOVIE, fxcrt::ByteString::operator==(), POLYGON, POLYLINE, POPUP, PRINTERMARK, REDACT, RICHMEDIA, SCREEN, SOUND, SQUARE, SQUIGGLY, STAMP, STRIKEOUT, TEXT, THREED, TRAPNET, UNDERLINE, UNKNOWN, WATERMARK, WIDGET, and XFAWIDGET.

Referenced by FPDFAnnot_GetSubtype().

+ 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: