diff options
Diffstat (limited to 'vcl/unx/generic/printer/ppdparser.cxx')
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index 42eeffc2e3a0..471649c6e155 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <stdlib.h> #include <stdio.h> @@ -79,7 +78,6 @@ namespace psp PPDTranslator() {} ~PPDTranslator() {} - void insertValue( const OUString& i_rKey, const OUString& i_rOption, @@ -264,7 +262,6 @@ namespace psp using namespace psp; - namespace { struct thePPDCache : public rtl::Static<PPDCache, thePPDCache> {}; @@ -1482,29 +1479,21 @@ PPDKey::PPDKey( const OUString& rKey ) : { } - - PPDKey::~PPDKey() { } - - const PPDValue* PPDKey::getValue( int n ) const { return ((unsigned int)n < m_aOrderedValues.size() && n >= 0) ? m_aOrderedValues[n] : NULL; } - - const PPDValue* PPDKey::getValue( const OUString& rOption ) const { PPDKey::hash_type::const_iterator it = m_aValues.find( rOption ); return it != m_aValues.end() ? &it->second : NULL; } - - const PPDValue* PPDKey::getValueCaseInsensitive( const OUString& rOption ) const { const PPDValue* pValue = getValue( rOption ); @@ -1518,8 +1507,6 @@ const PPDValue* PPDKey::getValueCaseInsensitive( const OUString& rOption ) const return pValue; } - - void PPDKey::eraseValue( const OUString& rOption ) { PPDKey::hash_type::iterator it = m_aValues.find( rOption ); @@ -1561,8 +1548,6 @@ PPDContext::PPDContext( const PPDParser* pParser ) : { } - - PPDContext& PPDContext::operator=( const PPDContext& rCopy ) { m_pParser = rCopy.m_pParser; @@ -1570,14 +1555,10 @@ PPDContext& PPDContext::operator=( const PPDContext& rCopy ) return *this; } - - PPDContext::~PPDContext() { } - - const PPDKey* PPDContext::getModifiedKey( int n ) const { hash_type::const_iterator it; @@ -1586,8 +1567,6 @@ const PPDKey* PPDContext::getModifiedKey( int n ) const return it != m_aCurrentValues.end() ? it->first : NULL; } - - void PPDContext::setParser( const PPDParser* pParser ) { if( pParser != m_pParser ) @@ -1597,8 +1576,6 @@ void PPDContext::setParser( const PPDParser* pParser ) } } - - const PPDValue* PPDContext::getValue( const PPDKey* pKey ) const { if( ! m_pParser ) @@ -1619,8 +1596,6 @@ const PPDValue* PPDContext::getValue( const PPDKey* pKey ) const return pValue; } - - const PPDValue* PPDContext::setValue( const PPDKey* pKey, const PPDValue* pValue, bool bDontCareForConstraints ) { if( ! m_pParser || ! pKey ) @@ -1669,8 +1644,6 @@ const PPDValue* PPDContext::setValue( const PPDKey* pKey, const PPDValue* pValue return pValue; } - - bool PPDContext::checkConstraints( const PPDKey* pKey, const PPDValue* pValue ) { if( ! m_pParser || ! pKey || ! pValue ) @@ -1693,8 +1666,6 @@ bool PPDContext::checkConstraints( const PPDKey* pKey, const PPDValue* pValue ) return bRet; } - - bool PPDContext::resetValue( const PPDKey* pKey, bool bDefaultable ) { if( ! pKey || ! m_pParser || ! m_pParser->hasKey( pKey ) ) @@ -1711,8 +1682,6 @@ bool PPDContext::resetValue( const PPDKey* pKey, bool bDefaultable ) return bRet; } - - bool PPDContext::checkConstraints( const PPDKey* pKey, const PPDValue* pNewValue, bool bDoReset ) { if( ! pNewValue ) @@ -1799,8 +1768,6 @@ bool PPDContext::checkConstraints( const PPDKey* pKey, const PPDValue* pNewValue return true; } - - char* PPDContext::getStreamableBuffer( sal_uLong& rBytes ) const { rBytes = 0; @@ -1845,8 +1812,6 @@ char* PPDContext::getStreamableBuffer( sal_uLong& rBytes ) const return pBuffer; } - - void PPDContext::rebuildFromStreamBuffer( char* pBuffer, sal_uLong nBytes ) { if( ! m_pParser ) @@ -1881,8 +1846,6 @@ void PPDContext::rebuildFromStreamBuffer( char* pBuffer, sal_uLong nBytes ) } } - - int PPDContext::getRenderResolution() const { // initialize to reasonable default, if parser is not set @@ -1907,8 +1870,6 @@ int PPDContext::getRenderResolution() const return nDPI; } - - void PPDContext::getPageSize( OUString& rPaper, int& rWidth, int& rHeight ) const { // initialize to reasonable default, if parser is not set |