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  mbTreatSingleColumnBreakAsPageBreak(false),
94  mbSurroundTextWrapSmall(false),
95  mbPropLineSpacingShrinksFirstLine(true),
96  mbSubtractFlys(false),
97  mApplyParagraphMarkFormatToNumbering(false),
98  mbLastBrowseMode( false ),
99  mbDisableOffPagePositioning ( false ),
100  mbProtectBookmarks(false),
101  mbProtectFields(false),
102  mbHeaderSpacingBelowLastPara(false),
103  mbFrameAutowidthWithMorePara(false),
104  mbGutterAtTop(false)
105 
106  // COMPATIBILITY FLAGS END
107 {
108  // COMPATIBILITY FLAGS START
109 
110  // Note: Any non-hidden compatibility flag should obtain its default
111  // by asking SvtCompatibilityOptions, see below.
112 
114  {
115  const SvtCompatibilityOptions aOptions;
133  }
134  else
135  {
136  mbParaSpaceMax = false;
137  mbParaSpaceMaxAtPages = false;
138  mbTabCompat = true;
139  mbUseVirtualDevice = true;
140  mbAddExternalLeading = true;
141  mbOldLineSpacing = false;
144  mbUseFormerObjectPos = false;
145  mbUseFormerTextWrapping = false;
146  mbConsiderWrapOnObjPos = false;
148  mbProtectForm = false;
150  mbSubtractFlys = false;
152  }
153 
154  // COMPATIBILITY FLAGS END
155 
156 }
157 
158 
160 {
161 }
162 
163 /* IDocumentSettingAccess */
165 {
166  switch (id)
167  {
168  // COMPATIBILITY FLAGS START
169  case DocumentSettingId::PARA_SPACE_MAX: return mbParaSpaceMax; //(n8Dummy1 & DUMMY_PARASPACEMAX);
170  case DocumentSettingId::PARA_SPACE_MAX_AT_PAGES: return mbParaSpaceMaxAtPages; //(n8Dummy1 & DUMMY_PARASPACEMAX_AT_PAGES);
171  case DocumentSettingId::TAB_COMPAT: return mbTabCompat; //(n8Dummy1 & DUMMY_TAB_COMPAT);
172  case DocumentSettingId::ADD_FLY_OFFSETS: return mbAddFlyOffsets; //(n8Dummy2 & DUMMY_ADD_FLY_OFFSETS);
173  case DocumentSettingId::ADD_VERTICAL_FLY_OFFSETS: return mbAddVerticalFlyOffsets;
174  case DocumentSettingId::ADD_EXT_LEADING: return mbAddExternalLeading; //(n8Dummy2 & DUMMY_ADD_EXTERNAL_LEADING);
175  case DocumentSettingId::USE_VIRTUAL_DEVICE: return mbUseVirtualDevice; //(n8Dummy1 & DUMMY_USE_VIRTUAL_DEVICE);
176  case DocumentSettingId::USE_HIRES_VIRTUAL_DEVICE: return mbUseHiResolutionVirtualDevice; //(n8Dummy2 & DUMMY_USE_HIRES_VIR_DEV);
177  case DocumentSettingId::OLD_NUMBERING: return mbOldNumbering;
178  case DocumentSettingId::OLD_LINE_SPACING: return mbOldLineSpacing;
179  case DocumentSettingId::ADD_PARA_SPACING_TO_TABLE_CELLS: return mbAddParaSpacingToTableCells;
180  case DocumentSettingId::ADD_PARA_LINE_SPACING_TO_TABLE_CELLS: return mbAddParaLineSpacingToTableCells;
181  case DocumentSettingId::USE_FORMER_OBJECT_POS: return mbUseFormerObjectPos;
182  case DocumentSettingId::USE_FORMER_TEXT_WRAPPING: return mbUseFormerTextWrapping;
183  case DocumentSettingId::CONSIDER_WRAP_ON_OBJECT_POSITION: return mbConsiderWrapOnObjPos;
184  case DocumentSettingId::DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK: return mbDoNotJustifyLinesWithManualBreak;
185  case DocumentSettingId::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING: return mbIgnoreFirstLineIndentInNumbering;
186  case DocumentSettingId::TABLE_ROW_KEEP: return mbTableRowKeep;
187  case DocumentSettingId::IGNORE_TABS_AND_BLANKS_FOR_LINE_CALCULATION: return mbIgnoreTabsAndBlanksForLineCalculation;
188  case DocumentSettingId::DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE: return mbDoNotCaptureDrawObjsOnPage;
189  // #i68949#
190  case DocumentSettingId::CLIP_AS_CHARACTER_ANCHORED_WRITER_FLY_FRAME: return mbClipAsCharacterAnchoredWriterFlyFrames;
191  case DocumentSettingId::UNIX_FORCE_ZERO_EXT_LEADING: return mbUnixForceZeroExtLeading;
192  case DocumentSettingId::TABS_RELATIVE_TO_INDENT : return mbTabRelativeToIndent;
193  case DocumentSettingId::PROTECT_FORM: return mbProtectForm;
194  // tdf#104349 tdf#104668
195  case DocumentSettingId::MS_WORD_COMP_TRAILING_BLANKS: return mbMsWordCompTrailingBlanks;
196  case DocumentSettingId::MS_WORD_COMP_MIN_LINE_HEIGHT_BY_FLY: return mbMsWordCompMinLineHeightByFly;
197  // #i89181#
198  case DocumentSettingId::TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST: return mbTabAtLeftIndentForParagraphsInList;
199  case DocumentSettingId::INVERT_BORDER_SPACING: return mbInvertBorderSpacing;
200  case DocumentSettingId::COLLAPSE_EMPTY_CELL_PARA: return mbCollapseEmptyCellPara;
201  case DocumentSettingId::SMALL_CAPS_PERCENTAGE_66: return mbSmallCapsPercentage66;
202  case DocumentSettingId::TAB_OVERFLOW: return mbTabOverflow;
203  case DocumentSettingId::UNBREAKABLE_NUMBERINGS: return mbUnbreakableNumberings;
204  case DocumentSettingId::CLIPPED_PICTURES: return mbClippedPictures;
205  case DocumentSettingId::BACKGROUND_PARA_OVER_DRAWINGS: return mbBackgroundParaOverDrawings;
206  case DocumentSettingId::TAB_OVER_MARGIN: return mbTabOverMargin;
207  case DocumentSettingId::TREAT_SINGLE_COLUMN_BREAK_AS_PAGE_BREAK: return mbTreatSingleColumnBreakAsPageBreak;
208  case DocumentSettingId::SURROUND_TEXT_WRAP_SMALL: return mbSurroundTextWrapSmall;
209  case DocumentSettingId::PROP_LINE_SPACING_SHRINKS_FIRST_LINE: return mbPropLineSpacingShrinksFirstLine;
210  case DocumentSettingId::SUBTRACT_FLYS: return mbSubtractFlys;
211 
212  case DocumentSettingId::BROWSE_MODE: return mbLastBrowseMode; // Attention: normally the SwViewShell has to be asked!
213  case DocumentSettingId::HTML_MODE: return mbHTMLMode;
214  case DocumentSettingId::GLOBAL_DOCUMENT: return mbIsGlobalDoc;
215  case DocumentSettingId::GLOBAL_DOCUMENT_SAVE_LINKS: return mbGlblDocSaveLinks;
216  case DocumentSettingId::LABEL_DOCUMENT: return mbIsLabelDoc;
217  case DocumentSettingId::PURGE_OLE: return mbPurgeOLE;
218  case DocumentSettingId::KERN_ASIAN_PUNCTUATION: return mbKernAsianPunctuation;
219  case DocumentSettingId::DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT: return mbDoNotResetParaAttrsForNumFont;
220  case DocumentSettingId::MATH_BASELINE_ALIGNMENT: return mbMathBaselineAlignment;
221  case DocumentSettingId::STYLES_NODEFAULT: return mbStylesNoDefault;
222  case DocumentSettingId::FLOATTABLE_NOMARGINS: return mbFloattableNomargins;
223  case DocumentSettingId::EMBED_FONTS: return mEmbedFonts;
224  case DocumentSettingId::EMBED_USED_FONTS: return mEmbedUsedFonts;
225  case DocumentSettingId::EMBED_LATIN_SCRIPT_FONTS: return mEmbedLatinScriptFonts;
226  case DocumentSettingId::EMBED_ASIAN_SCRIPT_FONTS: return mEmbedAsianScriptFonts;
227  case DocumentSettingId::EMBED_COMPLEX_SCRIPT_FONTS: return mEmbedComplexScriptFonts;
228  case DocumentSettingId::EMBED_SYSTEM_FONTS: return mEmbedSystemFonts;
229  case DocumentSettingId::APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING: return mApplyParagraphMarkFormatToNumbering;
230  case DocumentSettingId::DISABLE_OFF_PAGE_POSITIONING: return mbDisableOffPagePositioning;
231  case DocumentSettingId::EMPTY_DB_FIELD_HIDES_PARA: return mbEmptyDbFieldHidesPara;
232  case DocumentSettingId::CONTINUOUS_ENDNOTES: return mbContinuousEndnotes;
233  case DocumentSettingId::PROTECT_BOOKMARKS: return mbProtectBookmarks;
234  case DocumentSettingId::PROTECT_FIELDS: return mbProtectFields;
235  case DocumentSettingId::HEADER_SPACING_BELOW_LAST_PARA: return mbHeaderSpacingBelowLastPara;
236  case DocumentSettingId::FRAME_AUTOWIDTH_WITH_MORE_PARA: return mbFrameAutowidthWithMorePara;
238  return mbGutterAtTop;
239  default:
240  OSL_FAIL("Invalid setting id");
241  }
242  return false;
243 }
244 
245 void sw::DocumentSettingManager::set(/*[in]*/ DocumentSettingId id, /*[in]*/ bool value)
246 {
247  switch (id)
248  {
249  // COMPATIBILITY FLAGS START
251  mbParaSpaceMax = value;
252  break;
254  mbParaSpaceMaxAtPages = value;
255  break;
257  mbTabCompat = value;
258  break;
260  mbAddFlyOffsets = value;
261  break;
263  mbAddVerticalFlyOffsets = value;
264  break;
266  mbAddExternalLeading = value;
267  break;
269  mbUseVirtualDevice = value;
270  break;
272  mbUseHiResolutionVirtualDevice = value;
273  break;
275  if (mbOldNumbering != value)
276  {
277  mbOldNumbering = value;
278 
279  const SwNumRuleTable& rNmTable = m_rDoc.GetNumRuleTable();
280  for( SwNumRuleTable::size_type n = 0; n < rNmTable.size(); ++n )
281  rNmTable[n]->SetInvalidRule(true);
282 
284 
285  SwNumRule *pOutlineRule = m_rDoc.GetOutlineNumRule();
286  if (pOutlineRule)
287  {
288  pOutlineRule->Validate();
289  // counting of phantoms depends on <IsOldNumbering()>
290  pOutlineRule->SetCountPhantoms( !mbOldNumbering );
291  }
292  }
293  break;
295  mbOldLineSpacing = value;
296  break;
298  mbAddParaSpacingToTableCells = value;
299  break;
301  mbAddParaLineSpacingToTableCells = value;
302  break;
304  mbUseFormerObjectPos = value;
305  break;
307  mbUseFormerTextWrapping = value;
308  break;
310  mbConsiderWrapOnObjPos = value;
311  break;
313  mbDoNotJustifyLinesWithManualBreak = value;
314  break;
316  mbIgnoreFirstLineIndentInNumbering = value;
317  break;
318 
320  mbTableRowKeep = value;
321  break;
322 
324  mbIgnoreTabsAndBlanksForLineCalculation = value;
325  break;
326 
328  mbDoNotCaptureDrawObjsOnPage = value;
329  break;
330 
331  // #i68949#
333  mbClipAsCharacterAnchoredWriterFlyFrames = value;
334  break;
335 
337  mbUnixForceZeroExtLeading = value;
338  break;
339 
341  mbProtectForm = value;
342  break;
343 
344  // tdf#140349
346  mbMsWordCompTrailingBlanks = value;
347  break;
348 
350  mbMsWordCompMinLineHeightByFly = value;
351  break;
352 
354  mbTabRelativeToIndent = value;
355  break;
356  // #i89181#
358  mbTabAtLeftIndentForParagraphsInList = value;
359  break;
360 
362  mbInvertBorderSpacing = value;
363  break;
364 
366  mbCollapseEmptyCellPara = value;
367  break;
368 
370  mbSmallCapsPercentage66 = value;
371  break;
372 
374  mbTabOverflow = value;
375  break;
376 
378  mbUnbreakableNumberings = value;
379  break;
380 
382  mbClippedPictures = value;
383  break;
384 
386  mbBackgroundParaOverDrawings = value;
387  break;
388 
390  mbTabOverMargin = value;
391  break;
392 
394  mbTreatSingleColumnBreakAsPageBreak = value;
395  break;
396 
398  mbSurroundTextWrapSmall = value;
399  break;
400 
402  mbPropLineSpacingShrinksFirstLine = value;
403  break;
404 
406  mbSubtractFlys = value;
407  break;
408 
409  // COMPATIBILITY FLAGS END
410 
411  case DocumentSettingId::BROWSE_MODE: //can be used temporary (load/save) when no SwViewShell is available
412  // Can't render in webview successfully.
414  mbLastBrowseMode = false;
415  else
416  mbLastBrowseMode = value;
417  break;
418 
420  mbHTMLMode = value;
421  break;
422 
424  mbIsGlobalDoc = value;
425  break;
426 
428  mbGlblDocSaveLinks = value;
429  break;
430 
432  mbIsLabelDoc = value;
433  break;
434 
436  mbPurgeOLE = value;
437  break;
438 
440  mbKernAsianPunctuation = value;
441  break;
442 
444  mbDoNotResetParaAttrsForNumFont = value;
445  break;
447  mbMathBaselineAlignment = value;
448  break;
450  mbStylesNoDefault = value;
451  break;
453  mbFloattableNomargins = value;
454  break;
456  mEmbedFonts = value;
457  break;
459  mEmbedUsedFonts = value;
460  break;
462  mEmbedLatinScriptFonts = value;
463  break;
465  mEmbedAsianScriptFonts = value;
466  break;
468  mEmbedComplexScriptFonts = value;
469  break;
471  mEmbedSystemFonts = value;
472  break;
474  mApplyParagraphMarkFormatToNumbering = value;
475  break;
477  mbDisableOffPagePositioning = value;
478  break;
480  mbEmptyDbFieldHidesPara = value;
481  break;
483  mbContinuousEndnotes = value;
484  break;
486  mbProtectBookmarks = value;
487  break;
489  mbProtectFields = value;
490  break;
492  mbHeaderSpacingBelowLastPara = value;
493  break;
495  mbFrameAutowidthWithMorePara = value;
496  break;
498  mbGutterAtTop = value;
499  break;
500  default:
501  OSL_FAIL("Invalid setting id");
502  }
503 }
504 
505 const css::i18n::ForbiddenCharacters*
506  sw::DocumentSettingManager::getForbiddenCharacters(/*[in]*/ LanguageType nLang, /*[in]*/ bool bLocaleData ) const
507 {
508  const css::i18n::ForbiddenCharacters* pRet = nullptr;
509  if (mxForbiddenCharsTable)
510  pRet = mxForbiddenCharsTable->GetForbiddenCharacters( nLang, false );
511  if( bLocaleData && !pRet && g_pBreakIt )
512  pRet = &g_pBreakIt->GetForbidden( nLang );
513  return pRet;
514 }
515 
517  /*[in]*/ const css::i18n::ForbiddenCharacters& rFChars )
518 {
519  if (!mxForbiddenCharsTable)
521  mxForbiddenCharsTable->SetForbiddenCharacters( nLang, rFChars );
522 
524  if( pDrawModel )
525  {
526  pDrawModel->SetForbiddenCharsTable(mxForbiddenCharsTable);
527  if( !m_rDoc.IsInReading() )
528  pDrawModel->ReformatAllTextObjects();
529  }
530 
532  if( pTmpRoot && !m_rDoc.IsInReading() )
533  {
534  pTmpRoot->StartAllAction();
535  for(SwRootFrame* aLayout : m_rDoc.GetAllLayouts())
536  aLayout->InvalidateAllContent(SwInvalidateFlags::Size);
537  pTmpRoot->EndAllAction();
538  }
540 }
541 
542 std::shared_ptr<SvxForbiddenCharactersTable>& sw::DocumentSettingManager::getForbiddenCharacterTable()
543 {
544  if (!mxForbiddenCharsTable)
546  return mxForbiddenCharsTable;
547 }
548 
549 const std::shared_ptr<SvxForbiddenCharactersTable>& sw::DocumentSettingManager::getForbiddenCharacterTable() const
550 {
551  return mxForbiddenCharsTable;
552 }
553 
554 sal_uInt16 sw::DocumentSettingManager::getLinkUpdateMode( /*[in]*/bool bGlobalSettings ) const
555 {
556  sal_uInt16 nRet = mnLinkUpdMode;
557  if( bGlobalSettings && GLOBALSETTING == nRet )
558  nRet = SW_MOD()->GetLinkUpdMode();
559  return nRet;
560 }
561 
562 void sw::DocumentSettingManager::setLinkUpdateMode( /*[in]*/sal_uInt16 eMode )
563 {
564  mnLinkUpdMode = eMode;
565 }
566 
568 {
569  SwFieldUpdateFlags eRet = meFieldUpdMode;
570  if( bGlobalSettings && AUTOUPD_GLOBALSETTING == eRet )
571  eRet = SW_MOD()->GetFieldUpdateFlags();
572  return eRet;
573 }
574 
576 {
577  meFieldUpdMode = eMode;
578 }
579 
581 {
582  return meChrCmprType;
583 }
584 
586 {
587  if( meChrCmprType == n )
588  return;
589 
590  meChrCmprType = n;
591 
593  if( pDrawModel )
594  {
595  pDrawModel->SetCharCompressType( n );
596  if( !m_rDoc.IsInReading() )
597  pDrawModel->ReformatAllTextObjects();
598  }
599 
601  if( pTmpRoot && !m_rDoc.IsInReading() )
602  {
603  pTmpRoot->StartAllAction();
604  for( auto aLayout : m_rDoc.GetAllLayouts() )
605  aLayout->InvalidateAllContent(SwInvalidateFlags::Size);
606  pTmpRoot->EndAllAction();
607  }
609 }
610 
611 
613 {
614  Setn32DummyCompatibilityOptions1( rSource.Getn32DummyCompatibilityOptions1() );
615  Setn32DummyCompatibilityOptions2( rSource.Getn32DummyCompatibilityOptions2() );
616 
617  // No mbHTMLMode
618  // No mbIsGlobalDoc
619  // No mbGlblDocSaveLinks
620  // No mbIsLabelDoc
621  // No mbPurgeOLE
622  // No mbKernAsianPunctuation
623  mbParaSpaceMax = rSource.mbParaSpaceMax;
624  mbParaSpaceMaxAtPages = rSource.mbParaSpaceMaxAtPages;
625  mbTabCompat = rSource.mbTabCompat;
626  mbUseVirtualDevice = rSource.mbUseVirtualDevice;
627  mbAddFlyOffsets = rSource.mbAddFlyOffsets;
628  // No mbAddVerticalFlyOffsets
629  mbAddExternalLeading = rSource.mbAddExternalLeading;
630  mbUseHiResolutionVirtualDevice = rSource.mbUseHiResolutionVirtualDevice;
631  mbOldLineSpacing = rSource.mbOldLineSpacing;
632  mbAddParaSpacingToTableCells = rSource.mbAddParaSpacingToTableCells;
633  mbAddParaLineSpacingToTableCells = rSource.mbAddParaLineSpacingToTableCells;
634  mbUseFormerObjectPos = rSource.mbUseFormerObjectPos;
635  mbUseFormerTextWrapping = rSource.mbUseFormerTextWrapping;
636  mbConsiderWrapOnObjPos = rSource.mbConsiderWrapOnObjPos;
637  // No mbMathBaselineAlignment
638  // No mbStylesNoDefault
639  // No mbFloattableNomargins
640  mbOldNumbering = rSource.mbOldNumbering;
641  mbIgnoreFirstLineIndentInNumbering = rSource.mbIgnoreFirstLineIndentInNumbering;
642  mbDoNotJustifyLinesWithManualBreak = rSource.mbDoNotJustifyLinesWithManualBreak;
643  mbDoNotResetParaAttrsForNumFont = rSource.mbDoNotResetParaAttrsForNumFont;
644  mbTableRowKeep = rSource.mbTableRowKeep;
645  mbIgnoreTabsAndBlanksForLineCalculation = rSource.mbIgnoreTabsAndBlanksForLineCalculation;
646  mbDoNotCaptureDrawObjsOnPage = rSource.mbDoNotCaptureDrawObjsOnPage;
647  mbClipAsCharacterAnchoredWriterFlyFrames = rSource.mbClipAsCharacterAnchoredWriterFlyFrames;
648  mbUnixForceZeroExtLeading = rSource.mbUnixForceZeroExtLeading;
649  mbTabRelativeToIndent = rSource.mbTabRelativeToIndent;
650  // No mbProtectForm
651  mbMsWordCompTrailingBlanks = rSource.mbMsWordCompTrailingBlanks;
652  mbMsWordCompMinLineHeightByFly = rSource.mbMsWordCompMinLineHeightByFly;
653  // No mbInvertBorderSpacing
654  mbCollapseEmptyCellPara = rSource.mbCollapseEmptyCellPara;
655  mbTabAtLeftIndentForParagraphsInList = rSource.mbTabAtLeftIndentForParagraphsInList;
656  mbSmallCapsPercentage66 = rSource.mbSmallCapsPercentage66;
657  mbTabOverflow = rSource.mbTabOverflow;
658  mbUnbreakableNumberings = rSource.mbUnbreakableNumberings;
659  mbClippedPictures = rSource.mbClippedPictures;
660  mbBackgroundParaOverDrawings = rSource.mbBackgroundParaOverDrawings;
661  mbTabOverMargin = rSource.mbTabOverMargin;
662  mbTreatSingleColumnBreakAsPageBreak = rSource.mbTreatSingleColumnBreakAsPageBreak;
663  mbSurroundTextWrapSmall = rSource.mbSurroundTextWrapSmall;
664  mbPropLineSpacingShrinksFirstLine = rSource.mbPropLineSpacingShrinksFirstLine;
665  mbSubtractFlys = rSource.mbSubtractFlys;
666  // No mbLastBrowseMode: this is false by default everywhere
667  mbDisableOffPagePositioning = rSource.mbDisableOffPagePositioning;
668  mbEmptyDbFieldHidesPara = rSource.mbEmptyDbFieldHidesPara;
669  mbContinuousEndnotes = rSource.mbContinuousEndnotes;
670  // No mbProtectBookmarks: this is false by default everywhere
671  // No mbProtectFields: this is false by default everywhere
672  mbHeaderSpacingBelowLastPara = rSource.mbHeaderSpacingBelowLastPara;
673  mbFrameAutowidthWithMorePara = rSource.mbFrameAutowidthWithMorePara;
674 }
675 
677 {
678  return mn32DummyCompatibilityOptions1;
679 }
680 
681 void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions1( const sal_uInt32 CompatibilityOptions1 )
682 {
683  mn32DummyCompatibilityOptions1 = CompatibilityOptions1;
684 }
685 
687 {
688  return mn32DummyCompatibilityOptions2;
689 }
690 
691 void sw::DocumentSettingManager::Setn32DummyCompatibilityOptions2( const sal_uInt32 CompatibilityOptions2 )
692 {
693  mn32DummyCompatibilityOptions2 = CompatibilityOptions2;
694 }
695 
697 {
698  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("DocumentSettingManager"));
699 
700  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHTMLMode"));
701  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
702  BAD_CAST(OString::boolean(mbHTMLMode).getStr()));
703  (void)xmlTextWriterEndElement(pWriter);
704 
705  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsGlobalDoc"));
706  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
707  BAD_CAST(OString::boolean(mbIsGlobalDoc).getStr()));
708  (void)xmlTextWriterEndElement(pWriter);
709 
710  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbGlblDocSaveLinks"));
711  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
712  BAD_CAST(OString::boolean(mbGlblDocSaveLinks).getStr()));
713  (void)xmlTextWriterEndElement(pWriter);
714 
715  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIsLabelDoc"));
716  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
717  BAD_CAST(OString::boolean(mbIsLabelDoc).getStr()));
718  (void)xmlTextWriterEndElement(pWriter);
719 
720  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbPurgeOLE"));
721  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
722  BAD_CAST(OString::boolean(mbPurgeOLE).getStr()));
723  (void)xmlTextWriterEndElement(pWriter);
724 
725  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbKernAsianPunctuation"));
726  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
727  BAD_CAST(OString::boolean(mbKernAsianPunctuation).getStr()));
728  (void)xmlTextWriterEndElement(pWriter);
729 
730  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMax"));
731  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
732  BAD_CAST(OString::boolean(mbParaSpaceMax).getStr()));
733  (void)xmlTextWriterEndElement(pWriter);
734 
735  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbParaSpaceMaxAtPages"));
736  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
737  BAD_CAST(OString::boolean(mbParaSpaceMaxAtPages).getStr()));
738  (void)xmlTextWriterEndElement(pWriter);
739 
740  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabCompat"));
741  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
742  BAD_CAST(OString::boolean(mbTabCompat).getStr()));
743  (void)xmlTextWriterEndElement(pWriter);
744 
745  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseVirtualDevice"));
746  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
747  BAD_CAST(OString::boolean(mbUseVirtualDevice).getStr()));
748  (void)xmlTextWriterEndElement(pWriter);
749 
750  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddFlyOffsets"));
751  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
752  BAD_CAST(OString::boolean(mbAddFlyOffsets).getStr()));
753  (void)xmlTextWriterEndElement(pWriter);
754 
755  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddVerticalFlyOffsets"));
756  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
757  BAD_CAST(OString::boolean(mbAddVerticalFlyOffsets).getStr()));
758  (void)xmlTextWriterEndElement(pWriter);
759 
760  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddExternalLeading"));
761  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
762  BAD_CAST(OString::boolean(mbAddExternalLeading).getStr()));
763  (void)xmlTextWriterEndElement(pWriter);
764 
765  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseHiResolutionVirtualDevice"));
766  (void)xmlTextWriterWriteAttribute(
767  pWriter, BAD_CAST("value"),
768  BAD_CAST(OString::boolean(mbUseHiResolutionVirtualDevice).getStr()));
769  (void)xmlTextWriterEndElement(pWriter);
770 
771  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldLineSpacing"));
772  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
773  BAD_CAST(OString::boolean(mbOldLineSpacing).getStr()));
774  (void)xmlTextWriterEndElement(pWriter);
775 
776  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaSpacingToTableCells"));
777  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
778  BAD_CAST(OString::boolean(mbAddParaSpacingToTableCells).getStr()));
779  (void)xmlTextWriterEndElement(pWriter);
780  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbAddParaLineSpacingToTableCells"));
781  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
782  BAD_CAST(OString::boolean(mbAddParaLineSpacingToTableCells).getStr()));
783  (void)xmlTextWriterEndElement(pWriter);
784 
785  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerObjectPos"));
786  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
787  BAD_CAST(OString::boolean(mbUseFormerObjectPos).getStr()));
788  (void)xmlTextWriterEndElement(pWriter);
789 
790  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUseFormerTextWrapping"));
791  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
792  BAD_CAST(OString::boolean(mbUseFormerTextWrapping).getStr()));
793  (void)xmlTextWriterEndElement(pWriter);
794 
795  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbConsiderWrapOnObjPos"));
796  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
797  BAD_CAST(OString::boolean(mbConsiderWrapOnObjPos).getStr()));
798  (void)xmlTextWriterEndElement(pWriter);
799 
800  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMathBaselineAlignment"));
801  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
802  BAD_CAST(OString::boolean(mbMathBaselineAlignment).getStr()));
803  (void)xmlTextWriterEndElement(pWriter);
804 
805  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbStylesNoDefault"));
806  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
807  BAD_CAST(OString::boolean(mbStylesNoDefault).getStr()));
808  (void)xmlTextWriterEndElement(pWriter);
809 
810  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFloattableNomargins"));
811  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
812  BAD_CAST(OString::boolean(mbFloattableNomargins).getStr()));
813  (void)xmlTextWriterEndElement(pWriter);
814 
815  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbOldNumbering"));
816  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
817  BAD_CAST(OString::boolean(mbOldNumbering).getStr()));
818  (void)xmlTextWriterEndElement(pWriter);
819 
820  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreFirstLineIndentInNumbering"));
821  (void)xmlTextWriterWriteAttribute(
822  pWriter, BAD_CAST("value"),
823  BAD_CAST(OString::boolean(mbIgnoreFirstLineIndentInNumbering).getStr()));
824  (void)xmlTextWriterEndElement(pWriter);
825 
826  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotJustifyLinesWithManualBreak"));
827  (void)xmlTextWriterWriteAttribute(
828  pWriter, BAD_CAST("value"),
829  BAD_CAST(OString::boolean(mbDoNotJustifyLinesWithManualBreak).getStr()));
830  (void)xmlTextWriterEndElement(pWriter);
831 
832  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotResetParaAttrsForNumFont"));
833  (void)xmlTextWriterWriteAttribute(
834  pWriter, BAD_CAST("value"),
835  BAD_CAST(OString::boolean(mbDoNotResetParaAttrsForNumFont).getStr()));
836  (void)xmlTextWriterEndElement(pWriter);
837 
838  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTableRowKeep"));
839  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
840  BAD_CAST(OString::boolean(mbTableRowKeep).getStr()));
841  (void)xmlTextWriterEndElement(pWriter);
842 
843  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbIgnoreTabsAndBlanksForLineCalculation"));
844  (void)xmlTextWriterWriteAttribute(
845  pWriter, BAD_CAST("value"),
846  BAD_CAST(OString::boolean(mbIgnoreTabsAndBlanksForLineCalculation).getStr()));
847  (void)xmlTextWriterEndElement(pWriter);
848 
849  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDoNotCaptureDrawObjsOnPage"));
850  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
851  BAD_CAST(OString::boolean(mbDoNotCaptureDrawObjsOnPage).getStr()));
852  (void)xmlTextWriterEndElement(pWriter);
853 
854  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbClipAsCharacterAnchoredWriterFlyFrames"));
855  (void)xmlTextWriterWriteAttribute(
856  pWriter, BAD_CAST("value"),
857  BAD_CAST(OString::boolean(mbClipAsCharacterAnchoredWriterFlyFrames).getStr()));
858  (void)xmlTextWriterEndElement(pWriter);
859 
860  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnixForceZeroExtLeading"));
861  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
862  BAD_CAST(OString::boolean(mbUnixForceZeroExtLeading).getStr()));
863  (void)xmlTextWriterEndElement(pWriter);
864 
865  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabRelativeToIndent"));
866  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
867  BAD_CAST(OString::boolean(mbTabRelativeToIndent).getStr()));
868  (void)xmlTextWriterEndElement(pWriter);
869 
870  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbProtectForm"));
871  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
872  BAD_CAST(OString::boolean(mbProtectForm).getStr()));
873  (void)xmlTextWriterEndElement(pWriter);
874 
875  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompTrailingBlanks"));
876  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
877  BAD_CAST(OString::boolean(mbMsWordCompTrailingBlanks).getStr()));
878  (void)xmlTextWriterEndElement(pWriter);
879 
880  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbMsWordCompMinLineHeightByFly"));
881  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
882  BAD_CAST(OString::boolean(mbMsWordCompMinLineHeightByFly).getStr()));
883  (void)xmlTextWriterEndElement(pWriter);
884 
885  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbInvertBorderSpacing"));
886  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
887  BAD_CAST(OString::boolean(mbInvertBorderSpacing).getStr()));
888  (void)xmlTextWriterEndElement(pWriter);
889 
890  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbCollapseEmptyCellPara"));
891  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
892  BAD_CAST(OString::boolean(mbCollapseEmptyCellPara).getStr()));
893  (void)xmlTextWriterEndElement(pWriter);
894 
895  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabAtLeftIndentForParagraphsInList"));
896  (void)xmlTextWriterWriteAttribute(
897  pWriter, BAD_CAST("value"),
898  BAD_CAST(OString::boolean(mbTabAtLeftIndentForParagraphsInList).getStr()));
899  (void)xmlTextWriterEndElement(pWriter);
900 
901  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSmallCapsPercentage66"));
902  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
903  BAD_CAST(OString::boolean(mbSmallCapsPercentage66).getStr()));
904  (void)xmlTextWriterEndElement(pWriter);
905 
906  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverflow"));
907  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
908  BAD_CAST(OString::boolean(mbTabOverflow).getStr()));
909  (void)xmlTextWriterEndElement(pWriter);
910 
911  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbUnbreakableNumberings"));
912  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
913  BAD_CAST(OString::boolean(mbUnbreakableNumberings).getStr()));
914  (void)xmlTextWriterEndElement(pWriter);
915 
916  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbClippedPictures"));
917  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
918  BAD_CAST(OString::boolean(mbClippedPictures).getStr()));
919  (void)xmlTextWriterEndElement(pWriter);
920 
921  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbBackgroundParaOverDrawings"));
922  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
923  BAD_CAST(OString::boolean(mbBackgroundParaOverDrawings).getStr()));
924  (void)xmlTextWriterEndElement(pWriter);
925 
926  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTabOverMargin"));
927  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
928  BAD_CAST(OString::boolean(mbTabOverMargin).getStr()));
929  (void)xmlTextWriterEndElement(pWriter);
930 
931  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbTreatSingleColumnBreakAsPageBreak"));
932  (void)xmlTextWriterWriteAttribute(
933  pWriter, BAD_CAST("value"),
934  BAD_CAST(OString::boolean(mbTreatSingleColumnBreakAsPageBreak).getStr()));
935  (void)xmlTextWriterEndElement(pWriter);
936 
937  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSurroundTextWrapSmall"));
938  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
939  BAD_CAST(OString::boolean(mbSurroundTextWrapSmall).getStr()));
940  (void)xmlTextWriterEndElement(pWriter);
941 
942  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbPropLineSpacingShrinksFirstLine"));
943  (void)xmlTextWriterWriteAttribute(
944  pWriter, BAD_CAST("value"),
945  BAD_CAST(OString::boolean(mbPropLineSpacingShrinksFirstLine).getStr()));
946  (void)xmlTextWriterEndElement(pWriter);
947 
948  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbSubtractFlys"));
949  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
950  BAD_CAST(OString::boolean(mbSubtractFlys).getStr()));
951  (void)xmlTextWriterEndElement(pWriter);
952 
953  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbLastBrowseMode"));
954  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
955  BAD_CAST(OString::boolean(mbLastBrowseMode).getStr()));
956  (void)xmlTextWriterEndElement(pWriter);
957 
958  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbDisableOffPagePositioning"));
959  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
960  BAD_CAST(OString::boolean(mbDisableOffPagePositioning).getStr()));
961  (void)xmlTextWriterEndElement(pWriter);
962 
963  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbEmptyDbFieldHidesPara"));
964  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
965  BAD_CAST(OString::boolean(mbEmptyDbFieldHidesPara).getStr()));
966  (void)xmlTextWriterEndElement(pWriter);
967 
968  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbContinuousEndnotes"));
969  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
970  BAD_CAST(OString::boolean(mbContinuousEndnotes).getStr()));
971  (void)xmlTextWriterEndElement(pWriter);
972 
973  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbHeaderSpacingBelowLastPara"));
974  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
975  BAD_CAST(OString::boolean(mbHeaderSpacingBelowLastPara).getStr()));
976  (void)xmlTextWriterEndElement(pWriter);
977 
978  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbFrameAutowidthWithMorePara"));
979  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
980  BAD_CAST(OString::boolean(mbFrameAutowidthWithMorePara).getStr()));
981  (void)xmlTextWriterEndElement(pWriter);
982 
983  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("mbGutterAtTop"));
984  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"),
985  BAD_CAST(OString::boolean(mbGutterAtTop).getStr()));
986  (void)xmlTextWriterEndElement(pWriter);
987 
988  (void)xmlTextWriterEndElement(pWriter);
989 }
990 
991 /* 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: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:1671
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: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:1054
virtual void setCharacterCompressionType(CharCompressType nType) override
Set the character compression type for Asian characters.
bool IsInReading() const
Definition: doc.hxx:955
sal_uInt32 Getn32DummyCompatibilityOptions2() const override
Get the n32DummyCompatibilityOptions2.
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
Definition: doc.cxx:405
void Validate()
Definition: number.cxx:1041
virtual SwFieldUpdateFlags getFieldUpdateFlags(bool bGlobalSettings) const override
Get the current field update mode.
const SwNumRuleTable & GetNumRuleTable() const
Definition: doc.hxx:1067
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:1891
void EndAllAction(bool bVirDev=false)
Definition: pagechg.cxx:1903
const css::i18n::ForbiddenCharacters & GetForbidden(const LanguageType aLang)
Definition: breakit.hxx:103
SwNumRule * GetOutlineNumRule() const
Definition: doc.hxx:1025
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo