LibreOffice Module vcl (master) 1
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
psp::PPDKey Class Reference

#include <ppdparser.hxx>

Collaboration diagram for psp::PPDKey:
[legend]

Public Types

enum class  SetupType {
  ExitServer ,
  Prolog ,
  DocumentSetup ,
  PageSetup ,
  JCLSetup ,
  AnySetup
}
 

Public Member Functions

 PPDKey (OUString aKey)
 
 ~PPDKey ()
 
PPDValueinsertValue (const OUString &rOption, PPDValueType eType, bool bCustomOption=false)
 
int countValues () const
 
const PPDValuegetValue (int n) const
 
const PPDValuegetValue (const OUString &rOption) const
 
const PPDValuegetValueCaseInsensitive (const OUString &rOption) const
 
const PPDValuegetDefaultValue () const
 
const OUString & getGroup () const
 
const OUString & getKey () const
 
bool isUIKey () const
 
SetupType getSetupType () const
 
int getOrderDependency () const
 

Private Types

typedef std::unordered_map< OUString, PPDValuehash_type
 
typedef std::vector< PPDValue * > value_type
 

Private Member Functions

void eraseValue (const OUString &rOption)
 

Private Attributes

OUString m_aKey
 
hash_type m_aValues
 
value_type m_aOrderedValues
 
const PPDValuem_pDefaultValue
 
bool m_bQueryValue
 
OUString m_aGroup
 
bool m_bUIOption
 
int m_nOrderDependency
 
SetupType m_eSetupType
 

Friends

class PPDParser
 
class CPDManager
 

Detailed Description

Definition at line 64 of file ppdparser.hxx.

Member Typedef Documentation

◆ hash_type

typedef std::unordered_map< OUString, PPDValue > psp::PPDKey::hash_type
private

Definition at line 69 of file ppdparser.hxx.

◆ value_type

typedef std::vector< PPDValue* > psp::PPDKey::value_type
private

Definition at line 70 of file ppdparser.hxx.

Member Enumeration Documentation

◆ SetupType

enum class psp::PPDKey::SetupType
strong
Enumerator
ExitServer 
Prolog 
DocumentSetup 
PageSetup 
JCLSetup 
AnySetup 

Definition at line 80 of file ppdparser.hxx.

Constructor & Destructor Documentation

◆ PPDKey()

psp::PPDKey::PPDKey ( OUString  aKey)

◆ ~PPDKey()

psp::PPDKey::~PPDKey ( )

Member Function Documentation

◆ countValues()

int psp::PPDKey::countValues ( ) const
inline

Definition at line 93 of file ppdparser.hxx.

References m_aValues.

◆ eraseValue()

void psp::PPDKey::eraseValue ( const OUString &  rOption)
private

◆ getDefaultValue()

const PPDValue * psp::PPDKey::getDefaultValue ( ) const
inline

Definition at line 99 of file ppdparser.hxx.

References m_pDefaultValue.

◆ getGroup()

const OUString & psp::PPDKey::getGroup ( ) const
inline

Definition at line 100 of file ppdparser.hxx.

References m_aGroup.

◆ getKey()

const OUString & psp::PPDKey::getKey ( ) const
inline

Definition at line 102 of file ppdparser.hxx.

References m_aKey.

◆ getOrderDependency()

int psp::PPDKey::getOrderDependency ( ) const
inline

Definition at line 105 of file ppdparser.hxx.

References m_nOrderDependency.

◆ getSetupType()

SetupType psp::PPDKey::getSetupType ( ) const
inline

Definition at line 104 of file ppdparser.hxx.

References m_eSetupType.

◆ getValue() [1/2]

const PPDValue * psp::PPDKey::getValue ( const OUString &  rOption) const

◆ getValue() [2/2]

const PPDValue * psp::PPDKey::getValue ( int  n) const

◆ getValueCaseInsensitive()

const PPDValue * psp::PPDKey::getValueCaseInsensitive ( const OUString &  rOption) const

◆ insertValue()

PPDValue * psp::PPDKey::insertValue ( const OUString &  rOption,
PPDValueType  eType,
bool  bCustomOption = false 
)

◆ isUIKey()

bool psp::PPDKey::isUIKey ( ) const
inline

Definition at line 103 of file ppdparser.hxx.

References m_bUIOption.

Friends And Related Function Documentation

◆ CPDManager

friend class CPDManager
friend

Definition at line 67 of file ppdparser.hxx.

◆ PPDParser

friend class PPDParser
friend

Definition at line 66 of file ppdparser.hxx.

Member Data Documentation

◆ m_aGroup

OUString psp::PPDKey::m_aGroup
private

Definition at line 77 of file ppdparser.hxx.

Referenced by getGroup().

◆ m_aKey

OUString psp::PPDKey::m_aKey
private

Definition at line 72 of file ppdparser.hxx.

Referenced by getKey().

◆ m_aOrderedValues

value_type psp::PPDKey::m_aOrderedValues
private

Definition at line 74 of file ppdparser.hxx.

◆ m_aValues

hash_type psp::PPDKey::m_aValues
private

Definition at line 73 of file ppdparser.hxx.

Referenced by countValues().

◆ m_bQueryValue

bool psp::PPDKey::m_bQueryValue
private

Definition at line 76 of file ppdparser.hxx.

◆ m_bUIOption

bool psp::PPDKey::m_bUIOption
private

Definition at line 83 of file ppdparser.hxx.

Referenced by isUIKey().

◆ m_eSetupType

SetupType psp::PPDKey::m_eSetupType
private

Definition at line 85 of file ppdparser.hxx.

Referenced by getSetupType().

◆ m_nOrderDependency

int psp::PPDKey::m_nOrderDependency
private

Definition at line 84 of file ppdparser.hxx.

Referenced by getOrderDependency().

◆ m_pDefaultValue

const PPDValue* psp::PPDKey::m_pDefaultValue
private

Definition at line 75 of file ppdparser.hxx.

Referenced by getDefaultValue().


The documentation for this class was generated from the following file: