bump product version to 4.1.6.2
[LibreOffice.git] / include / unotools / configmgr.hxx
blobf5964a505cf41b6d20e274384a7da6a51e572573
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_UNOTOOLS_CONFIGMGR_HXX
21 #define INCLUDED_UNOTOOLS_CONFIGMGR_HXX
23 #include "sal/config.h"
25 #include <list>
27 #include "boost/noncopyable.hpp"
28 #include "com/sun/star/uno/Reference.hxx"
29 #include "sal/types.h"
30 #include "unotools/unotoolsdllapi.h"
32 namespace com { namespace sun { namespace star {
33 namespace container{ class XHierarchicalNameAccess; }
34 } } }
35 namespace utl { class ConfigItem; }
37 namespace utl {
39 class UNOTOOLS_DLLPUBLIC ConfigManager: private boost::noncopyable {
40 public:
41 static OUString getAboutBoxProductVersion();
43 static OUString getAboutBoxProductVersionSuffix();
45 static OUString getDefaultCurrency();
47 static OUString getLocale();
49 static OUString getProductExtension();
51 static OUString getProductName();
53 static OUString getProductXmlFileFormat();
55 static OUString getProductXmlFileFormatVersion();
57 static OUString getProductVersion();
59 static OUString getVendor();
61 static OUString getWriterCompatibilityVersionOOo_1_1();
63 static void storeConfigItems();
65 SAL_DLLPRIVATE static ConfigManager & getConfigManager();
67 SAL_DLLPRIVATE static com::sun::star::uno::Reference<
68 com::sun::star::container::XHierarchicalNameAccess>
69 acquireTree(utl::ConfigItem & item);
71 SAL_DLLPRIVATE ConfigManager();
73 SAL_DLLPRIVATE ~ConfigManager();
75 SAL_DLLPRIVATE com::sun::star::uno::Reference<
76 com::sun::star::container::XHierarchicalNameAccess >
77 addConfigItem(utl::ConfigItem & item);
79 SAL_DLLPRIVATE void removeConfigItem(utl::ConfigItem & item);
81 SAL_DLLPRIVATE void registerConfigItem(utl::ConfigItem * item);
83 private:
84 void doStoreConfigItems();
86 std::list< ConfigItem * > items_;
91 #endif
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */