1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: printoptions.hxx,v $
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
35 #include <sal/types.h>
37 #ifndef _OSL_MUTEX_HXX_
38 #include <osl/mutex.hxx>
40 #ifndef _RTL_USTRING_HXX_
41 #include <rtl/ustring.hxx>
43 #ifndef INCLUDED_SVTOOLS_OPTIONS_HXX
44 #include <bf_svtools/options.hxx>
52 class SvtPrintOptions_Impl
;
54 // -----------------------
55 // - SvtBasePrintOptions -
56 // -----------------------
58 class SvtBasePrintOptions
: public Options
62 SvtPrintOptions_Impl
* m_pDataContainer
;
64 void SetDataContainer( SvtPrintOptions_Impl
* pDataContainer
) { m_pDataContainer
= pDataContainer
; }
68 static ::osl::Mutex
& GetOwnStaticMutex();
72 SvtBasePrintOptions();
73 virtual ~SvtBasePrintOptions();
76 // ---------------------
77 // - SvtPrinterOptions -
78 // ---------------------
80 class SvtPrinterOptions
: public SvtBasePrintOptions
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
90 virtual ~SvtPrinterOptions();
93 // -----------------------
94 // - SvtPrintFileOptions -
95 // -----------------------
97 class SvtPrintFileOptions
: public SvtBasePrintOptions
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
106 SvtPrintFileOptions();
107 virtual ~SvtPrintFileOptions();
112 #endif // INCLUDED_SVTOOLS_PRINTOPTIONS_HXX