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 mbNoNumberingShowFollowBy(false),
110 mbDropCapPunctuation(true),
111 mbUseVariableWidthNBSP(false)
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;
142 }
143 else
144 {
145 mbParaSpaceMax = false;
146 mbParaSpaceMaxAtPages = false;
147 mbTabCompat = true;
148 mbUseVirtualDevice = true;
150 mbOldLineSpacing = false;
153 mbUseFormerObjectPos = false;
157 mbProtectForm = false;
159 mbSubtractFlys = false;
162 }
163
164 // COMPATIBILITY FLAGS END
165
166}
167
168
170{
171}
172
173/* IDocumentSettingAccess */
175{
176 switch (id)
177 {
178 // COMPATIBILITY FLAGS START
179 case DocumentSettingId::PARA_SPACE_MAX: return mbParaSpaceMax; //(n8Dummy1 & DUMMY_PARASPACEMAX);
180 case DocumentSettingId::PARA_SPACE_MAX_AT_PAGES: return mbParaSpaceMaxAtPages; //(n8Dummy1 & DUMMY_PARASPACEMAX_AT_PAGES);
181 case DocumentSettingId::TAB_COMPAT: return mbTabCompat; //(n8Dummy1 & DUMMY_TAB_COMPAT);
182 case DocumentSettingId::ADD_FLY_OFFSETS: return mbAddFlyOffsets; //(n8Dummy2 & DUMMY_ADD_FLY_OFFSETS);
183 case DocumentSettingId::ADD_VERTICAL_FLY_OFFSETS: return mbAddVerticalFlyOffsets;
184 case DocumentSettingId::ADD_EXT_LEADING: return mbAddExternalLeading; //(n8Dummy2 & DUMMY_ADD_EXTERNAL_LEADING);
185 case DocumentSettingId::USE_VIRTUAL_DEVICE: return mbUseVirtualDevice; //(n8Dummy1 & DUMMY_USE_VIRTUAL_DEVICE);
186 case DocumentSettingId::USE_HIRES_VIRTUAL_DEVICE: return mbUseHiResolutionVirtualDevice; //(n8Dummy2 & DUMMY_USE_HIRES_VIR_DEV);
187 case DocumentSettingId::OLD_NUMBERING: return mbOldNumbering;
188 case DocumentSettingId::OLD_LINE_SPACING: return mbOldLineSpacing;
189 case DocumentSettingId::ADD_PARA_SPACING_TO_TABLE_CELLS: return mbAddParaSpacingToTableCells;
190 case DocumentSettingId::ADD_PARA_LINE_SPACING_TO_TABLE_CELLS: return mbAddParaLineSpacingToTableCells;
191 case DocumentSettingId::USE_FORMER_OBJECT_POS: return mbUseFormerObjectPos;
192 case DocumentSettingId::USE_FORMER_TEXT_WRAPPING: return mbUseFormerTextWrapping;
193 case DocumentSettingId::CONSIDER_WRAP_ON_OBJECT_POSITION: return mbConsiderWrapOnObjPos;
194 case DocumentSettingId::DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK: return mbDoNotJustifyLinesWithManualBreak;
195 case DocumentSettingId::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING: return mbIgnoreFirstLineIndentInNumbering;
196 case DocumentSettingId::TABLE_ROW_KEEP: return mbTableRowKeep;
197 case DocumentSettingId::IGNORE_TABS_AND_BLANKS_FOR_LINE_CALCULATION: return mbIgnoreTabsAndBlanksForLineCalculation;
198 case DocumentSettingId::DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE: return mbDoNotCaptureDrawObjsOnPage;
199 // #i68949#
200 case DocumentSettingId::CLIP_AS_CHARACTER_ANCHORED_WRITER_FLY_FRAME: return mbClipAsCharacterAnchoredWriterFlyFrames;
201 case DocumentSettingId::UNIX_FORCE_ZERO_EXT_LEADING: return mbUnixForceZeroExtLeading;
202 case DocumentSettingId::TABS_RELATIVE_TO_INDENT : return mbTabRelativeToIndent;
203 case DocumentSettingId::PROTECT_FORM: return mbProtectForm;
204 // tdf#104349 tdf#104668
205 case DocumentSettingId::MS_WORD_COMP_TRAILING_BLANKS: return mbMsWordCompTrailingBlanks;
206 case DocumentSettingId::MS_WORD_COMP_MIN_LINE_HEIGHT_BY_FLY: return mbMsWordCompMinLineHeightByFly;
207 // #i89181#
208 case DocumentSettingId::TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST: return mbTabAtLeftIndentForParagraphsInList;
209 case DocumentSettingId::INVERT_BORDER_SPACING: return mbInvertBorderSpacing;
210 case DocumentSettingId::COLLAPSE_EMPTY_CELL_PARA: return mbCollapseEmptyCellPara;
211 case DocumentSettingId::SMALL_CAPS_PERCENTAGE_66: return mbSmallCapsPercentage66;
212 case DocumentSettingId::TAB_OVERFLOW: return mbTabOverflow;
213 case DocumentSettingId::UNBREAKABLE_NUMBERINGS: return mbUnbreakableNumberings;
214 case DocumentSettingId::CLIPPED_PICTURES: return mbClippedPictures;
215 case DocumentSettingId::BACKGROUND_PARA_OVER_DRAWINGS: return mbBackgroundParaOverDrawings;
216 case DocumentSettingId::TAB_OVER_MARGIN: return mbTabOverMargin;
217 case DocumentSettingId::TAB_OVER_SPACING: return mbTabOverSpacing;
218 case DocumentSettingId::TREAT_SINGLE_COLUMN_BREAK_AS_PAGE_BREAK: return mbTreatSingleColumnBreakAsPageBreak;
219 case DocumentSettingId::SURROUND_TEXT_WRAP_SMALL: return mbSurroundTextWrapSmall;
220 case DocumentSettingId::PROP_LINE_SPACING_SHRINKS_FIRST_LINE: return mbPropLineSpacingShrinksFirstLine;
221 case DocumentSettingId::SUBTRACT_FLYS: return mbSubtractFlys;
222
223 case DocumentSettingId::BROWSE_MODE: return mbLastBrowseMode; // Attention: normally the SwViewShell has to be asked!
224 case DocumentSettingId::HTML_MODE: return mbHTMLMode;
225 case DocumentSettingId::GLOBAL_DOCUMENT: return mbIsGlobalDoc;
226 case DocumentSettingId::GLOBAL_DOCUMENT_SAVE_LINKS: return mbGlblDocSaveLinks;
227 case DocumentSettingId::LABEL_DOCUMENT: return mbIsLabelDoc;
228 case DocumentSettingId::PURGE_OLE: return mbPurgeOLE;
229 case DocumentSettingId::KERN_ASIAN_PUNCTUATION: return mbKernAsianPunctuation;
230 case DocumentSettingId::DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT: return mbDoNotResetParaAttrsForNumFont;
231 case DocumentSettingId::MATH_BASELINE_ALIGNMENT: return mbMathBaselineAlignment;
232 case DocumentSettingId::STYLES_NODEFAULT: return mbStylesNoDefault;
233 case DocumentSettingId::FLOATTABLE_NOMARGINS: return mbFloattableNomargins;
234 case DocumentSettingId::EMBED_FONTS: return mEmbedFonts;
235 case DocumentSettingId::EMBED_USED_FONTS: return mEmbedUsedFonts;
236 case DocumentSettingId::EMBED_LATIN_SCRIPT_FONTS: return mEmbedLatinScriptFonts;
237 case DocumentSettingId::EMBED_ASIAN_SCRIPT_FONTS: return mEmbedAsianScriptFonts;
238 case DocumentSettingId::EMBED_COMPLEX_SCRIPT_FONTS: return mEmbedComplexScriptFonts;
239 case DocumentSettingId::EMBED_SYSTEM_FONTS: return mEmbedSystemFonts;
240 case DocumentSettingId::APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING: return mApplyParagraphMarkFormatToNumbering;
241 case DocumentSettingId::DISABLE_OFF_PAGE_POSITIONING: return mbDisableOffPagePositioning;
242 case DocumentSettingId::EMPTY_DB_FIELD_HIDES_PARA: return mbEmptyDbFieldHidesPara;
243 case DocumentSettingId::CONTINUOUS_ENDNOTES: return mbContinuousEndnotes;
244 case DocumentSettingId::PROTECT_BOOKMARKS: return mbProtectBookmarks;
245 case DocumentSettingId::PROTECT_FIELDS: return mbProtectFields;
246 case DocumentSettingId::HEADER_SPACING_BELOW_LAST_PARA: return mbHeaderSpacingBelowLastPara;
247 case DocumentSettingId::FRAME_AUTOWIDTH_WITH_MORE_PARA: return mbFrameAutowidthWithMorePara;
249 return mbGutterAtTop;
250 case DocumentSettingId::FOOTNOTE_IN_COLUMN_TO_PAGEEND: return mbFootnoteInColumnToPageEnd;
252 return mbAutoFirstLineIndentDisregardLineSpace;
253 case DocumentSettingId::HYPHENATE_URLS: return mbHyphenateURLs;
255 return mbDoNotBreakWrappedTables;
256 case DocumentSettingId::NO_NUMBERING_SHOW_FOLLOWBY: return mbNoNumberingShowFollowBy;
257 case DocumentSettingId::DROP_CAP_PUNCTUATION: return mbDropCapPunctuation;
258 case DocumentSettingId::USE_VARIABLE_WIDTH_NBSP: return mbUseVariableWidthNBSP;
259 default:
260 OSL_FAIL("Invalid setting id");
261 }
262 return false;
263}
264
265void sw::DocumentSettingManager::set(/*[in]*/ DocumentSettingId id, /*[in]*/ bool value)
266{
267 switch (id)
268 {
269 // COMPATIBILITY FLAGS START
271 mbParaSpaceMax = value;
272 break;
274 mbParaSpaceMaxAtPages = value;
275 break;
277 mbTabCompat = value;
278 break;
280 mbAddFlyOffsets = value;
281 break;
283 mbAddVerticalFlyOffsets = value;
284 break;
286 mbAddExternalLeading = value;
287 break;
289 mbUseVirtualDevice = value;
290 break;
292 mbUseHiResolutionVirtualDevice = value;
293 break;
295 if (mbOldNumbering != value)
296 {
297 mbOldNumbering = value;
298
299 const SwNumRuleTable& rNmTable = m_rDoc.GetNumRuleTable();
300 for( SwNumRuleTable::size_type n = 0; n < rNmTable.size(); ++n )
301 rNmTable[n]->SetInvalidRule(true);
302
304
305 SwNumRule *pOutlineRule = m_rDoc.GetOutlineNumRule();
306 if (pOutlineRule)
307 {
308 pOutlineRule->Validate(m_rDoc);
309 // counting of phantoms depends on <IsOldNumbering()>
310 pOutlineRule->SetCountPhantoms( !mbOldNumbering );
311 }
312 }
313 break;
315 mbOldLineSpacing = value;
316 break;
318 mbAddParaSpacingToTableCells = value;
319 break;
321 mbAddParaLineSpacingToTableCells = value;
322 break;
324 mbUseFormerObjectPos = value;
325 break;
327 mbUseFormerTextWrapping = value;
328 break;
330 mbConsiderWrapOnObjPos = value;
331 break;
333 mbDoNotJustifyLinesWithManualBreak = value;
334 break;
336 mbIgnoreFirstLineIndentInNumbering = value;
337 break;
338
340 mbTableRowKeep = value;
341 break;
342
344 mbIgnoreTabsAndBlanksForLineCalculation = value;
345 break;
346
348 mbDoNotCaptureDrawObjsOnPage = value;
349 break;
350
351 // #i68949#
353 mbClipAsCharacterAnchoredWriterFlyFrames = value;
354 break;
355
357 mbUnixForceZeroExtLeading = value;
358 break;
359
361 mbProtectForm = value;
362 break;
363
364 // tdf#140349
366 mbMsWordCompTrailingBlanks = value;
367 break;
368
370 mbMsWordCompMinLineHeightByFly = value;
371 break;
372
374 mbTabRelativeToIndent = value;
375 break;
376 // #i89181#
378 mbTabAtLeftIndentForParagraphsInList = value;
379 break;
380
382 mbInvertBorderSpacing = value;
383 break;
384
386 mbCollapseEmptyCellPara = value;
387 break;
388
390 mbSmallCapsPercentage66 = value;
391 break;
392
394 mbTabOverflow = value;
395 break;
396
398 mbUnbreakableNumberings = value;
399 break;
400
402 mbClippedPictures = value;
403 break;
404
406 mbBackgroundParaOverDrawings = value;
407 break;
408
410 mbTabOverMargin = value;
411 break;
412
414 mbTabOverSpacing = value;
415 break;
416
418 mbTreatSingleColumnBreakAsPageBreak = value;
419 break;
420
422 mbSurroundTextWrapSmall = value;
423 break;
424
426 mbPropLineSpacingShrinksFirstLine = value;
427 break;
428
430 mbSubtractFlys = value;
431 break;
432
434 mbAutoFirstLineIndentDisregardLineSpace = value;
435 break;
436
438 mbHyphenateURLs = value;
439 break;
440
442 mbDoNotBreakWrappedTables = value;
443 break;
444
446 mbNoNumberingShowFollowBy = value;
447 break;
448
450 mbDropCapPunctuation = value;
451 break;
452
454 mbUseVariableWidthNBSP = value;
455 break;
456
457 // COMPATIBILITY FLAGS END
458
459 case DocumentSettingId::BROWSE_MODE: //can be used temporary (load/save) when no SwViewShell is available
460 // Can't render in webview successfully.
462 mbLastBrowseMode = false;
463 else
464 mbLastBrowseMode = value;
465 break;
466
468 mbHTMLMode = value;
469 break;
470
472 mbIsGlobalDoc = value;
473 break;
474
476 mbGlblDocSaveLinks = value;
477 break;
478
480 mbIsLabelDoc = value;
481 break;
482
484 mbPurgeOLE = value;
485 break;
486
488 mbKernAsianPunctuation = value;
489 break;
490
492 mbDoNotResetParaAttrsForNumFont = value;
493 break;
495 mbMathBaselineAlignment = value;
496 break;
498 mbStylesNoDefault = value;
499 break;
501 mbFloattableNomargins = value;
502 break;
504 mEmbedFonts = value;
505 break;
507 mEmbedUsedFonts = value;
508 break;
510 mEmbedLatinScriptFonts = value;
511 break;
513 mEmbedAsianScriptFonts = value;
514 break;
516 mEmbedComplexScriptFonts = value;
517 break;
519 mEmbedSystemFonts = value;
520 break;
522 mApplyParagraphMarkFormatToNumbering = value;
523 break;
525 mbDisableOffPagePositioning = value;
526 break;
528 mbEmptyDbFieldHidesPara = value;
529 break;
531 mbContinuousEndnotes = value;
532 break;
534 mbProtectBookmarks = value;
535 break;
537 mbProtectFields = value;
538 break;
540 mbHeaderSpacingBelowLastPara = value;
541 break;
543 mbFrameAutowidthWithMorePara = value;
544 break;
546 mbGutterAtTop = value;
547 break;
549 mbFootnoteInColumnToPageEnd = value;
550 break;
551 default:
552 OSL_FAIL("Invalid setting id");
553 }
554}
555
556const css::i18n::ForbiddenCharacters*
558{
559 const css::i18n::ForbiddenCharacters* pRet = nullptr;
560 if (mxForbiddenCharsTable)
561 pRet = mxForbiddenCharsTable->GetForbiddenCharacters( nLang, false );
562 if( bLocaleData && !pRet && g_pBreakIt )
563 pRet = &g_pBreakIt->GetForbidden( nLang );
564 return pRet;
565}
566
568 /*[in]*/ const css::i18n::ForbiddenCharacters& rFChars )
569{
570 if (!mxForbiddenCharsTable)
571 mxForbiddenCharsTable = SvxForbiddenCharactersTable::makeForbiddenCharactersTable(::comphelper::getProcessComponentContext());
572 mxForbiddenCharsTable->SetForbiddenCharacters( nLang, rFChars );
573
575 if( pDrawModel )
576 {
577 pDrawModel->SetForbiddenCharsTable(mxForbiddenCharsTable);
578 if( !m_rDoc.IsInReading() )
579 pDrawModel->ReformatAllTextObjects();
580 }
581
583 if( pTmpRoot && !m_rDoc.IsInReading() )
584 {
585 pTmpRoot->StartAllAction();
586 for(SwRootFrame* aLayout : m_rDoc.GetAllLayouts())
587 aLayout->InvalidateAllContent(SwInvalidateFlags::Size);
588 pTmpRoot->EndAllAction();
589 }
591}
592
593std::shared_ptr<SvxForbiddenCharactersTable>& sw::DocumentSettingManager::getForbiddenCharacterTable()
594{
595 if (!mxForbiddenCharsTable)
596 mxForbiddenCharsTable = SvxForbiddenCharactersTable::makeForbiddenCharactersTable(::comphelper::getProcessComponentContext());
597 return mxForbiddenCharsTable;
598}
599
600const std::shared_ptr<SvxForbiddenCharactersTable>& sw::DocumentSettingManager::getForbiddenCharacterTable() const
601{
602 return mxForbiddenCharsTable;
603}
604
605sal_uInt16 sw::DocumentSettingManager::getLinkUpdateMode( /*[in]*/bool bGlobalSettings ) const
606{
607 sal_uInt16 nRet = mnLinkUpdMode;
608 if( bGlobalSettings && GLOBALSETTING == nRet )
609 nRet = SW_MOD()->GetLinkUpdMode();
610 return nRet;
611}
612
613void sw::DocumentSettingManager::setLinkUpdateMode( /*[in]*/sal_uInt16 eMode )
614{
615 mnLinkUpdMode = eMode;
616}
617
619{
620 SwFieldUpdateFlags eRet = meFieldUpdMode;
621 if( bGlobalSettings && AUTOUPD_GLOBALSETTING == eRet )
622 eRet = SW_MOD()->GetFieldUpdateFlags();
623 return eRet;
624}
625
627{
628 meFieldUpdMode = eMode;
629}
630
632{
633 return meChrCmprType;
634}
635
637{
638 if( meChrCmprType == n )
639 return;
640
641 meChrCmprType = n;
642
644 if( pDrawModel )
645 {
646 pDrawModel->SetCharCompressType( n );
647 if( !m_rDoc.IsInReading() )
648 pDrawModel->ReformatAllTextObjects();
649 }
650
652 if( pTmpRoot && !m_rDoc.IsInReading() )
653 {
654 pTmpRoot->StartAllAction();
655 for( auto aLayout : m_rDoc.GetAllLayouts() )
656 aLayout->InvalidateAllContent(SwInvalidateFlags::Size);
657 pTmpRoot->EndAllAction();
658 }
660}
661
662
664{
665 Setn32DummyCompatibilityOptions1( rSource.Getn32DummyCompatibilityOptions1() );
666 Setn32DummyCompatibilityOptions2( rSource.Getn32DummyCompatibilityOptions2() );
667
668 // No mbHTMLMode: this is the subset of mbLastBrowseMode, which can be temporarily enabled even
669 // for non-SwWebDocShells.
670 // No mbIsGlobalDoc: this is true for SwGlobalDocShells.
671 mbGlblDocSaveLinks = rSource.mbGlblDocSaveLinks;
672 mbIsLabelDoc = rSource.mbIsLabelDoc;
673 mbPurgeOLE = rSource.mbPurgeOLE;
674 mbKernAsianPunctuation = rSource.mbKernAsianPunctuation;
675 mbParaSpaceMax = rSource.mbParaSpaceMax;
676 mbParaSpaceMaxAtPages = rSource.mbParaSpaceMaxAtPages;
677 mbTabCompat = rSource.mbTabCompat;
678 mbUseVirtualDevice = rSource.mbUseVirtualDevice;
679 mbAddFlyOffsets = rSource.mbAddFlyOffsets;
680 mbAddVerticalFlyOffsets = rSource.mbAddVerticalFlyOffsets;
681 mbAddExternalLeading = rSource.mbAddExternalLeading;
682 mbUseHiResolutionVirtualDevice = rSource.mbUseHiResolutionVirtualDevice;
683 mbOldLineSpacing = rSource.mbOldLineSpacing;
684 mbAddParaSpacingToTableCells = rSource.mbAddParaSpacingToTableCells;
685 mbAddParaLineSpacingToTableCells = rSource.mbAddParaLineSpacingToTableCells;
686 mbUseFormerObjectPos = rSource.mbUseFormerObjectPos;
687 mbUseFormerTextWrapping = rSource.mbUseFormerTextWrapping;
688 mbConsiderWrapOnObjPos = rSource.mbConsiderWrapOnObjPos;
689 mbMathBaselineAlignment = rSource.mbMathBaselineAlignment;
690 mbStylesNoDefault = rSource.mbStylesNoDefault;
691 mbFloattableNomargins = rSource.mbFloattableNomargins;
692 mbOldNumbering = rSource.mbOldNumbering;
693 mbIgnoreFirstLineIndentInNumbering = rSource.mbIgnoreFirstLineIndentInNumbering;
694 mbDoNotJustifyLinesWithManualBreak = rSource.mbDoNotJustifyLinesWithManualBreak;
695 mbDoNotResetParaAttrsForNumFont = rSource.mbDoNotResetParaAttrsForNumFont;
696 mbTableRowKeep = rSource.mbTableRowKeep;
697 mbIgnoreTabsAndBlanksForLineCalculation = rSource.mbIgnoreTabsAndBlanksForLineCalculation;
698 mbDoNotCaptureDrawObjsOnPage = rSource.mbDoNotCaptureDrawObjsOnPage;
699 mbClipAsCharacterAnchoredWriterFlyFrames = rSource.mbClipAsCharacterAnchoredWriterFlyFrames;
700 mbUnixForceZeroExtLeading = rSource.mbUnixForceZeroExtLeading;
701 mbTabRelativeToIndent = rSource.mbTabRelativeToIndent;
702 mbProtectForm = rSource.mbProtectForm;
703 mbMsWordCompTrailingBlanks = rSource.mbMsWordCompTrailingBlanks;
704 mbMsWordCompMinLineHeightByFly = rSource.mbMsWordCompMinLineHeightByFly;
705 mbInvertBorderSpacing = rSource.mbInvertBorderSpacing;
706 mbCollapseEmptyCellPara = rSource.mbCollapseEmptyCellPara;
707 mbTabAtLeftIndentForParagraphsInList = rSource.mbTabAtLeftIndentForParagraphsInList;
708 mbSmallCapsPercentage66 = rSource.mbSmallCapsPercentage66;
709 mbTabOverflow = rSource.mbTabOverflow;
710 mbUnbreakableNumberings = rSource.mbUnbreakableNumberings;
711 mbClippedPictures = rSource.mbClippedPictures;
712 mbBackgroundParaOverDrawings = rSource.mbBackgroundParaOverDrawings;
713 mbTabOverMargin = rSource.mbTabOverMargin;
714 mbTabOverSpacing = rSource.mbTabOverSpacing;
715 mbTreatSingleColumnBreakAsPageBreak = rSource.mbTreatSingleColumnBreakAsPageBreak;
716 mbSurroundTextWrapSmall = rSource.mbSurroundTextWrapSmall;
717 mbPropLineSpacingShrinksFirstLine = rSource.mbPropLineSpacingShrinksFirstLine;
718 mbSubtractFlys = rSource.mbSubtractFlys;
719 // No mbLastBrowseMode: this is false by default everywhere
720 mbDisableOffPagePositioning = rSource.mbDisableOffPagePositioning;
721 mbEmptyDbFieldHidesPara = rSource.mbEmptyDbFieldHidesPara;
722 mbContinuousEndnotes = rSource.mbContinuousEndnotes;
723 // No mbProtectBookmarks: this is false by default everywhere
724 // No mbProtectFields: this is false by default everywhere
725 mbHeaderSpacingBelowLastPara = rSource.mbHeaderSpacingBelowLastPara;
726 mbFrameAutowidthWithMorePara = rSource.mbFrameAutowidthWithMorePara;
727 mbFootnoteInColumnToPageEnd = rSource.mbFootnoteInColumnToPageEnd;
728 mbDropCapPunctuation = rSource.mbDropCapPunctuation;
729 mbUseVariableWidthNBSP = rSource.mbUseVariableWidthNBSP;
730}
731
733{
734 return mn32DummyCompatibilityOptions1;
735}
736
737void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions1( const sal_uInt32 CompatibilityOptions1 )
738{
739 mn32DummyCompatibilityOptions1 = CompatibilityOptions1;
740}
741
743{
744 return mn32DummyCompatibilityOptions2;
745}
746
747void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions2( const sal_uInt32 CompatibilityOptions2 )
748{
749 mn32DummyCompatibilityOptions2 = CompatibilityOptions2;
750}
751
753{
754 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("DocumentSettingManager"));
755
756 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHTMLMode"));
757 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
758 BAD_CAST(OString::boolean(mbHTMLMode).getStr()));
759 (void)xmlTextWriterEndElement(pWriter);
760
761 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsGlobalDoc"));
762 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
763 BAD_CAST(OString::boolean(mbIsGlobalDoc).getStr()));
764 (void)xmlTextWriterEndElement(pWriter);
765
766 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbGlblDocSaveLinks"));
767 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
768 BAD_CAST(OString::boolean(mbGlblDocSaveLinks).getStr()));
769 (void)xmlTextWriterEndElement(pWriter);
770
771 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsLabelDoc"));
772 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
773 BAD_CAST(OString::boolean(mbIsLabelDoc).getStr()));
774 (void)xmlTextWriterEndElement(pWriter);
775
776 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbPurgeOLE"));
777 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
778 BAD_CAST(OString::boolean(mbPurgeOLE).getStr()));
779 (void)xmlTextWriterEndElement(pWriter);
780
781 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbKernAsianPunctuation"));
782 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
783 BAD_CAST(OString::boolean(mbKernAsianPunctuation).getStr()));
784 (void)xmlTextWriterEndElement(pWriter);
785
786 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMax"));
787 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
788 BAD_CAST(OString::boolean(mbParaSpaceMax).getStr()));
789 (void)xmlTextWriterEndElement(pWriter);
790
791 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMaxAtPages"));
792 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
793 BAD_CAST(OString::boolean(mbParaSpaceMaxAtPages).getStr()));
794 (void)xmlTextWriterEndElement(pWriter);
795
796 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabCompat"));
797 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
798 BAD_CAST(OString::boolean(mbTabCompat).getStr()));
799 (void)xmlTextWriterEndElement(pWriter);
800
801 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseVirtualDevice"));
802 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
803 BAD_CAST(OString::boolean(mbUseVirtualDevice).getStr()));
804 (void)xmlTextWriterEndElement(pWriter);
805
806 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddFlyOffsets"));
807 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
808 BAD_CAST(OString::boolean(mbAddFlyOffsets).getStr()));
809 (void)xmlTextWriterEndElement(pWriter);
810
811 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddVerticalFlyOffsets"));
812 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
813 BAD_CAST(OString::boolean(mbAddVerticalFlyOffsets).getStr()));
814 (void)xmlTextWriterEndElement(pWriter);
815
816 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddExternalLeading"));
817 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
818 BAD_CAST(OString::boolean(mbAddExternalLeading).getStr()));
819 (void)xmlTextWriterEndElement(pWriter);
820
821 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseHiResolutionVirtualDevice"));
822 (void)xmlTextWriterWriteAttribute(
823 pWriter, BAD_CAST("value"),
824 BAD_CAST(OString::boolean(mbUseHiResolutionVirtualDevice).getStr()));
825 (void)xmlTextWriterEndElement(pWriter);
826
827 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldLineSpacing"));
828 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
829 BAD_CAST(OString::boolean(mbOldLineSpacing).getStr()));
830 (void)xmlTextWriterEndElement(pWriter);
831
832 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaSpacingToTableCells"));
833 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
834 BAD_CAST(OString::boolean(mbAddParaSpacingToTableCells).getStr()));
835 (void)xmlTextWriterEndElement(pWriter);
836 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaLineSpacingToTableCells"));
837 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
838 BAD_CAST(OString::boolean(mbAddParaLineSpacingToTableCells).getStr()));
839 (void)xmlTextWriterEndElement(pWriter);
840
841 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerObjectPos"));
842 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
843 BAD_CAST(OString::boolean(mbUseFormerObjectPos).getStr()));
844 (void)xmlTextWriterEndElement(pWriter);
845
846 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerTextWrapping"));
847 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
848 BAD_CAST(OString::boolean(mbUseFormerTextWrapping).getStr()));
849 (void)xmlTextWriterEndElement(pWriter);
850
851 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbConsiderWrapOnObjPos"));
852 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
853 BAD_CAST(OString::boolean(mbConsiderWrapOnObjPos).getStr()));
854 (void)xmlTextWriterEndElement(pWriter);
855
856 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMathBaselineAlignment"));
857 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
858 BAD_CAST(OString::boolean(mbMathBaselineAlignment).getStr()));
859 (void)xmlTextWriterEndElement(pWriter);
860
861 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbStylesNoDefault"));
862 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
863 BAD_CAST(OString::boolean(mbStylesNoDefault).getStr()));
864 (void)xmlTextWriterEndElement(pWriter);
865
866 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFloattableNomargins"));
867 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
868 BAD_CAST(OString::boolean(mbFloattableNomargins).getStr()));
869 (void)xmlTextWriterEndElement(pWriter);
870
871 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldNumbering"));
872 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
873 BAD_CAST(OString::boolean(mbOldNumbering).getStr()));
874 (void)xmlTextWriterEndElement(pWriter);
875
876 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreFirstLineIndentInNumbering"));
877 (void)xmlTextWriterWriteAttribute(
878 pWriter, BAD_CAST("value"),
879 BAD_CAST(OString::boolean(mbIgnoreFirstLineIndentInNumbering).getStr()));
880 (void)xmlTextWriterEndElement(pWriter);
881
882 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotJustifyLinesWithManualBreak"));
883 (void)xmlTextWriterWriteAttribute(
884 pWriter, BAD_CAST("value"),
885 BAD_CAST(OString::boolean(mbDoNotJustifyLinesWithManualBreak).getStr()));
886 (void)xmlTextWriterEndElement(pWriter);
887
888 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotResetParaAttrsForNumFont"));
889 (void)xmlTextWriterWriteAttribute(
890 pWriter, BAD_CAST("value"),
891 BAD_CAST(OString::boolean(mbDoNotResetParaAttrsForNumFont).getStr()));
892 (void)xmlTextWriterEndElement(pWriter);
893
894 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTableRowKeep"));
895 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
896 BAD_CAST(OString::boolean(mbTableRowKeep).getStr()));
897 (void)xmlTextWriterEndElement(pWriter);
898
899 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreTabsAndBlanksForLineCalculation"));
900 (void)xmlTextWriterWriteAttribute(
901 pWriter, BAD_CAST("value"),
902 BAD_CAST(OString::boolean(mbIgnoreTabsAndBlanksForLineCalculation).getStr()));
903 (void)xmlTextWriterEndElement(pWriter);
904
905 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotCaptureDrawObjsOnPage"));
906 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
907 BAD_CAST(OString::boolean(mbDoNotCaptureDrawObjsOnPage).getStr()));
908 (void)xmlTextWriterEndElement(pWriter);
909
910 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbClipAsCharacterAnchoredWriterFlyFrames"));
911 (void)xmlTextWriterWriteAttribute(
912 pWriter, BAD_CAST("value"),
913 BAD_CAST(OString::boolean(mbClipAsCharacterAnchoredWriterFlyFrames).getStr()));
914 (void)xmlTextWriterEndElement(pWriter);
915
916 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnixForceZeroExtLeading"));
917 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
918 BAD_CAST(OString::boolean(mbUnixForceZeroExtLeading).getStr()));
919 (void)xmlTextWriterEndElement(pWriter);
920
921 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabRelativeToIndent"));
922 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
923 BAD_CAST(OString::boolean(mbTabRelativeToIndent).getStr()));
924 (void)xmlTextWriterEndElement(pWriter);
925
926 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbProtectForm"));
927 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
928 BAD_CAST(OString::boolean(mbProtectForm).getStr()));
929 (void)xmlTextWriterEndElement(pWriter);
930
931 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompTrailingBlanks"));
932 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
933 BAD_CAST(OString::boolean(mbMsWordCompTrailingBlanks).getStr()));
934 (void)xmlTextWriterEndElement(pWriter);
935
936 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompMinLineHeightByFly"));
937 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
938 BAD_CAST(OString::boolean(mbMsWordCompMinLineHeightByFly).getStr()));
939 (void)xmlTextWriterEndElement(pWriter);
940
941 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbInvertBorderSpacing"));
942 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
943 BAD_CAST(OString::boolean(mbInvertBorderSpacing).getStr()));
944 (void)xmlTextWriterEndElement(pWriter);
945
946 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbCollapseEmptyCellPara"));
947 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
948 BAD_CAST(OString::boolean(mbCollapseEmptyCellPara).getStr()));
949 (void)xmlTextWriterEndElement(pWriter);
950
951 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabAtLeftIndentForParagraphsInList"));
952 (void)xmlTextWriterWriteAttribute(
953 pWriter, BAD_CAST("value"),
954 BAD_CAST(OString::boolean(mbTabAtLeftIndentForParagraphsInList).getStr()));
955 (void)xmlTextWriterEndElement(pWriter);
956
957 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSmallCapsPercentage66"));
958 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
959 BAD_CAST(OString::boolean(mbSmallCapsPercentage66).getStr()));
960 (void)xmlTextWriterEndElement(pWriter);
961
962 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverflow"));
963 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
964 BAD_CAST(OString::boolean(mbTabOverflow).getStr()));
965 (void)xmlTextWriterEndElement(pWriter);
966
967 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnbreakableNumberings"));
968 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
969 BAD_CAST(OString::boolean(mbUnbreakableNumberings).getStr()));
970 (void)xmlTextWriterEndElement(pWriter);
971
972 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbClippedPictures"));
973 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
974 BAD_CAST(OString::boolean(mbClippedPictures).getStr()));
975 (void)xmlTextWriterEndElement(pWriter);
976
977 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbBackgroundParaOverDrawings"));
978 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
979 BAD_CAST(OString::boolean(mbBackgroundParaOverDrawings).getStr()));
980 (void)xmlTextWriterEndElement(pWriter);
981
982 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverMargin"));
983 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
984 BAD_CAST(OString::boolean(mbTabOverMargin).getStr()));
985 (void)xmlTextWriterEndElement(pWriter);
986
987 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverSpacing"));
988 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
989 BAD_CAST(OString::boolean(mbTabOverSpacing).getStr()));
990 (void)xmlTextWriterEndElement(pWriter);
991
992 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTreatSingleColumnBreakAsPageBreak"));
993 (void)xmlTextWriterWriteAttribute(
994 pWriter, BAD_CAST("value"),
995 BAD_CAST(OString::boolean(mbTreatSingleColumnBreakAsPageBreak).getStr()));
996 (void)xmlTextWriterEndElement(pWriter);
997
998 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSurroundTextWrapSmall"));
999 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1000 BAD_CAST(OString::boolean(mbSurroundTextWrapSmall).getStr()));
1001 (void)xmlTextWriterEndElement(pWriter);
1002
1003 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbPropLineSpacingShrinksFirstLine"));
1004 (void)xmlTextWriterWriteAttribute(
1005 pWriter, BAD_CAST("value"),
1006 BAD_CAST(OString::boolean(mbPropLineSpacingShrinksFirstLine).getStr()));
1007 (void)xmlTextWriterEndElement(pWriter);
1008
1009 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSubtractFlys"));
1010 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1011 BAD_CAST(OString::boolean(mbSubtractFlys).getStr()));
1012 (void)xmlTextWriterEndElement(pWriter);
1013
1014 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbLastBrowseMode"));
1015 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1016 BAD_CAST(OString::boolean(mbLastBrowseMode).getStr()));
1017 (void)xmlTextWriterEndElement(pWriter);
1018
1019 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDisableOffPagePositioning"));
1020 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1021 BAD_CAST(OString::boolean(mbDisableOffPagePositioning).getStr()));
1022 (void)xmlTextWriterEndElement(pWriter);
1023
1024 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbEmptyDbFieldHidesPara"));
1025 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1026 BAD_CAST(OString::boolean(mbEmptyDbFieldHidesPara).getStr()));
1027 (void)xmlTextWriterEndElement(pWriter);
1028
1029 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseVariableWidthNBSP"));
1030 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1031 BAD_CAST(OString::boolean(mbUseVariableWidthNBSP).getStr()));
1032 (void)xmlTextWriterEndElement(pWriter);
1033
1034 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbContinuousEndnotes"));
1035 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1036 BAD_CAST(OString::boolean(mbContinuousEndnotes).getStr()));
1037 (void)xmlTextWriterEndElement(pWriter);
1038
1039 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHeaderSpacingBelowLastPara"));
1040 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1041 BAD_CAST(OString::boolean(mbHeaderSpacingBelowLastPara).getStr()));
1042 (void)xmlTextWriterEndElement(pWriter);
1043
1044 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFrameAutowidthWithMorePara"));
1045 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1046 BAD_CAST(OString::boolean(mbFrameAutowidthWithMorePara).getStr()));
1047 (void)xmlTextWriterEndElement(pWriter);
1048
1049 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbGutterAtTop"));
1050 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1051 BAD_CAST(OString::boolean(mbGutterAtTop).getStr()));
1052 (void)xmlTextWriterEndElement(pWriter);
1053
1054 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFootnoteInColumnToPageEnd"));
1055 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1056 BAD_CAST(OString::boolean(mbFootnoteInColumnToPageEnd).getStr()));
1057 (void)xmlTextWriterEndElement(pWriter);
1058
1059 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHyphenateURLs"));
1060 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1061 BAD_CAST(OString::boolean(mbHyphenateURLs).getStr()));
1062 (void)xmlTextWriterEndElement(pWriter);
1063
1064 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotBreakWrappedTables"));
1065 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1066 BAD_CAST(OString::boolean(mbDoNotBreakWrappedTables).getStr()));
1067 (void)xmlTextWriterEndElement(pWriter);
1068
1069 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mnImagePreferredDPI"));
1070 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
1071 BAD_CAST(OString::number(mnImagePreferredDPI).getStr()));
1072
1073 (void)xmlTextWriterEndElement(pWriter);
1074
1075 (void)xmlTextWriterEndElement(pWriter);
1076}
1077
1078/* 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
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:104
Definition: doc.hxx:197
bool IsInReading() const
Definition: doc.hxx:969
IDocumentState const & getIDocumentState() const
Definition: doc.cxx:408
o3tl::sorted_vector< SwRootFrame * > GetAllLayouts()
Definition: doclay.cxx:1699
void UpdateNumRule()
Definition: docnum.cxx:2628
const SwNumRuleTable & GetNumRuleTable() const
Definition: doc.hxx:1081
SwNumRule * GetOutlineNumRule() const
Definition: doc.hxx:1039
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
Definition: doc.cxx:419
IDocumentDrawModelAccess const & getIDocumentDrawModelAccess() const
Definition: doc.cxx:169
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:85
void StartAllAction()
Set up Start-/EndAction for all Shells on an as high as possible (Shell section) level.
Definition: pagechg.cxx:1920
void EndAllAction()
Definition: pagechg.cxx:1932
std::vector< SwNumRule * >::size_type size_type
Definition: docary.hxx:67
size_t size() const
Definition: docary.hxx:88
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
struct _xmlTextWriter * xmlTextWriterPtr
SwDoc & m_rDoc
Definition: docbm.cxx:1228
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:254