fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / framework / inc / uiconfiguration / globalsettings.hxx
blob00b995e1d06808aaa9bde6fe3e3515ce96a4329d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_FRAMEWORK_INC_UICONFIGURATION_GLOBALSETTINGS_HXX
21 #define INCLUDED_FRAMEWORK_INC_UICONFIGURATION_GLOBALSETTINGS_HXX
23 #include <macros/generic.hxx>
24 #include <macros/xinterface.hxx>
25 #include <macros/xtypeprovider.hxx>
26 #include <macros/xserviceinfo.hxx>
27 #include <stdtypes.h>
29 #include <com/sun/star/lang/XServiceInfo.hpp>
30 #include <com/sun/star/lang/XTypeProvider.hpp>
31 #include <com/sun/star/container/XNameAccess.hpp>
33 #include <cppuhelper/weak.hxx>
34 #include <rtl/ustring.hxx>
36 #include <vector>
37 #include <list>
39 namespace framework
42 class GlobalSettings
44 public:
45 GlobalSettings( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
46 ~GlobalSettings();
48 enum UIElementType
50 UIELEMENT_TYPE_TOOLBAR,
51 UIELEMENT_TYPE_DOCKWINDOW,
52 UIELEMENT_TYPE_STATUSBAR
55 enum StateInfo
57 STATEINFO_LOCKED,
58 STATEINFO_DOCKED
61 // settings access
62 bool HasStatesInfo( UIElementType eElementType );
63 bool GetStateInfo( UIElementType eElementType, StateInfo eStateInfo, ::com::sun::star::uno::Any& aValue );
65 private:
66 GlobalSettings(const GlobalSettings&) SAL_DELETED_FUNCTION;
67 GlobalSettings& operator=(const GlobalSettings& ) SAL_DELETED_FUNCTION;
69 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
72 } // namespace framework
74 #endif // __FRAMEWORK_UIELEMENT_WINDOWSTATECONFIGURATION_HXX_
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */