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>
34 #include <unotools/configmgr.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 
107  // COMPATIBILITY FLAGS END
108 {
109  // COMPATIBILITY FLAGS START
110 
111  // Note: Any non-hidden compatibility flag should obtain its default
112  // by asking SvtCompatibilityOptions, see below.
113 
115  {
116  const SvtCompatibilityOptions aOptions;
134  }
135  else
136  {
137  mbParaSpaceMax = false;
138  mbParaSpaceMaxAtPages = false;
139  mbTabCompat = true;
140  mbUseVirtualDevice = true;
141  mbAddExternalLeading = true;
142  mbOldLineSpacing = false;
145  mbUseFormerObjectPos = false;
146  mbUseFormerTextWrapping = false;
147  mbConsiderWrapOnObjPos = false;
149  mbProtectForm = false;
151  mbSubtractFlys = false;
153  }
154 
155  // COMPATIBILITY FLAGS END
156 
157 }
158 
159 
161 {
162 }
163 
164 /* IDocumentSettingAccess */
166 {
167  switch (id)
168  {
169  // COMPATIBILITY FLAGS START
170  case DocumentSettingId::PARA_SPACE_MAX: return mbParaSpaceMax; //(n8Dummy1 & DUMMY_PARASPACEMAX);
171  case DocumentSettingId::PARA_SPACE_MAX_AT_PAGES: return mbParaSpaceMaxAtPages; //(n8Dummy1 & DUMMY_PARASPACEMAX_AT_PAGES);
172  case DocumentSettingId::TAB_COMPAT: return mbTabCompat; //(n8Dummy1 & DUMMY_TAB_COMPAT);
173  case DocumentSettingId::ADD_FLY_OFFSETS: return mbAddFlyOffsets; //(n8Dummy2 & DUMMY_ADD_FLY_OFFSETS);
174  case DocumentSettingId::ADD_VERTICAL_FLY_OFFSETS: return mbAddVerticalFlyOffsets;
175  case DocumentSettingId::ADD_EXT_LEADING: return mbAddExternalLeading; //(n8Dummy2 & DUMMY_ADD_EXTERNAL_LEADING);
176  case DocumentSettingId::USE_VIRTUAL_DEVICE: return mbUseVirtualDevice; //(n8Dummy1 & DUMMY_USE_VIRTUAL_DEVICE);
177  case DocumentSettingId::USE_HIRES_VIRTUAL_DEVICE: return mbUseHiResolutionVirtualDevice; //(n8Dummy2 & DUMMY_USE_HIRES_VIR_DEV);
178  case DocumentSettingId::OLD_NUMBERING: return mbOldNumbering;
179  case DocumentSettingId::OLD_LINE_SPACING: return mbOldLineSpacing;
180  case DocumentSettingId::ADD_PARA_SPACING_TO_TABLE_CELLS: return mbAddParaSpacingToTableCells;
181  case DocumentSettingId::ADD_PARA_LINE_SPACING_TO_TABLE_CELLS: return mbAddParaLineSpacingToTableCells;
182  case DocumentSettingId::USE_FORMER_OBJECT_POS: return mbUseFormerObjectPos;
183  case DocumentSettingId::USE_FORMER_TEXT_WRAPPING: return mbUseFormerTextWrapping;
184  case DocumentSettingId::CONSIDER_WRAP_ON_OBJECT_POSITION: return mbConsiderWrapOnObjPos;
185  case DocumentSettingId::DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK: return mbDoNotJustifyLinesWithManualBreak;
186  case DocumentSettingId::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING: return mbIgnoreFirstLineIndentInNumbering;
187  case DocumentSettingId::TABLE_ROW_KEEP: return mbTableRowKeep;
188  case DocumentSettingId::IGNORE_TABS_AND_BLANKS_FOR_LINE_CALCULATION: return mbIgnoreTabsAndBlanksForLineCalculation;
189  case DocumentSettingId::DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE: return mbDoNotCaptureDrawObjsOnPage;
190  // #i68949#
191  case DocumentSettingId::CLIP_AS_CHARACTER_ANCHORED_WRITER_FLY_FRAME: return mbClipAsCharacterAnchoredWriterFlyFrames;
192  case DocumentSettingId::UNIX_FORCE_ZERO_EXT_LEADING: return mbUnixForceZeroExtLeading;
193  case DocumentSettingId::TABS_RELATIVE_TO_INDENT : return mbTabRelativeToIndent;
194  case DocumentSettingId::PROTECT_FORM: return mbProtectForm;
195  // tdf#104349 tdf#104668
196  case DocumentSettingId::MS_WORD_COMP_TRAILING_BLANKS: return mbMsWordCompTrailingBlanks;
197  case DocumentSettingId::MS_WORD_COMP_MIN_LINE_HEIGHT_BY_FLY: return mbMsWordCompMinLineHeightByFly;
198  // #i89181#
199  case DocumentSettingId::TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST: return mbTabAtLeftIndentForParagraphsInList;
200  case DocumentSettingId::INVERT_BORDER_SPACING: return mbInvertBorderSpacing;
201  case DocumentSettingId::COLLAPSE_EMPTY_CELL_PARA: return mbCollapseEmptyCellPara;
202  case DocumentSettingId::SMALL_CAPS_PERCENTAGE_66: return mbSmallCapsPercentage66;
203  case DocumentSettingId::TAB_OVERFLOW: return mbTabOverflow;
204  case DocumentSettingId::UNBREAKABLE_NUMBERINGS: return mbUnbreakableNumberings;
205  case DocumentSettingId::CLIPPED_PICTURES: return mbClippedPictures;
206  case DocumentSettingId::BACKGROUND_PARA_OVER_DRAWINGS: return mbBackgroundParaOverDrawings;
207  case DocumentSettingId::TAB_OVER_MARGIN: return mbTabOverMargin;
208  case DocumentSettingId::TAB_OVER_SPACING: return mbTabOverSpacing;
209  case DocumentSettingId::TREAT_SINGLE_COLUMN_BREAK_AS_PAGE_BREAK: return mbTreatSingleColumnBreakAsPageBreak;
210  case DocumentSettingId::SURROUND_TEXT_WRAP_SMALL: return mbSurroundTextWrapSmall;
211  case DocumentSettingId::PROP_LINE_SPACING_SHRINKS_FIRST_LINE: return mbPropLineSpacingShrinksFirstLine;
212  case DocumentSettingId::SUBTRACT_FLYS: return mbSubtractFlys;
213 
214  case DocumentSettingId::BROWSE_MODE: return mbLastBrowseMode; // Attention: normally the SwViewShell has to be asked!
215  case DocumentSettingId::HTML_MODE: return mbHTMLMode;
216  case DocumentSettingId::GLOBAL_DOCUMENT: return mbIsGlobalDoc;
217  case DocumentSettingId::GLOBAL_DOCUMENT_SAVE_LINKS: return mbGlblDocSaveLinks;
218  case DocumentSettingId::LABEL_DOCUMENT: return mbIsLabelDoc;
219  case DocumentSettingId::PURGE_OLE: return mbPurgeOLE;
220  case DocumentSettingId::KERN_ASIAN_PUNCTUATION: return mbKernAsianPunctuation;
221  case DocumentSettingId::DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT: return mbDoNotResetParaAttrsForNumFont;
222  case DocumentSettingId::MATH_BASELINE_ALIGNMENT: return mbMathBaselineAlignment;
223  case DocumentSettingId::STYLES_NODEFAULT: return mbStylesNoDefault;
224  case DocumentSettingId::FLOATTABLE_NOMARGINS: return mbFloattableNomargins;
225  case DocumentSettingId::EMBED_FONTS: return mEmbedFonts;
226  case DocumentSettingId::EMBED_USED_FONTS: return mEmbedUsedFonts;
227  case DocumentSettingId::EMBED_LATIN_SCRIPT_FONTS: return mEmbedLatinScriptFonts;
228  case DocumentSettingId::EMBED_ASIAN_SCRIPT_FONTS: return mEmbedAsianScriptFonts;
229  case DocumentSettingId::EMBED_COMPLEX_SCRIPT_FONTS: return mEmbedComplexScriptFonts;
230  case DocumentSettingId::EMBED_SYSTEM_FONTS: return mEmbedSystemFonts;
231  case DocumentSettingId::APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING: return mApplyParagraphMarkFormatToNumbering;
232  case DocumentSettingId::DISABLE_OFF_PAGE_POSITIONING: return mbDisableOffPagePositioning;
233  case DocumentSettingId::EMPTY_DB_FIELD_HIDES_PARA: return mbEmptyDbFieldHidesPara;
234  case DocumentSettingId::CONTINUOUS_ENDNOTES: return mbContinuousEndnotes;
235  case DocumentSettingId::PROTECT_BOOKMARKS: return mbProtectBookmarks;
236  case DocumentSettingId::PROTECT_FIELDS: return mbProtectFields;
237  case DocumentSettingId::HEADER_SPACING_BELOW_LAST_PARA: return mbHeaderSpacingBelowLastPara;
238  case DocumentSettingId::FRAME_AUTOWIDTH_WITH_MORE_PARA: return mbFrameAutowidthWithMorePara;
240  return mbGutterAtTop;
241  default:
242  OSL_FAIL("Invalid setting id");
243  }
244  return false;
245 }
246 
247 void sw::DocumentSettingManager::set(/*[in]*/ DocumentSettingId id, /*[in]*/ bool value)
248 {
249  switch (id)
250  {
251  // COMPATIBILITY FLAGS START
253  mbParaSpaceMax = value;
254  break;
256  mbParaSpaceMaxAtPages = value;
257  break;
259  mbTabCompat = value;
260  break;
262  mbAddFlyOffsets = value;
263  break;
265  mbAddVerticalFlyOffsets = value;
266  break;
268  mbAddExternalLeading = value;
269  break;
271  mbUseVirtualDevice = value;
272  break;
274  mbUseHiResolutionVirtualDevice = value;
275  break;
277  if (mbOldNumbering != value)
278  {
279  mbOldNumbering = value;
280 
281  const SwNumRuleTable& rNmTable = m_rDoc.GetNumRuleTable();
282  for( SwNumRuleTable::size_type n = 0; n < rNmTable.size(); ++n )
283  rNmTable[n]->SetInvalidRule(true);
284 
286 
287  SwNumRule *pOutlineRule = m_rDoc.GetOutlineNumRule();
288  if (pOutlineRule)
289  {
290  pOutlineRule->Validate(m_rDoc);
291  // counting of phantoms depends on <IsOldNumbering()>
292  pOutlineRule->SetCountPhantoms( !mbOldNumbering );
293  }
294  }
295  break;
297  mbOldLineSpacing = value;
298  break;
300  mbAddParaSpacingToTableCells = value;
301  break;
303  mbAddParaLineSpacingToTableCells = value;
304  break;
306  mbUseFormerObjectPos = value;
307  break;
309  mbUseFormerTextWrapping = value;
310  break;
312  mbConsiderWrapOnObjPos = value;
313  break;
315  mbDoNotJustifyLinesWithManualBreak = value;
316  break;
318  mbIgnoreFirstLineIndentInNumbering = value;
319  break;
320 
322  mbTableRowKeep = value;
323  break;
324 
326  mbIgnoreTabsAndBlanksForLineCalculation = value;
327  break;
328 
330  mbDoNotCaptureDrawObjsOnPage = value;
331  break;
332 
333  // #i68949#
335  mbClipAsCharacterAnchoredWriterFlyFrames = value;
336  break;
337 
339  mbUnixForceZeroExtLeading = value;
340  break;
341 
343  mbProtectForm = value;
344  break;
345 
346  // tdf#140349
348  mbMsWordCompTrailingBlanks = value;
349  break;
350 
352  mbMsWordCompMinLineHeightByFly = value;
353  break;
354 
356  mbTabRelativeToIndent = value;
357  break;
358  // #i89181#
360  mbTabAtLeftIndentForParagraphsInList = value;
361  break;
362 
364  mbInvertBorderSpacing = value;
365  break;
366 
368  mbCollapseEmptyCellPara = value;
369  break;
370 
372  mbSmallCapsPercentage66 = value;
373  break;
374 
376  mbTabOverflow = value;
377  break;
378 
380  mbUnbreakableNumberings = value;
381  break;
382 
384  mbClippedPictures = value;
385  break;
386 
388  mbBackgroundParaOverDrawings = value;
389  break;
390 
392  mbTabOverMargin = value;
393  break;
394 
396  mbTabOverSpacing = value;
397  break;
398 
400  mbTreatSingleColumnBreakAsPageBreak = value;
401  break;
402 
404  mbSurroundTextWrapSmall = value;
405  break;
406 
408  mbPropLineSpacingShrinksFirstLine = value;
409  break;
410 
412  mbSubtractFlys = value;
413  break;
414 
415  // COMPATIBILITY FLAGS END
416 
417  case DocumentSettingId::BROWSE_MODE: //can be used temporary (load/save) when no SwViewShell is available
418  // Can't render in webview successfully.
420  mbLastBrowseMode = false;
421  else
422  mbLastBrowseMode = value;
423  break;
424 
426  mbHTMLMode = value;
427  break;
428 
430  mbIsGlobalDoc = value;
431  break;
432 
434  mbGlblDocSaveLinks = value;
435  break;
436 
438  mbIsLabelDoc = value;
439  break;
440 
442  mbPurgeOLE = value;
443  break;
444 
446  mbKernAsianPunctuation = value;
447  break;
448 
450  mbDoNotResetParaAttrsForNumFont = value;
451  break;
453  mbMathBaselineAlignment = value;
454  break;
456  mbStylesNoDefault = value;
457  break;
459  mbFloattableNomargins = value;
460  break;
462  mEmbedFonts = value;
463  break;
465  mEmbedUsedFonts = value;
466  break;
468  mEmbedLatinScriptFonts = value;
469  break;
471  mEmbedAsianScriptFonts = value;
472  break;
474  mEmbedComplexScriptFonts = value;
475  break;
477  mEmbedSystemFonts = value;
478  break;
480  mApplyParagraphMarkFormatToNumbering = value;
481  break;
483  mbDisableOffPagePositioning = value;
484  break;
486  mbEmptyDbFieldHidesPara = value;
487  break;
489  mbContinuousEndnotes = value;
490  break;
492  mbProtectBookmarks = value;
493  break;
495  mbProtectFields = value;
496  break;
498  mbHeaderSpacingBelowLastPara = value;
499  break;
501  mbFrameAutowidthWithMorePara = value;
502  break;
504  mbGutterAtTop = value;
505  break;
506  default:
507  OSL_FAIL("Invalid setting id");
508  }
509 }
510 
511 const css::i18n::ForbiddenCharacters*
512  sw::DocumentSettingManager::getForbiddenCharacters(/*[in]*/ LanguageType nLang, /*[in]*/ bool bLocaleData ) const
513 {
514  const css::i18n::ForbiddenCharacters* pRet = nullptr;
515  if (mxForbiddenCharsTable)
516  pRet = mxForbiddenCharsTable->GetForbiddenCharacters( nLang, false );
517  if( bLocaleData && !pRet && g_pBreakIt )
518  pRet = &g_pBreakIt->GetForbidden( nLang );
519  return pRet;
520 }
521 
523  /*[in]*/ const css::i18n::ForbiddenCharacters& rFChars )
524 {
525  if (!mxForbiddenCharsTable)
527  mxForbiddenCharsTable->SetForbiddenCharacters( nLang, rFChars );
528 
530  if( pDrawModel )
531  {
532  pDrawModel->SetForbiddenCharsTable(mxForbiddenCharsTable);
533  if( !m_rDoc.IsInReading() )
534  pDrawModel->ReformatAllTextObjects();
535  }
536 
538  if( pTmpRoot && !m_rDoc.IsInReading() )
539  {
540  pTmpRoot->StartAllAction();
541  for(SwRootFrame* aLayout : m_rDoc.GetAllLayouts())
542  aLayout->InvalidateAllContent(SwInvalidateFlags::Size);
543  pTmpRoot->EndAllAction();
544  }
546 }
547 
548 std::shared_ptr<SvxForbiddenCharactersTable>& sw::DocumentSettingManager::getForbiddenCharacterTable()
549 {
550  if (!mxForbiddenCharsTable)
552  return mxForbiddenCharsTable;
553 }
554 
555 const std::shared_ptr<SvxForbiddenCharactersTable>& sw::DocumentSettingManager::getForbiddenCharacterTable() const
556 {
557  return mxForbiddenCharsTable;
558 }
559 
560 sal_uInt16 sw::DocumentSettingManager::getLinkUpdateMode( /*[in]*/bool bGlobalSettings ) const
561 {
562  sal_uInt16 nRet = mnLinkUpdMode;
563  if( bGlobalSettings && GLOBALSETTING == nRet )
564  nRet = SW_MOD()->GetLinkUpdMode();
565  return nRet;
566 }
567 
568 void sw::DocumentSettingManager::setLinkUpdateMode( /*[in]*/sal_uInt16 eMode )
569 {
570  mnLinkUpdMode = eMode;
571 }
572 
574 {
575  SwFieldUpdateFlags eRet = meFieldUpdMode;
576  if( bGlobalSettings && AUTOUPD_GLOBALSETTING == eRet )
577  eRet = SW_MOD()->GetFieldUpdateFlags();
578  return eRet;
579 }
580 
582 {
583  meFieldUpdMode = eMode;
584 }
585 
587 {
588  return meChrCmprType;
589 }
590 
592 {
593  if( meChrCmprType == n )
594  return;
595 
596  meChrCmprType = n;
597 
599  if( pDrawModel )
600  {
601  pDrawModel->SetCharCompressType( n );
602  if( !m_rDoc.IsInReading() )
603  pDrawModel->ReformatAllTextObjects();
604  }
605 
607  if( pTmpRoot && !m_rDoc.IsInReading() )
608  {
609  pTmpRoot->StartAllAction();
610  for( auto aLayout : m_rDoc.GetAllLayouts() )
611  aLayout->InvalidateAllContent(SwInvalidateFlags::Size);
612  pTmpRoot->EndAllAction();
613  }
615 }
616 
617 
619 {
620  Setn32DummyCompatibilityOptions1( rSource.Getn32DummyCompatibilityOptions1() );
621  Setn32DummyCompatibilityOptions2( rSource.Getn32DummyCompatibilityOptions2() );
622 
623  // No mbHTMLMode: this is the subset of mbLastBrowseMode, which can be temporarily enabled even
624  // for non-SwWebDocShells.
625  // No mbIsGlobalDoc: this is true for SwGlobalDocShells.
626  mbGlblDocSaveLinks = rSource.mbGlblDocSaveLinks;
627  mbIsLabelDoc = rSource.mbIsLabelDoc;
628  mbPurgeOLE = rSource.mbPurgeOLE;
629  mbKernAsianPunctuation = rSource.mbKernAsianPunctuation;
630  mbParaSpaceMax = rSource.mbParaSpaceMax;
631  mbParaSpaceMaxAtPages = rSource.mbParaSpaceMaxAtPages;
632  mbTabCompat = rSource.mbTabCompat;
633  mbUseVirtualDevice = rSource.mbUseVirtualDevice;
634  mbAddFlyOffsets = rSource.mbAddFlyOffsets;
635  mbAddVerticalFlyOffsets = rSource.mbAddVerticalFlyOffsets;
636  mbAddExternalLeading = rSource.mbAddExternalLeading;
637  mbUseHiResolutionVirtualDevice = rSource.mbUseHiResolutionVirtualDevice;
638  mbOldLineSpacing = rSource.mbOldLineSpacing;
639  mbAddParaSpacingToTableCells = rSource.mbAddParaSpacingToTableCells;
640  mbAddParaLineSpacingToTableCells = rSource.mbAddParaLineSpacingToTableCells;
641  mbUseFormerObjectPos = rSource.mbUseFormerObjectPos;
642  mbUseFormerTextWrapping = rSource.mbUseFormerTextWrapping;
643  mbConsiderWrapOnObjPos = rSource.mbConsiderWrapOnObjPos;
644  mbMathBaselineAlignment = rSource.mbMathBaselineAlignment;
645  mbStylesNoDefault = rSource.mbStylesNoDefault;
646  mbFloattableNomargins = rSource.mbFloattableNomargins;
647  mbOldNumbering = rSource.mbOldNumbering;
648  mbIgnoreFirstLineIndentInNumbering = rSource.mbIgnoreFirstLineIndentInNumbering;
649  mbDoNotJustifyLinesWithManualBreak = rSource.mbDoNotJustifyLinesWithManualBreak;
650  mbDoNotResetParaAttrsForNumFont = rSource.mbDoNotResetParaAttrsForNumFont;
651  mbTableRowKeep = rSource.mbTableRowKeep;
652  mbIgnoreTabsAndBlanksForLineCalculation = rSource.mbIgnoreTabsAndBlanksForLineCalculation;
653  mbDoNotCaptureDrawObjsOnPage = rSource.mbDoNotCaptureDrawObjsOnPage;
654  mbClipAsCharacterAnchoredWriterFlyFrames = rSource.mbClipAsCharacterAnchoredWriterFlyFrames;
655  mbUnixForceZeroExtLeading = rSource.mbUnixForceZeroExtLeading;
656  mbTabRelativeToIndent = rSource.mbTabRelativeToIndent;
657  mbProtectForm = rSource.mbProtectForm;
658  mbMsWordCompTrailingBlanks = rSource.mbMsWordCompTrailingBlanks;
659  mbMsWordCompMinLineHeightByFly = rSource.mbMsWordCompMinLineHeightByFly;
660  mbInvertBorderSpacing = rSource.mbInvertBorderSpacing;
661  mbCollapseEmptyCellPara = rSource.mbCollapseEmptyCellPara;
662  mbTabAtLeftIndentForParagraphsInList = rSource.mbTabAtLeftIndentForParagraphsInList;
663  mbSmallCapsPercentage66 = rSource.mbSmallCapsPercentage66;
664  mbTabOverflow = rSource.mbTabOverflow;
665  mbUnbreakableNumberings = rSource.mbUnbreakableNumberings;
666  mbClippedPictures = rSource.mbClippedPictures;
667  mbBackgroundParaOverDrawings = rSource.mbBackgroundParaOverDrawings;
668  mbTabOverMargin = rSource.mbTabOverMargin;
669  mbTabOverSpacing = rSource.mbTabOverSpacing;
670  mbTreatSingleColumnBreakAsPageBreak = rSource.mbTreatSingleColumnBreakAsPageBreak;
671  mbSurroundTextWrapSmall = rSource.mbSurroundTextWrapSmall;
672  mbPropLineSpacingShrinksFirstLine = rSource.mbPropLineSpacingShrinksFirstLine;
673  mbSubtractFlys = rSource.mbSubtractFlys;
674  // No mbLastBrowseMode: this is false by default everywhere
675  mbDisableOffPagePositioning = rSource.mbDisableOffPagePositioning;
676  mbEmptyDbFieldHidesPara = rSource.mbEmptyDbFieldHidesPara;
677  mbContinuousEndnotes = rSource.mbContinuousEndnotes;
678  // No mbProtectBookmarks: this is false by default everywhere
679  // No mbProtectFields: this is false by default everywhere
680  mbHeaderSpacingBelowLastPara = rSource.mbHeaderSpacingBelowLastPara;
681  mbFrameAutowidthWithMorePara = rSource.mbFrameAutowidthWithMorePara;
682 }
683 
685 {
686  return mn32DummyCompatibilityOptions1;
687 }
688 
689 void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions1( const sal_uInt32 CompatibilityOptions1 )
690 {
691  mn32DummyCompatibilityOptions1 = CompatibilityOptions1;
692 }
693 
695 {
696  return mn32DummyCompatibilityOptions2;
697 }
698 
699 void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions2( const sal_uInt32 CompatibilityOptions2 )
700 {
701  mn32DummyCompatibilityOptions2 = CompatibilityOptions2;
702 }
703 
705 {
706  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("DocumentSettingManager"));
707 
708  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHTMLMode"));
709  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
710  BAD_CAST(OString::boolean(mbHTMLMode).getStr()));
711  (void)xmlTextWriterEndElement(pWriter);
712 
713  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsGlobalDoc"));
714  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
715  BAD_CAST(OString::boolean(mbIsGlobalDoc).getStr()));
716  (void)xmlTextWriterEndElement(pWriter);
717 
718  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbGlblDocSaveLinks"));
719  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
720  BAD_CAST(OString::boolean(mbGlblDocSaveLinks).getStr()));
721  (void)xmlTextWriterEndElement(pWriter);
722 
723  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsLabelDoc"));
724  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
725  BAD_CAST(OString::boolean(mbIsLabelDoc).getStr()));
726  (void)xmlTextWriterEndElement(pWriter);
727 
728  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbPurgeOLE"));
729  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
730  BAD_CAST(OString::boolean(mbPurgeOLE).getStr()));
731  (void)xmlTextWriterEndElement(pWriter);
732 
733  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbKernAsianPunctuation"));
734  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
735  BAD_CAST(OString::boolean(mbKernAsianPunctuation).getStr()));
736  (void)xmlTextWriterEndElement(pWriter);
737 
738  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMax"));
739  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
740  BAD_CAST(OString::boolean(mbParaSpaceMax).getStr()));
741  (void)xmlTextWriterEndElement(pWriter);
742 
743  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMaxAtPages"));
744  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
745  BAD_CAST(OString::boolean(mbParaSpaceMaxAtPages).getStr()));
746  (void)xmlTextWriterEndElement(pWriter);
747 
748  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabCompat"));
749  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
750  BAD_CAST(OString::boolean(mbTabCompat).getStr()));
751  (void)xmlTextWriterEndElement(pWriter);
752 
753  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseVirtualDevice"));
754  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
755  BAD_CAST(OString::boolean(mbUseVirtualDevice).getStr()));
756  (void)xmlTextWriterEndElement(pWriter);
757 
758  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddFlyOffsets"));
759  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
760  BAD_CAST(OString::boolean(mbAddFlyOffsets).getStr()));
761  (void)xmlTextWriterEndElement(pWriter);
762 
763  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddVerticalFlyOffsets"));
764  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
765  BAD_CAST(OString::boolean(mbAddVerticalFlyOffsets).getStr()));
766  (void)xmlTextWriterEndElement(pWriter);
767 
768  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddExternalLeading"));
769  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
770  BAD_CAST(OString::boolean(mbAddExternalLeading).getStr()));
771  (void)xmlTextWriterEndElement(pWriter);
772 
773  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseHiResolutionVirtualDevice"));
774  (void)xmlTextWriterWriteAttribute(
775  pWriter, BAD_CAST("value"),
776  BAD_CAST(OString::boolean(mbUseHiResolutionVirtualDevice).getStr()));
777  (void)xmlTextWriterEndElement(pWriter);
778 
779  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldLineSpacing"));
780  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
781  BAD_CAST(OString::boolean(mbOldLineSpacing).getStr()));
782  (void)xmlTextWriterEndElement(pWriter);
783 
784  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaSpacingToTableCells"));
785  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
786  BAD_CAST(OString::boolean(mbAddParaSpacingToTableCells).getStr()));
787  (void)xmlTextWriterEndElement(pWriter);
788  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaLineSpacingToTableCells"));
789  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
790  BAD_CAST(OString::boolean(mbAddParaLineSpacingToTableCells).getStr()));
791  (void)xmlTextWriterEndElement(pWriter);
792 
793  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerObjectPos"));
794  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
795  BAD_CAST(OString::boolean(mbUseFormerObjectPos).getStr()));
796  (void)xmlTextWriterEndElement(pWriter);
797 
798  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerTextWrapping"));
799  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
800  BAD_CAST(OString::boolean(mbUseFormerTextWrapping).getStr()));
801  (void)xmlTextWriterEndElement(pWriter);
802 
803  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbConsiderWrapOnObjPos"));
804  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
805  BAD_CAST(OString::boolean(mbConsiderWrapOnObjPos).getStr()));
806  (void)xmlTextWriterEndElement(pWriter);
807 
808  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMathBaselineAlignment"));
809  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
810  BAD_CAST(OString::boolean(mbMathBaselineAlignment).getStr()));
811  (void)xmlTextWriterEndElement(pWriter);
812 
813  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbStylesNoDefault"));
814  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
815  BAD_CAST(OString::boolean(mbStylesNoDefault).getStr()));
816  (void)xmlTextWriterEndElement(pWriter);
817 
818  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFloattableNomargins"));
819  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
820  BAD_CAST(OString::boolean(mbFloattableNomargins).getStr()));
821  (void)xmlTextWriterEndElement(pWriter);
822 
823  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldNumbering"));
824  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
825  BAD_CAST(OString::boolean(mbOldNumbering).getStr()));
826  (void)xmlTextWriterEndElement(pWriter);
827 
828  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreFirstLineIndentInNumbering"));
829  (void)xmlTextWriterWriteAttribute(
830  pWriter, BAD_CAST("value"),
831  BAD_CAST(OString::boolean(mbIgnoreFirstLineIndentInNumbering).getStr()));
832  (void)xmlTextWriterEndElement(pWriter);
833 
834  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotJustifyLinesWithManualBreak"));
835  (void)xmlTextWriterWriteAttribute(
836  pWriter, BAD_CAST("value"),
837  BAD_CAST(OString::boolean(mbDoNotJustifyLinesWithManualBreak).getStr()));
838  (void)xmlTextWriterEndElement(pWriter);
839 
840  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotResetParaAttrsForNumFont"));
841  (void)xmlTextWriterWriteAttribute(
842  pWriter, BAD_CAST("value"),
843  BAD_CAST(OString::boolean(mbDoNotResetParaAttrsForNumFont).getStr()));
844  (void)xmlTextWriterEndElement(pWriter);
845 
846  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTableRowKeep"));
847  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
848  BAD_CAST(OString::boolean(mbTableRowKeep).getStr()));
849  (void)xmlTextWriterEndElement(pWriter);
850 
851  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreTabsAndBlanksForLineCalculation"));
852  (void)xmlTextWriterWriteAttribute(
853  pWriter, BAD_CAST("value"),
854  BAD_CAST(OString::boolean(mbIgnoreTabsAndBlanksForLineCalculation).getStr()));
855  (void)xmlTextWriterEndElement(pWriter);
856 
857  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotCaptureDrawObjsOnPage"));
858  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
859  BAD_CAST(OString::boolean(mbDoNotCaptureDrawObjsOnPage).getStr()));
860  (void)xmlTextWriterEndElement(pWriter);
861 
862  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbClipAsCharacterAnchoredWriterFlyFrames"));
863  (void)xmlTextWriterWriteAttribute(
864  pWriter, BAD_CAST("value"),
865  BAD_CAST(OString::boolean(mbClipAsCharacterAnchoredWriterFlyFrames).getStr()));
866  (void)xmlTextWriterEndElement(pWriter);
867 
868  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnixForceZeroExtLeading"));
869  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
870  BAD_CAST(OString::boolean(mbUnixForceZeroExtLeading).getStr()));
871  (void)xmlTextWriterEndElement(pWriter);
872 
873  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabRelativeToIndent"));
874  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
875  BAD_CAST(OString::boolean(mbTabRelativeToIndent).getStr()));
876  (void)xmlTextWriterEndElement(pWriter);
877 
878  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbProtectForm"));
879  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
880  BAD_CAST(OString::boolean(mbProtectForm).getStr()));
881  (void)xmlTextWriterEndElement(pWriter);
882 
883  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompTrailingBlanks"));
884  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
885  BAD_CAST(OString::boolean(mbMsWordCompTrailingBlanks).getStr()));
886  (void)xmlTextWriterEndElement(pWriter);
887 
888  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompMinLineHeightByFly"));
889  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
890  BAD_CAST(OString::boolean(mbMsWordCompMinLineHeightByFly).getStr()));
891  (void)xmlTextWriterEndElement(pWriter);
892 
893  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbInvertBorderSpacing"));
894  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
895  BAD_CAST(OString::boolean(mbInvertBorderSpacing).getStr()));
896  (void)xmlTextWriterEndElement(pWriter);
897 
898  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbCollapseEmptyCellPara"));
899  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
900  BAD_CAST(OString::boolean(mbCollapseEmptyCellPara).getStr()));
901  (void)xmlTextWriterEndElement(pWriter);
902 
903  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabAtLeftIndentForParagraphsInList"));
904  (void)xmlTextWriterWriteAttribute(
905  pWriter, BAD_CAST("value"),
906  BAD_CAST(OString::boolean(mbTabAtLeftIndentForParagraphsInList).getStr()));
907  (void)xmlTextWriterEndElement(pWriter);
908 
909  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSmallCapsPercentage66"));
910  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
911  BAD_CAST(OString::boolean(mbSmallCapsPercentage66).getStr()));
912  (void)xmlTextWriterEndElement(pWriter);
913 
914  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverflow"));
915  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
916  BAD_CAST(OString::boolean(mbTabOverflow).getStr()));
917  (void)xmlTextWriterEndElement(pWriter);
918 
919  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnbreakableNumberings"));
920  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
921  BAD_CAST(OString::boolean(mbUnbreakableNumberings).getStr()));
922  (void)xmlTextWriterEndElement(pWriter);
923 
924  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbClippedPictures"));
925  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
926  BAD_CAST(OString::boolean(mbClippedPictures).getStr()));
927  (void)xmlTextWriterEndElement(pWriter);
928 
929  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbBackgroundParaOverDrawings"));
930  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
931  BAD_CAST(OString::boolean(mbBackgroundParaOverDrawings).getStr()));
932  (void)xmlTextWriterEndElement(pWriter);
933 
934  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverMargin"));
935  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
936  BAD_CAST(OString::boolean(mbTabOverMargin).getStr()));
937  (void)xmlTextWriterEndElement(pWriter);
938 
939  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverSpacing"));
940  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
941  BAD_CAST(OString::boolean(mbTabOverSpacing).getStr()));
942  (void)xmlTextWriterEndElement(pWriter);
943 
944  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTreatSingleColumnBreakAsPageBreak"));
945  (void)xmlTextWriterWriteAttribute(
946  pWriter, BAD_CAST("value"),
947  BAD_CAST(OString::boolean(mbTreatSingleColumnBreakAsPageBreak).getStr()));
948  (void)xmlTextWriterEndElement(pWriter);
949 
950  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSurroundTextWrapSmall"));
951  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
952  BAD_CAST(OString::boolean(mbSurroundTextWrapSmall).getStr()));
953  (void)xmlTextWriterEndElement(pWriter);
954 
955  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbPropLineSpacingShrinksFirstLine"));
956  (void)xmlTextWriterWriteAttribute(
957  pWriter, BAD_CAST("value"),
958  BAD_CAST(OString::boolean(mbPropLineSpacingShrinksFirstLine).getStr()));
959  (void)xmlTextWriterEndElement(pWriter);
960 
961  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSubtractFlys"));
962  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
963  BAD_CAST(OString::boolean(mbSubtractFlys).getStr()));
964  (void)xmlTextWriterEndElement(pWriter);
965 
966  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbLastBrowseMode"));
967  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
968  BAD_CAST(OString::boolean(mbLastBrowseMode).getStr()));
969  (void)xmlTextWriterEndElement(pWriter);
970 
971  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDisableOffPagePositioning"));
972  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
973  BAD_CAST(OString::boolean(mbDisableOffPagePositioning).getStr()));
974  (void)xmlTextWriterEndElement(pWriter);
975 
976  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbEmptyDbFieldHidesPara"));
977  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
978  BAD_CAST(OString::boolean(mbEmptyDbFieldHidesPara).getStr()));
979  (void)xmlTextWriterEndElement(pWriter);
980 
981  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbContinuousEndnotes"));
982  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
983  BAD_CAST(OString::boolean(mbContinuousEndnotes).getStr()));
984  (void)xmlTextWriterEndElement(pWriter);
985 
986  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHeaderSpacingBelowLastPara"));
987  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
988  BAD_CAST(OString::boolean(mbHeaderSpacingBelowLastPara).getStr()));
989  (void)xmlTextWriterEndElement(pWriter);
990 
991  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFrameAutowidthWithMorePara"));
992  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
993  BAD_CAST(OString::boolean(mbFrameAutowidthWithMorePara).getStr()));
994  (void)xmlTextWriterEndElement(pWriter);
995 
996  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbGutterAtTop"));
997  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
998  BAD_CAST(OString::boolean(mbGutterAtTop).getStr()));
999  (void)xmlTextWriterEndElement(pWriter);
1000 
1001  (void)xmlTextWriterEndElement(pWriter);
1002 }
1003 
1004 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual const css::i18n::ForbiddenCharacters * getForbiddenCharacters(LanguageType nLang, bool bLocaleData) const override
Return the forbidden characters.
bool GetDefault(SvtCompatibilityEntry::Index rIdx) const
SwFieldUpdateFlags
Definition: fldupde.hxx:22
virtual const SwRootFrame * GetCurrentLayout() const =0
virtual bool get(DocumentSettingId id) const override
Return the specified document setting.
void SetForbiddenCharsTable(const std::shared_ptr< SvxForbiddenCharactersTable > &xForbiddenChars)
virtual void SetModified()=0
Must be called manually at changes of format.
sal_Int64 n
void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: doc.hxx:188
virtual CharCompressType getCharacterCompressionType() const override
Get the character compression type for Asian characters.
virtual void set(DocumentSettingId id, bool value) override
Set the specified document setting.
void SetCharCompressType(CharCompressType nType)
void Validate(const SwDoc &rDoc)
Definition: number.cxx:1037
void Setn32DummyCompatibilityOptions1(const sal_uInt32 CompatibilityOptions1) override
Set the n32DummyCompatibilityOptions1.
The root element of a Writer document layout.
Definition: rootfrm.hxx:82
static LanguageType nLang
Definition: srtdlg.cxx:51
IDocumentDrawModelAccess const & getIDocumentDrawModelAccess() const
Definition: doc.cxx:155
SwDoc & m_rDoc
Definition: docbm.cxx:1204
void ReformatAllTextObjects()
SwBreakIt * g_pBreakIt
Definition: breakit.cxx:33
static bool IsFuzzing()
static std::shared_ptr< SvxForbiddenCharactersTable > makeForbiddenCharactersTable(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
o3tl::sorted_vector< SwRootFrame * > GetAllLayouts()
Definition: doclay.cxx:1670
virtual void setLinkUpdateMode(sal_uInt16 nMode) override
Set the current link update mode.
void ReplaceCompatibilityOptions(const DocumentSettingManager &rSource)
struct _xmlTextWriter * xmlTextWriterPtr
virtual void setFieldUpdateFlags(SwFieldUpdateFlags eMode) override
Set the current field update mode.
#define SW_MOD()
Definition: swmodule.hxx:256
CharCompressType
std::vector< SwNumRule * >::size_type size_type
Definition: docary.hxx:67
virtual std::shared_ptr< SvxForbiddenCharactersTable > & getForbiddenCharacterTable() override
Get the forbidden character table and creates one if necessary.
void Setn32DummyCompatibilityOptions2(const sal_uInt32 CompatibilityOptions2) override
Set the n32DummyCompatibilityOptions2.
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
void UpdateNumRule()
Definition: docnum.cxx:2589
size_t size() const
Definition: docary.hxx:88
IDocumentState const & getIDocumentState() const
Definition: doc.cxx:394
void SetCountPhantoms(bool bCountPhantoms)
Definition: number.cxx:1050
virtual void setCharacterCompressionType(CharCompressType nType) override
Set the character compression type for Asian characters.
bool IsInReading() const
Definition: doc.hxx:954
sal_uInt32 Getn32DummyCompatibilityOptions2() const override
Get the n32DummyCompatibilityOptions2.
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
Definition: doc.cxx:405
virtual SwFieldUpdateFlags getFieldUpdateFlags(bool bGlobalSettings) const override
Get the current field update mode.
const SwNumRuleTable & GetNumRuleTable() const
Definition: doc.hxx:1066
virtual void setForbiddenCharacters(LanguageType nLang, const css::i18n::ForbiddenCharacters &rForbiddenCharacters) override
Set the forbidden characters.
virtual sal_uInt16 getLinkUpdateMode(bool bGlobalSettings) const override
Get the current link update mode.
sal_uInt32 Getn32DummyCompatibilityOptions1() const override
Get the n32DummyCompatibilityOptions1.
Reference< XComponentContext > getProcessComponentContext()
virtual ~DocumentSettingManager() override
void StartAllAction()
Set up Start-/EndAction for all Shells on an as high as possible (Shell section) level.
Definition: pagechg.cxx:1892
void EndAllAction(bool bVirDev=false)
Definition: pagechg.cxx:1904
const css::i18n::ForbiddenCharacters & GetForbidden(const LanguageType aLang)
Definition: breakit.hxx:103
SwNumRule * GetOutlineNumRule() const
Definition: doc.hxx:1024
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo