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
access_permissions.h
Go to the documentation of this file.
1// Copyright 2020 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#ifndef CONSTANTS_ACCESS_PERMISSIONS_H_
6#define CONSTANTS_ACCESS_PERMISSIONS_H_
7
8namespace pdfium {
10
11// PDF 1.7 spec, table 3.20.
12// User access permissions.
13constexpr uint32_t kModifyContent = 1 << 3;
14constexpr uint32_t kModifyAnnotation = 1 << 5;
15constexpr uint32_t kFillForm = 1 << 8;
16constexpr uint32_t kExtractForAccessibility = 1 << 9;
17
18} // namespace access_permissions
19} // namespace pdfium
20
21#endif // CONSTANTS_ACCESS_PERMISSIONS_H_
BorderStyle
bool OnChar(CPDFSDK_Widget *pWidget, uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags)
bool OnRButtonDown(CPDFSDK_PageView *pPageView, ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
bool OnMouseMove(CPDFSDK_PageView *pPageView, ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
bool OnRButtonUp(CPDFSDK_PageView *pPageView, ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
bool IsIndexSelected(ObservedPtr< CPDFSDK_Widget > &pWidget, int index)
bool OnMouseWheel(CPDFSDK_PageView *pPageView, ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point, const CFX_Vector &delta)
WideString GetText(CPDFSDK_Widget *pWidget)
WideString GetSelectedText(CPDFSDK_Widget *pWidget)
bool OnLButtonDown(CPDFSDK_PageView *pPageView, ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
bool OnKillFocus(ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlag)
bool OnKeyDown(CPDFSDK_Widget *pWidget, FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags)
bool OnSetFocus(ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlag)
void OnMouseEnter(CPDFSDK_PageView *pPageView, ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlag)
bool CanUndo(CPDFSDK_Widget *pWidget)
void OnMouseExit(CPDFSDK_PageView *pPageView, ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlag)
FX_RECT GetViewBBox(const CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pWidget)
bool OnLButtonUp(CPDFSDK_PageView *pPageView, ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
bool SetIndexSelected(ObservedPtr< CPDFSDK_Widget > &pWidget, int index, bool selected)
bool Redo(CPDFSDK_Widget *pWidget)
void OnDraw(CPDFSDK_PageView *pPageView, CPDFSDK_Widget *pWidget, CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device)
void OnDelete(CPDFSDK_Widget *pWidget)
bool Undo(CPDFSDK_Widget *pWidget)
void ReplaceSelection(CPDFSDK_Widget *pWidget, const WideString &text)
void ReplaceAndKeepSelection(CPDFSDK_Widget *pWidget, const WideString &text)
bool OnLButtonDblClk(CPDFSDK_PageView *pPageView, ObservedPtr< CPDFSDK_Widget > &pWidget, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
bool CanRedo(CPDFSDK_Widget *pWidget)
bool SelectAllText(CPDFSDK_Widget *pWidget)
bool Contains(const CFX_PointF &point) const
constexpr CFX_FloatRect(float l, float b, float r, float t)
constexpr CFX_FloatRect()=default
float Width() const
CFX_FloatRect & operator=(const CFX_FloatRect &that)=default
float Height() const
CFX_FloatRect GetDeflated(float x, float y) const
CFX_Matrix & operator=(const CFX_Matrix &other)=default
CFX_Matrix(float a1, float b1, float c1, float d1, float e1, float f1)
CFX_PointF Transform(const CFX_PointF &point) const
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)
CPDF_Page * GetPDFPage()
CPDFSDK_PageView * GetPageView() const
const CPDF_Dictionary * GetAnnotDict() const
CPDF_Annot * GetPDFAnnot() const override
bool IsVisible() const
virtual void DrawAppearance(CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, CPDF_Annot::AppearanceMode mode)
CPDFSDK_BAAnnot(CPDF_Annot *pAnnot, CPDFSDK_PageView *pPageView)
BorderStyle GetBorderStyle() const
int GetBorderWidth() const
virtual bool IsAppearanceValid()
CFX_FloatRect GetRect() const override
ByteString GetAppState() const
bool IsFocusableAnnot(const CPDF_Annot::Subtype &annot_type) const
RetainPtr< CPDF_Dictionary > GetMutableAnnotDict()
bool DoActionField(const CPDF_Action &action, CPDF_AAction::AActionType type, CPDF_FormField *pFormField, CFFL_FieldAction *data)
CPDFSDK_FormFillEnvironment * GetFormFillEnv() const
const CFX_Matrix & GetCurrentMatrix() const
void SetOptionSelection(int index)
WideString GetValue() const
bool CanUndo() override
int GetMaxLen() const
WideString GetSelectExportText(int nIndex) const
CPDF_FormField * GetFormField() const
bool IsWidgetAppearanceValid(CPDF_Annot::AppearanceMode mode) const
void SetRect(const CFX_FloatRect &rect)
bool OnMouseMove(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
WideString GetSelectedText() override
int GetSelectedIndex(int nIndex) const
int GetAlignment() const
bool OnAAction(CPDF_AAction::AActionType type, CFFL_FieldAction *data, const CPDFSDK_PageView *pPageView)
int GetTopVisibleIndex() const
bool Undo() override
bool IsIndexSelected(int index) override
bool OnRButtonUp(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
CFX_Matrix GetMatrix() const
bool OnLButtonUp(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
bool OnLButtonDown(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
bool IsSignatureWidget() const
bool CanRedo() override
bool IsChecked() const
bool IsOptionSelected(int nIndex) const
void SetCheck(bool bChecked)
absl::optional< WideString > OnFormat()
int GetRotate() const
void OnMouseExit(Mask< FWL_EVENTFLAG > nFlags) override
int GetFieldFlags() const
int CountOptions() const
void ReplaceSelection(const WideString &text) override
void DrawShadow(CFX_RenderDevice *pDevice, CPDFSDK_PageView *pPageView)
CFX_FloatRect GetViewBBox() override
bool SetIndexSelected(int index, bool selected) override
bool OnSetFocus(Mask< FWL_EVENTFLAG > nFlags) override
void ReplaceAndKeepSelection(const WideString &text) override
bool IsAppearanceValid() override
absl::optional< FX_COLORREF > GetTextColor() const
WideString GetOptionLabel(int nIndex) const
CPDF_FormControl * GetFormControl() const
void SetTopVisibleIndex(int index)
void DrawAppearance(CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, CPDF_Annot::AppearanceMode mode) override
bool OnMouseWheel(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point, const CFX_Vector &delta) override
bool OnKeyDown(FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags) override
CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT) override
bool OnLButtonDblClk(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
CFX_FloatRect GetRotatedRect() const
bool IsAppModified() const
int GetLayoutOrder() const override
void OnMouseEnter(Mask< FWL_EVENTFLAG > nFlags) override
float GetFontSize() const
absl::optional< FX_COLORREF > GetBorderColor() const
absl::optional< FX_COLORREF > GetFillColor() const
~CPDFSDK_Widget() override
bool OnKillFocus(Mask< FWL_EVENTFLAG > nFlags) override
void SetValue(const WideString &sValue)
CFX_Color GetFillPWLColor() const
void OnDraw(CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, bool bDrawAnnots) override
bool SelectAllText() override
CFX_FloatRect GetClientRect() const
WideString GetText() override
CFX_Color GetTextPWLColor() const
bool IsPushHighlighted() const
CPDFSDK_Widget(CPDF_Annot *pAnnot, CPDFSDK_PageView *pPageView, CPDFSDK_InteractiveForm *pInteractiveForm)
bool OnRButtonDown(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
WideString GetExportValue() const
CFX_Color GetBorderPWLColor() const
bool DoHitTest(const CFX_PointF &point) override
bool OnChar(uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags) override
FormFieldType GetFieldType() const
void OnLoad() override
bool Redo() override
bool HasDict() const
CPDF_Action GetAction(AActionType eType) const
Type GetType() const
RetainPtr< const CPDF_Stream > GetStreamFor(const ByteString &key) const
WideString GetExportValue() const
int GetControlAlignment() const
HighlightingMode GetHighlightingMode() const
CFX_Color GetOriginalBackgroundColor()
CPDF_FormField * GetField() const
CPDF_DefaultAppearance GetDefaultAppearance() const
CFX_Color::TypeAndARGB GetColorARGB(const ByteString &csEntry)
CFX_Color GetOriginalBorderColor()
int GetSelectedIndex(int index) const
int CountOptions() const
WideString GetValue() const
uint32_t GetFieldFlags() const
bool ClearSelection(NotificationOption notify)
int GetControlIndex(const CPDF_FormControl *pControl) const
bool SetItemSelection(int index, NotificationOption notify)
int GetMaxLen() const
bool IsItemSelected(int index) const
WideString GetOptionLabel(int index) const
int GetTopVisibleIndex() const
FormFieldType GetFieldType() const
WideString GetOptionValue(int index) const
CPDF_AAction GetAdditionalAction() const
bool CheckControl(int iControlIndex, bool bChecked, NotificationOption notify)
bool SetValue(const WideString &value, NotificationOption notify)
CPDF_FormControl * GetControlByDict(const CPDF_Dictionary *pWidgetDict) const
bool IsEmpty() const
Definition widestring.h:118
NotificationOption
FormFieldType
FX_COLORREF ArgbToColorRef(FX_ARGB argb)
Definition fx_dib.cpp:53
constexpr uint32_t kExtractForAccessibility
constexpr uint32_t kModifyContent
constexpr uint32_t kModifyAnnotation
const char kBC[]
const char kBG[]
constexpr uint32_t kReadOnly
Definition form_flags.h:13
static constexpr CFX_FillRenderOptions EvenOddOptions()