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

#include <ppdparser.hxx>

Collaboration diagram for psp::PPDContext:
[legend]

Public Member Functions

 PPDContext ()
 
 PPDContext (const PPDContext &rContext)
 
PPDContextoperator= (const PPDContext &rContext)=default
 
PPDContextoperator= (PPDContext &&rContext)
 
void setParser (const PPDParser *)
 
const PPDParsergetParser () const
 
const PPDValuegetValue (const PPDKey *) const
 
const PPDValuesetValue (const PPDKey *, const PPDValue *, bool bDontCareForConstraints=false)
 
std::size_t countValuesModified () const
 
const PPDKeygetModifiedKey (std::size_t n) const
 
bool checkConstraints (const PPDKey *, const PPDValue *)
 
char * getStreamableBuffer (sal_uLong &rBytes) const
 
void rebuildFromStreamBuffer (const std::vector< char > &rBuffer)
 
int getRenderResolution () const
 
void getPageSize (OUString &rPaper, int &rWidth, int &rHeight) const
 

Private Types

typedef std::unordered_map< const PPDKey *, const PPDValue *, PPDKeyhashhash_type
 

Private Member Functions

bool checkConstraints (const PPDKey *, const PPDValue *, bool bDoReset)
 
bool resetValue (const PPDKey *, bool bDefaultable=false)
 

Private Attributes

hash_type m_aCurrentValues
 
const PPDParserm_pParser
 

Detailed Description

Definition at line 236 of file ppdparser.hxx.

Member Typedef Documentation

◆ hash_type

typedef std::unordered_map< const PPDKey*, const PPDValue*, PPDKeyhash > psp::PPDContext::hash_type
private

Definition at line 238 of file ppdparser.hxx.

Constructor & Destructor Documentation

◆ PPDContext() [1/2]

psp::PPDContext::PPDContext ( )

◆ PPDContext() [2/2]

psp::PPDContext::PPDContext ( const PPDContext rContext)
inline

Definition at line 248 of file ppdparser.hxx.

References operator=().

Member Function Documentation

◆ checkConstraints() [1/2]

bool psp::PPDContext::checkConstraints ( const PPDKey ,
const PPDValue  
)

◆ checkConstraints() [2/2]

bool psp::PPDContext::checkConstraints ( const PPDKey ,
const PPDValue ,
bool  bDoReset 
)
private

◆ countValuesModified()

std::size_t psp::PPDContext::countValuesModified ( ) const
inline

Definition at line 258 of file ppdparser.hxx.

References m_aCurrentValues.

◆ getModifiedKey()

const PPDKey * psp::PPDContext::getModifiedKey ( std::size_t  n) const

◆ getPageSize()

void psp::PPDContext::getPageSize ( OUString &  rPaper,
int rWidth,
int rHeight 
) const

◆ getParser()

const PPDParser * psp::PPDContext::getParser ( ) const
inline

Definition at line 253 of file ppdparser.hxx.

References m_pParser.

◆ getRenderResolution()

int psp::PPDContext::getRenderResolution ( ) const

◆ getStreamableBuffer()

char * psp::PPDContext::getStreamableBuffer ( sal_uLong rBytes) const

◆ getValue()

const PPDValue * psp::PPDContext::getValue ( const PPDKey ) const

◆ operator=() [1/2]

PPDContext & psp::PPDContext::operator= ( const PPDContext rContext)
default

Referenced by PPDContext().

◆ operator=() [2/2]

PPDContext & psp::PPDContext::operator= ( PPDContext &&  rContext)

◆ rebuildFromStreamBuffer()

void psp::PPDContext::rebuildFromStreamBuffer ( const std::vector< char > &  rBuffer)

◆ resetValue()

bool psp::PPDContext::resetValue ( const PPDKey ,
bool  bDefaultable = false 
)
private

◆ setParser()

void psp::PPDContext::setParser ( const PPDParser )

◆ setValue()

const PPDValue * psp::PPDContext::setValue ( const PPDKey ,
const PPDValue ,
bool  bDontCareForConstraints = false 
)

Member Data Documentation

◆ m_aCurrentValues

hash_type psp::PPDContext::m_aCurrentValues
private

Definition at line 239 of file ppdparser.hxx.

Referenced by countValuesModified().

◆ m_pParser

const PPDParser* psp::PPDContext::m_pParser
private

Definition at line 240 of file ppdparser.hxx.

Referenced by getParser().


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