LibreOffice Module writerfilter (master) 1
SettingsTable.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include "LoggedResources.hxx"
23#include <com/sun/star/text/XTextDocument.hpp>
24#include <memory>
25
27{
28class XMultiServiceFactory;
29struct Locale;
30}
31
33{
34class DomainMapper;
35
36struct SettingsTable_Impl;
37
39{
40 std::unique_ptr<SettingsTable_Impl> m_pImpl;
41
42public:
43 SettingsTable(const DomainMapper& rDomainMapper);
44 virtual ~SettingsTable() override;
45
46 //returns default TabStop in 1/100th mm
47 int GetDefaultTabStop() const;
48
50 bool GetLinkStyles() const;
51
53 sal_Int16 GetZoomFactor() const;
54
56 sal_Int16 GetZoomType() const;
57
59 Id GetView() const;
60
61 bool GetEvenAndOddHeaders() const;
62
63 bool GetUsePrinterMetrics() const;
64
65 bool GetEmbedTrueTypeFonts() const;
66 bool GetEmbedSystemFonts() const;
67
69 bool GetSplitPgBreakAndParaMark() const;
70 bool GetMirrorMarginSettings() const;
71 bool GetDisplayBackgroundShape() const;
72 bool GetDoNotExpandShiftReturn() const;
73 bool GetNoColumnBalance() const;
74 bool GetProtectForm() const;
75 bool GetReadOnly() const;
76 bool GetLongerSpaceSequence() const;
77 bool GetNoLeading() const;
78 bool GetNoHyphenateCaps() const;
79 sal_Int16 GetHyphenationZone() const;
80
81 const OUString& GetDecimalSymbol() const;
82 const OUString& GetListSeparator() const;
83
84 css::uno::Sequence<css::beans::PropertyValue> const& GetThemeFontLangProperties() const;
85
86 css::uno::Sequence<css::beans::PropertyValue> GetCompatSettings() const;
87
88 css::uno::Sequence<css::beans::PropertyValue> GetDocumentProtectionSettings() const;
89
90 css::uno::Sequence<css::beans::PropertyValue> GetWriteProtectionSettings() const;
91
92 void ApplyProperties(css::uno::Reference<css::text::XTextDocument> const& xDoc);
93
94 bool GetCompatSettingValue(std::u16string_view sCompatName) const;
95 sal_Int32 GetWordCompatibilityMode() const;
96
97 const OUString& GetCurrentDatabaseDataSource() const;
98 bool GetGutterAtTop() const;
99
100private:
101 // Properties
102 virtual void lcl_attribute(Id Name, Value& val) override;
103 virtual void lcl_sprm(Sprm& sprm) override;
104
105 // Table
107};
109}
110
111/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void sprm(Sprm &sprm) override
Receives a SPRM.
An SPRM: Section, Paragraph and Run Modifier.
css::uno::Sequence< css::beans::PropertyValue > GetWriteProtectionSettings() const
SettingsTable(const DomainMapper &rDomainMapper)
css::uno::Sequence< css::beans::PropertyValue > GetCompatSettings() const
const OUString & GetListSeparator() const
const OUString & GetCurrentDatabaseDataSource() const
sal_Int16 GetZoomType() const
Gets the type of the zoom.
void ApplyProperties(css::uno::Reference< css::text::XTextDocument > const &xDoc)
std::unique_ptr< SettingsTable_Impl > m_pImpl
bool GetCompatSettingValue(std::u16string_view sCompatName) const
css::uno::Sequence< css::beans::PropertyValue > GetDocumentProtectionSettings() const
css::uno::Sequence< css::beans::PropertyValue > const & GetThemeFontLangProperties() const
sal_Int16 GetZoomFactor() const
What's the zoom factor set in percents?
bool GetLinkStyles() const
Automatically update styles from document template?
const OUString & GetDecimalSymbol() const
virtual void lcl_sprm(Sprm &sprm) override
virtual void lcl_entry(writerfilter::Reference< Properties >::Pointer_t ref) override
virtual void lcl_attribute(Id Name, Value &val) override
Id GetView() const
What's the requested view? E.g. "web".
tools::SvRef< SettingsTable > SettingsTablePtr
sal_uInt32 Id