2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-15 17:28:16 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2013-10-23 19:14:56 +02:00
|
|
|
#ifndef INCLUDED_SVTOOLS_HTMLCFG_HXX
|
|
|
|
#define INCLUDED_SVTOOLS_HTMLCFG_HXX
|
2010-01-12 08:29:31 +01:00
|
|
|
|
|
|
|
#include <unotools/configitem.hxx>
|
|
|
|
#include <svtools/svtdllapi.h>
|
2016-05-26 02:05:49 +02:00
|
|
|
#include <memory>
|
2010-01-12 08:29:31 +01: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
|
2011-08-13 13:40:46 +03:00
|
|
|
#define HTML_CFG_MSIE 1 // Internet Explorer
|
2010-01-12 08:29:31 +01:00
|
|
|
#define HTML_CFG_WRITER 2 // Writer
|
|
|
|
#define HTML_CFG_NS40 3 // Netscape 4.0
|
|
|
|
|
|
|
|
#define HTML_CFG_MAX HTML_CFG_NS40
|
|
|
|
|
|
|
|
struct HtmlOptions_Impl;
|
|
|
|
|
|
|
|
class SVT_DLLPUBLIC SvxHtmlOptions : public utl::ConfigItem
|
|
|
|
{
|
2016-05-26 02:05:49 +02:00
|
|
|
std::unique_ptr<HtmlOptions_Impl> pImpl;
|
2015-10-23 09:07:12 +02:00
|
|
|
static const css::uno::Sequence<OUString>& GetPropertyNames();
|
|
|
|
void Load( const css::uno::Sequence< OUString >& rPropertyNames );
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void ImplCommit() override;
|
2015-03-11 16:14:47 +01:00
|
|
|
|
2010-01-12 08:29:31 +01:00
|
|
|
public:
|
2011-05-10 16:14:56 +01:00
|
|
|
SvxHtmlOptions();
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~SvxHtmlOptions() override;
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2015-10-23 09:07:12 +02:00
|
|
|
virtual void Notify( const css::uno::Sequence< OUString >& _rPropertyNames) override;
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2010-11-05 10:31:15 +08:00
|
|
|
sal_uInt16 GetFontSize(sal_uInt16 nPos) const;
|
|
|
|
void SetFontSize(sal_uInt16 nPos, sal_uInt16 nSize);
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2014-03-20 14:38:38 +02:00
|
|
|
bool IsImportUnknown() const;
|
|
|
|
void SetImportUnknown(bool bSet);
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2015-10-02 08:37:23 +02:00
|
|
|
sal_uInt16 GetExportMode() const;
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2014-03-20 14:38:38 +02:00
|
|
|
bool IsStarBasic() const;
|
|
|
|
void SetStarBasic(bool bSet);
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2014-03-20 14:38:38 +02:00
|
|
|
bool IsStarBasicWarning() const;
|
|
|
|
void SetStarBasicWarning(bool bSet);
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2014-03-20 14:38:38 +02:00
|
|
|
bool IsSaveGraphicsLocal() const;
|
|
|
|
void SetSaveGraphicsLocal(bool bSet);
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2014-03-20 14:38:38 +02:00
|
|
|
bool IsPrintLayoutExtension() const;
|
|
|
|
void SetPrintLayoutExtension(bool bSet);
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2014-03-20 14:38:38 +02:00
|
|
|
bool IsIgnoreFontFamily() const;
|
|
|
|
void SetIgnoreFontFamily(bool bSet);
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2014-03-20 14:38:38 +02:00
|
|
|
bool IsDefaultTextEncoding() const;
|
2010-01-12 08:29:31 +01:00
|
|
|
rtl_TextEncoding GetTextEncoding() const;
|
|
|
|
void SetTextEncoding( rtl_TextEncoding );
|
2011-05-10 16:14:56 +01:00
|
|
|
static SvxHtmlOptions& Get();
|
2010-01-12 08:29:31 +01:00
|
|
|
|
2014-03-20 14:38:38 +02:00
|
|
|
bool IsNumbersEnglishUS() const;
|
|
|
|
void SetNumbersEnglishUS(bool bSet);
|
2010-01-12 08:29:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2010-10-14 08:27:31 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|