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