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