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

#include <ppdparser.hxx>

Collaboration diagram for psp::PPDParser:
[legend]

Classes

struct  PPDConstraint
 

Public Member Functions

 ~PPDParser ()
 
const PPDKeygetKey (int n) const
 
const PPDKeygetKey (const OUString &rKey) const
 
int getKeys () const
 
bool hasKey (const PPDKey *) const
 
const ::std::vector< PPDConstraint > & getConstraints () const
 
bool isColorDevice () const
 
bool isType42Capable () const
 
sal_uLong getLanguageLevel () const
 
OUString getDefaultPaperDimension () const
 
void getDefaultPaperDimension (int &rWidth, int &rHeight) const
 
bool getPaperDimension (const OUString &rPaperName, int &rWidth, int &rHeight) const
 
OUString matchPaper (int nWidth, int nHeight) const
 
bool getMargins (const OUString &rPaperName, int &rLeft, int &rRight, int &rUpper, int &rLower) const
 
OUString getDefaultInputSlot () const
 
void getDefaultResolution (int &rXRes, int &rYRes) const
 
OUString translateKey (const OUString &i_rKey) const
 
OUString translateOption (const OUString &i_rKey, const OUString &i_rOption) const
 

Static Public Member Functions

static const PPDParsergetParser (const OUString &rFile)
 
static void getResolutionFromString (const OUString &, int &, int &)
 

Private Types

typedef std::unordered_map< OUString, std::unique_ptr< PPDKey > > hash_type
 
typedef std::vector< PPDKey * > value_type
 

Private Member Functions

void insertKey (std::unique_ptr< PPDKey > pKey)
 
 PPDParser (const OUString &rFile)
 
 PPDParser (const OUString &rFile, const std::vector< PPDKey * > &keys)
 
void parseOrderDependency (const OString &rLine)
 
void parseOpenUI (const OString &rLine, const OString &rPPDGroup)
 
void parseConstraint (const OString &rLine)
 
void parse (std::vector< OString > &rLines)
 
OUString handleTranslation (const OString &i_rString, bool i_bIsGlobalized)
 

Static Private Member Functions

static void scanPPDDir (const OUString &rDir)
 
static void initPPDFiles (PPDCache &rPPDCache)
 
static OUString getPPDFile (const OUString &rFile)
 

Private Attributes

hash_type m_aKeys
 
value_type m_aOrderedKeys
 
::std::vector< PPDConstraintm_aConstraints
 
OUString m_aFile
 
bool m_bColorDevice
 
bool m_bType42Capable
 
sal_uLong m_nLanguageLevel
 
rtl_TextEncoding m_aFileEncoding
 
const PPDKeym_pImageableAreas
 
const PPDValuem_pDefaultPaperDimension
 
const PPDKeym_pPaperDimensions
 
const PPDValuem_pDefaultInputSlot
 
const PPDValuem_pDefaultResolution
 
std::unique_ptr< PPDTranslator > m_pTranslator
 

Friends

class PPDContext
 
class CUPSManager
 
class CPDManager
 
class PPDCache
 

Detailed Description

Definition at line 113 of file ppdparser.hxx.

Member Typedef Documentation

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

Definition at line 120 of file ppdparser.hxx.

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

Definition at line 121 of file ppdparser.hxx.

Constructor & Destructor Documentation

psp::PPDParser::PPDParser ( const OUString &  rFile)
private
psp::PPDParser::PPDParser ( const OUString &  rFile,
const std::vector< PPDKey * > &  keys 
)
private
psp::PPDParser::~PPDParser ( )

Member Function Documentation

const ::std::vector< PPDConstraint >& psp::PPDParser::getConstraints ( ) const
inline

Definition at line 184 of file ppdparser.hxx.

OUString psp::PPDParser::getDefaultInputSlot ( ) const
OUString psp::PPDParser::getDefaultPaperDimension ( ) const
void psp::PPDParser::getDefaultPaperDimension ( int rWidth,
int rHeight 
) const
inline

Definition at line 191 of file ppdparser.hxx.

void psp::PPDParser::getDefaultResolution ( int rXRes,
int rYRes 
) const
const PPDKey* psp::PPDParser::getKey ( int  n) const
const PPDKey* psp::PPDParser::getKey ( const OUString &  rKey) const
int psp::PPDParser::getKeys ( ) const
inline

