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

#include <cpdf_formcontrol.h>

+ Collaboration diagram for CPDF_FormControl:

Public Types

enum  HighlightingMode {
  kNone = 0 , kInvert , kOutline , kPush ,
  kToggle
}
 

Public Member Functions

 CPDF_FormControl (CPDF_FormField *pField, RetainPtr< CPDF_Dictionary > pWidgetDict, CPDF_InteractiveForm *pForm)
 
 ~CPDF_FormControl ()
 
CPDF_FormField::Type GetType () const
 
CPDF_FormFieldGetField () const
 
RetainPtr< const CPDF_DictionaryGetWidgetDict () const
 
CFX_FloatRect GetRect () const
 
ByteString GetCheckedAPState () const
 
WideString GetExportValue () const
 
bool IsChecked () const
 
bool IsDefaultChecked () const
 
HighlightingMode GetHighlightingMode () const
 
bool HasMKEntry (const ByteString &csEntry) const
 
int GetRotation () const
 
CFX_Color::TypeAndARGB GetColorARGB (const ByteString &csEntry)
 
float GetOriginalColorComponent (int index, const ByteString &csEntry)
 
CFX_Color GetOriginalBorderColor ()
 
CFX_Color GetOriginalBackgroundColor ()
 
WideString GetNormalCaption () const
 
WideString GetRolloverCaption () const
 
WideString GetDownCaption () const
 
RetainPtr< CPDF_StreamGetNormalIcon ()
 
RetainPtr< CPDF_StreamGetRolloverIcon ()
 
RetainPtr< CPDF_StreamGetDownIcon ()
 
CPDF_IconFit GetIconFit () const
 
int GetTextPosition () const
 
CPDF_DefaultAppearance GetDefaultAppearance () const
 
absl::optional< WideStringGetDefaultControlFontName () const
 
int GetControlAlignment () const
 
ByteString GetOnStateName () const
 
void CheckControl (bool bChecked)
 

Detailed Description

Definition at line 34 of file cpdf_formcontrol.h.

Member Enumeration Documentation

◆ HighlightingMode

Enumerator
kNone 
kInvert 
kOutline 
kPush 
kToggle 

Definition at line 36 of file cpdf_formcontrol.h.

Constructor & Destructor Documentation

◆ CPDF_FormControl()

CPDF_FormControl::CPDF_FormControl ( CPDF_FormField * pField,
RetainPtr< CPDF_Dictionary > pWidgetDict,
CPDF_InteractiveForm * pForm )

Definition at line 42 of file cpdf_formcontrol.cpp.

References CPDF_FormControl().

Referenced by CPDF_FormControl().

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

◆ ~CPDF_FormControl()

CPDF_FormControl::~CPDF_FormControl ( )
default

Member Function Documentation

◆ CheckControl()

void CPDF_FormControl::CheckControl ( bool bChecked)

Definition at line 117 of file cpdf_formcontrol.cpp.

References GetOnStateName(), fxcrt::ByteString::operator=(), and fxcrt::ByteString::operator==().

Referenced by CPDF_FormField::CheckControl().

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

◆ GetCheckedAPState()

ByteString CPDF_FormControl::GetCheckedAPState ( ) const

Definition at line 74 of file cpdf_formcontrol.cpp.

References GetOnStateName(), fxcrt::ByteString::IsEmpty(), and fxcrt::ByteString::operator=().

Referenced by CPDFSDK_AppStream::SetAsCheckBox(), and CPDFSDK_AppStream::SetAsRadioButton().

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

◆ GetColorARGB()

CFX_Color::TypeAndARGB CPDF_FormControl::GetColorARGB ( const ByteString & csEntry)

Definition at line 152 of file cpdf_formcontrol.cpp.

References CPDF_ApSettings::GetColorARGB().

Referenced by CPDFSDK_Widget::GetBorderColor(), and CPDFSDK_Widget::GetFillColor().

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

◆ GetControlAlignment()

int CPDF_FormControl::GetControlAlignment ( ) const

Definition at line 247 of file cpdf_formcontrol.cpp.

Referenced by CPDFSDK_Widget::GetAlignment().

+ Here is the caller graph for this function:

◆ GetDefaultAppearance()

CPDF_DefaultAppearance CPDF_FormControl::GetDefaultAppearance ( ) const

Definition at line 182 of file cpdf_formcontrol.cpp.

Referenced by CJS_Field::get_text_color(), CPDFSDK_Widget::GetFontSize(), CPDFSDK_Widget::GetTextColor(), and CPDFSDK_AppStream::SetAsPushButton().

+ Here is the caller graph for this function:

◆ GetDefaultControlFontName()

absl::optional< WideString > CPDF_FormControl::GetDefaultControlFontName ( ) const

Definition at line 195 of file cpdf_formcontrol.cpp.

References fxcrt::WideString::FromDefANSI().

+ Here is the call graph for this function:

◆ GetDownCaption()

WideString CPDF_FormControl::GetDownCaption ( ) const
inline

Definition at line 77 of file cpdf_formcontrol.h.

References pdfium::appearance::kAC.

Referenced by CPDFSDK_AppStream::SetAsPushButton().

+ Here is the caller graph for this function:

◆ GetDownIcon()

RetainPtr< CPDF_Stream > CPDF_FormControl::GetDownIcon ( )
inline

Definition at line 87 of file cpdf_formcontrol.h.

References pdfium::appearance::kIX.

◆ GetExportValue()

WideString CPDF_FormControl::GetExportValue ( ) const

Definition at line 85 of file cpdf_formcontrol.cpp.

References GetOnStateName(), fxcrt::ByteString::IsEmpty(), and fxcrt::ByteString::operator=().

Referenced by CJS_PublicMethods::AFSimple_Calculate(), CPDF_FormField::CheckControl(), CPDF_FormField::GetCheckValue(), and CPDFSDK_Widget::GetExportValue().

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

◆ GetField()

CPDF_FormField * CPDF_FormControl::GetField ( ) const
inline

Definition at line 44 of file cpdf_formcontrol.h.

Referenced by FPDFPage_HasFormFieldAtPoint(), CPDFSDK_Widget::GetFormField(), CPDFSDK_AppStream::SetAsListBox(), and CPDFSDK_Widget::SetCheck().

+ Here is the caller graph for this function:

◆ GetHighlightingMode()

CPDF_FormControl::HighlightingMode CPDF_FormControl::GetHighlightingMode ( ) const

Definition at line 129 of file cpdf_formcontrol.cpp.

References kInvert.

Referenced by CPDFSDK_Widget::IsPushHighlighted(), and CPDFSDK_AppStream::SetAsPushButton().

+ Here is the caller graph for this function:

◆ GetIconFit()

CPDF_IconFit CPDF_FormControl::GetIconFit ( ) const

Definition at line 174 of file cpdf_formcontrol.cpp.

References CPDF_ApSettings::GetIconFit().

Referenced by CPDFSDK_AppStream::SetAsPushButton().

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

◆ GetNormalCaption()

WideString CPDF_FormControl::GetNormalCaption ( ) const
inline

Definition at line 71 of file cpdf_formcontrol.h.

References pdfium::appearance::kCA.

Referenced by CPDFSDK_AppStream::SetAsPushButton().

+ Here is the caller graph for this function:

◆ GetNormalIcon()

RetainPtr< CPDF_Stream > CPDF_FormControl::GetNormalIcon ( )
inline

Definition at line 81 of file cpdf_formcontrol.h.

References pdfium::appearance::kI.

◆ GetOnStateName()

ByteString CPDF_FormControl::GetOnStateName ( ) const

Definition at line 55 of file cpdf_formcontrol.cpp.

References fxcrt::ByteString::ByteString().

Referenced by CheckControl(), CPDF_FormField::CheckControl(), GetCheckedAPState(), GetExportValue(), IsChecked(), and IsDefaultChecked().

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

◆ GetOriginalBackgroundColor()

CFX_Color CPDF_FormControl::GetOriginalBackgroundColor ( )
inline

Definition at line 67 of file cpdf_formcontrol.h.

References pdfium::appearance::kBG.

Referenced by CPDFSDK_Widget::GetFillPWLColor(), CPDFSDK_AppStream::SetAsCheckBox(), CPDFSDK_AppStream::SetAsPushButton(), and CPDFSDK_AppStream::SetAsRadioButton().

+ Here is the caller graph for this function:

◆ GetOriginalBorderColor()

CFX_Color CPDF_FormControl::GetOriginalBorderColor ( )
inline

Definition at line 63 of file cpdf_formcontrol.h.

References pdfium::appearance::kBC.

Referenced by CPDFSDK_Widget::GetBorderPWLColor(), CPDFSDK_AppStream::SetAsCheckBox(), CPDFSDK_AppStream::SetAsPushButton(), and CPDFSDK_AppStream::SetAsRadioButton().

+ Here is the caller graph for this function:

◆ GetOriginalColorComponent()

float CPDF_FormControl::GetOriginalColorComponent ( int index,
const ByteString & csEntry )

Definition at line 157 of file cpdf_formcontrol.cpp.

References CPDF_ApSettings::GetOriginalColorComponent().

+ Here is the call graph for this function:

◆ GetRect()

CFX_FloatRect CPDF_FormControl::GetRect ( ) const

Definition at line 51 of file cpdf_formcontrol.cpp.

Referenced by CPDF_InteractiveForm::GetControlAtPoint().

+ Here is the caller graph for this function:

◆ GetRolloverCaption()

WideString CPDF_FormControl::GetRolloverCaption ( ) const
inline

Definition at line 74 of file cpdf_formcontrol.h.

References pdfium::appearance::kRC.

Referenced by CPDFSDK_AppStream::SetAsPushButton().

+ Here is the caller graph for this function:

◆ GetRolloverIcon()

RetainPtr< CPDF_Stream > CPDF_FormControl::GetRolloverIcon ( )
inline

Definition at line 84 of file cpdf_formcontrol.h.

References pdfium::appearance::kRI.

◆ GetRotation()

int CPDF_FormControl::GetRotation ( ) const

Definition at line 148 of file cpdf_formcontrol.cpp.

References CPDF_ApSettings::GetRotation().

Referenced by CPDFSDK_Widget::GetMatrix(), CPDFSDK_Widget::GetRotate(), and CPDFSDK_Widget::GetRotatedRect().

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

◆ GetTextPosition()

int CPDF_FormControl::GetTextPosition ( ) const

Definition at line 178 of file cpdf_formcontrol.cpp.

References CPDF_ApSettings::GetTextPosition().

Referenced by CPDFSDK_AppStream::SetAsPushButton().

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

◆ GetType()

CPDF_FormField::Type CPDF_FormControl::GetType ( ) const
inline

Definition at line 43 of file cpdf_formcontrol.h.

◆ GetWidgetDict()

RetainPtr< const CPDF_Dictionary > CPDF_FormControl::GetWidgetDict ( ) const
inline

Definition at line 45 of file cpdf_formcontrol.h.

◆ HasMKEntry()

bool CPDF_FormControl::HasMKEntry ( const ByteString & csEntry) const

Definition at line 144 of file cpdf_formcontrol.cpp.

References CPDF_ApSettings::HasMKEntry().

Referenced by CPDFSDK_AppStream::SetAsPushButton().

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

◆ IsChecked()

bool CPDF_FormControl::IsChecked ( ) const

Definition at line 97 of file cpdf_formcontrol.cpp.

References GetOnStateName(), and fxcrt::ByteString::operator==().

Referenced by CJS_PublicMethods::AFSimple_Calculate(), CPDF_FormField::CheckControl(), CPDF_FormField::GetCheckValue(), and CPDFSDK_Widget::IsChecked().

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

◆ IsDefaultChecked()

bool CPDF_FormControl::IsDefaultChecked ( ) const

Definition at line 105 of file cpdf_formcontrol.cpp.

References GetOnStateName(), and fxcrt::ByteString::operator==().

Referenced by CPDF_FormField::GetCheckValue(), and CPDF_FormField::ResetField().

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