blob: 53927d6c16efe65101dc28b725caa0c69f99cf36 [file] [log] [blame]
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef _SVX_HTMLCFG_HXX
#define _SVX_HTMLCFG_HXX
// -----------------------------------------------------------------------
#include <tools/solar.h>
#include <unotools/configitem.hxx>
#include <svtools/svtdllapi.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_HTML32 0 // Html 3.2
#define HTML_CFG_MSIE_40 1 // Internet Explorer 4.0
#define HTML_CFG_MSIE HTML_CFG_MSIE_40
#define HTML_CFG_WRITER 2 // Writer
#define HTML_CFG_NS40 3 // Netscape 4.0
#define HTML_CFG_MSIE_40_OLD 4 // Internet Explorer 4.0 - alter Wert
#define HTML_CFG_MAX HTML_CFG_NS40
class Link;
struct HtmlOptions_Impl;
// -----------------------------------------------------------------------
class SVT_DLLPUBLIC SvxHtmlOptions : public utl::ConfigItem
{
HtmlOptions_Impl*pImp;
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
void Load( const com::sun::star::uno::Sequence< rtl::OUString >& rPropertyNames );
void CallListeners();
public:
SvxHtmlOptions();
~SvxHtmlOptions();
virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& _rPropertyNames);
sal_uInt16 GetFontSize(sal_uInt16 nPos) const;
void SetFontSize(sal_uInt16 nPos, sal_uInt16 nSize);
sal_Bool IsImportUnknown() const;
void SetImportUnknown(sal_Bool bSet);
sal_uInt16 GetExportMode() const;
void SetExportMode(sal_uInt16 nSet);
sal_Bool IsStarBasic() const;
void SetStarBasic(sal_Bool bSet);
sal_Bool IsStarBasicWarning() const;
void SetStarBasicWarning(sal_Bool bSet);
sal_Bool IsSaveGraphicsLocal() const;
void SetSaveGraphicsLocal(sal_Bool bSet);
sal_Bool IsPrintLayoutExtension() const;
void SetPrintLayoutExtension(sal_Bool bSet);
sal_Bool IsIgnoreFontFamily() const;
void SetIgnoreFontFamily(sal_Bool bSet);
sal_Bool IsDefaultTextEncoding() const;
rtl_TextEncoding GetTextEncoding() const;
void SetTextEncoding( rtl_TextEncoding );
static SvxHtmlOptions* Get();
sal_Bool IsNumbersEnglishUS() const;
void SetNumbersEnglishUS(sal_Bool bSet);
void AddListenerLink( const Link& rLink );
void RemoveListenerLink( const Link& rLink );
};
#endif