LibreOffice Module sw (master) 1
IDocumentSettingAccess.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 <sal/types.h>
23#include "fldupde.hxx"
24#include <i18nlangtag/lang.h>
25#include <memory>
26
29{
30struct ForbiddenCharacters;
31}
32enum class CharCompressType;
33
35{
36 // COMPATIBILITY FLAGS START
39
41
44
46
56
61
66
67 // tdf#104349 tdf#104668
69 // tdf#128197 MS Word in some modes can have line height based on shape height, not on font
74 // #i89181#
85 // MS Word still wraps text around objects with less space than LO would.
89 // tdf#112443 disable off-page content positioning
92 // tdf#129448: Auto first-line indent should not be effected by line space
96 // COMPATIBILITY FLAGS END
102 PURGE_OLE,
120 // footnoteContainer default position is the page end instead of the column end
121 // only if "evenly distributed" is set, and "collected at the end" is not set
123 // AsChar anchored flys wrapped differently in ooxml than normally so in case of
124 // docx enable this flag. For details see ticket tdf#100680.
126 // Should we display follow by symbol for numbered paragraph if numbering exists, but "None"?
128 // drop cap punctuation: smaller dashes, bullet, asterisks, quotation marks etc.
129 // by extending the rounding box of the glyph to the baseline
131 // render NBSP as standard-space-width (prettier when justified)
133};
134
138{
139public:
149 virtual bool get(/*[in]*/ DocumentSettingId id) const = 0;
150
160 virtual void set(/*[in]*/ DocumentSettingId id, /*[in]*/ bool value) = 0;
161
174 virtual const css::i18n::ForbiddenCharacters*
175 getForbiddenCharacters(/*[in]*/ LanguageType nLang, /*[in]*/ bool bLocaleData) const = 0;
176
185 virtual void
187 /*[in]*/ const css::i18n::ForbiddenCharacters& rForbiddenCharacters)
188 = 0;
189
195 virtual std::shared_ptr<SvxForbiddenCharactersTable>& getForbiddenCharacterTable() = 0;
196
202 virtual const std::shared_ptr<SvxForbiddenCharactersTable>&
204
214 virtual sal_uInt16 getLinkUpdateMode(/*[in]*/ bool bGlobalSettings) const = 0;
215
221 virtual void setLinkUpdateMode(/*[in]*/ sal_uInt16 nMode) = 0;
222
232 virtual SwFieldUpdateFlags getFieldUpdateFlags(/*[in]*/ bool bGlobalSettings) const = 0;
233
239 virtual void setFieldUpdateFlags(/*[in]*/ SwFieldUpdateFlags nMode) = 0;
240
247
253 virtual void setCharacterCompressionType(/*[in]*/ CharCompressType nType) = 0;
254
257 virtual sal_uInt32 Getn32DummyCompatibilityOptions1() const = 0;
258
261 virtual void Setn32DummyCompatibilityOptions1(const sal_uInt32 CompatibilityOptions1) = 0;
262
265 virtual sal_uInt32 Getn32DummyCompatibilityOptions2() const = 0;
266
269 virtual void Setn32DummyCompatibilityOptions2(const sal_uInt32 CompatibilityOptions2) = 0;
270
271 virtual sal_Int32 getImagePreferredDPI() = 0;
272 virtual void setImagePreferredDPI(sal_Int32 nValue) = 0;
273
274protected:
276};
277
278/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@ CONSIDER_WRAP_ON_OBJECT_POSITION
@ CLIP_AS_CHARACTER_ANCHORED_WRITER_FLY_FRAME
@ TREAT_SINGLE_COLUMN_BREAK_AS_PAGE_BREAK
@ DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK
@ HYPHENATE_URLS
tdf#152952
@ IGNORE_FIRST_LINE_INDENT_IN_NUMBERING
@ APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING
@ AUTO_FIRST_LINE_INDENT_DISREGARD_LINE_SPACE
@ TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST
@ MS_WORD_COMP_MIN_LINE_HEIGHT_BY_FLY
@ IGNORE_TABS_AND_BLANKS_FOR_LINE_CALCULATION
@ DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE
@ PROP_LINE_SPACING_SHRINKS_FIRST_LINE
@ DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT
@ ADD_PARA_LINE_SPACING_TO_TABLE_CELLS
CharCompressType
Provides access to settings of a document.
virtual sal_uInt32 Getn32DummyCompatibilityOptions1() const =0
Get the n32DummyCompatibilityOptions1.
virtual sal_uInt16 getLinkUpdateMode(bool bGlobalSettings) const =0
Get the current link update mode.
virtual std::shared_ptr< SvxForbiddenCharactersTable > & getForbiddenCharacterTable()=0
Get the forbidden character table and creates one if necessary.
virtual const std::shared_ptr< SvxForbiddenCharactersTable > & getForbiddenCharacterTable() const =0
Get the forbidden character table.
virtual void setFieldUpdateFlags(SwFieldUpdateFlags nMode)=0
Set the current field update mode.
virtual void setImagePreferredDPI(sal_Int32 nValue)=0
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
virtual void setLinkUpdateMode(sal_uInt16 nMode)=0
Set the current link update mode.
virtual void setCharacterCompressionType(CharCompressType nType)=0
Set the character compression type for Asian characters.
virtual void set(DocumentSettingId id, bool value)=0
Set the specified document setting.
virtual void Setn32DummyCompatibilityOptions2(const sal_uInt32 CompatibilityOptions2)=0
Set the n32DummyCompatibilityOptions2.
virtual SwFieldUpdateFlags getFieldUpdateFlags(bool bGlobalSettings) const =0
Get the current field update mode.
virtual CharCompressType getCharacterCompressionType() const =0
Get the character compression type for Asian characters.
virtual const css::i18n::ForbiddenCharacters * getForbiddenCharacters(LanguageType nLang, bool bLocaleData) const =0
Return the forbidden characters.
virtual sal_Int32 getImagePreferredDPI()=0
virtual void setForbiddenCharacters(LanguageType nLang, const css::i18n::ForbiddenCharacters &rForbiddenCharacters)=0
Set the forbidden characters.
virtual void Setn32DummyCompatibilityOptions1(const sal_uInt32 CompatibilityOptions1)=0
Set the n32DummyCompatibilityOptions1.
virtual sal_uInt32 Getn32DummyCompatibilityOptions2() const =0
Get the n32DummyCompatibilityOptions2.
SwFieldUpdateFlags
Definition: fldupde.hxx:23
static LanguageType nLang
Definition: srtdlg.cxx:51