Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef INCLUDED_UNOTOOLS_ITEMHOLDERBASE_HXX
21 : #define INCLUDED_UNOTOOLS_ITEMHOLDERBASE_HXX
22 :
23 : #include <vector>
24 : #include <osl/mutex.hxx>
25 :
26 : namespace utl { namespace detail { class Options; } }
27 :
28 0 : struct ItemHolderMutexBase
29 : {
30 : ::osl::Mutex m_aLock;
31 : };
32 :
33 : enum EItem
34 : {
35 : E_ACCESSIBILITYOPTIONS , // 2
36 : E_ADDXMLTOSTORAGEOPTIONS ,
37 : E_APEARCFG , // 2
38 :
39 : E_CJKOPTIONS , // 2
40 : E_CMDOPTIONS ,
41 : E_COLORCFG , // 2
42 : E_COMPATIBILITY ,
43 : E_CTLOPTIONS , // 2
44 :
45 : E_DEFAULTOPTIONS ,
46 : E_DYNAMICMENUOPTIONS ,
47 :
48 : E_EVENTCFG ,
49 : E_EXTENDEDSECURITYOPTIONS ,
50 :
51 : E_FLTRCFG ,
52 : E_FONTOPTIONS ,
53 : E_FONTSUBSTCONFIG , // 2
54 :
55 : E_HELPOPTIONS , // 2
56 : E_HISTORYOPTIONS ,
57 :
58 : E_LANGUAGEOPTIONS , // 2
59 : E_LINGUCFG ,
60 : E_LOCALISATIONOPTIONS ,
61 :
62 : E_MENUOPTIONS ,
63 : E_MISCCFG , // 2
64 : E_MISCOPTIONS ,
65 : E_MODULEOPTIONS ,
66 :
67 : E_OPTIONSDLGOPTIONS ,
68 :
69 : E_PATHOPTIONS ,
70 : E_PRINTOPTIONS , // 2
71 : E_PRINTFILEOPTIONS , // 2
72 : E_PRINTWARNINGOPTIONS ,
73 :
74 : E_REGOPTIONS ,
75 :
76 : E_SAVEOPTIONS ,
77 : E_SEARCHOPT ,
78 : E_SECURITYOPTIONS ,
79 : E_SYSLOCALEOPTIONS , // 2
80 :
81 : E_USEROPTIONS , // 2
82 :
83 : E_VIEWOPTIONS_DIALOG ,
84 : E_VIEWOPTIONS_TABDIALOG ,
85 : E_VIEWOPTIONS_TABPAGE ,
86 : E_VIEWOPTIONS_WINDOW
87 : };
88 :
89 : struct TItemInfo
90 : {
91 0 : TItemInfo()
92 : : pItem(0)
93 0 : , eItem(E_USEROPTIONS)
94 : {
95 0 : }
96 :
97 : utl::detail::Options * pItem;
98 : EItem eItem;
99 : };
100 :
101 : typedef ::std::vector< TItemInfo > TItems;
102 :
103 : #endif // INCLUDED_UNOTOOLS_ITEMHOLDERBASE_HXX
104 :
105 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|