sync master with lastest vba changes
[ooovba.git] / binfilter / inc / bf_svtools / printoptions.hxx
blob15f6ed6c6ffd6c33ca64faeae86d3ed487e23f76
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: printoptions.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef INCLUDED_SVTOOLS_PRINTOPTIONS_HXX
32 #define INCLUDED_SVTOOLS_PRINTOPTIONS_HXX
34 #ifndef _SAL_TYPES_H_
35 #include <sal/types.h>
36 #endif
37 #ifndef _OSL_MUTEX_HXX_
38 #include <osl/mutex.hxx>
39 #endif
40 #ifndef _RTL_USTRING_HXX_
41 #include <rtl/ustring.hxx>
42 #endif
43 #ifndef INCLUDED_SVTOOLS_OPTIONS_HXX
44 #include <bf_svtools/options.hxx>
45 #endif
47 class PrinterOptions;
49 namespace binfilter
52 class SvtPrintOptions_Impl;
54 // -----------------------
55 // - SvtBasePrintOptions -
56 // -----------------------
58 class SvtBasePrintOptions: public Options
60 protected:
62 SvtPrintOptions_Impl* m_pDataContainer;
64 void SetDataContainer( SvtPrintOptions_Impl* pDataContainer ) { m_pDataContainer = pDataContainer; }
66 public:
68 static ::osl::Mutex& GetOwnStaticMutex();
70 public:
72 SvtBasePrintOptions();
73 virtual ~SvtBasePrintOptions();
76 // ---------------------
77 // - SvtPrinterOptions -
78 // ---------------------
80 class SvtPrinterOptions : public SvtBasePrintOptions
82 private:
84 static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
85 static sal_Int32 m_nRefCount; /// internal ref count mechanism
87 public:
89 SvtPrinterOptions();
90 virtual ~SvtPrinterOptions();
93 // -----------------------
94 // - SvtPrintFileOptions -
95 // -----------------------
97 class SvtPrintFileOptions : public SvtBasePrintOptions
99 private:
101 static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
102 static sal_Int32 m_nRefCount; /// internal ref count mechanism
104 public:
106 SvtPrintFileOptions();
107 virtual ~SvtPrintFileOptions();
112 #endif // INCLUDED_SVTOOLS_PRINTOPTIONS_HXX