Bump version to 21.06.18.1
[LibreOffice.git] / include / svtools / htmlcfg.hxx
blobe9189574cec617c5d86b85ed70b515d3c87d0cd6
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 .
19 #pragma once
21 #include <unotools/configitem.hxx>
22 #include <svtools/svtdllapi.h>
23 #include <memory>
25 #define HTML_FONT_COUNT 7
27 // !!!be aware!!!: the following defines are _not_ used as values in the configuration file
28 // this is because of compatibility reasons
29 #define HTML_CFG_MSIE 1 // Internet Explorer
30 #define HTML_CFG_WRITER 2 // Writer
31 #define HTML_CFG_NS40 3 // Netscape 4.0
33 #define HTML_CFG_MAX HTML_CFG_NS40
35 struct HtmlOptions_Impl;
37 class SVT_DLLPUBLIC SvxHtmlOptions final : public utl::ConfigItem
39 std::unique_ptr<HtmlOptions_Impl> pImpl;
40 static const css::uno::Sequence<OUString>& GetPropertyNames();
41 void Load( const css::uno::Sequence< OUString >& rPropertyNames );
43 virtual void ImplCommit() override;
45 public:
46 SvxHtmlOptions();
47 virtual ~SvxHtmlOptions() override;
49 virtual void Notify( const css::uno::Sequence< OUString >& _rPropertyNames) override;
51 sal_uInt16 GetFontSize(sal_uInt16 nPos) const;
52 void SetFontSize(sal_uInt16 nPos, sal_uInt16 nSize);
54 bool IsImportUnknown() const;
55 void SetImportUnknown(bool bSet);
57 sal_uInt16 GetExportMode() const;
59 bool IsStarBasic() const;
60 void SetStarBasic(bool bSet);
62 bool IsStarBasicWarning() const;
63 void SetStarBasicWarning(bool bSet);
65 bool IsSaveGraphicsLocal() const;
66 void SetSaveGraphicsLocal(bool bSet);
68 bool IsPrintLayoutExtension() const;
69 void SetPrintLayoutExtension(bool bSet);
71 bool IsIgnoreFontFamily() const;
72 void SetIgnoreFontFamily(bool bSet);
74 bool IsDefaultTextEncoding() const;
75 rtl_TextEncoding GetTextEncoding() const;
76 void SetTextEncoding( rtl_TextEncoding );
77 static SvxHtmlOptions& Get();
79 bool IsNumbersEnglishUS() const;
80 void SetNumbersEnglishUS(bool bSet);
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */