merged tag ooo/OOO330_m14
[LibreOffice.git] / framework / source / inc / accelerators / globalacceleratorconfiguration.hxx
blobf2b0b1d6afb62468cff4f1e4e6dfd4f391ecf635
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __FRAMEWORK_ACCELERATORS_GLOBALACCELERATORCONFIGURATION_HXX_
29 #define __FRAMEWORK_ACCELERATORS_GLOBALACCELERATORCONFIGURATION_HXX_
31 //__________________________________________
32 // own includes
34 #include <accelerators/acceleratorconfiguration.hxx>
35 #include <accelerators/presethandler.hxx>
37 #ifndef __FRAMEWORK_MACROS_XINTERFACE_HXX_
38 #include <macros/interface.hxx>
39 #endif
40 #include <macros/xtypeprovider.hxx>
41 #include <macros/xserviceinfo.hxx>
43 //__________________________________________
44 // interface includes
46 #ifndef _COM_SUN_STAR_LANG_XINITIALIZATION_HPP_
47 #include <com/sun/star/lang/XInitialization.hpp>
48 #endif
50 //__________________________________________
51 // other includes
53 //__________________________________________
54 // definition
56 namespace framework
59 //__________________________________________
60 /**
61 implements a read/write access to the global
62 accelerator configuration.
64 class GlobalAcceleratorConfiguration : public XCUBasedAcceleratorConfiguration
65 , public css::lang::XServiceInfo
66 , public css::lang::XInitialization
68 //______________________________________
69 // interface
71 public:
73 //----------------------------------
74 /** initialize this instance and fill the internal cache.
76 @param xSMGR
77 reference to an uno service manager, which is used internaly.
79 GlobalAcceleratorConfiguration(const css::uno::Reference< css::lang::XMultiServiceFactory > xSMGR);
81 //----------------------------------
82 /** TODO */
83 virtual ~GlobalAcceleratorConfiguration();
85 // XInterface, XTypeProvider, XServiceInfo
86 FWK_DECLARE_XINTERFACE
87 FWK_DECLARE_XTYPEPROVIDER
88 DECLARE_XSERVICEINFO
90 // XInitialization
91 virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any >& lArguments)
92 throw (css::uno::Exception ,
93 css::uno::RuntimeException);
95 //______________________________________
96 // helper
98 private:
100 ::rtl::OUString m_sLocale;
102 //----------------------------------
103 /** read all data into the cache. */
104 void impl_ts_fillCache();
107 } // namespace framework
109 #endif // __FRAMEWORK_ACCELERATORS_GLOBALACCELERATORCONFIGURATION_HXX_