diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-31 15:41:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-31 15:46:15 +0100 |
commit | a13362ef97d7cb7216009fe7002a050516895cb4 (patch) | |
tree | 7c0e19e639e4501ab9a341ac7d3270d9fca3c027 /include/vcl/ppdparser.hxx | |
parent | dcc8c9173d76c3f31af6b1098d920c5491ed150e (diff) |
Resolves: fdo#43049 basic PPD custom options support
because this is another way seen in the wild to transmit a fax number through
cups as an alternative to using fax4CUPS
Change-Id: I32db38aa05213e469442136eb46d0028098a8b7e
Diffstat (limited to 'include/vcl/ppdparser.hxx')
-rw-r--r-- | include/vcl/ppdparser.hxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/vcl/ppdparser.hxx b/include/vcl/ppdparser.hxx index 9ac90cef72cd..217340bfd465 100644 --- a/include/vcl/ppdparser.hxx +++ b/include/vcl/ppdparser.hxx @@ -42,9 +42,14 @@ enum PPDValueType { eInvocation, eQuoted, eSymbol, eString, eNo }; struct VCL_DLLPUBLIC PPDValue { - PPDValueType m_eType; - OUString m_aOption; - OUString m_aValue; + PPDValueType m_eType; + //CustomOption stuff for fdo#43049 + //see http://www.cups.org/documentation.php/spec-ppd.html#OPTIONS + //for full specs, only the basics are implemented here + bool m_bCustomOption; + mutable OUString m_aCustomOption; + OUString m_aOption; + OUString m_aValue; }; @@ -82,7 +87,7 @@ public: PPDKey( const OUString& rKey ); ~PPDKey(); - PPDValue* insertValue( const OUString& rOption, PPDValueType eType ); + PPDValue* insertValue(const OUString& rOption, PPDValueType eType, bool bCustomOption = false); int countValues() const { return m_aValues.size(); } // neither getValue will return the query option |