1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: htmlcfg.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_HTMLCFG_HXX
31 #define _SVX_HTMLCFG_HXX
33 // -----------------------------------------------------------------------
35 #include <tools/solar.h>
36 #include <unotools/configitem.hxx>
37 #include "svx/svxdllapi.h"
39 #define HTML_FONT_COUNT 7
41 // !!!be aware!!!: the following defines are _not_ used as values in the configuration file
42 // this is because of compatibility reasons
43 #define HTML_CFG_HTML32 0 // Html 3.2
44 #define HTML_CFG_MSIE_40 1 // Internet Explorer 4.0
45 #define HTML_CFG_MSIE HTML_CFG_MSIE_40
46 #define HTML_CFG_WRITER 2 // Writer
47 #define HTML_CFG_NS40 3 // Netscape 4.0
48 #define HTML_CFG_MSIE_40_OLD 4 // Internet Explorer 4.0 - alter Wert
50 #define HTML_CFG_MAX HTML_CFG_NS40
52 struct HtmlOptions_Impl
;
53 // -----------------------------------------------------------------------
55 class SVX_DLLPUBLIC SvxHtmlOptions
: public utl::ConfigItem
57 HtmlOptions_Impl
*pImp
;
58 const com::sun::star::uno::Sequence
<rtl::OUString
>& GetPropertyNames();
64 virtual void Commit();
66 USHORT
GetFontSize(USHORT nPos
) const;
67 void SetFontSize(USHORT nPos
, USHORT nSize
);
69 BOOL
IsImportUnknown() const;
70 void SetImportUnknown(BOOL bSet
);
72 USHORT
GetExportMode() const;
73 void SetExportMode(USHORT nSet
);
75 BOOL
IsStarBasic() const;
76 void SetStarBasic(BOOL bSet
);
78 BOOL
IsStarBasicWarning() const;
79 void SetStarBasicWarning(BOOL bSet
);
81 BOOL
IsSaveGraphicsLocal() const;
82 void SetSaveGraphicsLocal(BOOL bSet
);
84 BOOL
IsPrintLayoutExtension() const;
85 void SetPrintLayoutExtension(BOOL bSet
);
87 BOOL
IsIgnoreFontFamily() const;
88 void SetIgnoreFontFamily(BOOL bSet
);
90 sal_Bool
IsDefaultTextEncoding() const;
91 rtl_TextEncoding
GetTextEncoding() const;
92 void SetTextEncoding( rtl_TextEncoding
);
93 static SvxHtmlOptions
* Get();
95 BOOL
IsNumbersEnglishUS() const;
96 void SetNumbersEnglishUS(BOOL bSet
);