LibreOffice Module sw (master) 1
DocumentSettingManager.cxx
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#include <libxml/xmlwriter.h>
21
23#include <doc.hxx>
25#include <IDocumentState.hxx>
27#include <comphelper/lok.hxx>
30#include <osl/diagnose.h>
31#include <svx/svdmodel.hxx>
32#include <svl/asiancfg.hxx>
35#include <drawdoc.hxx>
36#include <swmodule.hxx>
37#include <linkenum.hxx>
38#include <rootfrm.hxx>
39#include <breakit.hxx>
40#include <docary.hxx>
41
42/* IDocumentSettingAccess */
43
45 :m_rDoc(rDoc),
46 mnLinkUpdMode( GLOBALSETTING ),
47 meFieldUpdMode( AUTOUPD_GLOBALSETTING ),
48 meChrCmprType( CharCompressType::NONE ),
49 mn32DummyCompatibilityOptions1(0),
50 mn32DummyCompatibilityOptions2(0),
51 mbHTMLMode(false),
52 mbIsGlobalDoc(false),
53 mbGlblDocSaveLinks(false),
54 mbIsLabelDoc(false),
55 mbPurgeOLE(true),
56 mbKernAsianPunctuation(false),
57
58 // COMPATIBILITY FLAGS START
59
60 mbAddFlyOffsets(false),
61 mbAddVerticalFlyOffsets(false),
62 mbUseHiResolutionVirtualDevice(true),
63 mbMathBaselineAlignment(false), // default for *old* documents is 'off'
64 mbStylesNoDefault(false),
65 mbFloattableNomargins(false),
66 mEmbedFonts(false),
67 mEmbedUsedFonts(false),
68 mEmbedLatinScriptFonts(true),
69 mEmbedAsianScriptFonts(true),
70 mEmbedComplexScriptFonts(true),
71 mEmbedSystemFonts(false),
72 mbOldNumbering(false),
73 mbIgnoreFirstLineIndentInNumbering(false),
74 mbDoNotResetParaAttrsForNumFont(false),
75 mbTableRowKeep(false),
76 mbIgnoreTabsAndBlanksForLineCalculation(false),
77 mbDoNotCaptureDrawObjsOnPage(false),
78 mbClipAsCharacterAnchoredWriterFlyFrames(false),
79 mbUnixForceZeroExtLeading(false),
80 mbTabRelativeToIndent(true),
81 mbProtectForm(false), // i#78591#
82 mbMsWordCompTrailingBlanks(false), // tdf#104349 tdf#104668
83 mbMsWordCompMinLineHeightByFly(false),
84 mbInvertBorderSpacing (false),
85 mbCollapseEmptyCellPara(true),
86 mbTabAtLeftIndentForParagraphsInList(false), //#i89181#
87 mbSmallCapsPercentage66(false),
88 mbTabOverflow(true),
89 mbUnbreakableNumberings(false),
90 mbClippedPictures(false),
91 mbBackgroundParaOverDrawings(false),
92 mbTabOverMargin(false),
93 mbTabOverSpacing(false),
94 mbTreatSingleColumnBreakAsPageBreak(false),
95 mbSurroundTextWrapSmall(false),
96 mbPropLineSpacingShrinksFirstLine(true),
97 mbSubtractFlys(false),
98 mApplyParagraphMarkFormatToNumbering(false),
99 mbLastBrowseMode( false ),
100 mbDisableOffPagePositioning ( false ),
101 mbProtectBookmarks(false),
102 mbProtectFields(false),
103 mbHeaderSpacingBelowLastPara(false),
104 mbFrameAutowidthWithMorePara(false),
105 mbGutterAtTop(false),
106 mbFootnoteInColumnToPageEnd(false),
107 mnImagePreferredDPI(0),
108 mbAutoFirstLineIndentDisregardLineSpace(true),
109 mbWrapAsCharFlysLikeInOOXML(false),
110 mbNoNumberingShowFollowBy(false),
111 mbDropCapPunctuation(true)
112
113 // COMPATIBILITY FLAGS END
114{
115 // COMPATIBILITY FLAGS START
116
117 // Note: Any non-hidden compatibility flag should obtain its default
118 // by asking SvtCompatibilityOptions, see below.
119
121 {
122 const SvtCompatibilityOptions aOptions;
126 mbUseVirtualDevice = true;
140 }
141 else
142 {
143 mbParaSpaceMax = false;
144 mbParaSpaceMaxAtPages = false;
145 mbTabCompat = true;
146 mbUseVirtualDevice = true;
148 mbOldLineSpacing = false;
151 mbUseFormerObjectPos = false;
155 mbProtectForm = false;
157 mbSubtractFlys = false;
159 }
160
161 // COMPATIBILITY FLAGS END
162
163}
164
165
167{
168}
169
170/* IDocumentSettingAccess */
172{
173 switch (id)
174 {
175 // COMPATIBILITY FLAGS START
176 case DocumentSettingId::PARA_SPACE_MAX: return mbParaSpaceMax; //(n8Dummy1 & DUMMY_PARASPACEMAX);
177 case DocumentSettingId::PARA_SPACE_MAX_AT_PAGES: return mbParaSpaceMaxAtPages; //(n8Dummy1 & DUMMY_PARASPACEMAX_AT_PAGES);
178 case DocumentSettingId::TAB_COMPAT: return mbTabCompat; //(n8Dummy1 & DUMMY_TAB_COMPAT);
179 case DocumentSettingId::ADD_FLY_OFFSETS: return mbAddFlyOffsets; //(n8Dummy2 & DUMMY_ADD_FLY_OFFSETS);
180 case DocumentSettingId::ADD_VERTICAL_FLY_OFFSETS: return mbAddVerticalFlyOffsets;
181 case DocumentSettingId::ADD_EXT_LEADING: return mbAddExternalLeading; //(n8Dummy2 & DUMMY_ADD_EXTERNAL_LEADING);
182 case DocumentSettingId::USE_VIRTUAL_DEVICE: return mbUseVirtualDevice; //(n8Dummy1 & DUMMY_USE_VIRTUAL_DEVICE);
183 case DocumentSettingId::USE_HIRES_VIRTUAL_DEVICE: return mbUseHiResolutionVirtualDevice; //(n8Dummy2 & DUMMY_USE_HIRES_VIR_DEV);
184 case DocumentSettingId::OLD_NUMBERING: return mbOldNumbering;
185 case DocumentSettingId::OLD_LINE_SPACING: return mbOldLineSpacing;
186 case DocumentSettingId::ADD_PARA_SPACING_TO_TABLE_CELLS: return mbAddParaSpacingToTableCells;
187 case DocumentSettingId::ADD_PARA_LINE_SPACING_TO_TABLE_CELLS: return mbAddParaLineSpacingToTableCells;
188 case DocumentSettingId::USE_FORMER_OBJECT_POS: return mbUseFormerObjectPos;
189 case DocumentSettingId::USE_FORMER_TEXT_WRAPPING: return mbUseFormerTextWrapping;
190 case DocumentSettingId::CONSIDER_WRAP_ON_OBJECT_POSITION: return mbConsiderWrapOnObjPos;
191 case DocumentSettingId::DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK: return mbDoNotJustifyLinesWithManualBreak;
192 case DocumentSettingId::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING: return mbIgnoreFirstLineIndentInNumbering;
193 case DocumentSettingId::TABLE_ROW_KEEP: return mbTableRowKeep;
194 case DocumentSettingId::IGNORE_TABS_AND_BLANKS_FOR_LINE_CALCULATION: return mbIgnoreTabsAndBlanksForLineCalculation;
195 case DocumentSettingId::DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE: return mbDoNotCaptureDrawObjsOnPage;
196 // #i68949#
197 case DocumentSettingId::CLIP_AS_CHARACTER_ANCHORED_WRITER_FLY_FRAME: return mbClipAsCharacterAnchoredWriterFlyFrames;
198 case DocumentSettingId::UNIX_FORCE_ZERO_EXT_LEADING: return mbUnixForceZeroExtLeading;
199 case DocumentSettingId::TABS_RELATIVE_TO_INDENT : return mbTabRelativeToIndent;
200 case DocumentSettingId::PROTECT_FORM: return mbProtectForm;
201 // tdf#104349 tdf#104668
202 case DocumentSettingId::MS_WORD_COMP_TRAILING_BLANKS: return mbMsWordCompTrailingBlanks;
203 case DocumentSettingId::MS_WORD_COMP_MIN_LINE_HEIGHT_BY_FLY: return mbMsWordCompMinLineHeightByFly;
204 // #i89181#
205 case DocumentSettingId::TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST: return mbTabAtLeftIndentForParagraphsInList;
206 case DocumentSettingId::INVERT_BORDER_SPACING: return mbInvertBorderSpacing;
207 case DocumentSettingId::COLLAPSE_EMPTY_CELL_PARA: return mbCollapseEmptyCellPara;
208 case DocumentSettingId::SMALL_CAPS_PERCENTAGE_66: return mbSmallCapsPercentage66;
209 case DocumentSettingId::TAB_OVERFLOW: return mbTabOverflow;
210 case DocumentSettingId::UNBREAKABLE_NUMBERINGS: return mbUnbreakableNumberings;
211 case DocumentSettingId::CLIPPED_PICTURES: return mbClippedPictures;
212 case DocumentSettingId::BACKGROUND_PARA_OVER_DRAWINGS: return mbBackgroundParaOverDrawings;
213 case DocumentSettingId::TAB_OVER_MARGIN: return mbTabOverMargin;
214 case DocumentSettingId::TAB_OVER_SPACING: return mbTabOverSpacing;
215 case DocumentSettingId::TREAT_SINGLE_COLUMN_BREAK_AS_PAGE_BREAK: return mbTreatSingleColumnBreakAsPageBreak;
216 case DocumentSettingId::SURROUND_TEXT_WRAP_SMALL: return mbSurroundTextWrapSmall;
217 case DocumentSettingId::PROP_LINE_SPACING_SHRINKS_FIRST_LINE: return mbPropLineSpacingShrinksFirstLine;
218 case DocumentSettingId::SUBTRACT_FLYS: return mbSubtractFlys;
219
220 case DocumentSettingId::BROWSE_MODE: return mbLastBrowseMode; // Attention: normally the SwViewShell has to be asked!
221 case DocumentSettingId::HTML_MODE: return mbHTMLMode;
222 case DocumentSettingId::GLOBAL_DOCUMENT: return mbIsGlobalDoc;
223 case DocumentSettingId::GLOBAL_DOCUMENT_SAVE_LINKS: return mbGlblDocSaveLinks;
224 case DocumentSettingId::LABEL_DOCUMENT: return mbIsLabelDoc;
225 case DocumentSettingId::PURGE_OLE: return mbPurgeOLE;
226 case DocumentSettingId::KERN_ASIAN_PUNCTUATION: return mbKernAsianPunctuation;
227 case DocumentSettingId::DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT: return mbDoNotResetParaAttrsForNumFont;
228 case DocumentSettingId::MATH_BASELINE_ALIGNMENT: return mbMathBaselineAlignment;
229 case DocumentSettingId::STYLES_NODEFAULT: return mbStylesNoDefault;
230 case DocumentSettingId::FLOATTABLE_NOMARGINS: return mbFloattableNomargins;
231 case DocumentSettingId::EMBED_FONTS: return mEmbedFonts;
232 case DocumentSettingId::EMBED_USED_FONTS: return mEmbedUsedFonts;
233 case DocumentSettingId::EMBED_LATIN_SCRIPT_FONTS: return mEmbedLatinScriptFonts;
234 case DocumentSettingId::EMBED_ASIAN_SCRIPT_FONTS: return mEmbedAsianScriptFonts;
235 case DocumentSettingId::EMBED_COMPLEX_SCRIPT_FONTS: return mEmbedComplexScriptFonts;
236 case DocumentSettingId::EMBED_SYSTEM_FONTS: return mEmbedSystemFonts;
237 case DocumentSettingId::APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING: return mApplyParagraphMarkFormatToNumbering;
238 case DocumentSettingId::DISABLE_OFF_PAGE_POSITIONING: return mbDisableOffPagePositioning;
239 case DocumentSettingId::EMPTY_DB_FIELD_HIDES_PARA: return mbEmptyDbFieldHidesPara;
240 case DocumentSettingId::CONTINUOUS_ENDNOTES: return mbContinuousEndnotes;
241 case DocumentSettingId::PROTECT_BOOKMARKS: return mbProtectBookmarks;
242 case DocumentSettingId::PROTECT_FIELDS: return mbProtectFields;
243 case DocumentSettingId::HEADER_SPACING_BELOW_LAST_PARA: return mbHeaderSpacingBelowLastPara;
244 case DocumentSettingId::FRAME_AUTOWIDTH_WITH_MORE_PARA: return mbFrameAutowidthWithMorePara;
246 return mbGutterAtTop;
247 case DocumentSettingId::FOOTNOTE_IN_COLUMN_TO_PAGEEND: return mbFootnoteInColumnToPageEnd;
249 return mbAutoFirstLineIndentDisregardLineSpace;
250 case DocumentSettingId::WRAP_AS_CHAR_FLYS_LIKE_IN_OOXML: return mbWrapAsCharFlysLikeInOOXML;
251 case DocumentSettingId::NO_NUMBERING_SHOW_FOLLOWBY: return mbNoNumberingShowFollowBy;
252 case DocumentSettingId::DROP_CAP_PUNCTUATION: return mbDropCapPunctuation;
253 default:
254 OSL_FAIL("Invalid setting id");
255 }
256 return false;
257}
258
259void sw::DocumentSettingManager::set(/*[in]*/ DocumentSettingId id, /*[in]*/ bool value)
260{
261 switch (id)
262 {
263 // COMPATIBILITY FLAGS START
265 mbParaSpaceMax = value;
266 break;
268 mbParaSpaceMaxAtPages = value;
269 break;
271 mbTabCompat = value;
272 break;
274 mbAddFlyOffsets = value;
275 break;
277 mbAddVerticalFlyOffsets = value;
278 break;
280 mbAddExternalLeading = value;
281 break;
283 mbUseVirtualDevice = value;
284 break;
286 mbUseHiResolutionVirtualDevice = value;
287 break;
289 if (mbOldNumbering != value)
290 {
291 mbOldNumbering = value;
292
293 const SwNumRuleTable& rNmTable = m_rDoc.GetNumRuleTable();
294 for( SwNumRuleTable::size_type n = 0; n < rNmTable.size(); ++n )
295 rNmTable[n]->SetInvalidRule(true);
296
298
299 SwNumRule *pOutlineRule = m_rDoc.GetOutlineNumRule();
300 if (pOutlineRule)
301 {
302 pOutlineRule->Validate(m_rDoc);
303 // counting of phantoms depends on <IsOldNumbering()>
304 pOutlineRule->SetCountPhantoms( !mbOldNumbering );
305 }
306 }
307 break;
309 mbOldLineSpacing = value;
310 break;
312 mbAddParaSpacingToTableCells = value;
313 break;
315 mbAddParaLineSpacingToTableCells = value;
316 break;
318 mbUseFormerObjectPos = value;
319 break;
321 mbUseFormerTextWrapping = value;
322 break;
324 mbConsiderWrapOnObjPos = value;
325 break;
327 mbDoNotJustifyLinesWithManualBreak = value;
328 break;
330 mbIgnoreFirstLineIndentInNumbering = value;
331 break;
332
334 mbTableRowKeep = value;
335 break;
336
338 mbIgnoreTabsAndBlanksForLineCalculation = value;
339 break;
340
342 mbDoNotCaptureDrawObjsOnPage = value;
343 break;
344
345 // #i68949#
347 mbClipAsCharacterAnchoredWriterFlyFrames = value;
348 break;
349
351 mbUnixForceZeroExtLeading = value;
352 break;
353
355 mbProtectForm = value;
356 break;
357
358 // tdf#140349
360 mbMsWordCompTrailingBlanks = value;
361 break;
362
364 mbMsWordCompMinLineHeightByFly = value;
365 break;
366
368 mbTabRelativeToIndent = value;
369 break;
370 // #i89181#
372 mbTabAtLeftIndentForParagraphsInList = value;
373 break;
374
376 mbInvertBorderSpacing = value;
377 break;
378
380 mbCollapseEmptyCellPara = value;
381 break;
382
384 mbSmallCapsPercentage66 = value;
385 break;
386
388 mbTabOverflow = value;
389 break;
390
392 mbUnbreakableNumberings = value;
393 break;
394
396 mbClippedPictures = value;
397 break;
398
400 mbBackgroundParaOverDrawings = value;
401 break;
402
404 mbTabOverMargin = value;
405 break;
406
408 mbTabOverSpacing = value;
409 break;
410
412 mbTreatSingleColumnBreakAsPageBreak = value;
413 break;
414
416 mbSurroundTextWrapSmall = value;
417 break;
418
420 mbPropLineSpacingShrinksFirstLine = value;
421 break;
422
424 mbSubtractFlys = value;
425 break;
426
428 mbAutoFirstLineIndentDisregardLineSpace = value;
429 break;
430
432 mbWrapAsCharFlysLikeInOOXML = value;
433 break;
434
436 mbNoNumberingShowFollowBy = value;
437 break;
438
440 mbDropCapPunctuation = value;
441 break;
442
443 // COMPATIBILITY FLAGS END
444
445 case DocumentSettingId::BROWSE_MODE: //can be used temporary (load/save) when no SwViewShell is available
446 // Can't render in webview successfully.
448 mbLastBrowseMode = false;
449 else
450 mbLastBrowseMode = value;
451 break;
452
454 mbHTMLMode = value;
455 break;
456
458 mbIsGlobalDoc = value;
459 break;
460
462 mbGlblDocSaveLinks = value;
463 break;
464
466 mbIsLabelDoc = value;
467 break;
468
470 mbPurgeOLE = value;
471 break;
472
474 mbKernAsianPunctuation = value;
475 break;
476
478 mbDoNotResetParaAttrsForNumFont = value;
479 break;
481 mbMathBaselineAlignment = value;
482 break;
484 mbStylesNoDefault = value;
485 break;
487 mbFloattableNomargins = value;
488 break;
490 mEmbedFonts = value;
491 break;
493 mEmbedUsedFonts = value;
494 break;
496 mEmbedLatinScriptFonts = value;
497 break;
499 mEmbedAsianScriptFonts = value;
500 break;
502 mEmbedComplexScriptFonts = value;
503 break;
505 mEmbedSystemFonts = value;
506 break;
508 mApplyParagraphMarkFormatToNumbering = value;
509 break;
511 mbDisableOffPagePositioning = value;
512 break;
514 mbEmptyDbFieldHidesPara = value;
515 break;
517 mbContinuousEndnotes = value;
518 break;
520 mbProtectBookmarks = value;
521 break;
523 mbProtectFields = value;
524 break;
526 mbHeaderSpacingBelowLastPara = value;
527 break;
529 mbFrameAutowidthWithMorePara = value;
530 break;
532 mbGutterAtTop = value;
533 break;
535 mbFootnoteInColumnToPageEnd = value;
536 break;
537 default:
538 OSL_FAIL("Invalid setting id");
539 }
540}
541
542const css::i18n::ForbiddenCharacters*
544{
545 const css::i18n::ForbiddenCharacters* pRet = nullptr;
546 if (mxForbiddenCharsTable)
547 pRet = mxForbiddenCharsTable->GetForbiddenCharacters( nLang, false );
548 if( bLocaleData && !pRet && g_pBreakIt )
549 pRet = &g_pBreakIt->GetForbidden( nLang );
550 return pRet;
551}
552
554 /*[in]*/ const css::i18n::ForbiddenCharacters& rFChars )
555{
556 if (!mxForbiddenCharsTable)
557 mxForbiddenCharsTable = SvxForbiddenCharactersTable::makeForbiddenCharactersTable(::comphelper::getProcessComponentContext());
558 mxForbiddenCharsTable->SetForbiddenCharacters( nLang, rFChars );
559
561 if( pDrawModel )
562 {
563 pDrawModel->SetForbiddenCharsTable(mxForbiddenCharsTable);
564 if( !m_rDoc.IsInReading() )
565 pDrawModel->ReformatAllTextObjects();
566 }
567
569 if( pTmpRoot && !m_rDoc.IsInReading() )
570 {
571 pTmpRoot->StartAllAction();
572 for(SwRootFrame* aLayout : m_rDoc.GetAllLayouts())
573 aLayout->InvalidateAllContent(SwInvalidateFlags::Size);
574 pTmpRoot->EndAllAction();
575 }
577}
578
579std::shared_ptr<SvxForbiddenCharactersTable>& sw::DocumentSettingManager::getForbiddenCharacterTable()
580{
581 if (!mxForbiddenCharsTable)
582 mxForbiddenCharsTable = SvxForbiddenCharactersTable::makeForbiddenCharactersTable(::comphelper::getProcessComponentContext());
583 return mxForbiddenCharsTable;
584}
585
586const std::shared_ptr<SvxForbiddenCharactersTable>& sw::DocumentSettingManager::getForbiddenCharacterTable() const
587{
588 return mxForbiddenCharsTable;
589}
590
591sal_uInt16 sw::DocumentSettingManager::getLinkUpdateMode( /*[in]*/bool bGlobalSettings ) const
592{
593 sal_uInt16 nRet = mnLinkUpdMode;
594 if( bGlobalSettings && GLOBALSETTING == nRet )
595 nRet = SW_MOD()->GetLinkUpdMode();
596 return nRet;
597}
598
599void sw::DocumentSettingManager::setLinkUpdateMode( /*[in]*/sal_uInt16 eMode )
600{
601 mnLinkUpdMode = eMode;
602}
603
605{
606 SwFieldUpdateFlags eRet = meFieldUpdMode;
607 if( bGlobalSettings && AUTOUPD_GLOBALSETTING == eRet )
608 eRet = SW_MOD()->GetFieldUpdateFlags();
609 return eRet;
610}
611
613{
614 meFieldUpdMode = eMode;
615}
616
618{
619 return meChrCmprType;
620}
621
623{
624 if( meChrCmprType == n )
625 return;
626
627 meChrCmprType = n;
628
630 if( pDrawModel )
631 {
632 pDrawModel->SetCharCompressType( n );
633 if( !m_rDoc.IsInReading() )
634 pDrawModel->ReformatAllTextObjects();
635 }
636
638 if( pTmpRoot && !m_rDoc.IsInReading() )
639 {
640 pTmpRoot->StartAllAction();
641 for( auto aLayout : m_rDoc.GetAllLayouts() )
642 aLayout->InvalidateAllContent(SwInvalidateFlags::Size);
643 pTmpRoot->EndAllAction();
644 }
646}
647
648
650{
651 Setn32DummyCompatibilityOptions1( rSource.Getn32DummyCompatibilityOptions1() );
652 Setn32DummyCompatibilityOptions2( rSource.Getn32DummyCompatibilityOptions2() );
653
654 // No mbHTMLMode: this is the subset of mbLastBrowseMode, which can be temporarily enabled even
655 // for non-SwWebDocShells.
656 // No mbIsGlobalDoc: this is true for SwGlobalDocShells.
657 mbGlblDocSaveLinks = rSource.mbGlblDocSaveLinks;
658 mbIsLabelDoc = rSource.mbIsLabelDoc;
659 mbPurgeOLE = rSource.mbPurgeOLE;
660 mbKernAsianPunctuation = rSource.mbKernAsianPunctuation;
661 mbParaSpaceMax = rSource.mbParaSpaceMax;
662 mbParaSpaceMaxAtPages = rSource.mbParaSpaceMaxAtPages;
663 mbTabCompat = rSource.mbTabCompat;
664 mbUseVirtualDevice = rSource.mbUseVirtualDevice;
665 mbAddFlyOffsets = rSource.mbAddFlyOffsets;
666 mbAddVerticalFlyOffsets = rSource.mbAddVerticalFlyOffsets;
667 mbAddExternalLeading = rSource.mbAddExternalLeading;
668 mbUseHiResolutionVirtualDevice = rSource.mbUseHiResolutionVirtualDevice;
669 mbOldLineSpacing = rSource.mbOldLineSpacing;
670 mbAddParaSpacingToTableCells = rSource.mbAddParaSpacingToTableCells;
671 mbAddParaLineSpacingToTableCells = rSource.mbAddParaLineSpacingToTableCells;
672 mbUseFormerObjectPos = rSource.mbUseFormerObjectPos;
673 mbUseFormerTextWrapping = rSource.mbUseFormerTextWrapping;
674 mbConsiderWrapOnObjPos = rSource.mbConsiderWrapOnObjPos;
675 mbMathBaselineAlignment = rSource.mbMathBaselineAlignment;
676 mbStylesNoDefault = rSource.mbStylesNoDefault;
677 mbFloattableNomargins = rSource.mbFloattableNomargins;
678 mbOldNumbering = rSource.mbOldNumbering;
679 mbIgnoreFirstLineIndentInNumbering = rSource.mbIgnoreFirstLineIndentInNumbering;
680 mbDoNotJustifyLinesWithManualBreak = rSource.mbDoNotJustifyLinesWithManualBreak;
681 mbDoNotResetParaAttrsForNumFont = rSource.mbDoNotResetParaAttrsForNumFont;
682 mbTableRowKeep = rSource.mbTableRowKeep;
683 mbIgnoreTabsAndBlanksForLineCalculation = rSource.mbIgnoreTabsAndBlanksForLineCalculation;
684 mbDoNotCaptureDrawObjsOnPage = rSource.mbDoNotCaptureDrawObjsOnPage;
685 mbClipAsCharacterAnchoredWriterFlyFrames = rSource.mbClipAsCharacterAnchoredWriterFlyFrames;
686 mbUnixForceZeroExtLeading = rSource.mbUnixForceZeroExtLeading;
687 mbTabRelativeToIndent = rSource.mbTabRelativeToIndent;
688 mbProtectForm = rSource.mbProtectForm;
689 mbMsWordCompTrailingBlanks = rSource.mbMsWordCompTrailingBlanks;
690 mbMsWordCompMinLineHeightByFly = rSource.mbMsWordCompMinLineHeightByFly;
691 mbInvertBorderSpacing = rSource.mbInvertBorderSpacing;
692 mbCollapseEmptyCellPara = rSource.mbCollapseEmptyCellPara;
693 mbTabAtLeftIndentForParagraphsInList = rSource.mbTabAtLeftIndentForParagraphsInList;
694 mbSmallCapsPercentage66 = rSource.mbSmallCapsPercentage66;
695 mbTabOverflow = rSource.mbTabOverflow;
696 mbUnbreakableNumberings = rSource.mbUnbreakableNumberings;
697 mbClippedPictures = rSource.mbClippedPictures;
698 mbBackgroundParaOverDrawings = rSource.mbBackgroundParaOverDrawings;
699 mbTabOverMargin = rSource.mbTabOverMargin;
700 mbTabOverSpacing = rSource.mbTabOverSpacing;
701 mbTreatSingleColumnBreakAsPageBreak = rSource.mbTreatSingleColumnBreakAsPageBreak;
702 mbSurroundTextWrapSmall = rSource.mbSurroundTextWrapSmall;
703 mbPropLineSpacingShrinksFirstLine = rSource.mbPropLineSpacingShrinksFirstLine;
704 mbSubtractFlys = rSource.mbSubtractFlys;
705 // No mbLastBrowseMode: this is false by default everywhere
706 mbDisableOffPagePositioning = rSource.mbDisableOffPagePositioning;
707 mbEmptyDbFieldHidesPara = rSource.mbEmptyDbFieldHidesPara;
708 mbContinuousEndnotes = rSource.mbContinuousEndnotes;
709 // No mbProtectBookmarks: this is false by default everywhere
710 // No mbProtectFields: this is false by default everywhere
711 mbHeaderSpacingBelowLastPara = rSource.mbHeaderSpacingBelowLastPara;
712 mbFrameAutowidthWithMorePara = rSource.mbFrameAutowidthWithMorePara;
713 mbFootnoteInColumnToPageEnd = rSource.mbFootnoteInColumnToPageEnd;
714 mbDropCapPunctuation = rSource.mbDropCapPunctuation;
715}
716
718{
719 return mn32DummyCompatibilityOptions1;
720}
721
722void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions1( const sal_uInt32 CompatibilityOptions1 )
723{
724 mn32DummyCompatibilityOptions1 = CompatibilityOptions1;
725}
726
728{
729 return mn32DummyCompatibilityOptions2;
730}
731
732void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions2( const sal_uInt32 CompatibilityOptions2 )
733{
734 mn32DummyCompatibilityOptions2 = CompatibilityOptions2;
735}
736
738{
739 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("DocumentSettingManager"));
740
741 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHTMLMode"));
742 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
743 BAD_CAST(OString::boolean(mbHTMLMode).getStr()));
744 (void)xmlTextWriterEndElement(pWriter);
745
746 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsGlobalDoc"));
747 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
748 BAD_CAST(OString::boolean(mbIsGlobalDoc).getStr()));
749 (void)xmlTextWriterEndElement(pWriter);
750
751 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbGlblDocSaveLinks"));
752 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
753 BAD_CAST(OString::boolean(mbGlblDocSaveLinks).getStr()));
754 (void)xmlTextWriterEndElement(pWriter);
755
756 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsLabelDoc"));
757 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
758 BAD_CAST(OString::boolean(mbIsLabelDoc).getStr()));
759 (void)xmlTextWriterEndElement(pWriter);
760
761 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbPurgeOLE"));
762 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
763 BAD_CAST(OString::boolean(mbPurgeOLE).getStr()));
764 (void)xmlTextWriterEndElement(pWriter);
765
766 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbKernAsianPunctuation"));
767 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
768 BAD_CAST(OString::boolean(mbKernAsianPunctuation).getStr()));
769 (void)xmlTextWriterEndElement(pWriter);
770
771 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMax"));
772 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
773 BAD_CAST(OString::boolean(mbParaSpaceMax).getStr()));
774 (void)xmlTextWriterEndElement(pWriter);
775
776 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMaxAtPages"));
777 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
778 BAD_CAST(OString::boolean(mbParaSpaceMaxAtPages).getStr()));
779 (void)xmlTextWriterEndElement(pWriter);
780
781 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabCompat"));
782 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
783 BAD_CAST(OString::boolean(mbTabCompat).getStr()));
784 (void)xmlTextWriterEndElement(pWriter);
785
786 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseVirtualDevice"));
787 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
788 BAD_CAST(OString::boolean(mbUseVirtualDevice).getStr()));
789 (void)xmlTextWriterEndElement(pWriter);
790
791 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddFlyOffsets"));
792 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
793 BAD_CAST(OString::boolean(mbAddFlyOffsets).getStr()));
794 (void)xmlTextWriterEndElement(pWriter);
795
796 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddVerticalFlyOffsets"));
797 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
798 BAD_CAST(OString::boolean(mbAddVerticalFlyOffsets).getStr()));
799 (void)xmlTextWriterEndElement(pWriter);
800
801 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddExternalLeading"));
802 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
803 BAD_CAST(OString::boolean(mbAddExternalLeading).getStr()));
804 (void)xmlTextWriterEndElement(pWriter);
805
806 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseHiResolutionVirtualDevice"));
807 (void)xmlTextWriterWriteAttribute(
808 pWriter, BAD_CAST("value"),
809 BAD_CAST(OString::boolean(mbUseHiResolutionVirtualDevice).getStr()));
810 (void)xmlTextWriterEndElement(pWriter);
811
812 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldLineSpacing"));
813 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
814 BAD_CAST(OString::boolean(mbOldLineSpacing).getStr()));
815 (void)xmlTextWriterEndElement(pWriter);
816
817 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaSpacingToTableCells"));
818 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
819 BAD_CAST(OString::boolean(mbAddParaSpacingToTableCells).getStr()));
820 (void)xmlTextWriterEndElement(pWriter);
821 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaLineSpacingToTableCells"));
822 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
823 BAD_CAST(OString::boolean(mbAddParaLineSpacingToTableCells).getStr()));
824 (void)xmlTextWriterEndElement(pWriter);
825
826 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerObjectPos"));
827 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
828 BAD_CAST(OString::boolean(mbUseFormerObjectPos).getStr()));
829 (void)xmlTextWriterEndElement(pWriter);
830
831 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerTextWrapping"));
832 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
833 BAD_CAST(OString::boolean(mbUseFormerTextWrapping).getStr()));
834 (void)xmlTextWriterEndElement(pWriter);
835
836 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbConsiderWrapOnObjPos"));
837 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
838 BAD_CAST(OString::boolean(mbConsiderWrapOnObjPos).getStr()));
839 (void)xmlTextWriterEndElement(pWriter);
840
841 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMathBaselineAlignment"));
842 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
843 BAD_CAST(OString::boolean(mbMathBaselineAlignment).getStr()));
844 (void)xmlTextWriterEndElement(pWriter);
845
846 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbStylesNoDefault"));
847 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
848 BAD_CAST(OString::boolean(mbStylesNoDefault).getStr()));
849 (void)xmlTextWriterEndElement(pWriter);
850
851 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFloattableNomargins"));
852 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
853 BAD_CAST(OString::boolean(mbFloattableNomargins).getStr()));
854 (void)xmlTextWriterEndElement(pWriter);
855
856 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldNumbering"));
857 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
858 BAD_CAST(OString::boolean(mbOldNumbering).getStr()));
859 (void)xmlTextWriterEndElement(pWriter);
860
861 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreFirstLineIndentInNumbering"));
862 (void)xmlTextWriterWriteAttribute(
863 pWriter, BAD_CAST("value"),
864 BAD_CAST(OString::boolean(mbIgnoreFirstLineIndentInNumbering).getStr()));
865 (void)xmlTextWriterEndElement(pWriter);
866
867 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotJustifyLinesWithManualBreak"));
868 (void)xmlTextWriterWriteAttribute(
869 pWriter, BAD_CAST("value"),
870 BAD_CAST(OString::boolean(mbDoNotJustifyLinesWithManualBreak).getStr()));
871 (void)xmlTextWriterEndElement(pWriter);
872
873 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotResetParaAttrsForNumFont"));
874 (void)xmlTextWriterWriteAttribute(
875 pWriter, BAD_CAST("value"),
876 BAD_CAST(OString::boolean(mbDoNotResetParaAttrsForNumFont).getStr()));
877 (void)xmlTextWriterEndElement(pWriter);
878
879 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTableRowKeep"));
880 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
881 BAD_CAST(OString::boolean(mbTableRowKeep).getStr()));
882 (void)xmlTextWriterEndElement(pWriter);
883
884 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreTabsAndBlanksForLineCalculation"));
885 (void)xmlTextWriterWriteAttribute(
886 pWriter, BAD_CAST("value"),
887 BAD_CAST(OString::boolean(mbIgnoreTabsAndBlanksForLineCalculation).getStr()));
888 (void)xmlTextWriterEndElement(pWriter);
889
890 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotCaptureDrawObjsOnPage"));
891 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
892 BAD_CAST(OString::boolean(mbDoNotCaptureDrawObjsOnPage).getStr()));
893 (void)xmlTextWriterEndElement(pWriter);
894
895 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbClipAsCharacterAnchoredWriterFlyFrames"));
896 (void)xmlTextWriterWriteAttribute(
897 pWriter, BAD_CAST("value"),
898 BAD_CAST(OString::boolean(mbClipAsCharacterAnchoredWriterFlyFrames).getStr()));
899 (void)xmlTextWriterEndElement(pWriter);
900
901 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnixForceZeroExtLeading"));
902 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
903 BAD_CAST(OString::boolean(mbUnixForceZeroExtLeading).getStr()));
904 (void)xmlTextWriterEndElement(pWriter);
905
906 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabRelativeToIndent"));
907 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
908 BAD_CAST(OString::boolean(mbTabRelativeToIndent).getStr()));
909 (void)xmlTextWriterEndElement(pWriter);
910
911 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbProtectForm"));
912 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
913 BAD_CAST(OString::boolean(mbProtectForm).getStr()));
914 (void)xmlTextWriterEndElement(pWriter);
915
916 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompTrailingBlanks"));
917 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
918 BAD_CAST(OString::boolean(mbMsWordCompTrailingBlanks).getStr()));
919 (void)xmlTextWriterEndElement(pWriter);
920
921 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompMinLineHeightByFly"));
922 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
923 BAD_CAST(OString::boolean(mbMsWordCompMinLineHeightByFly).getStr()));
924 (void)xmlTextWriterEndElement(pWriter);
925
926 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbInvertBorderSpacing"));
927 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
928 BAD_CAST(OString::boolean(mbInvertBorderSpacing).getStr()));
929 (void)xmlTextWriterEndElement(pWriter);
930
931 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbCollapseEmptyCellPara"));
932 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
933 BAD_CAST(OString::boolean(mbCollapseEmptyCellPara).getStr()));
934 (void)xmlTextWriterEndElement(pWriter);
935
936 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabAtLeftIndentForParagraphsInList"));
937 (void)xmlTextWriterWriteAttribute(
938 pWriter, BAD_CAST("value"),
939 BAD_CAST(OString::boolean(mbTabAtLeftIndentForParagraphsInList).getStr()));
940 (void)xmlTextWriterEndElement(pWriter);
941
942 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSmallCapsPercentage66"));
943 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
944 BAD_CAST(OString::boolean(mbSmallCapsPercentage66).getStr()));
945 (void)xmlTextWriterEndElement(pWriter);
946
947 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverflow"));
948 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
949 BAD_CAST(OString::boolean(mbTabOverflow).getStr()));
950 (void)xmlTextWriterEndElement(pWriter);
951
952 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnbreakableNumberings"));
953 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
954 BAD_CAST(OString::boolean(mbUnbreakableNumberings).getStr()));
955 (void)xmlTextWriterEndElement(pWriter);
956
957 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbClippedPictures"));
958 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
959 BAD_CAST(OString::boolean(mbClippedPictures).getStr()));
960 (void)xmlTextWriterEndElement(pWriter);
961
962 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbBackgroundParaOverDrawings"));
963 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
964 BAD_CAST(OString::boolean(mbBackgroundParaOverDrawings).getStr()));
965 (void)xmlTextWriterEndElement(pWriter);
966
967 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverMargin"));
968 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
969 BAD_CAST(OString::boolean(mbTabOverMargin).getStr()));
970 (void)xmlTextWriterEndElement(pWriter);
971
972 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverSpacing"));
973 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
974 BAD_CAST(OString::boolean(mbTabOverSpacing).getStr()));
975 (void)xmlTextWriterEndElement(pWriter);
976
977 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTreatSingleColumnBreakAsPageBreak"));
978 (void)xmlTextWriterWriteAttribute(
979 pWriter, BAD_CAST("value"),
980 BAD_CAST(OString::boolean(mbTreatSingleColumnBreakAsPageBreak).getStr()));
981 (void)xmlTextWriterEndElement(pWriter);
982
983 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSurroundTextWrapSmall"));
984 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
985 BAD_CAST(OString::boolean(mbSurroundTextWrapSmall).getStr()));
986 (void)xmlTextWriterEndElement(pWriter);
987
988 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbPropLineSpacingShrinksFirstLine"));
989 (void)xmlTextWriterWriteAttribute(
990 pWriter, BAD_CAST("value"),
991 BAD_CAST(OString::boolean(mbPropLineSpacingShrinksFirstLine).getStr()));
992 (void)xmlTextWriterEndElement(pWriter);
993
994 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSubtractFlys"));
995 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
996 BAD_CAST(OString::boolean(mbSubtractFlys).getStr()));
997 (void)xmlTextWriterEndElement(pWriter);
998
999 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbLastBrowseMode"));
1000 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1001 BAD_CAST(OString::boolean(mbLastBrowseMode).getStr()));
1002 (void)xmlTextWriterEndElement(pWriter);
1003
1004 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDisableOffPagePositioning"));
1005 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1006 BAD_CAST(OString::boolean(mbDisableOffPagePositioning).getStr()));
1007 (void)xmlTextWriterEndElement(pWriter);
1008
1009 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbEmptyDbFieldHidesPara"));
1010 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1011 BAD_CAST(OString::boolean(mbEmptyDbFieldHidesPara).getStr()));
1012 (void)xmlTextWriterEndElement(pWriter);
1013
1014 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbContinuousEndnotes"));
1015 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1016 BAD_CAST(OString::boolean(mbContinuousEndnotes).getStr()));
1017 (void)xmlTextWriterEndElement(pWriter);
1018
1019 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHeaderSpacingBelowLastPara"));
1020 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1021 BAD_CAST(OString::boolean(mbHeaderSpacingBelowLastPara).getStr()));
1022 (void)xmlTextWriterEndElement(pWriter);
1023
1024 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFrameAutowidthWithMorePara"));
1025 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1026 BAD_CAST(OString::boolean(mbFrameAutowidthWithMorePara).getStr()));
1027 (void)xmlTextWriterEndElement(pWriter);
1028
1029 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbGutterAtTop"));
1030 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1031 BAD_CAST(OString::boolean(mbGutterAtTop).getStr()));
1032 (void)xmlTextWriterEndElement(pWriter);
1033
1034 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFootnoteInColumnToPageEnd"));
1035 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1036 BAD_CAST(OString::boolean(mbFootnoteInColumnToPageEnd).getStr()));
1037
1038 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mnImagePreferredDPI"));
1039 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1040 BAD_CAST(OString::number(mnImagePreferredDPI).getStr()));
1041
1042 (void)xmlTextWriterEndElement(pWriter);
1043
1044 (void)xmlTextWriterEndElement(pWriter);
1045}
1046
1047/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct _xmlTextWriter * xmlTextWriterPtr
@ 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
@ 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
SwBreakIt * g_pBreakIt
Definition: breakit.cxx:34
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
virtual const SwRootFrame * GetCurrentLayout() const =0
virtual void SetModified()=0
Must be called manually at changes of format.
void SetCharCompressType(CharCompressType nType)
void SetForbiddenCharsTable(const std::shared_ptr< SvxForbiddenCharactersTable > &xForbiddenChars)
void ReformatAllTextObjects()
bool GetDefault(SvtCompatibilityEntry::Index rIdx) const
static std::shared_ptr< SvxForbiddenCharactersTable > makeForbiddenCharactersTable(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
const css::i18n::ForbiddenCharacters & GetForbidden(const LanguageType aLang)
Definition: breakit.hxx:103
Definition: doc.hxx:194
bool IsInReading() const
Definition: doc.hxx:962
IDocumentState const & getIDocumentState() const
Definition: doc.cxx:400
o3tl::sorted_vector< SwRootFrame * > GetAllLayouts()
Definition: doclay.cxx:1683
void UpdateNumRule()
Definition: docnum.cxx:2615
const SwNumRuleTable & GetNumRuleTable() const
Definition: doc.hxx:1074
SwNumRule * GetOutlineNumRule() const
Definition: doc.hxx:1032
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
Definition: doc.cxx:411
IDocumentDrawModelAccess const & getIDocumentDrawModelAccess() const
Definition: doc.cxx:161
void SetCountPhantoms(bool bCountPhantoms)
Definition: number.cxx:1088
void Validate(const SwDoc &rDoc)
Definition: number.cxx:1075
The root element of a Writer document layout.
Definition: rootfrm.hxx:82
void StartAllAction()
Set up Start-/EndAction for all Shells on an as high as possible (Shell section) level.
Definition: pagechg.cxx:1911
void EndAllAction(bool bVirDev=false)
Definition: pagechg.cxx:1923
std::vector< SwNumRule * >::size_type size_type
Definition: docary.hxx:66
size_t size() const
Definition: docary.hxx:87
virtual void setFieldUpdateFlags(SwFieldUpdateFlags eMode) override
Set the current field update mode.
void Setn32DummyCompatibilityOptions1(const sal_uInt32 CompatibilityOptions1) override
Set the n32DummyCompatibilityOptions1.
sal_uInt32 Getn32DummyCompatibilityOptions2() const override
Get the n32DummyCompatibilityOptions2.
void ReplaceCompatibilityOptions(const DocumentSettingManager &rSource)
virtual ~DocumentSettingManager() override
virtual void setCharacterCompressionType(CharCompressType nType) override
Set the character compression type for Asian characters.
virtual bool get(DocumentSettingId id) const override
Return the specified document setting.
void Setn32DummyCompatibilityOptions2(const sal_uInt32 CompatibilityOptions2) override
Set the n32DummyCompatibilityOptions2.
virtual void setLinkUpdateMode(sal_uInt16 nMode) override
Set the current link update mode.
virtual CharCompressType getCharacterCompressionType() const override
Get the character compression type for Asian characters.
sal_uInt32 Getn32DummyCompatibilityOptions1() const override
Get the n32DummyCompatibilityOptions1.
virtual sal_uInt16 getLinkUpdateMode(bool bGlobalSettings) const override
Get the current link update mode.
virtual void set(DocumentSettingId id, bool value) override
Set the specified document setting.
virtual const css::i18n::ForbiddenCharacters * getForbiddenCharacters(LanguageType nLang, bool bLocaleData) const override
Return the forbidden characters.
virtual std::shared_ptr< SvxForbiddenCharactersTable > & getForbiddenCharacterTable() override
Get the forbidden character table and creates one if necessary.
virtual SwFieldUpdateFlags getFieldUpdateFlags(bool bGlobalSettings) const override
Get the current field update mode.
virtual void setForbiddenCharacters(LanguageType nLang, const css::i18n::ForbiddenCharacters &rForbiddenCharacters) override
Set the forbidden characters.
void dumpAsXml(xmlTextWriterPtr pWriter) const
static bool IsFuzzing()
Any value
SwDoc & m_rDoc
Definition: docbm.cxx:1202
SwFieldUpdateFlags
Definition: fldupde.hxx:23
@ AUTOUPD_GLOBALSETTING
Definition: fldupde.hxx:27
Mode eMode
sal_Int64 n
@ GLOBALSETTING
Definition: linkenum.hxx:27
static LanguageType nLang
Definition: srtdlg.cxx:51
#define SW_MOD()
Definition: swmodule.hxx:256