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: options3d.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_OPTIONS3D_HXX
32 #define INCLUDED_SVTOOLS_OPTIONS3D_HXX
34 //_________________________________________________________________________________________________________________
36 //_________________________________________________________________________________________________________________
39 #include <sal/types.h>
42 #ifndef _OSL_MUTEX_HXX_
43 #include <osl/mutex.hxx>
46 #ifndef _RTL_USTRING_HXX_
47 #include <rtl/ustring.hxx>
50 #ifndef INCLUDED_SVTOOLS_OPTIONS_HXX
51 #include <bf_svtools/options.hxx>
57 //_________________________________________________________________________________________________________________
58 // forward declarations
59 //_________________________________________________________________________________________________________________
61 /*-************************************************************************************************************//**
62 @short forward declaration to our private date container implementation
63 @descr We use these class as internal member to support small memory requirements.
64 You can create the container if it is neccessary. The class which use these mechanism
65 is faster and smaller then a complete implementation!
66 *//*-*************************************************************************************************************/
68 class SvtOptions3D_Impl
;
70 //_________________________________________________________________________________________________________________
72 //_________________________________________________________________________________________________________________
74 /*-************************************************************************************************************//**
75 @short collect informations about startup features
81 @devstatus ready to use
82 *//*-*************************************************************************************************************/
84 class SvtOptions3D
: public Options
86 //-------------------------------------------------------------------------------------------------------------
88 //-------------------------------------------------------------------------------------------------------------
92 //---------------------------------------------------------------------------------------------------------
93 // constructor / destructor
94 //---------------------------------------------------------------------------------------------------------
96 /*-****************************************************************************************************//**
97 @short standard constructor and destructor
98 @descr This will initialize an instance with default values.
99 We implement these class with a refcount mechanism! Every instance of this class increase it
100 at create and decrease it at delete time - but all instances use the same data container!
101 He is implemented as a static member ...
103 @seealso member m_nRefCount
104 @seealso member m_pDataContainer
110 *//*-*****************************************************************************************************/
113 virtual ~SvtOptions3D();
115 //-------------------------------------------------------------------------------------------------------------
117 //-------------------------------------------------------------------------------------------------------------
121 /*-****************************************************************************************************//**
122 @short return a reference to a static mutex
123 @descr These class use his own static mutex to be threadsafe.
124 We create a static mutex only for one ime and use at different times.
129 @return A reference to a static mutex member.
132 *//*-*****************************************************************************************************/
133 static ::osl::Mutex
& GetOwnStaticMutex();
135 //-------------------------------------------------------------------------------------------------------------
137 //-------------------------------------------------------------------------------------------------------------
143 Don't initialize these static member in these header!
144 a) Double dfined symbols will be detected ...
145 b) and unresolved externals exist at linking time.
146 Do it in your source only.
149 static SvtOptions3D_Impl
* m_pDataContainer
; /// impl. data container as dynamic pointer for smaller memory requirements!
150 static sal_Int32 m_nRefCount
; /// internal ref count mechanism
152 }; // class SvtOptions3D
156 #endif // #ifndef INCLUDED_SVTOOLS_OPTIONS3D_HXX