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>
29 #include <osl/diagnose.h>
30 #include <svx/svdmodel.hxx>
31 #include <svl/asiancfg.hxx>
33 #include <unotools/configmgr.hxx>
34 #include <drawdoc.hxx>
35 #include <swmodule.hxx>
36 #include <linkenum.hxx>
37 #include <rootfrm.hxx>
38 #include <breakit.hxx>
39 #include <docary.hxx>
40 
41 /* IDocumentSettingAccess */
42 
44  :m_rDoc(rDoc),
45  mnLinkUpdMode( GLOBALSETTING ),
46  meFieldUpdMode( AUTOUPD_GLOBALSETTING ),
47  meChrCmprType( CharCompressType::NONE ),
48  mn32DummyCompatibilityOptions1(0),
49  mn32DummyCompatibilityOptions2(0),
50  mbHTMLMode(false),
51  mbIsGlobalDoc(false),
52  mbGlblDocSaveLinks(false),
53  mbIsLabelDoc(false),
54  mbPurgeOLE(true),
55  mbKernAsianPunctuation(false),
56 
57  // COMPATIBILITY FLAGS START
58 
59  mbAddFlyOffsets(false),
60  mbAddVerticalFlyOffsets(false),
61  mbUseHiResolutionVirtualDevice(true),
62  mbMathBaselineAlignment(false), // default for *old* documents is 'off'
63  mbStylesNoDefault(false),
64  mbFloattableNomargins(false),
65  mEmbedFonts(false),
66  mEmbedUsedFonts(false),
67  mEmbedLatinScriptFonts(true),
68  mEmbedAsianScriptFonts(true),
69  mEmbedComplexScriptFonts(true),
70  mEmbedSystemFonts(false),
71  mbOldNumbering(false),
72  mbIgnoreFirstLineIndentInNumbering(false),
73  mbDoNotResetParaAttrsForNumFont(false),
74  mbTableRowKeep(false),
75  mbIgnoreTabsAndBlanksForLineCalculation(false),
76  mbDoNotCaptureDrawObjsOnPage(false),
77  mbClipAsCharacterAnchoredWriterFlyFrames(false),
78  mbUnixForceZeroExtLeading(false),
79  mbTabRelativeToIndent(true),
80  mbProtectForm(false), // i#78591#
81  mbMsWordCompTrailingBlanks(false), // tdf#104349 tdf#104668
82  mbMsWordCompMinLineHeightByFly(false),
83  mbInvertBorderSpacing (false),
84  mbCollapseEmptyCellPara(true),
85  mbTabAtLeftIndentForParagraphsInList(false), //#i89181#
86  mbSmallCapsPercentage66(false),
87  mbTabOverflow(true),
88  mbUnbreakableNumberings(false),
89  mbClippedPictures(false),
90  mbBackgroundParaOverDrawings(false),
91  mbTabOverMargin(false),
92  mbTreatSingleColumnBreakAsPageBreak(false),
93  mbSurroundTextWrapSmall(false),
94  mbPropLineSpacingShrinksFirstLine(true),
95  mbSubtractFlys(false),
96  mApplyParagraphMarkFormatToNumbering(false),
97  mbLastBrowseMode( false ),
98  mbDisableOffPagePositioning ( false ),
99  mbProtectBookmarks(false),
100  mbProtectFields(false),
101  mbHeaderSpacingBelowLastPara(false),
102  mbFrameAutowidthWithMorePara(false),
103  mbGutterAtTop(false)
104 
105  // COMPATIBILITY FLAGS END
106 {
107  // COMPATIBILITY FLAGS START
108 
109  // Note: Any non-hidden compatibility flag should obtain its default
110  // by asking SvtCompatibilityOptions, see below.
111 
113  {
114  const SvtCompatibilityOptions aOptions;
132  }
133  else
134  {
135  mbParaSpaceMax = false;
136  mbParaSpaceMaxAtPages = false;
137  mbTabCompat = true;
138  mbUseVirtualDevice = true;
139  mbAddExternalLeading = true;
140  mbOldLineSpacing = false;
143  mbUseFormerObjectPos = false;
144  mbUseFormerTextWrapping = false;
145  mbConsiderWrapOnObjPos = false;
147  mbProtectForm = false;
149  mbSubtractFlys = false;
151  }
152 
153  // COMPATIBILITY FLAGS END
154 
155 }
156 
157 
159 {
160 }
161 
162 /* IDocumentSettingAccess */
164 {
165  switch (id)
166  {
167  // COMPATIBILITY FLAGS START
168  case DocumentSettingId::PARA_SPACE_MAX: return mbParaSpaceMax; //(n8Dummy1 & DUMMY_PARASPACEMAX);
169  case DocumentSettingId::PARA_SPACE_MAX_AT_PAGES: return mbParaSpaceMaxAtPages; //(n8Dummy1 & DUMMY_PARASPACEMAX_AT_PAGES);
170  case DocumentSettingId::TAB_COMPAT: return mbTabCompat; //(n8Dummy1 & DUMMY_TAB_COMPAT);
171  case DocumentSettingId::ADD_FLY_OFFSETS: return mbAddFlyOffsets; //(n8Dummy2 & DUMMY_ADD_FLY_OFFSETS);
172  case DocumentSettingId::ADD_VERTICAL_FLY_OFFSETS: return mbAddVerticalFlyOffsets;
173  case DocumentSettingId::ADD_EXT_LEADING: return mbAddExternalLeading; //(n8Dummy2 & DUMMY_ADD_EXTERNAL_LEADING);
174  case DocumentSettingId::USE_VIRTUAL_DEVICE: return mbUseVirtualDevice; //(n8Dummy1 & DUMMY_USE_VIRTUAL_DEVICE);
175  case DocumentSettingId::USE_HIRES_VIRTUAL_DEVICE: return mbUseHiResolutionVirtualDevice; //(n8Dummy2 & DUMMY_USE_HIRES_VIR_DEV);
176  case DocumentSettingId::OLD_NUMBERING: return mbOldNumbering;
177  case DocumentSettingId::OLD_LINE_SPACING: return mbOldLineSpacing;
178  case DocumentSettingId::ADD_PARA_SPACING_TO_TABLE_CELLS: return mbAddParaSpacingToTableCells;
179  case DocumentSettingId::ADD_PARA_LINE_SPACING_TO_TABLE_CELLS: return mbAddParaLineSpacingToTableCells;
180  case DocumentSettingId::USE_FORMER_OBJECT_POS: return mbUseFormerObjectPos;
181  case DocumentSettingId::USE_FORMER_TEXT_WRAPPING: return mbUseFormerTextWrapping;
182  case DocumentSettingId::CONSIDER_WRAP_ON_OBJECT_POSITION: return mbConsiderWrapOnObjPos;
183  case DocumentSettingId::DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK: return mbDoNotJustifyLinesWithManualBreak;
184  case DocumentSettingId::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING: return mbIgnoreFirstLineIndentInNumbering;
185  case DocumentSettingId::TABLE_ROW_KEEP: return mbTableRowKeep;
186  case DocumentSettingId::IGNORE_TABS_AND_BLANKS_FOR_LINE_CALCULATION: return mbIgnoreTabsAndBlanksForLineCalculation;
187  case DocumentSettingId::DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE: return mbDoNotCaptureDrawObjsOnPage;
188  // #i68949#
189  case DocumentSettingId::CLIP_AS_CHARACTER_ANCHORED_WRITER_FLY_FRAME: return mbClipAsCharacterAnchoredWriterFlyFrames;
190  case DocumentSettingId::UNIX_FORCE_ZERO_EXT_LEADING: return mbUnixForceZeroExtLeading;
191  case DocumentSettingId::TABS_RELATIVE_TO_INDENT : return mbTabRelativeToIndent;
192  case DocumentSettingId::PROTECT_FORM: return mbProtectForm;
193  // tdf#104349 tdf#104668
194  case DocumentSettingId::MS_WORD_COMP_TRAILING_BLANKS: return mbMsWordCompTrailingBlanks;
195  case DocumentSettingId::MS_WORD_COMP_MIN_LINE_HEIGHT_BY_FLY: return mbMsWordCompMinLineHeightByFly;
196  // #i89181#
197  case DocumentSettingId::TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST: return mbTabAtLeftIndentForParagraphsInList;
198  case DocumentSettingId::INVERT_BORDER_SPACING: return mbInvertBorderSpacing;
199  case DocumentSettingId::COLLAPSE_EMPTY_CELL_PARA: return mbCollapseEmptyCellPara;
200  case DocumentSettingId::SMALL_CAPS_PERCENTAGE_66: return mbSmallCapsPercentage66;
201  case DocumentSettingId::TAB_OVERFLOW: return mbTabOverflow;
202  case DocumentSettingId::UNBREAKABLE_NUMBERINGS: return mbUnbreakableNumberings;
203  case DocumentSettingId::CLIPPED_PICTURES: return mbClippedPictures;
204  case DocumentSettingId::BACKGROUND_PARA_OVER_DRAWINGS: return mbBackgroundParaOverDrawings;
205  case DocumentSettingId::TAB_OVER_MARGIN: return mbTabOverMargin;
206  case DocumentSettingId::TREAT_SINGLE_COLUMN_BREAK_AS_PAGE_BREAK: return mbTreatSingleColumnBreakAsPageBreak;
207  case DocumentSettingId::SURROUND_TEXT_WRAP_SMALL: return mbSurroundTextWrapSmall;
208  case DocumentSettingId::PROP_LINE_SPACING_SHRINKS_FIRST_LINE: return mbPropLineSpacingShrinksFirstLine;
209  case DocumentSettingId::SUBTRACT_FLYS: return mbSubtractFlys;
210 
211  case DocumentSettingId::BROWSE_MODE: return mbLastBrowseMode; // Attention: normally the SwViewShell has to be asked!
212  case DocumentSettingId::HTML_MODE: return mbHTMLMode;
213  case DocumentSettingId::GLOBAL_DOCUMENT: return mbIsGlobalDoc;
214  case DocumentSettingId::GLOBAL_DOCUMENT_SAVE_LINKS: return mbGlblDocSaveLinks;
215  case DocumentSettingId::LABEL_DOCUMENT: return mbIsLabelDoc;
216  case DocumentSettingId::PURGE_OLE: return mbPurgeOLE;
217  case DocumentSettingId::KERN_ASIAN_PUNCTUATION: return mbKernAsianPunctuation;
218  case DocumentSettingId::DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT: return mbDoNotResetParaAttrsForNumFont;
219  case DocumentSettingId::MATH_BASELINE_ALIGNMENT: return mbMathBaselineAlignment;
220  case DocumentSettingId::STYLES_NODEFAULT: return mbStylesNoDefault;
221  case DocumentSettingId::FLOATTABLE_NOMARGINS: return mbFloattableNomargins;
222  case DocumentSettingId::EMBED_FONTS: return mEmbedFonts;
223  case DocumentSettingId::EMBED_USED_FONTS: return mEmbedUsedFonts;
224  case DocumentSettingId::EMBED_LATIN_SCRIPT_FONTS: return mEmbedLatinScriptFonts;
225  case DocumentSettingId::EMBED_ASIAN_SCRIPT_FONTS: return mEmbedAsianScriptFonts;
226  case DocumentSettingId::EMBED_COMPLEX_SCRIPT_FONTS: return mEmbedComplexScriptFonts;
227  case DocumentSettingId::EMBED_SYSTEM_FONTS: return mEmbedSystemFonts;
228  case DocumentSettingId::APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING: return mApplyParagraphMarkFormatToNumbering;
229  case DocumentSettingId::DISABLE_OFF_PAGE_POSITIONING: return mbDisableOffPagePositioning;
230  case DocumentSettingId::EMPTY_DB_FIELD_HIDES_PARA: return mbEmptyDbFieldHidesPara;
231  case DocumentSettingId::CONTINUOUS_ENDNOTES: return mbContinuousEndnotes;
232  case DocumentSettingId::PROTECT_BOOKMARKS: return mbProtectBookmarks;
233  case DocumentSettingId::PROTECT_FIELDS: return mbProtectFields;
234  case DocumentSettingId::HEADER_SPACING_BELOW_LAST_PARA: return mbHeaderSpacingBelowLastPara;
235  case DocumentSettingId::FRAME_AUTOWIDTH_WITH_MORE_PARA: return mbFrameAutowidthWithMorePara;
237  return mbGutterAtTop;
238  default:
239  OSL_FAIL("Invalid setting id");
240  }
241  return false;
242 }
243 
244 void sw::DocumentSettingManager::set(/*[in]*/ DocumentSettingId id, /*[in]*/ bool value)
245 {
246  switch (id)
247  {
248  // COMPATIBILITY FLAGS START
250  mbParaSpaceMax = value;
251  break;
253  mbParaSpaceMaxAtPages = value;
254  break;
256  mbTabCompat = value;
257  break;
259  mbAddFlyOffsets = value;
260  break;
262  mbAddVerticalFlyOffsets = value;
263  break;
265  mbAddExternalLeading = value;
266  break;
268  mbUseVirtualDevice = value;
269  break;
271  mbUseHiResolutionVirtualDevice = value;
272  break;
274  if (mbOldNumbering != value)
275  {
276  mbOldNumbering = value;
277 
278  const SwNumRuleTable& rNmTable = m_rDoc.GetNumRuleTable();
279  for( SwNumRuleTable::size_type n = 0; n < rNmTable.size(); ++n )
280  rNmTable[n]->SetInvalidRule(true);
281 
283 
284  SwNumRule *pOutlineRule = m_rDoc.GetOutlineNumRule();
285  if (pOutlineRule)
286  {
287  pOutlineRule->Validate();
288  // counting of phantoms depends on <IsOldNumbering()>
289  pOutlineRule->SetCountPhantoms( !mbOldNumbering );
290  }
291  }
292  break;
294  mbOldLineSpacing = value;
295  break;
297  mbAddParaSpacingToTableCells = value;
298  break;
300  mbAddParaLineSpacingToTableCells = value;
301  break;
303  mbUseFormerObjectPos = value;
304  break;
306  mbUseFormerTextWrapping = value;
307  break;
309  mbConsiderWrapOnObjPos = value;
310  break;
312  mbDoNotJustifyLinesWithManualBreak = value;
313  break;
315  mbIgnoreFirstLineIndentInNumbering = value;
316  break;
317 
319  mbTableRowKeep = value;
320  break;
321 
323  mbIgnoreTabsAndBlanksForLineCalculation = value;
324  break;
325 
327  mbDoNotCaptureDrawObjsOnPage = value;
328  break;
329 
330  // #i68949#
332  mbClipAsCharacterAnchoredWriterFlyFrames = value;
333  break;
334 
336  mbUnixForceZeroExtLeading = value;
337  break;
338 
340  mbProtectForm = value;
341  break;
342 
343  // tdf#140349
345  mbMsWordCompTrailingBlanks = value;
346  break;
347 
349  mbMsWordCompMinLineHeightByFly = value;
350  break;
351 
353  mbTabRelativeToIndent = value;
354  break;
355  // #i89181#
357  mbTabAtLeftIndentForParagraphsInList = value;
358  break;
359 
361  mbInvertBorderSpacing = value;
362  break;
363 
365  mbCollapseEmptyCellPara = value;
366  break;
367 
369  mbSmallCapsPercentage66 = value;
370  break;
371 
373  mbTabOverflow = value;
374  break;
375 
377  mbUnbreakableNumberings = value;
378  break;
379 
381  mbClippedPictures = value;
382  break;
383 
385  mbBackgroundParaOverDrawings = value;
386  break;
387 
389  mbTabOverMargin = value;
390  break;
391 
393  mbTreatSingleColumnBreakAsPageBreak = value;
394  break;
395 
397  mbSurroundTextWrapSmall = value;
398  break;
399 
401  mbPropLineSpacingShrinksFirstLine = value;
402  break;
403 
405  mbSubtractFlys = value;
406  break;
407 
408  // COMPATIBILITY FLAGS END
409 
410  case DocumentSettingId::BROWSE_MODE: //can be used temporary (load/save) when no SwViewShell is available
411  mbLastBrowseMode = value;
412  break;
413 
415  mbHTMLMode = value;
416  break;
417 
419  mbIsGlobalDoc = value;
420  break;
421 
423  mbGlblDocSaveLinks = value;
424  break;
425 
427  mbIsLabelDoc = value;
428  break;
429 
431  mbPurgeOLE = value;
432  break;
433 
435  mbKernAsianPunctuation = value;
436  break;
437 
439  mbDoNotResetParaAttrsForNumFont = value;
440  break;
442  mbMathBaselineAlignment = value;
443  break;
445  mbStylesNoDefault = value;
446  break;
448  mbFloattableNomargins = value;
449  break;
451  mEmbedFonts = value;
452  break;
454  mEmbedUsedFonts = value;
455  break;
457  mEmbedLatinScriptFonts = value;
458  break;
460  mEmbedAsianScriptFonts = value;
461  break;
463  mEmbedComplexScriptFonts = value;
464  break;
466  mEmbedSystemFonts = value;
467  break;
469  mApplyParagraphMarkFormatToNumbering = value;
470  break;
472  mbDisableOffPagePositioning = value;
473  break;
475  mbEmptyDbFieldHidesPara = value;
476  break;
478  mbContinuousEndnotes = value;
479  break;
481  mbProtectBookmarks = value;
482  break;
484  mbProtectFields = value;
485  break;
487  mbHeaderSpacingBelowLastPara = value;
488  break;
490  mbFrameAutowidthWithMorePara = value;
491  break;
493  mbGutterAtTop = value;
494  break;
495  default:
496  OSL_FAIL("Invalid setting id");
497  }
498 }
499 
500 const css::i18n::ForbiddenCharacters*
501  sw::DocumentSettingManager::getForbiddenCharacters(/*[in]*/ LanguageType nLang, /*[in]*/ bool bLocaleData ) const
502 {
503  const css::i18n::ForbiddenCharacters* pRet = nullptr;
504  if (mxForbiddenCharsTable)
505  pRet = mxForbiddenCharsTable->GetForbiddenCharacters( nLang, false );
506  if( bLocaleData && !pRet && g_pBreakIt )
507  pRet = &g_pBreakIt->GetForbidden( nLang );
508  return pRet;
509 }
510 
512  /*[in]*/ const css::i18n::ForbiddenCharacters& rFChars )
513 {
514  if (!mxForbiddenCharsTable)
516  mxForbiddenCharsTable->SetForbiddenCharacters( nLang, rFChars );
517 
519  if( pDrawModel )
520  {
521  pDrawModel->SetForbiddenCharsTable(mxForbiddenCharsTable);
522  if( !m_rDoc.IsInReading() )
523  pDrawModel->ReformatAllTextObjects();
524  }
525 
527  if( pTmpRoot && !m_rDoc.IsInReading() )
528  {
529  pTmpRoot->StartAllAction();
530  for(SwRootFrame* aLayout : m_rDoc.GetAllLayouts())
531  aLayout->InvalidateAllContent(SwInvalidateFlags::Size);
532  pTmpRoot->EndAllAction();
533  }
535 }
536 
537 std::shared_ptr<SvxForbiddenCharactersTable>& sw::DocumentSettingManager::getForbiddenCharacterTable()
538 {
539  if (!mxForbiddenCharsTable)
541  return mxForbiddenCharsTable;
542 }
543 
544 const std::shared_ptr<SvxForbiddenCharactersTable>& sw::DocumentSettingManager::getForbiddenCharacterTable() const
545 {
546  return mxForbiddenCharsTable;
547 }
548 
549 sal_uInt16 sw::DocumentSettingManager::getLinkUpdateMode( /*[in]*/bool bGlobalSettings ) const
550 {
551  sal_uInt16 nRet = mnLinkUpdMode;
552  if( bGlobalSettings && GLOBALSETTING == nRet )
553  nRet = SW_MOD()->GetLinkUpdMode();
554  return nRet;
555 }
556 
557 void sw::DocumentSettingManager::setLinkUpdateMode( /*[in]*/sal_uInt16 eMode )
558 {
559  mnLinkUpdMode = eMode;
560 }
561 
563 {
564  SwFieldUpdateFlags eRet = meFieldUpdMode;
565  if( bGlobalSettings && AUTOUPD_GLOBALSETTING == eRet )
566  eRet = SW_MOD()->GetFieldUpdateFlags();
567  return eRet;
568 }
569 
571 {
572  meFieldUpdMode = eMode;
573 }
574 
576 {
577  return meChrCmprType;
578 }
579 
581 {
582  if( meChrCmprType == n )
583  return;
584 
585  meChrCmprType = n;
586 
588  if( pDrawModel )
589  {
590  pDrawModel->SetCharCompressType( n );
591  if( !m_rDoc.IsInReading() )
592  pDrawModel->ReformatAllTextObjects();
593  }
594 
596  if( pTmpRoot && !m_rDoc.IsInReading() )
597  {
598  pTmpRoot->StartAllAction();
599  for( auto aLayout : m_rDoc.GetAllLayouts() )
600  aLayout->InvalidateAllContent(SwInvalidateFlags::Size);
601  pTmpRoot->EndAllAction();
602  }
604 }
605 
606 
608 {
609  Setn32DummyCompatibilityOptions1( rSource.Getn32DummyCompatibilityOptions1() );
610  Setn32DummyCompatibilityOptions2( rSource.Getn32DummyCompatibilityOptions2() );
611 
612  // No mbHTMLMode
613  // No mbIsGlobalDoc
614  // No mbGlblDocSaveLinks
615  // No mbIsLabelDoc
616  // No mbPurgeOLE
617  // No mbKernAsianPunctuation
618  mbParaSpaceMax = rSource.mbParaSpaceMax;
619  mbParaSpaceMaxAtPages = rSource.mbParaSpaceMaxAtPages;
620  mbTabCompat = rSource.mbTabCompat;
621  mbUseVirtualDevice = rSource.mbUseVirtualDevice;
622  mbAddFlyOffsets = rSource.mbAddFlyOffsets;
623  // No mbAddVerticalFlyOffsets
624  mbAddExternalLeading = rSource.mbAddExternalLeading;
625  mbUseHiResolutionVirtualDevice = rSource.mbUseHiResolutionVirtualDevice;
626  mbOldLineSpacing = rSource.mbOldLineSpacing;
627  mbAddParaSpacingToTableCells = rSource.mbAddParaSpacingToTableCells;
628  mbAddParaLineSpacingToTableCells = rSource.mbAddParaLineSpacingToTableCells;
629  mbUseFormerObjectPos = rSource.mbUseFormerObjectPos;
630  mbUseFormerTextWrapping = rSource.mbUseFormerTextWrapping;
631  mbConsiderWrapOnObjPos = rSource.mbConsiderWrapOnObjPos;
632  // No mbMathBaselineAlignment
633  // No mbStylesNoDefault
634  // No mbFloattableNomargins
635  mbOldNumbering = rSource.mbOldNumbering;
636  mbIgnoreFirstLineIndentInNumbering = rSource.mbIgnoreFirstLineIndentInNumbering;
637  mbDoNotJustifyLinesWithManualBreak = rSource.mbDoNotJustifyLinesWithManualBreak;
638  mbDoNotResetParaAttrsForNumFont = rSource.mbDoNotResetParaAttrsForNumFont;
639  mbTableRowKeep = rSource.mbTableRowKeep;
640  mbIgnoreTabsAndBlanksForLineCalculation = rSource.mbIgnoreTabsAndBlanksForLineCalculation;
641  mbDoNotCaptureDrawObjsOnPage = rSource.mbDoNotCaptureDrawObjsOnPage;
642  mbClipAsCharacterAnchoredWriterFlyFrames = rSource.mbClipAsCharacterAnchoredWriterFlyFrames;
643  mbUnixForceZeroExtLeading = rSource.mbUnixForceZeroExtLeading;
644  mbTabRelativeToIndent = rSource.mbTabRelativeToIndent;
645  // No mbProtectForm
646  mbMsWordCompTrailingBlanks = rSource.mbMsWordCompTrailingBlanks;
647  mbMsWordCompMinLineHeightByFly = rSource.mbMsWordCompMinLineHeightByFly;
648  // No mbInvertBorderSpacing
649  mbCollapseEmptyCellPara = rSource.mbCollapseEmptyCellPara;
650  mbTabAtLeftIndentForParagraphsInList = rSource.mbTabAtLeftIndentForParagraphsInList;
651  mbSmallCapsPercentage66 = rSource.mbSmallCapsPercentage66;
652  mbTabOverflow = rSource.mbTabOverflow;
653  mbUnbreakableNumberings = rSource.mbUnbreakableNumberings;
654  mbClippedPictures = rSource.mbClippedPictures;
655  mbBackgroundParaOverDrawings = rSource.mbBackgroundParaOverDrawings;
656  mbTabOverMargin = rSource.mbTabOverMargin;
657  mbTreatSingleColumnBreakAsPageBreak = rSource.mbTreatSingleColumnBreakAsPageBreak;
658  mbSurroundTextWrapSmall = rSource.mbSurroundTextWrapSmall;
659  mbPropLineSpacingShrinksFirstLine = rSource.mbPropLineSpacingShrinksFirstLine;
660  mbSubtractFlys = rSource.mbSubtractFlys;
661  // No mbLastBrowseMode: this is false by default everywhere
662  mbDisableOffPagePositioning = rSource.mbDisableOffPagePositioning;
663  mbEmptyDbFieldHidesPara = rSource.mbEmptyDbFieldHidesPara;
664  mbContinuousEndnotes = rSource.mbContinuousEndnotes;
665  // No mbProtectBookmarks: this is false by default everywhere
666  // No mbProtectFields: this is false by default everywhere
667  mbHeaderSpacingBelowLastPara = rSource.mbHeaderSpacingBelowLastPara;
668  mbFrameAutowidthWithMorePara = rSource.mbFrameAutowidthWithMorePara;
669 }
670 
672 {
673  return mn32DummyCompatibilityOptions1;
674 }
675 
676 void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions1( const sal_uInt32 CompatibilityOptions1 )
677 {
678  mn32DummyCompatibilityOptions1 = CompatibilityOptions1;
679 }
680 
682 {
683  return mn32DummyCompatibilityOptions2;
684 }
685 
686 void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions2( const sal_uInt32 CompatibilityOptions2 )
687 {
688  mn32DummyCompatibilityOptions2 = CompatibilityOptions2;
689 }
690 
692 {
693  xmlTextWriterStartElement(pWriter, BAD_CAST("DocumentSettingManager"));
694 
695  xmlTextWriterStartElement(pWriter, BAD_CAST("mbHTMLMode"));
696  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
697  BAD_CAST(OString::boolean(mbHTMLMode).getStr()));
698  xmlTextWriterEndElement(pWriter);
699 
700  xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsGlobalDoc"));
701  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
702  BAD_CAST(OString::boolean(mbIsGlobalDoc).getStr()));
703  xmlTextWriterEndElement(pWriter);
704 
705  xmlTextWriterStartElement(pWriter, BAD_CAST("mbGlblDocSaveLinks"));
706  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
707  BAD_CAST(OString::boolean(mbGlblDocSaveLinks).getStr()));
708  xmlTextWriterEndElement(pWriter);
709 
710  xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsLabelDoc"));
711  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
712  BAD_CAST(OString::boolean(mbIsLabelDoc).getStr()));
713  xmlTextWriterEndElement(pWriter);
714 
715  xmlTextWriterStartElement(pWriter, BAD_CAST("mbPurgeOLE"));
716  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
717  BAD_CAST(OString::boolean(mbPurgeOLE).getStr()));
718  xmlTextWriterEndElement(pWriter);
719 
720  xmlTextWriterStartElement(pWriter, BAD_CAST("mbKernAsianPunctuation"));
721  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
722  BAD_CAST(OString::boolean(mbKernAsianPunctuation).getStr()));
723  xmlTextWriterEndElement(pWriter);
724 
725  xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMax"));
726  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
727  BAD_CAST(OString::boolean(mbParaSpaceMax).getStr()));
728  xmlTextWriterEndElement(pWriter);
729 
730  xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMaxAtPages"));
731  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
732  BAD_CAST(OString::boolean(mbParaSpaceMaxAtPages).getStr()));
733  xmlTextWriterEndElement(pWriter);
734 
735  xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabCompat"));
736  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
737  BAD_CAST(OString::boolean(mbTabCompat).getStr()));
738  xmlTextWriterEndElement(pWriter);
739 
740  xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseVirtualDevice"));
741  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
742  BAD_CAST(OString::boolean(mbUseVirtualDevice).getStr()));
743  xmlTextWriterEndElement(pWriter);
744 
745  xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddFlyOffsets"));
746  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
747  BAD_CAST(OString::boolean(mbAddFlyOffsets).getStr()));
748  xmlTextWriterEndElement(pWriter);
749 
750  xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddVerticalFlyOffsets"));
751  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
752  BAD_CAST(OString::boolean(mbAddVerticalFlyOffsets).getStr()));
753  xmlTextWriterEndElement(pWriter);
754 
755  xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddExternalLeading"));
756  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
757  BAD_CAST(OString::boolean(mbAddExternalLeading).getStr()));
758  xmlTextWriterEndElement(pWriter);
759 
760  xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseHiResolutionVirtualDevice"));
761  xmlTextWriterWriteAttribute(
762  pWriter, BAD_CAST("value"),
763  BAD_CAST(OString::boolean(mbUseHiResolutionVirtualDevice).getStr()));
764  xmlTextWriterEndElement(pWriter);
765 
766  xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldLineSpacing"));
767  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
768  BAD_CAST(OString::boolean(mbOldLineSpacing).getStr()));
769  xmlTextWriterEndElement(pWriter);
770 
771  xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaSpacingToTableCells"));
772  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
773  BAD_CAST(OString::boolean(mbAddParaSpacingToTableCells).getStr()));
774  xmlTextWriterEndElement(pWriter);
775  xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaLineSpacingToTableCells"));
776  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
777  BAD_CAST(OString::boolean(mbAddParaLineSpacingToTableCells).getStr()));
778  xmlTextWriterEndElement(pWriter);
779 
780  xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerObjectPos"));
781  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
782  BAD_CAST(OString::boolean(mbUseFormerObjectPos).getStr()));
783  xmlTextWriterEndElement(pWriter);
784 
785  xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerTextWrapping"));
786  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
787  BAD_CAST(OString::boolean(mbUseFormerTextWrapping).getStr()));
788  xmlTextWriterEndElement(pWriter);
789 
790  xmlTextWriterStartElement(pWriter, BAD_CAST("mbConsiderWrapOnObjPos"));
791  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
792  BAD_CAST(OString::boolean(mbConsiderWrapOnObjPos).getStr()));
793  xmlTextWriterEndElement(pWriter);
794 
795  xmlTextWriterStartElement(pWriter, BAD_CAST("mbMathBaselineAlignment"));
796  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
797  BAD_CAST(OString::boolean(mbMathBaselineAlignment).getStr()));
798  xmlTextWriterEndElement(pWriter);
799 
800  xmlTextWriterStartElement(pWriter, BAD_CAST("mbStylesNoDefault"));
801  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
802  BAD_CAST(OString::boolean(mbStylesNoDefault).getStr()));
803  xmlTextWriterEndElement(pWriter);
804 
805  xmlTextWriterStartElement(pWriter, BAD_CAST("mbFloattableNomargins"));
806  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
807  BAD_CAST(OString::boolean(mbFloattableNomargins).getStr()));
808  xmlTextWriterEndElement(pWriter);
809 
810  xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldNumbering"));
811  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
812  BAD_CAST(OString::boolean(mbOldNumbering).getStr()));
813  xmlTextWriterEndElement(pWriter);
814 
815  xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreFirstLineIndentInNumbering"));
816  xmlTextWriterWriteAttribute(
817  pWriter, BAD_CAST("value"),
818  BAD_CAST(OString::boolean(mbIgnoreFirstLineIndentInNumbering).getStr()));
819  xmlTextWriterEndElement(pWriter);
820 
821  xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotJustifyLinesWithManualBreak"));
822  xmlTextWriterWriteAttribute(
823  pWriter, BAD_CAST("value"),
824  BAD_CAST(OString::boolean(mbDoNotJustifyLinesWithManualBreak).getStr()));
825  xmlTextWriterEndElement(pWriter);
826 
827  xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotResetParaAttrsForNumFont"));
828  xmlTextWriterWriteAttribute(
829  pWriter, BAD_CAST("value"),
830  BAD_CAST(OString::boolean(mbDoNotResetParaAttrsForNumFont).getStr()));
831  xmlTextWriterEndElement(pWriter);
832 
833  xmlTextWriterStartElement(pWriter, BAD_CAST("mbTableRowKeep"));
834  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
835  BAD_CAST(OString::boolean(mbTableRowKeep).getStr()));
836  xmlTextWriterEndElement(pWriter);
837 
838  xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreTabsAndBlanksForLineCalculation"));
839  xmlTextWriterWriteAttribute(
840  pWriter, BAD_CAST("value"),
841  BAD_CAST(OString::boolean(mbIgnoreTabsAndBlanksForLineCalculation).getStr()));
842  xmlTextWriterEndElement(pWriter);
843 
844  xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotCaptureDrawObjsOnPage"));
845  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
846  BAD_CAST(OString::boolean(mbDoNotCaptureDrawObjsOnPage).getStr()));
847  xmlTextWriterEndElement(pWriter);
848 
849  xmlTextWriterStartElement(pWriter, BAD_CAST("mbClipAsCharacterAnchoredWriterFlyFrames"));
850  xmlTextWriterWriteAttribute(
851  pWriter, BAD_CAST("value"),
852  BAD_CAST(OString::boolean(mbClipAsCharacterAnchoredWriterFlyFrames).getStr()));
853  xmlTextWriterEndElement(pWriter);
854 
855  xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnixForceZeroExtLeading"));
856  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
857  BAD_CAST(OString::boolean(mbUnixForceZeroExtLeading).getStr()));
858  xmlTextWriterEndElement(pWriter);
859 
860  xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabRelativeToIndent"));
861  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
862  BAD_CAST(OString::boolean(mbTabRelativeToIndent).getStr()));
863  xmlTextWriterEndElement(pWriter);
864 
865  xmlTextWriterStartElement(pWriter, BAD_CAST("mbProtectForm"));
866  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
867  BAD_CAST(OString::boolean(mbProtectForm).getStr()));
868  xmlTextWriterEndElement(pWriter);
869 
870  xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompTrailingBlanks"));
871  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
872  BAD_CAST(OString::boolean(mbMsWordCompTrailingBlanks).getStr()));
873  xmlTextWriterEndElement(pWriter);
874 
875  xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompMinLineHeightByFly"));
876  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
877  BAD_CAST(OString::boolean(mbMsWordCompMinLineHeightByFly).getStr()));
878  xmlTextWriterEndElement(pWriter);
879 
880  xmlTextWriterStartElement(pWriter, BAD_CAST("mbInvertBorderSpacing"));
881  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
882  BAD_CAST(OString::boolean(mbInvertBorderSpacing).getStr()));
883  xmlTextWriterEndElement(pWriter);
884 
885  xmlTextWriterStartElement(pWriter, BAD_CAST("mbCollapseEmptyCellPara"));
886  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
887  BAD_CAST(OString::boolean(mbCollapseEmptyCellPara).getStr()));
888  xmlTextWriterEndElement(pWriter);
889 
890  xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabAtLeftIndentForParagraphsInList"));
891  xmlTextWriterWriteAttribute(
892  pWriter, BAD_CAST("value"),
893  BAD_CAST(OString::boolean(mbTabAtLeftIndentForParagraphsInList).getStr()));
894  xmlTextWriterEndElement(pWriter);
895 
896  xmlTextWriterStartElement(pWriter, BAD_CAST("mbSmallCapsPercentage66"));
897  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
898  BAD_CAST(OString::boolean(mbSmallCapsPercentage66).getStr()));
899  xmlTextWriterEndElement(pWriter);
900 
901  xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverflow"));
902  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
903  BAD_CAST(OString::boolean(mbTabOverflow).getStr()));
904  xmlTextWriterEndElement(pWriter);
905 
906  xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnbreakableNumberings"));
907  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
908  BAD_CAST(OString::boolean(mbUnbreakableNumberings).getStr()));
909  xmlTextWriterEndElement(pWriter);
910 
911  xmlTextWriterStartElement(pWriter, BAD_CAST("mbClippedPictures"));
912  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
913  BAD_CAST(OString::boolean(mbClippedPictures).getStr()));
914  xmlTextWriterEndElement(pWriter);
915 
916  xmlTextWriterStartElement(pWriter, BAD_CAST("mbBackgroundParaOverDrawings"));
917  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
918  BAD_CAST(OString::boolean(mbBackgroundParaOverDrawings).getStr()));
919  xmlTextWriterEndElement(pWriter);
920 
921  xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverMargin"));
922  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
923  BAD_CAST(OString::boolean(mbTabOverMargin).getStr()));
924  xmlTextWriterEndElement(pWriter);
925 
926  xmlTextWriterStartElement(pWriter, BAD_CAST("mbTreatSingleColumnBreakAsPageBreak"));
927  xmlTextWriterWriteAttribute(
928  pWriter, BAD_CAST("value"),
929  BAD_CAST(OString::boolean(mbTreatSingleColumnBreakAsPageBreak).getStr()));
930  xmlTextWriterEndElement(pWriter);
931 
932  xmlTextWriterStartElement(pWriter, BAD_CAST("mbSurroundTextWrapSmall"));
933  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
934  BAD_CAST(OString::boolean(mbSurroundTextWrapSmall).getStr()));
935  xmlTextWriterEndElement(pWriter);
936 
937  xmlTextWriterStartElement(pWriter, BAD_CAST("mbPropLineSpacingShrinksFirstLine"));
938  xmlTextWriterWriteAttribute(
939  pWriter, BAD_CAST("value"),
940  BAD_CAST(OString::boolean(mbPropLineSpacingShrinksFirstLine).getStr()));
941  xmlTextWriterEndElement(pWriter);
942 
943  xmlTextWriterStartElement(pWriter, BAD_CAST("mbSubtractFlys"));
944  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
945  BAD_CAST(OString::boolean(mbSubtractFlys).getStr()));
946  xmlTextWriterEndElement(pWriter);
947 
948  xmlTextWriterStartElement(pWriter, BAD_CAST("mbLastBrowseMode"));
949  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
950  BAD_CAST(OString::boolean(mbLastBrowseMode).getStr()));
951  xmlTextWriterEndElement(pWriter);
952 
953  xmlTextWriterStartElement(pWriter, BAD_CAST("mbDisableOffPagePositioning"));
954  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
955  BAD_CAST(OString::boolean(mbDisableOffPagePositioning).getStr()));
956  xmlTextWriterEndElement(pWriter);
957 
958  xmlTextWriterStartElement(pWriter, BAD_CAST("mbEmptyDbFieldHidesPara"));
959  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
960  BAD_CAST(OString::boolean(mbEmptyDbFieldHidesPara).getStr()));
961  xmlTextWriterEndElement(pWriter);
962 
963  xmlTextWriterStartElement(pWriter, BAD_CAST("mbContinuousEndnotes"));
964  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
965  BAD_CAST(OString::boolean(mbContinuousEndnotes).getStr()));
966  xmlTextWriterEndElement(pWriter);
967 
968  xmlTextWriterStartElement(pWriter, BAD_CAST("mbHeaderSpacingBelowLastPara"));
969  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
970  BAD_CAST(OString::boolean(mbHeaderSpacingBelowLastPara).getStr()));
971  xmlTextWriterEndElement(pWriter);
972 
973  xmlTextWriterStartElement(pWriter, BAD_CAST("mbFrameAutowidthWithMorePara"));
974  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
975  BAD_CAST(OString::boolean(mbFrameAutowidthWithMorePara).getStr()));
976  xmlTextWriterEndElement(pWriter);
977 
978  xmlTextWriterStartElement(pWriter, BAD_CAST("mbGutterAtTop"));
979  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
980  BAD_CAST(OString::boolean(mbGutterAtTop).getStr()));
981  xmlTextWriterEndElement(pWriter);
982 
983  xmlTextWriterEndElement(pWriter);
984 }
985 
986 /* 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:187
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 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:1206
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:1669
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:255
CharCompressType
std::vector< SwNumRule * >::size_type size_type
Definition: docary.hxx:63
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:84
IDocumentState const & getIDocumentState() const
Definition: doc.cxx:394
void SetCountPhantoms(bool bCountPhantoms)
Definition: number.cxx:1037
virtual void setCharacterCompressionType(CharCompressType nType) override
Set the character compression type for Asian characters.
bool IsInReading() const
Definition: doc.hxx:956
sal_uInt32 Getn32DummyCompatibilityOptions2() const override
Get the n32DummyCompatibilityOptions2.
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
Definition: doc.cxx:405
void Validate()
Definition: number.cxx:1024
virtual SwFieldUpdateFlags getFieldUpdateFlags(bool bGlobalSettings) const override
Get the current field update mode.
const SwNumRuleTable & GetNumRuleTable() const
Definition: doc.hxx:1068
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:1890
void EndAllAction(bool bVirDev=false)
Definition: pagechg.cxx:1902
const css::i18n::ForbiddenCharacters & GetForbidden(const LanguageType aLang)
Definition: breakit.hxx:103
SwNumRule * GetOutlineNumRule() const
Definition: doc.hxx:1026