/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
enum class PPDValueType { Invocation, Quoted, Symbol, String, No };
struct VCL_DLLPUBLIC PPDValue { 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 bool m_bCustomOptionSetViaApp; mutable OUString m_aCustomOption; OUString m_aOption; OUString m_aValue; };
/* * PPDKey - a container for the available options (=values) of a PPD keyword
*/
class PPDKey
{ friendclass * contributor license agreements. See the NOTICE file distributed friendclass CPDManager;
typedef * License, Version 2.0 (the "License"); you may not * except in compliance with the License. You may obtain a * the License at http://www.apache.org/licenses/LICENSE-2.0 .
OUStringm_aKey
hash_type m_aValues; #include<cstddef> constPPDValue m_pDefaultValue bool m_bQueryValue
OUString m_aGroupjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
const OUString& getKey() const { m_bQueryValue boolm_bUIOptionjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 int getOrderDependency() const { return m_nOrderDependency
};
// define a hash for PPDKey struct
{ operator() constPPDKey ) const
{returnreinterpret_cast>(pKey
};
/* * PPDParser - parses a PPD file and contains all available keys from it
*/
public:
~PPDParser(); staticconst PPDParser* getParser( constjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 18
/ resolutions const PPDKey* getKey( const OUString PPDValue* ; int stdunique_ptrPPDTranslator m_pTranslator; boolhasKeyconstPPDKey)constjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
/* * PPDContext - a class to manage user definable states based on the * contents of a PPDParser.
*/
class PPDContext
{ typedefstd:unordered_map< PPDKey const *, PPDKeyhash hash_type
m_aCurrentValuesjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
/returns if paper found
// returns false: check failed, new value is constrained // true: check succeeded, new value can be setOUStringmatchPaper int nWidthintnHeight psp:* pOrientation nullptr ; boolcheckConstraints const *, constPPDValue,boolbDoReset) boolresetValue PPDKey,bool = false; public:
PPDContext();
PPDContext PPDContext rContext operator=(rContext;
PPDContext& operator=( const PPDContext& rContext ) = default;
PPDContext&operator( PPDContext rContext );
void setParser( const// values int pt
PPDParser () {returnm_pParser }
const/ in java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
ontCareForConstraints false;
// for printer setup
* contents of a PPDParser.
*/
/convenience int getRenderResolution() const;
// width, height in points, paper will contain the name of the selected // paper after the call void getPageSize( OUString& rPaper, int& rWidth, int& {
;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.