1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _SVX_HTMLCFG_HXX 24 #define _SVX_HTMLCFG_HXX 25 26 // ----------------------------------------------------------------------- 27 28 #include <tools/solar.h> 29 #include <unotools/configitem.hxx> 30 #include <svtools/svtdllapi.h> 31 32 #define HTML_FONT_COUNT 7 33 34 // !!!be aware!!!: the following defines are _not_ used as values in the configuration file 35 // this is because of compatibility reasons 36 #define HTML_CFG_HTML32 0 // Html 3.2 37 #define HTML_CFG_MSIE_40 1 // Internet Explorer 4.0 38 #define HTML_CFG_MSIE HTML_CFG_MSIE_40 39 #define HTML_CFG_WRITER 2 // Writer 40 #define HTML_CFG_NS40 3 // Netscape 4.0 41 #define HTML_CFG_MSIE_40_OLD 4 // Internet Explorer 4.0 - alter Wert 42 43 #define HTML_CFG_MAX HTML_CFG_NS40 44 45 class Link; 46 struct HtmlOptions_Impl; 47 // ----------------------------------------------------------------------- 48 49 class SVT_DLLPUBLIC SvxHtmlOptions : public utl::ConfigItem 50 { 51 HtmlOptions_Impl*pImp; 52 const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames(); 53 void Load( const com::sun::star::uno::Sequence< rtl::OUString >& rPropertyNames ); 54 void CallListeners(); 55 56 public: 57 SvxHtmlOptions(); 58 ~SvxHtmlOptions(); 59 60 virtual void Commit(); 61 virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& _rPropertyNames); 62 63 sal_uInt16 GetFontSize(sal_uInt16 nPos) const; 64 void SetFontSize(sal_uInt16 nPos, sal_uInt16 nSize); 65 66 sal_Bool IsImportUnknown() const; 67 void SetImportUnknown(sal_Bool bSet); 68 69 sal_uInt16 GetExportMode() const; 70 void SetExportMode(sal_uInt16 nSet); 71 72 sal_Bool IsStarBasic() const; 73 void SetStarBasic(sal_Bool bSet); 74 75 sal_Bool IsStarBasicWarning() const; 76 void SetStarBasicWarning(sal_Bool bSet); 77 78 sal_Bool IsSaveGraphicsLocal() const; 79 void SetSaveGraphicsLocal(sal_Bool bSet); 80 81 sal_Bool IsPrintLayoutExtension() const; 82 void SetPrintLayoutExtension(sal_Bool bSet); 83 84 sal_Bool IsIgnoreFontFamily() const; 85 void SetIgnoreFontFamily(sal_Bool bSet); 86 87 sal_Bool IsDefaultTextEncoding() const; 88 rtl_TextEncoding GetTextEncoding() const; 89 void SetTextEncoding( rtl_TextEncoding ); 90 static SvxHtmlOptions* Get(); 91 92 sal_Bool IsNumbersEnglishUS() const; 93 void SetNumbersEnglishUS(sal_Bool bSet); 94 95 void AddListenerLink( const Link& rLink ); 96 void RemoveListenerLink( const Link& rLink ); 97 }; 98 99 #endif 100 101 102 103 104