Branch libreoffice-5-0-4
[LibreOffice.git] / include / svtools / htmlcfg.hxx
blob156fb23baf2513930a69b0b0e6741fdfb9934177
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 #ifndef INCLUDED_SVTOOLS_HTMLCFG_HXX
20 #define INCLUDED_SVTOOLS_HTMLCFG_HXX
22 #include <unotools/configitem.hxx>
23 #include <svtools/svtdllapi.h>
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 : public utl::ConfigItem
39 HtmlOptions_Impl*pImp;
40 static const com::sun::star::uno::Sequence<OUString>& GetPropertyNames();
41 void Load( const com::sun::star::uno::Sequence< OUString >& rPropertyNames );
42 void CallListeners();
44 virtual void ImplCommit() SAL_OVERRIDE;
46 public:
47 SvxHtmlOptions();
48 virtual ~SvxHtmlOptions();
50 virtual void Notify( const com::sun::star::uno::Sequence< OUString >& _rPropertyNames) SAL_OVERRIDE;
52 sal_uInt16 GetFontSize(sal_uInt16 nPos) const;
53 void SetFontSize(sal_uInt16 nPos, sal_uInt16 nSize);
55 bool IsImportUnknown() const;
56 void SetImportUnknown(bool bSet);
58 sal_uInt16 GetExportMode() const;
59 void SetExportMode(sal_uInt16 nSet);
61 bool IsStarBasic() const;
62 void SetStarBasic(bool bSet);
64 bool IsStarBasicWarning() const;
65 void SetStarBasicWarning(bool bSet);
67 bool IsSaveGraphicsLocal() const;
68 void SetSaveGraphicsLocal(bool bSet);
70 bool IsPrintLayoutExtension() const;
71 void SetPrintLayoutExtension(bool bSet);
73 bool IsIgnoreFontFamily() const;
74 void SetIgnoreFontFamily(bool bSet);
76 bool IsDefaultTextEncoding() const;
77 rtl_TextEncoding GetTextEncoding() const;
78 void SetTextEncoding( rtl_TextEncoding );
79 static SvxHtmlOptions& Get();
81 bool IsNumbersEnglishUS() const;
82 void SetNumbersEnglishUS(bool bSet);
85 #endif
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */