Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_annot.h>
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_Dictionary * | GetAnnotDict () const |
RetainPtr< CPDF_Dictionary > | GetMutableAnnotDict () |
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_Form * | GetAPForm (CPDF_Page *pPage, AppearanceMode mode) |
void | SetOpenState (bool bOpenState) |
void | SetPopupAnnotOpenState (bool bOpenState) |
absl::optional< CFX_FloatRect > | GetPopupAnnotRect () 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) |
Definition at line 32 of file cpdf_annot.h.
|
strong |
Enumerator | |
---|---|
kNormal | |
kRollover | |
kDown |
Definition at line 34 of file cpdf_annot.h.
|
strong |
Definition at line 35 of file cpdf_annot.h.
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().
CPDF_Annot::~CPDF_Annot | ( | ) |
Definition at line 130 of file cpdf_annot.cpp.
References ClearCachedAP().
|
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().
|
static |
Definition at line 257 of file cpdf_annot.cpp.
References CFX_FloatRect::Union().
Referenced by TEST().
void CPDF_Annot::ClearCachedAP | ( | ) |
Definition at line 163 of file cpdf_annot.cpp.
Referenced by ~CPDF_Annot().
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().
void CPDF_Annot::DrawBorder | ( | CFX_RenderDevice * | pDevice, |
const CFX_Matrix * | pUser2Device ) |
Definition at line 461 of file cpdf_annot.cpp.
References CFX_FillRenderOptions::CFX_FillRenderOptions(), CFX_Path::AppendFloatRect(), ArgbEncode(), CFX_FloatRect::Deflate(), CFX_RenderDevice::DrawPath(), CFX_RenderDevice::GetDeviceType(), GetFlags(), GetRect(), GetSubtype(), pdfium::annotation_flags::kHidden, pdfium::annotation_flags::kNoView, pdfium::annotation_flags::kPrint, kPrinter, CFX_GraphStateData::m_LineWidth, fxcrt::ByteString::operator[](), and POPUP.
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().
|
inline |
Definition at line 83 of file cpdf_annot.h.
Referenced by CheckForUnsupportedAnnot().
CPDF_Form * CPDF_Annot::GetAPForm | ( | CPDF_Page * | pPage, |
AppearanceMode | mode ) |
Definition at line 205 of file cpdf_annot.cpp.
uint32_t CPDF_Annot::GetFlags | ( | ) | const |
Definition at line 185 of file cpdf_annot.cpp.
Referenced by DrawBorder(), and IsHidden().
|
inline |
Definition at line 84 of file cpdf_annot.h.
absl::optional< CFX_FloatRect > CPDF_Annot::GetPopupAnnotRect | ( | ) | const |
Definition at line 228 of file cpdf_annot.cpp.
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().
CPDF_Annot::Subtype CPDF_Annot::GetSubtype | ( | ) | const |
Definition at line 167 of file cpdf_annot.cpp.
Referenced by CheckForUnsupportedAnnot(), and DrawBorder().
bool CPDF_Annot::IsHidden | ( | ) | const |
Definition at line 189 of file cpdf_annot.cpp.
References GetFlags(), and pdfium::annotation_flags::kHidden.
|
static |
Definition at line 407 of file cpdf_annot.cpp.
|
static |
Definition at line 274 of file cpdf_annot.cpp.
References CFX_FloatRect::CFX_FloatRect().
|
static |
Definition at line 235 of file cpdf_annot.cpp.
|
inline |
Definition at line 100 of file cpdf_annot.h.
|
inline |
Definition at line 103 of file cpdf_annot.h.
void CPDF_Annot::SetPopupAnnotOpenState | ( | bool | bOpenState | ) |
Definition at line 223 of file cpdf_annot.cpp.
|
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().