1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_SETTINGSTABLE_HXX
21 #define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_SETTINGSTABLE_HXX
23 #include "LoggedResources.hxx"
24 #include <com/sun/star/lang/XComponent.hpp>
25 #include <com/sun/star/text/XTextDocument.hpp>
29 namespace com
{ namespace sun
{ namespace star
{
31 class XMultiServiceFactory
;
36 namespace writerfilter
{
41 struct SettingsTable_Impl
;
43 class SettingsTable
: public LoggedProperties
, public LoggedTable
45 std::unique_ptr
<SettingsTable_Impl
> m_pImpl
;
48 SettingsTable(const DomainMapper
& rDomainMapper
);
49 virtual ~SettingsTable() override
;
51 //returns default TabStop in 1/100th mm
52 int GetDefaultTabStop() const;
54 /// Automatically update styles from document template?
55 bool GetLinkStyles() const;
57 /// What's the zoom factor set in percents?
58 sal_Int16
GetZoomFactor() const;
60 /// Gets the type of the zoom.
61 sal_Int16
GetZoomType() const;
63 /// What's the requested view? E.g. "web".
66 bool GetEvenAndOddHeaders() const;
68 bool GetUsePrinterMetrics() const;
70 bool GetEmbedTrueTypeFonts() const;
71 bool GetEmbedSystemFonts() const;
73 bool GetDoNotUseHTMLParagraphAutoSpacing() const;
74 bool GetSplitPgBreakAndParaMark() const;
75 bool GetMirrorMarginSettings() const;
76 bool GetDisplayBackgroundShape() const;
77 bool GetDoNotExpandShiftReturn() const;
78 bool GetNoColumnBalance() const;
79 bool GetProtectForm() const;
80 bool GetLongerSpaceSequence() const;
81 bool GetNoHyphenateCaps() const;
82 sal_Int16
GetHypenationZone() const;
84 css::uno::Sequence
<css::beans::PropertyValue
> const & GetThemeFontLangProperties() const;
86 css::uno::Sequence
<css::beans::PropertyValue
> GetCompatSettings() const;
88 css::uno::Sequence
<css::beans::PropertyValue
> GetDocumentProtectionSettings() const;
90 void ApplyProperties(css::uno::Reference
<css::text::XTextDocument
> const& xDoc
);
92 sal_Int32
GetWordCompatibilityMode() const;
94 const OUString
& GetCurrentDatabaseDataSource() const;
98 virtual void lcl_attribute(Id Name
, Value
& val
) override
;
99 virtual void lcl_sprm(Sprm
& sprm
) override
;
102 virtual void lcl_entry(writerfilter::Reference
<Properties
>::Pointer_t ref
) override
;
105 typedef tools::SvRef
< SettingsTable
> SettingsTablePtr
;
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */