2004-02-03 10:27:51 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 12:40:47 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-02-03 10:27:51 -06:00
|
|
|
*
|
2008-04-10 12:40:47 -05:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2004-02-03 10:27:51 -06:00
|
|
|
*
|
2008-04-10 12:40:47 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-02-03 10:27:51 -06:00
|
|
|
*
|
2008-04-10 12:40:47 -05:00
|
|
|
* $RCSfile: htmlcfg.hxx,v $
|
|
|
|
* $Revision: 1.6 $
|
2004-02-03 10:27:51 -06:00
|
|
|
*
|
2008-04-10 12:40:47 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-02-03 10:27:51 -06:00
|
|
|
*
|
2008-04-10 12:40:47 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-02-03 10:27:51 -06:00
|
|
|
*
|
2008-04-10 12:40:47 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-02-03 10:27:51 -06:00
|
|
|
*
|
2008-04-10 12:40:47 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-02-03 10:27:51 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _SVX_HTMLCFG_HXX
|
|
|
|
#define _SVX_HTMLCFG_HXX
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
#include <tools/solar.h>
|
|
|
|
#include <unotools/configitem.hxx>
|
2005-01-21 07:46:27 -06:00
|
|
|
#include "svx/svxdllapi.h"
|
|
|
|
|
2004-02-03 10:27:51 -06:00
|
|
|
#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
|
|
|
|
|
|
|
|
struct HtmlOptions_Impl;
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2005-01-21 07:46:27 -06:00
|
|
|
class SVX_DLLPUBLIC SvxHtmlOptions : public utl::ConfigItem
|
2004-02-03 10:27:51 -06:00
|
|
|
{
|
|
|
|
HtmlOptions_Impl*pImp;
|
|
|
|
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
|
|
|
|
|
|
|
|
public:
|
|
|
|
SvxHtmlOptions();
|
|
|
|
~SvxHtmlOptions();
|
|
|
|
|
|
|
|
virtual void Commit();
|
|
|
|
|
|
|
|
USHORT GetFontSize(USHORT nPos) const;
|
|
|
|
void SetFontSize(USHORT nPos, USHORT nSize);
|
|
|
|
|
|
|
|
BOOL IsImportUnknown() const;
|
|
|
|
void SetImportUnknown(BOOL bSet);
|
|
|
|
|
|
|
|
USHORT GetExportMode() const;
|
|
|
|
void SetExportMode(USHORT nSet);
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
BOOL IsIgnoreFontFamily() const;
|
|
|
|
void SetIgnoreFontFamily(BOOL bSet);
|
|
|
|
|
|
|
|
sal_Bool IsDefaultTextEncoding() const;
|
|
|
|
rtl_TextEncoding GetTextEncoding() const;
|
|
|
|
void SetTextEncoding( rtl_TextEncoding );
|
|
|
|
static SvxHtmlOptions* Get();
|
2006-07-10 05:55:58 -05:00
|
|
|
|
|
|
|
BOOL IsNumbersEnglishUS() const;
|
|
|
|
void SetNumbersEnglishUS(BOOL bSet);
|
2004-02-03 10:27:51 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|