Definition at line 181 of file ppdparser.hxx.

sal_uLong psp::PPDParser::getLanguageLevel ( ) const
inline

Definition at line 188 of file ppdparser.hxx.

bool psp::PPDParser::getMargins ( const OUString &  rPaperName,
int rLeft,
int rRight,
int rUpper,
int rLower 
) const
bool psp::PPDParser::getPaperDimension ( const OUString &  rPaperName,
int rWidth,
int rHeight 
) const
static const PPDParser* psp::PPDParser::getParser ( const OUString &  rFile)
static
static OUString psp::PPDParser::getPPDFile ( const OUString &  rFile)
staticprivate
static void psp::PPDParser::getResolutionFromString ( const OUString &  ,
int ,
int  
)
static
OUString psp::PPDParser::handleTranslation ( const OString &  i_rString,
bool  i_bIsGlobalized 
)
private
bool psp::PPDParser::hasKey ( const PPDKey ) const
static void psp::PPDParser::initPPDFiles ( PPDCache rPPDCache)
staticprivate
void psp::PPDParser::insertKey ( std::unique_ptr< PPDKey pKey)
private
bool psp::PPDParser::isColorDevice ( ) const
inline

Definition at line 186 of file ppdparser.hxx.

bool psp::PPDParser::isType42Capable ( ) const
inline

Definition at line 187 of file ppdparser.hxx.

OUString psp::PPDParser::matchPaper ( int  nWidth,
int  nHeight 
) const
void psp::PPDParser::parse ( std::vector< OString > &  rLines)
private
void psp::PPDParser::parseConstraint ( const OString &  rLine)
private
void psp::PPDParser::parseOpenUI ( const OString &  rLine,
const OString &  rPPDGroup 
)
private
void psp::PPDParser::parseOrderDependency ( const OString &  rLine)
private
static void psp::PPDParser::scanPPDDir ( const OUString &  rDir)
staticprivate
OUString psp::PPDParser::translateKey ( const OUString &  i_rKey) const
OUString psp::PPDParser::translateOption ( const OUString &  i_rKey,
const OUString &  i_rOption 
) const

Friends And Related Function Documentation

friend class CPDManager
friend

Definition at line 117 of file ppdparser.hxx.

friend class CUPSManager
friend

Definition at line 116 of file ppdparser.hxx.

friend class PPDCache
friend

Definition at line 118 of file ppdparser.hxx.

friend class PPDContext
friend

Definition at line 115 of file ppdparser.hxx.

Member Data Documentation

::std::vector< PPDConstraint > psp::PPDParser::m_aConstraints
private

Definition at line 137 of file ppdparser.hxx.

OUString psp::PPDParser::m_aFile
private

Definition at line 140 of file ppdparser.hxx.

rtl_TextEncoding psp::PPDParser::m_aFileEncoding
private

Definition at line 145 of file ppdparser.hxx.

hash_type psp::PPDParser::m_aKeys
private

Definition at line 135 of file ppdparser.hxx.

value_type psp::PPDParser::m_aOrderedKeys
private

Definition at line 136 of file ppdparser.hxx.

bool psp::PPDParser::m_bColorDevice
private

Definition at line 142 of file ppdparser.hxx.

bool psp::PPDParser::m_bType42Capable
private

Definition at line 143 of file ppdparser.hxx.

sal_uLong psp::PPDParser::m_nLanguageLevel
private

Definition at line 144 of file ppdparser.hxx.

const PPDValue* psp::PPDParser::m_pDefaultInputSlot
private

Definition at line 155 of file ppdparser.hxx.

const PPDValue* psp::PPDParser::m_pDefaultPaperDimension
private

Definition at line 152 of file ppdparser.hxx.

const PPDValue* psp::PPDParser::m_pDefaultResolution
private

Definition at line 157 of file ppdparser.hxx.

const PPDKey* psp::PPDParser::m_pImageableAreas
private

Definition at line 150 of file ppdparser.hxx.

const PPDKey* psp::PPDParser::m_pPaperDimensions
private

Definition at line 153 of file ppdparser.hxx.

std::unique_ptr<PPDTranslator> psp::PPDParser::m_pTranslator
private

Definition at line 160 of file ppdparser.hxx.


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