summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-26 10:10:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-26 15:12:40 +0200
commitda9bba7cc3c243e936daea689fea64ecaf110f35 (patch)
treec47e5f87a123063729720693687b1d45738cd8b4 /include
parent6e07c40577df013dc113310b7c2b76ee2b26e158 (diff)
use officecfg for SvxHtmlOptions
Change-Id: Ie7db7d20509e45fd87d8460c7fae6c0131e0a1f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119494 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svtools/htmlcfg.hxx58
1 files changed, 11 insertions, 47 deletions
diff --git a/include/svtools/htmlcfg.hxx b/include/svtools/htmlcfg.hxx
index e9189574cec6..19baf09e656d 100644
--- a/include/svtools/htmlcfg.hxx
+++ b/include/svtools/htmlcfg.hxx
@@ -18,66 +18,30 @@
*/
#pragma once
-#include <unotools/configitem.hxx>
#include <svtools/svtdllapi.h>
-#include <memory>
+#include <rtl/textenc.h>
#define HTML_FONT_COUNT 7
// !!!be aware!!!: the following defines are _not_ used as values in the configuration file
// this is because of compatibility reasons
-#define HTML_CFG_MSIE 1 // Internet Explorer
-#define HTML_CFG_WRITER 2 // Writer
-#define HTML_CFG_NS40 3 // Netscape 4.0
+#define HTML_CFG_MSIE 1 // Internet Explorer
+#define HTML_CFG_WRITER 2 // Writer
+#define HTML_CFG_NS40 3 // Netscape 4.0
#define HTML_CFG_MAX HTML_CFG_NS40
-struct HtmlOptions_Impl;
-
-class SVT_DLLPUBLIC SvxHtmlOptions final : public utl::ConfigItem
+namespace SvxHtmlOptions
{
- std::unique_ptr<HtmlOptions_Impl> pImpl;
- static const css::uno::Sequence<OUString>& GetPropertyNames();
- void Load( const css::uno::Sequence< OUString >& rPropertyNames );
-
- virtual void ImplCommit() override;
-
-public:
- SvxHtmlOptions();
- virtual ~SvxHtmlOptions() override;
-
- virtual void Notify( const css::uno::Sequence< OUString >& _rPropertyNames) override;
-
- sal_uInt16 GetFontSize(sal_uInt16 nPos) const;
- void SetFontSize(sal_uInt16 nPos, sal_uInt16 nSize);
-
- bool IsImportUnknown() const;
- void SetImportUnknown(bool bSet);
-
- sal_uInt16 GetExportMode() const;
-
- bool IsStarBasic() const;
- void SetStarBasic(bool bSet);
-
- bool IsStarBasicWarning() const;
- void SetStarBasicWarning(bool bSet);
-
- bool IsSaveGraphicsLocal() const;
- void SetSaveGraphicsLocal(bool bSet);
-
- bool IsPrintLayoutExtension() const;
- void SetPrintLayoutExtension(bool bSet);
+SVT_DLLPUBLIC sal_uInt16 GetFontSize(sal_uInt16 nPos);
- bool IsIgnoreFontFamily() const;
- void SetIgnoreFontFamily(bool bSet);
+SVT_DLLPUBLIC sal_uInt16 GetExportMode();
- bool IsDefaultTextEncoding() const;
- rtl_TextEncoding GetTextEncoding() const;
- void SetTextEncoding( rtl_TextEncoding );
- static SvxHtmlOptions& Get();
+SVT_DLLPUBLIC bool IsPrintLayoutExtension();
- bool IsNumbersEnglishUS() const;
- void SetNumbersEnglishUS(bool bSet);
+SVT_DLLPUBLIC bool IsDefaultTextEncoding();
+SVT_DLLPUBLIC rtl_TextEncoding GetTextEncoding();
+SVT_DLLPUBLIC void SetTextEncoding(rtl_TextEncoding);
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */