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
624  // No mbIsGlobalDoc
625  // No mbGlblDocSaveLinks
626  // No mbIsLabelDoc
627  // No mbPurgeOLE
628  // No mbKernAsianPunctuation
629  mbParaSpaceMax = rSource.mbParaSpaceMax;
630  mbParaSpaceMaxAtPages = rSource.mbParaSpaceMaxAtPages;
631  mbTabCompat = rSource.mbTabCompat;
632  mbUseVirtualDevice = rSource.mbUseVirtualDevice;
633  mbAddFlyOffsets = rSource.mbAddFlyOffsets;
634  mbAddVerticalFlyOffsets = rSource.mbAddVerticalFlyOffsets;
635  mbAddExternalLeading = rSource.mbAddExternalLeading;
636  mbUseHiResolutionVirtualDevice = rSource.mbUseHiResolutionVirtualDevice;
637  mbOldLineSpacing = rSource.mbOldLineSpacing;
638  mbAddParaSpacingToTableCells = rSource.mbAddParaSpacingToTableCells;
639  mbAddParaLineSpacingToTableCells = rSource.mbAddParaLineSpacingToTableCells;
640  mbUseFormerObjectPos = rSource.mbUseFormerObjectPos;
641  mbUseFormerTextWrapping = rSource.mbUseFormerTextWrapping;
642  mbConsiderWrapOnObjPos = rSource.mbConsiderWrapOnObjPos;
643  // No mbMathBaselineAlignment
644  mbStylesNoDefault = rSource.mbStylesNoDefault;
645  mbFloattableNomargins = rSource.mbFloattableNomargins;
646  mbOldNumbering = rSource.mbOldNumbering;
647  mbIgnoreFirstLineIndentInNumbering = rSource.mbIgnoreFirstLineIndentInNumbering;
648  mbDoNotJustifyLinesWithManualBreak = rSource.mbDoNotJustifyLinesWithManualBreak;
649  mbDoNotResetParaAttrsForNumFont = rSource.mbDoNotResetParaAttrsForNumFont;
650  mbTableRowKeep = rSource.mbTableRowKeep;
651  mbIgnoreTabsAndBlanksForLineCalculation = rSource.mbIgnoreTabsAndBlanksForLineCalculation;
652  mbDoNotCaptureDrawObjsOnPage = rSource.mbDoNotCaptureDrawObjsOnPage;
653  mbClipAsCharacterAnchoredWriterFlyFrames = rSource.mbClipAsCharacterAnchoredWriterFlyFrames;
654  mbUnixForceZeroExtLeading = rSource.mbUnixForceZeroExtLeading;
655  mbTabRelativeToIndent = rSource.mbTabRelativeToIndent;
656  mbProtectForm = rSource.mbProtectForm;
657  mbMsWordCompTrailingBlanks = rSource.mbMsWordCompTrailingBlanks;
658  mbMsWordCompMinLineHeightByFly = rSource.mbMsWordCompMinLineHeightByFly;
659  mbInvertBorderSpacing = rSource.mbInvertBorderSpacing;
660  mbCollapseEmptyCellPara = rSource.mbCollapseEmptyCellPara;
661  mbTabAtLeftIndentForParagraphsInList = rSource.mbTabAtLeftIndentForParagraphsInList;
662  mbSmallCapsPercentage66 = rSource.mbSmallCapsPercentage66;
663  mbTabOverflow = rSource.mbTabOverflow;
664  mbUnbreakableNumberings = rSource.mbUnbreakableNumberings;
665  mbClippedPictures = rSource.mbClippedPictures;
666  mbBackgroundParaOverDrawings = rSource.mbBackgroundParaOverDrawings;
667  mbTabOverMargin = rSource.mbTabOverMargin;
668  mbTabOverSpacing = rSource.mbTabOverSpacing;
669  mbTreatSingleColumnBreakAsPageBreak = rSource.mbTreatSingleColumnBreakAsPageBreak;
670  mbSurroundTextWrapSmall = rSource.mbSurroundTextWrapSmall;
671  mbPropLineSpacingShrinksFirstLine = rSource.mbPropLineSpacingShrinksFirstLine;
672  mbSubtractFlys = rSource.mbSubtractFlys;
673  // No mbLastBrowseMode: this is false by default everywhere
674  mbDisableOffPagePositioning = rSource.mbDisableOffPagePositioning;
675  mbEmptyDbFieldHidesPara = rSource.mbEmptyDbFieldHidesPara;
676  mbContinuousEndnotes = rSource.mbContinuousEndnotes;
677  // No mbProtectBookmarks: this is false by default everywhere
678  // No mbProtectFields: this is false by default everywhere
679  mbHeaderSpacingBelowLastPara = rSource.mbHeaderSpacingBelowLastPara;
680  mbFrameAutowidthWithMorePara = rSource.mbFrameAutowidthWithMorePara;
681 }
682 
684 {
685  return mn32DummyCompatibilityOptions1;
686 }
687 
688 void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions1( const sal_uInt32 CompatibilityOptions1 )
689 {
690  mn32DummyCompatibilityOptions1 = CompatibilityOptions1;
691 }
692 
694 {
695  return mn32DummyCompatibilityOptions2;
696 }
697 
698 void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions2( const sal_uInt32 CompatibilityOptions2 )
699 {
700  mn32DummyCompatibilityOptions2 = CompatibilityOptions2;
701 }
702 
704 {
705  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("DocumentSettingManager"));
706 
707  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHTMLMode"));
708  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
709  BAD_CAST(OString::boolean(mbHTMLMode).getStr()));
710  (void)xmlTextWriterEndElement(pWriter);
711 
712  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsGlobalDoc"));
713  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
714  BAD_CAST(OString::boolean(mbIsGlobalDoc).getStr()));
715  (void)xmlTextWriterEndElement(pWriter);
716 
717  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbGlblDocSaveLinks"));
718  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
719  BAD_CAST(OString::boolean(mbGlblDocSaveLinks).getStr()));
720  (void)xmlTextWriterEndElement(pWriter);
721 
722  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsLabelDoc"));
723  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
724  BAD_CAST(OString::boolean(mbIsLabelDoc).getStr()));
725  (void)xmlTextWriterEndElement(pWriter);
726 
727  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbPurgeOLE"));
728  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
729  BAD_CAST(OString::boolean(mbPurgeOLE).getStr()));
730  (void)xmlTextWriterEndElement(pWriter);
731 
732  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbKernAsianPunctuation"));
733  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
734  BAD_CAST(OString::boolean(mbKernAsianPunctuation).getStr()));
735  (void)xmlTextWriterEndElement(pWriter);
736 
737  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMax"));
738  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
739  BAD_CAST(OString::boolean(mbParaSpaceMax).getStr()));
740  (void)xmlTextWriterEndElement(pWriter);
741 
742  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMaxAtPages"));
743  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
744  BAD_CAST(OString::boolean(mbParaSpaceMaxAtPages).getStr()));
745  (void)xmlTextWriterEndElement(pWriter);
746 
747  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabCompat"));
748  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
749  BAD_CAST(OString::boolean(mbTabCompat).getStr()));
750  (void)xmlTextWriterEndElement(pWriter);
751 
752  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseVirtualDevice"));
753  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
754  BAD_CAST(OString::boolean(mbUseVirtualDevice).getStr()));
755  (void)xmlTextWriterEndElement(pWriter);
756 
757  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddFlyOffsets"));
758  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
759  BAD_CAST(OString::boolean(mbAddFlyOffsets).getStr()));
760  (void)xmlTextWriterEndElement(pWriter);
761 
762  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddVerticalFlyOffsets"));
763  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
764  BAD_CAST(OString::boolean(mbAddVerticalFlyOffsets).getStr()));
765  (void)xmlTextWriterEndElement(pWriter);
766 
767  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddExternalLeading"));
768  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
769  BAD_CAST(OString::boolean(mbAddExternalLeading).getStr()));
770  (void)xmlTextWriterEndElement(pWriter);
771 
772  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseHiResolutionVirtualDevice"));
773  (void)xmlTextWriterWriteAttribute(
774  pWriter, BAD_CAST("value"),
775  BAD_CAST(OString::boolean(mbUseHiResolutionVirtualDevice).getStr()));
776  (void)xmlTextWriterEndElement(pWriter);
777 
778  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldLineSpacing"));
779  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
780  BAD_CAST(OString::boolean(mbOldLineSpacing).getStr()));
781  (void)xmlTextWriterEndElement(pWriter);
782 
783  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaSpacingToTableCells"));
784  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
785  BAD_CAST(OString::boolean(mbAddParaSpacingToTableCells).getStr()));
786  (void)xmlTextWriterEndElement(pWriter);
787  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaLineSpacingToTableCells"));
788  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
789  BAD_CAST(OString::boolean(mbAddParaLineSpacingToTableCells).getStr()));
790  (void)xmlTextWriterEndElement(pWriter);
791 
792  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerObjectPos"));
793  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
794  BAD_CAST(OString::boolean(mbUseFormerObjectPos).getStr()));
795  (void)xmlTextWriterEndElement(pWriter);
796 
797  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerTextWrapping"));
798  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
799  BAD_CAST(OString::boolean(mbUseFormerTextWrapping).getStr()));
800  (void)xmlTextWriterEndElement(pWriter);
801 
802  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbConsiderWrapOnObjPos"));
803  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
804  BAD_CAST(OString::boolean(mbConsiderWrapOnObjPos).getStr()));
805  (void)xmlTextWriterEndElement(pWriter);
806 
807  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMathBaselineAlignment"));
808  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
809  BAD_CAST(OString::boolean(mbMathBaselineAlignment).getStr()));
810  (void)xmlTextWriterEndElement(pWriter);
811 
812  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbStylesNoDefault"));
813  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
814  BAD_CAST(OString::boolean(mbStylesNoDefault).getStr()));
815  (void)xmlTextWriterEndElement(pWriter);
816 
817  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFloattableNomargins"));
818  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
819  BAD_CAST(OString::boolean(mbFloattableNomargins).getStr()));
820  (void)xmlTextWriterEndElement(pWriter);
821 
822  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldNumbering"));
823  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
824  BAD_CAST(OString::boolean(mbOldNumbering).getStr()));
825  (void)xmlTextWriterEndElement(pWriter);
826 
827  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreFirstLineIndentInNumbering"));
828  (void)xmlTextWriterWriteAttribute(
829  pWriter, BAD_CAST("value"),
830  BAD_CAST(OString::boolean(mbIgnoreFirstLineIndentInNumbering).getStr()));
831  (void)xmlTextWriterEndElement(pWriter);
832 
833  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotJustifyLinesWithManualBreak"));
834  (void)xmlTextWriterWriteAttribute(
835  pWriter, BAD_CAST("value"),
836  BAD_CAST(OString::boolean(mbDoNotJustifyLinesWithManualBreak).getStr()));
837  (void)xmlTextWriterEndElement(pWriter);
838 
839  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotResetParaAttrsForNumFont"));
840  (void)xmlTextWriterWriteAttribute(
841  pWriter, BAD_CAST("value"),
842  BAD_CAST(OString::boolean(mbDoNotResetParaAttrsForNumFont).getStr()));
843  (void)xmlTextWriterEndElement(pWriter);
844 
845  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTableRowKeep"));
846  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
847  BAD_CAST(OString::boolean(mbTableRowKeep).getStr()));
848  (void)xmlTextWriterEndElement(pWriter);
849 
850  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreTabsAndBlanksForLineCalculation"));
851  (void)xmlTextWriterWriteAttribute(
852  pWriter, BAD_CAST("value"),
853  BAD_CAST(OString::boolean(mbIgnoreTabsAndBlanksForLineCalculation).getStr()));
854  (void)xmlTextWriterEndElement(pWriter);
855 
856  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotCaptureDrawObjsOnPage"));
857  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
858  BAD_CAST(OString::boolean(mbDoNotCaptureDrawObjsOnPage).getStr()));
859  (void)xmlTextWriterEndElement(pWriter);
860 
861  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbClipAsCharacterAnchoredWriterFlyFrames"));
862  (void)xmlTextWriterWriteAttribute(
863  pWriter, BAD_CAST("value"),
864  BAD_CAST(OString::boolean(mbClipAsCharacterAnchoredWriterFlyFrames).getStr()));
865  (void)xmlTextWriterEndElement(pWriter);
866 
867  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnixForceZeroExtLeading"));
868  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
869  BAD_CAST(OString::boolean(mbUnixForceZeroExtLeading).getStr()));
870  (void)xmlTextWriterEndElement(pWriter);
871 
872  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabRelativeToIndent"));
873  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
874  BAD_CAST(OString::boolean(mbTabRelativeToIndent).getStr()));
875  (void)xmlTextWriterEndElement(pWriter);
876 
877  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbProtectForm"));
878  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
879  BAD_CAST(OString::boolean(mbProtectForm).getStr()));
880  (void)xmlTextWriterEndElement(pWriter);
881 
882  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompTrailingBlanks"));
883  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
884  BAD_CAST(OString::boolean(mbMsWordCompTrailingBlanks).getStr()));
885  (void)xmlTextWriterEndElement(pWriter);
886 
887  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompMinLineHeightByFly"));
888  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
889  BAD_CAST(OString::boolean(mbMsWordCompMinLineHeightByFly).getStr()));
890  (void)xmlTextWriterEndElement(pWriter);
891 
892  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbInvertBorderSpacing"));
893  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
894  BAD_CAST(OString::boolean(mbInvertBorderSpacing).getStr()));
895  (void)xmlTextWriterEndElement(pWriter);
896 
897  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbCollapseEmptyCellPara"));
898  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
899  BAD_CAST(OString::boolean(mbCollapseEmptyCellPara).getStr()));
900  (void)xmlTextWriterEndElement(pWriter);
901 
902  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabAtLeftIndentForParagraphsInList"));
903  (void)xmlTextWriterWriteAttribute(
904  pWriter, BAD_CAST("value"),
905  BAD_CAST(OString::boolean(mbTabAtLeftIndentForParagraphsInList).getStr()));
906  (void)xmlTextWriterEndElement(pWriter);
907 
908  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSmallCapsPercentage66"));
909  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
910  BAD_CAST(OString::boolean(mbSmallCapsPercentage66).getStr()));
911  (void)xmlTextWriterEndElement(pWriter);
912 
913  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverflow"));
914  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
915  BAD_CAST(OString::boolean(mbTabOverflow).getStr()));
916  (void)xmlTextWriterEndElement(pWriter);
917 
918  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnbreakableNumberings"));
919  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
920  BAD_CAST(OString::boolean(mbUnbreakableNumberings).getStr()));
921  (void)xmlTextWriterEndElement(pWriter);
922 
923  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbClippedPictures"));
924  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
925  BAD_CAST(OString::boolean(mbClippedPictures).getStr()));
926  (void)xmlTextWriterEndElement(pWriter);
927 
928  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbBackgroundParaOverDrawings"));
929  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
930  BAD_CAST(OString::boolean(mbBackgroundParaOverDrawings).getStr()));
931  (void)xmlTextWriterEndElement(pWriter);
932 
933  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverMargin"));
934  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
935  BAD_CAST(OString::boolean(mbTabOverMargin).getStr()));
936  (void)xmlTextWriterEndElement(pWriter);
937 
938  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverSpacing"));
939  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
940  BAD_CAST(OString::boolean(mbTabOverSpacing).getStr()));
941  (void)xmlTextWriterEndElement(pWriter);
942 
943  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTreatSingleColumnBreakAsPageBreak"));
944  (void)xmlTextWriterWriteAttribute(
945  pWriter, BAD_CAST("value"),
946  BAD_CAST(OString::boolean(mbTreatSingleColumnBreakAsPageBreak).getStr()));
947  (void)xmlTextWriterEndElement(pWriter);
948 
949  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSurroundTextWrapSmall"));
950  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
951  BAD_CAST(OString::boolean(mbSurroundTextWrapSmall).getStr()));
952  (void)xmlTextWriterEndElement(pWriter);
953 
954  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbPropLineSpacingShrinksFirstLine"));
955  (void)xmlTextWriterWriteAttribute(
956  pWriter, BAD_CAST("value"),
957  BAD_CAST(OString::boolean(mbPropLineSpacingShrinksFirstLine).getStr()));
958  (void)xmlTextWriterEndElement(pWriter);
959 
960  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSubtractFlys"));
961  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
962  BAD_CAST(OString::boolean(mbSubtractFlys).getStr()));
963  (void)xmlTextWriterEndElement(pWriter);
964 
965  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbLastBrowseMode"));
966  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
967  BAD_CAST(OString::boolean(mbLastBrowseMode).getStr()));
968  (void)xmlTextWriterEndElement(pWriter);
969 
970  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDisableOffPagePositioning"));
971  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
972  BAD_CAST(OString::boolean(mbDisableOffPagePositioning).getStr()));
973  (void)xmlTextWriterEndElement(pWriter);
974 
975  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbEmptyDbFieldHidesPara"));
976  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
977  BAD_CAST(OString::boolean(mbEmptyDbFieldHidesPara).getStr()));
978  (void)xmlTextWriterEndElement(pWriter);
979 
980  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbContinuousEndnotes"));
981  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
982  BAD_CAST(OString::boolean(mbContinuousEndnotes).getStr()));
983  (void)xmlTextWriterEndElement(pWriter);
984 
985  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHeaderSpacingBelowLastPara"));
986  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
987  BAD_CAST(OString::boolean(mbHeaderSpacingBelowLastPara).getStr()));
988  (void)xmlTextWriterEndElement(pWriter);
989 
990  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFrameAutowidthWithMorePara"));
991  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
992  BAD_CAST(OString::boolean(mbFrameAutowidthWithMorePara).getStr()));
993  (void)xmlTextWriterEndElement(pWriter);
994 
995  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbGutterAtTop"));
996  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
997  BAD_CAST(OString::boolean(mbGutterAtTop).getStr()));
998  (void)xmlTextWriterEndElement(pWriter);
999 
1000  (void)xmlTextWriterEndElement(pWriter);
1001 }
1002 
1003 /* 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:1041
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:1208
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:2575
size_t size() const
Definition: docary.hxx:88
IDocumentState const & getIDocumentState() const
Definition: doc.cxx:394
void SetCountPhantoms(bool bCountPhantoms)
Definition: number.cxx:1054
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