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_generateap.h
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#ifndef CORE_FPDFDOC_CPDF_GENERATEAP_H_
8#define CORE_FPDFDOC_CPDF_GENERATEAP_H_
9
10#include "core/fpdfdoc/cpdf_annot.h"
11
12class CPDF_Dictionary;
13class CPDF_Document;
14
16 public:
18
19 static void GenerateFormAP(CPDF_Document* pDoc,
20 CPDF_Dictionary* pAnnotDict,
21 FormType type);
22
23 static void GenerateEmptyAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict);
24
25 static bool GenerateAnnotAP(CPDF_Document* pDoc,
26 CPDF_Dictionary* pAnnotDict,
27 CPDF_Annot::Subtype subtype);
28
29 CPDF_GenerateAP() = delete;
32};
33
34#endif // CORE_FPDFDOC_CPDF_GENERATEAP_H_
float Left() const
constexpr CFX_FloatRect()=default
float Top() const
void Deflate(float x, float y)
void Union(const CFX_FloatRect &other_rect)
CFX_Matrix(float a1, float b1, float c1, float d1, float e1, float f1)
void MatchRect(const CFX_FloatRect &dest, const CFX_FloatRect &src)
void Rotate(float fRadian)
void Concat(const CFX_Matrix &right)
void AppendFloatRect(const CFX_FloatRect &rect)
Definition cfx_path.cpp:305
bool DrawPath(const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState, uint32_t fill_color, uint32_t stroke_color, const CFX_FillRenderOptions &fill_options)
DeviceType GetDeviceType() const
uint32_t GetFlags() const
static CFX_FloatRect RectFromQuadPoints(const CPDF_Dictionary *pAnnotDict, size_t nIndex)
CPDF_Form * GetAPForm(CPDF_Page *pPage, AppearanceMode mode)
bool DrawInContext(CPDF_Page *pPage, CPDF_RenderContext *pContext, const CFX_Matrix &mtUser2Device, AppearanceMode mode)
static ByteString AnnotSubtypeToString(Subtype nSubtype)
static CFX_FloatRect RectFromQuadPointsArray(const CPDF_Array *pArray, size_t nIndex)
static size_t QuadPointCount(const CPDF_Array *pArray)
absl::optional< CFX_FloatRect > GetPopupAnnotRect() const
Subtype GetSubtype() const
const CPDF_Dictionary * GetAnnotDict() const
Definition cpdf_annot.h:83
void ClearCachedAP()
static Subtype StringToAnnotSubtype(const ByteString &sSubtype)
void SetOpenState(bool bOpenState)
Definition cpdf_annot.h:100
CFX_FloatRect GetRect() const
CPDF_Annot(RetainPtr< CPDF_Dictionary > pDict, CPDF_Document *pDocument)
bool IsHidden() const
bool DrawAppearance(CPDF_Page *pPage, CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, AppearanceMode mode)
RetainPtr< CPDF_Dictionary > GetMutableAnnotDict()
Definition cpdf_annot.h:84
void DrawBorder(CFX_RenderDevice *pDevice, const CFX_Matrix *pUser2Device)
static CFX_FloatRect BoundingRectFromQuadPoints(const CPDF_Dictionary *pAnnotDict)
void SetPopupAnnot(CPDF_Annot *pAnnot)
Definition cpdf_annot.h:103
void SetPopupAnnotOpenState(bool bOpenState)
bool KeyExist(const ByteString &key) const
RetainPtr< CPDF_Stream > GetMutableStreamFor(const ByteString &key)
ByteString GetByteStringFor(const ByteString &key) const
CPDF_GenerateAP & operator=(const CPDF_GenerateAP &)=delete
CPDF_GenerateAP()=delete
CPDF_GenerateAP(const CPDF_GenerateAP &)=delete
static bool GenerateAnnotAP(CPDF_Document *pDoc, CPDF_Dictionary *pAnnotDict, CPDF_Annot::Subtype subtype)
static void GenerateEmptyAP(CPDF_Document *pDoc, CPDF_Dictionary *pAnnotDict)
static void GenerateFormAP(CPDF_Document *pDoc, CPDF_Dictionary *pAnnotDict, FormType type)
CPDF_Document * GetDocument() const override
Definition cpdf_page.cpp:51
int GetPageRotation() const
CPDF_PageImageCache * GetPageImageCache()
Definition cpdf_page.h:83
void AppendLayer(CPDF_PageObjectHolder *pObjectHolder, const CFX_Matrix &mtObject2Device)
void Render(CFX_RenderDevice *pDevice, const CPDF_PageObject *pStopObj, const CPDF_RenderOptions *pOptions, const CFX_Matrix *pLastMatrix)
bool operator==(const char *ptr) const
ByteString & operator=(ByteString &&that) noexcept
bool IsEmpty() const
Definition bytestring.h:119
CharType operator[](const size_t index) const
Definition bytestring.h:150
RetainPtr< CPDF_Stream > GetAnnotAPNoFallback(CPDF_Dictionary *pAnnotDict, CPDF_Annot::AppearanceMode eMode)
RetainPtr< CPDF_Stream > GetAnnotAP(CPDF_Dictionary *pAnnotDict, CPDF_Annot::AppearanceMode eMode)
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)
Definition fx_dib.h:118
#define FXSYS_PI
Definition fx_system.h:43
constexpr uint32_t kReadOnly
constexpr uint32_t kNoView
constexpr uint32_t kNoZoom
constexpr uint32_t kHidden
constexpr uint32_t kNoRotate
constexpr uint32_t kPrint
constexpr uint32_t kInvisible
constexpr uint32_t kToggleNoView
constexpr uint32_t kLocked
constexpr uint32_t kLockedContents