20#include <libxml/xmlwriter.h>
30#include <osl/diagnose.h>
49 mn32DummyCompatibilityOptions1(0),
50 mn32DummyCompatibilityOptions2(0),
53 mbGlblDocSaveLinks(false),
56 mbKernAsianPunctuation(false),
60 mbAddFlyOffsets(false),
61 mbAddVerticalFlyOffsets(false),
62 mbUseHiResolutionVirtualDevice(true),
63 mbMathBaselineAlignment(false),
64 mbStylesNoDefault(false),
65 mbFloattableNomargins(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),
82 mbMsWordCompTrailingBlanks(false),
83 mbMsWordCompMinLineHeightByFly(false),
84 mbInvertBorderSpacing (false),
85 mbCollapseEmptyCellPara(true),
86 mbTabAtLeftIndentForParagraphsInList(false),
87 mbSmallCapsPercentage66(false),
89 mbUnbreakableNumberings(false),
90 mbClippedPictures(false),
91 mbBackgroundParaOverDrawings(false),
92 mbTabOverMargin(false),
93 mbTabOverSpacing(false),
94 mbTreatSingleColumnBreakAsPageBreak(false),
95 mbSurroundTextWrapSmall(false),
96 mbPropLineSpacingShrinksFirstLine(true),
97 mbSubtractFlys(false),
98 mApplyParagraphMarkFormatToNumbering(false),
99 mbLastBrowseMode( false ),
100 mbDisableOffPagePositioning ( false ),
101 mbProtectBookmarks(false),
102 mbProtectFields(false),
103 mbHeaderSpacingBelowLastPara(false),
104 mbFrameAutowidthWithMorePara(false),
105 mbGutterAtTop(false),
106 mbFootnoteInColumnToPageEnd(false),
107 mnImagePreferredDPI(0),
108 mbAutoFirstLineIndentDisregardLineSpace(true),
109 mbNoNumberingShowFollowBy(false),
110 mbDropCapPunctuation(true),
111 mbUseVariableWidthNBSP(false)
249 return mbGutterAtTop;
252 return mbAutoFirstLineIndentDisregardLineSpace;
255 return mbDoNotBreakWrappedTables;
260 OSL_FAIL(
"Invalid setting id");
271 mbParaSpaceMax =
value;
274 mbParaSpaceMaxAtPages =
value;
280 mbAddFlyOffsets =
value;
283 mbAddVerticalFlyOffsets =
value;
286 mbAddExternalLeading =
value;
289 mbUseVirtualDevice =
value;
292 mbUseHiResolutionVirtualDevice =
value;
295 if (mbOldNumbering !=
value)
297 mbOldNumbering =
value;
301 rNmTable[
n]->SetInvalidRule(
true);
315 mbOldLineSpacing =
value;
318 mbAddParaSpacingToTableCells =
value;
321 mbAddParaLineSpacingToTableCells =
value;
324 mbUseFormerObjectPos =
value;
327 mbUseFormerTextWrapping =
value;
330 mbConsiderWrapOnObjPos =
value;
333 mbDoNotJustifyLinesWithManualBreak =
value;
336 mbIgnoreFirstLineIndentInNumbering =
value;
340 mbTableRowKeep =
value;
344 mbIgnoreTabsAndBlanksForLineCalculation =
value;
348 mbDoNotCaptureDrawObjsOnPage =
value;
353 mbClipAsCharacterAnchoredWriterFlyFrames =
value;
357 mbUnixForceZeroExtLeading =
value;
361 mbProtectForm =
value;
366 mbMsWordCompTrailingBlanks =
value;
370 mbMsWordCompMinLineHeightByFly =
value;
374 mbTabRelativeToIndent =
value;
378 mbTabAtLeftIndentForParagraphsInList =
value;
382 mbInvertBorderSpacing =
value;
386 mbCollapseEmptyCellPara =
value;
390 mbSmallCapsPercentage66 =
value;
394 mbTabOverflow =
value;
398 mbUnbreakableNumberings =
value;
402 mbClippedPictures =
value;
406 mbBackgroundParaOverDrawings =
value;
410 mbTabOverMargin =
value;
414 mbTabOverSpacing =
value;
418 mbTreatSingleColumnBreakAsPageBreak =
value;
422 mbSurroundTextWrapSmall =
value;
426 mbPropLineSpacingShrinksFirstLine =
value;
430 mbSubtractFlys =
value;
434 mbAutoFirstLineIndentDisregardLineSpace =
value;
438 mbHyphenateURLs =
value;
442 mbDoNotBreakWrappedTables =
value;
446 mbNoNumberingShowFollowBy =
value;
450 mbDropCapPunctuation =
value;
454 mbUseVariableWidthNBSP =
value;
462 mbLastBrowseMode =
false;
464 mbLastBrowseMode =
value;
472 mbIsGlobalDoc =
value;
476 mbGlblDocSaveLinks =
value;
480 mbIsLabelDoc =
value;
488 mbKernAsianPunctuation =
value;
492 mbDoNotResetParaAttrsForNumFont =
value;
495 mbMathBaselineAlignment =
value;
498 mbStylesNoDefault =
value;
501 mbFloattableNomargins =
value;
507 mEmbedUsedFonts =
value;
510 mEmbedLatinScriptFonts =
value;
513 mEmbedAsianScriptFonts =
value;
516 mEmbedComplexScriptFonts =
value;
519 mEmbedSystemFonts =
value;
522 mApplyParagraphMarkFormatToNumbering =
value;
525 mbDisableOffPagePositioning =
value;
528 mbEmptyDbFieldHidesPara =
value;
531 mbContinuousEndnotes =
value;
534 mbProtectBookmarks =
value;
537 mbProtectFields =
value;
540 mbHeaderSpacingBelowLastPara =
value;
543 mbFrameAutowidthWithMorePara =
value;
546 mbGutterAtTop =
value;
549 mbFootnoteInColumnToPageEnd =
value;
552 OSL_FAIL(
"Invalid setting id");
556const css::i18n::ForbiddenCharacters*
559 const css::i18n::ForbiddenCharacters* pRet =
nullptr;
560 if (mxForbiddenCharsTable)
561 pRet = mxForbiddenCharsTable->GetForbiddenCharacters(
nLang,
false );
568 const css::i18n::ForbiddenCharacters& rFChars )
570 if (!mxForbiddenCharsTable)
572 mxForbiddenCharsTable->SetForbiddenCharacters(
nLang, rFChars );
595 if (!mxForbiddenCharsTable)
597 return mxForbiddenCharsTable;
602 return mxForbiddenCharsTable;
607 sal_uInt16 nRet = mnLinkUpdMode;
609 nRet =
SW_MOD()->GetLinkUpdMode();
615 mnLinkUpdMode =
eMode;
622 eRet =
SW_MOD()->GetFieldUpdateFlags();
628 meFieldUpdMode =
eMode;
633 return meChrCmprType;
638 if( meChrCmprType ==
n )
734 return mn32DummyCompatibilityOptions1;
739 mn32DummyCompatibilityOptions1 = CompatibilityOptions1;
744 return mn32DummyCompatibilityOptions2;
749 mn32DummyCompatibilityOptions2 = CompatibilityOptions2;
754 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"DocumentSettingManager"));
756 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbHTMLMode"));
757 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
758 BAD_CAST(OString::boolean(mbHTMLMode).getStr()));
759 (void)xmlTextWriterEndElement(pWriter);
761 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbIsGlobalDoc"));
762 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
763 BAD_CAST(OString::boolean(mbIsGlobalDoc).getStr()));
764 (void)xmlTextWriterEndElement(pWriter);
766 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbGlblDocSaveLinks"));
767 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
768 BAD_CAST(OString::boolean(mbGlblDocSaveLinks).getStr()));
769 (void)xmlTextWriterEndElement(pWriter);
771 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbIsLabelDoc"));
772 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
773 BAD_CAST(OString::boolean(mbIsLabelDoc).getStr()));
774 (void)xmlTextWriterEndElement(pWriter);
776 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbPurgeOLE"));
777 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
778 BAD_CAST(OString::boolean(mbPurgeOLE).getStr()));
779 (void)xmlTextWriterEndElement(pWriter);
781 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbKernAsianPunctuation"));
782 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
783 BAD_CAST(OString::boolean(mbKernAsianPunctuation).getStr()));
784 (void)xmlTextWriterEndElement(pWriter);
786 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbParaSpaceMax"));
787 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
788 BAD_CAST(OString::boolean(mbParaSpaceMax).getStr()));
789 (void)xmlTextWriterEndElement(pWriter);
791 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbParaSpaceMaxAtPages"));
792 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
793 BAD_CAST(OString::boolean(mbParaSpaceMaxAtPages).getStr()));
794 (void)xmlTextWriterEndElement(pWriter);
796 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbTabCompat"));
797 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
798 BAD_CAST(OString::boolean(mbTabCompat).getStr()));
799 (void)xmlTextWriterEndElement(pWriter);
801 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbUseVirtualDevice"));
802 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
803 BAD_CAST(OString::boolean(mbUseVirtualDevice).getStr()));
804 (void)xmlTextWriterEndElement(pWriter);
806 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbAddFlyOffsets"));
807 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
808 BAD_CAST(OString::boolean(mbAddFlyOffsets).getStr()));
809 (void)xmlTextWriterEndElement(pWriter);
811 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbAddVerticalFlyOffsets"));
812 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
813 BAD_CAST(OString::boolean(mbAddVerticalFlyOffsets).getStr()));
814 (void)xmlTextWriterEndElement(pWriter);
816 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbAddExternalLeading"));
817 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
818 BAD_CAST(OString::boolean(mbAddExternalLeading).getStr()));
819 (void)xmlTextWriterEndElement(pWriter);
821 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbUseHiResolutionVirtualDevice"));
822 (void)xmlTextWriterWriteAttribute(
823 pWriter, BAD_CAST(
"value"),
824 BAD_CAST(OString::boolean(mbUseHiResolutionVirtualDevice).getStr()));
825 (void)xmlTextWriterEndElement(pWriter);
827 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbOldLineSpacing"));
828 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
829 BAD_CAST(OString::boolean(mbOldLineSpacing).getStr()));
830 (void)xmlTextWriterEndElement(pWriter);
832 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbAddParaSpacingToTableCells"));
833 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
834 BAD_CAST(OString::boolean(mbAddParaSpacingToTableCells).getStr()));
835 (void)xmlTextWriterEndElement(pWriter);
836 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbAddParaLineSpacingToTableCells"));
837 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
838 BAD_CAST(OString::boolean(mbAddParaLineSpacingToTableCells).getStr()));
839 (void)xmlTextWriterEndElement(pWriter);
841 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbUseFormerObjectPos"));
842 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
843 BAD_CAST(OString::boolean(mbUseFormerObjectPos).getStr()));
844 (void)xmlTextWriterEndElement(pWriter);
846 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbUseFormerTextWrapping"));
847 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
848 BAD_CAST(OString::boolean(mbUseFormerTextWrapping).getStr()));
849 (void)xmlTextWriterEndElement(pWriter);
851 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbConsiderWrapOnObjPos"));
852 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
853 BAD_CAST(OString::boolean(mbConsiderWrapOnObjPos).getStr()));
854 (void)xmlTextWriterEndElement(pWriter);
856 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbMathBaselineAlignment"));
857 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
858 BAD_CAST(OString::boolean(mbMathBaselineAlignment).getStr()));
859 (void)xmlTextWriterEndElement(pWriter);
861 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbStylesNoDefault"));
862 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
863 BAD_CAST(OString::boolean(mbStylesNoDefault).getStr()));
864 (void)xmlTextWriterEndElement(pWriter);
866 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbFloattableNomargins"));
867 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
868 BAD_CAST(OString::boolean(mbFloattableNomargins).getStr()));
869 (void)xmlTextWriterEndElement(pWriter);
871 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbOldNumbering"));
872 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
873 BAD_CAST(OString::boolean(mbOldNumbering).getStr()));
874 (void)xmlTextWriterEndElement(pWriter);
876 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbIgnoreFirstLineIndentInNumbering"));
877 (void)xmlTextWriterWriteAttribute(
878 pWriter, BAD_CAST(
"value"),
879 BAD_CAST(OString::boolean(mbIgnoreFirstLineIndentInNumbering).getStr()));
880 (void)xmlTextWriterEndElement(pWriter);
882 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbDoNotJustifyLinesWithManualBreak"));
883 (void)xmlTextWriterWriteAttribute(
884 pWriter, BAD_CAST(
"value"),
885 BAD_CAST(OString::boolean(mbDoNotJustifyLinesWithManualBreak).getStr()));
886 (void)xmlTextWriterEndElement(pWriter);
888 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbDoNotResetParaAttrsForNumFont"));
889 (void)xmlTextWriterWriteAttribute(
890 pWriter, BAD_CAST(
"value"),
891 BAD_CAST(OString::boolean(mbDoNotResetParaAttrsForNumFont).getStr()));
892 (void)xmlTextWriterEndElement(pWriter);
894 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbTableRowKeep"));
895 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
896 BAD_CAST(OString::boolean(mbTableRowKeep).getStr()));
897 (void)xmlTextWriterEndElement(pWriter);
899 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbIgnoreTabsAndBlanksForLineCalculation"));
900 (void)xmlTextWriterWriteAttribute(
901 pWriter, BAD_CAST(
"value"),
902 BAD_CAST(OString::boolean(mbIgnoreTabsAndBlanksForLineCalculation).getStr()));
903 (void)xmlTextWriterEndElement(pWriter);
905 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbDoNotCaptureDrawObjsOnPage"));
906 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
907 BAD_CAST(OString::boolean(mbDoNotCaptureDrawObjsOnPage).getStr()));
908 (void)xmlTextWriterEndElement(pWriter);
910 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbClipAsCharacterAnchoredWriterFlyFrames"));
911 (void)xmlTextWriterWriteAttribute(
912 pWriter, BAD_CAST(
"value"),
913 BAD_CAST(OString::boolean(mbClipAsCharacterAnchoredWriterFlyFrames).getStr()));
914 (void)xmlTextWriterEndElement(pWriter);
916 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbUnixForceZeroExtLeading"));
917 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
918 BAD_CAST(OString::boolean(mbUnixForceZeroExtLeading).getStr()));
919 (void)xmlTextWriterEndElement(pWriter);
921 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbTabRelativeToIndent"));
922 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
923 BAD_CAST(OString::boolean(mbTabRelativeToIndent).getStr()));
924 (void)xmlTextWriterEndElement(pWriter);
926 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbProtectForm"));
927 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
928 BAD_CAST(OString::boolean(mbProtectForm).getStr()));
929 (void)xmlTextWriterEndElement(pWriter);
931 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbMsWordCompTrailingBlanks"));
932 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
933 BAD_CAST(OString::boolean(mbMsWordCompTrailingBlanks).getStr()));
934 (void)xmlTextWriterEndElement(pWriter);
936 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbMsWordCompMinLineHeightByFly"));
937 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
938 BAD_CAST(OString::boolean(mbMsWordCompMinLineHeightByFly).getStr()));
939 (void)xmlTextWriterEndElement(pWriter);
941 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbInvertBorderSpacing"));
942 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
943 BAD_CAST(OString::boolean(mbInvertBorderSpacing).getStr()));
944 (void)xmlTextWriterEndElement(pWriter);
946 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbCollapseEmptyCellPara"));
947 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
948 BAD_CAST(OString::boolean(mbCollapseEmptyCellPara).getStr()));
949 (void)xmlTextWriterEndElement(pWriter);
951 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbTabAtLeftIndentForParagraphsInList"));
952 (void)xmlTextWriterWriteAttribute(
953 pWriter, BAD_CAST(
"value"),
954 BAD_CAST(OString::boolean(mbTabAtLeftIndentForParagraphsInList).getStr()));
955 (void)xmlTextWriterEndElement(pWriter);
957 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbSmallCapsPercentage66"));
958 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
959 BAD_CAST(OString::boolean(mbSmallCapsPercentage66).getStr()));
960 (void)xmlTextWriterEndElement(pWriter);
962 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbTabOverflow"));
963 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
964 BAD_CAST(OString::boolean(mbTabOverflow).getStr()));
965 (void)xmlTextWriterEndElement(pWriter);
967 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbUnbreakableNumberings"));
968 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
969 BAD_CAST(OString::boolean(mbUnbreakableNumberings).getStr()));
970 (void)xmlTextWriterEndElement(pWriter);
972 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbClippedPictures"));
973 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
974 BAD_CAST(OString::boolean(mbClippedPictures).getStr()));
975 (void)xmlTextWriterEndElement(pWriter);
977 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbBackgroundParaOverDrawings"));
978 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
979 BAD_CAST(OString::boolean(mbBackgroundParaOverDrawings).getStr()));
980 (void)xmlTextWriterEndElement(pWriter);
982 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbTabOverMargin"));
983 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
984 BAD_CAST(OString::boolean(mbTabOverMargin).getStr()));
985 (void)xmlTextWriterEndElement(pWriter);
987 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbTabOverSpacing"));
988 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
989 BAD_CAST(OString::boolean(mbTabOverSpacing).getStr()));
990 (void)xmlTextWriterEndElement(pWriter);
992 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbTreatSingleColumnBreakAsPageBreak"));
993 (void)xmlTextWriterWriteAttribute(
994 pWriter, BAD_CAST(
"value"),
995 BAD_CAST(OString::boolean(mbTreatSingleColumnBreakAsPageBreak).getStr()));
996 (void)xmlTextWriterEndElement(pWriter);
998 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbSurroundTextWrapSmall"));
999 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1000 BAD_CAST(OString::boolean(mbSurroundTextWrapSmall).getStr()));
1001 (void)xmlTextWriterEndElement(pWriter);
1003 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbPropLineSpacingShrinksFirstLine"));
1004 (void)xmlTextWriterWriteAttribute(
1005 pWriter, BAD_CAST(
"value"),
1006 BAD_CAST(OString::boolean(mbPropLineSpacingShrinksFirstLine).getStr()));
1007 (void)xmlTextWriterEndElement(pWriter);
1009 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbSubtractFlys"));
1010 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1011 BAD_CAST(OString::boolean(mbSubtractFlys).getStr()));
1012 (void)xmlTextWriterEndElement(pWriter);
1014 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbLastBrowseMode"));
1015 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1016 BAD_CAST(OString::boolean(mbLastBrowseMode).getStr()));
1017 (void)xmlTextWriterEndElement(pWriter);
1019 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbDisableOffPagePositioning"));
1020 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1021 BAD_CAST(OString::boolean(mbDisableOffPagePositioning).getStr()));
1022 (void)xmlTextWriterEndElement(pWriter);
1024 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbEmptyDbFieldHidesPara"));
1025 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1026 BAD_CAST(OString::boolean(mbEmptyDbFieldHidesPara).getStr()));
1027 (void)xmlTextWriterEndElement(pWriter);
1029 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbUseVariableWidthNBSP"));
1030 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1031 BAD_CAST(OString::boolean(mbUseVariableWidthNBSP).getStr()));
1032 (void)xmlTextWriterEndElement(pWriter);
1034 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbContinuousEndnotes"));
1035 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1036 BAD_CAST(OString::boolean(mbContinuousEndnotes).getStr()));
1037 (void)xmlTextWriterEndElement(pWriter);
1039 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbHeaderSpacingBelowLastPara"));
1040 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1041 BAD_CAST(OString::boolean(mbHeaderSpacingBelowLastPara).getStr()));
1042 (void)xmlTextWriterEndElement(pWriter);
1044 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbFrameAutowidthWithMorePara"));
1045 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1046 BAD_CAST(OString::boolean(mbFrameAutowidthWithMorePara).getStr()));
1047 (void)xmlTextWriterEndElement(pWriter);
1049 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbGutterAtTop"));
1050 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1051 BAD_CAST(OString::boolean(mbGutterAtTop).getStr()));
1052 (void)xmlTextWriterEndElement(pWriter);
1054 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbFootnoteInColumnToPageEnd"));
1055 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1056 BAD_CAST(OString::boolean(mbFootnoteInColumnToPageEnd).getStr()));
1057 (void)xmlTextWriterEndElement(pWriter);
1059 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbHyphenateURLs"));
1060 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1061 BAD_CAST(OString::boolean(mbHyphenateURLs).getStr()));
1062 (void)xmlTextWriterEndElement(pWriter);
1064 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mbDoNotBreakWrappedTables"));
1065 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1066 BAD_CAST(OString::boolean(mbDoNotBreakWrappedTables).getStr()));
1067 (void)xmlTextWriterEndElement(pWriter);
1069 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"mnImagePreferredDPI"));
1070 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1071 BAD_CAST(OString::number(mnImagePreferredDPI).getStr()));
1073 (void)xmlTextWriterEndElement(pWriter);
1075 (void)xmlTextWriterEndElement(pWriter);
@ CONSIDER_WRAP_ON_OBJECT_POSITION
@ SMALL_CAPS_PERCENTAGE_66
@ BACKGROUND_PARA_OVER_DRAWINGS
@ CLIP_AS_CHARACTER_ANCHORED_WRITER_FLY_FRAME
@ TREAT_SINGLE_COLUMN_BREAK_AS_PAGE_BREAK
@ SURROUND_TEXT_WRAP_SMALL
@ DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK
@ HYPHENATE_URLS
tdf#152952
@ GLOBAL_DOCUMENT_SAVE_LINKS
@ USE_FORMER_TEXT_WRAPPING
@ IGNORE_FIRST_LINE_INDENT_IN_NUMBERING
@ HEADER_SPACING_BELOW_LAST_PARA
@ ADD_VERTICAL_FLY_OFFSETS
@ PARA_SPACE_MAX_AT_PAGES
@ EMBED_COMPLEX_SCRIPT_FONTS
@ APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING
@ COLLAPSE_EMPTY_CELL_PARA
@ DISABLE_OFF_PAGE_POSITIONING
@ AUTO_FIRST_LINE_INDENT_DISREGARD_LINE_SPACE
@ TABS_RELATIVE_TO_INDENT
@ FRAME_AUTOWIDTH_WITH_MORE_PARA
@ TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST
@ ADD_PARA_SPACING_TO_TABLE_CELLS
@ USE_HIRES_VIRTUAL_DEVICE
@ NO_NUMBERING_SHOW_FOLLOWBY
@ EMBED_LATIN_SCRIPT_FONTS
@ MS_WORD_COMP_MIN_LINE_HEIGHT_BY_FLY
@ IGNORE_TABS_AND_BLANKS_FOR_LINE_CALCULATION
@ DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE
@ USE_VARIABLE_WIDTH_NBSP
@ EMBED_ASIAN_SCRIPT_FONTS
@ DO_NOT_BREAK_WRAPPED_TABLES
@ EMPTY_DB_FIELD_HIDES_PARA
@ MS_WORD_COMP_TRAILING_BLANKS
@ MATH_BASELINE_ALIGNMENT
@ UNIX_FORCE_ZERO_EXT_LEADING
@ PROP_LINE_SPACING_SHRINKS_FIRST_LINE
@ DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT
@ ADD_PARA_LINE_SPACING_TO_TABLE_CELLS
@ FOOTNOTE_IN_COLUMN_TO_PAGEEND
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
virtual const SwRootFrame * GetCurrentLayout() const =0
virtual void SetModified()=0
Must be called manually at changes of format.
void SetCharCompressType(CharCompressType nType)
void SetForbiddenCharsTable(const std::shared_ptr< SvxForbiddenCharactersTable > &xForbiddenChars)
void ReformatAllTextObjects()
@ SubtractFlysAnchoredAtFlys
bool GetDefault(SvtCompatibilityEntry::Index rIdx) const
static std::shared_ptr< SvxForbiddenCharactersTable > makeForbiddenCharactersTable(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
const css::i18n::ForbiddenCharacters & GetForbidden(const LanguageType aLang)
IDocumentState const & getIDocumentState() const
o3tl::sorted_vector< SwRootFrame * > GetAllLayouts()
const SwNumRuleTable & GetNumRuleTable() const
SwNumRule * GetOutlineNumRule() const
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
IDocumentDrawModelAccess const & getIDocumentDrawModelAccess() const
void SetCountPhantoms(bool bCountPhantoms)
void Validate(const SwDoc &rDoc)
The root element of a Writer document layout.
void StartAllAction()
Set up Start-/EndAction for all Shells on an as high as possible (Shell section) level.
std::vector< SwNumRule * >::size_type size_type
bool mbTabAtLeftIndentForParagraphsInList
virtual void setFieldUpdateFlags(SwFieldUpdateFlags eMode) override
Set the current field update mode.
bool mbClipAsCharacterAnchoredWriterFlyFrames
bool mbUseFormerObjectPos
void Setn32DummyCompatibilityOptions1(const sal_uInt32 CompatibilityOptions1) override
Set the n32DummyCompatibilityOptions1.
bool mbMsWordCompTrailingBlanks
bool mbSurroundTextWrapSmall
sal_uInt32 Getn32DummyCompatibilityOptions2() const override
Get the n32DummyCompatibilityOptions2.
void ReplaceCompatibilityOptions(const DocumentSettingManager &rSource)
bool mbParaSpaceMaxAtPages
virtual ~DocumentSettingManager() override
bool mbDoNotResetParaAttrsForNumFont
virtual void setCharacterCompressionType(CharCompressType nType) override
Set the character compression type for Asian characters.
bool mbAddVerticalFlyOffsets
bool mbIgnoreFirstLineIndentInNumbering
bool mbUseHiResolutionVirtualDevice
bool mbBackgroundParaOverDrawings
bool mbEmptyDbFieldHidesPara
virtual bool get(DocumentSettingId id) const override
Return the specified document setting.
void Setn32DummyCompatibilityOptions2(const sal_uInt32 CompatibilityOptions2) override
Set the n32DummyCompatibilityOptions2.
bool mbDisableOffPagePositioning
bool mbFootnoteInColumnToPageEnd
bool mbDoNotCaptureDrawObjsOnPage
bool mbSmallCapsPercentage66
bool mbTabRelativeToIndent
bool mbAddParaLineSpacingToTableCells
bool mbUnixForceZeroExtLeading
bool mbAddExternalLeading
bool mbPropLineSpacingShrinksFirstLine
bool mbInvertBorderSpacing
DocumentSettingManager(SwDoc &rDoc)
virtual void setLinkUpdateMode(sal_uInt16 nMode) override
Set the current link update mode.
bool mbUseFormerTextWrapping
virtual CharCompressType getCharacterCompressionType() const override
Get the character compression type for Asian characters.
bool mbTreatSingleColumnBreakAsPageBreak
sal_uInt32 Getn32DummyCompatibilityOptions1() const override
Get the n32DummyCompatibilityOptions1.
bool mbDropCapPunctuation
virtual sal_uInt16 getLinkUpdateMode(bool bGlobalSettings) const override
Get the current link update mode.
bool mbUseVariableWidthNBSP
bool mbFrameAutowidthWithMorePara
bool mbKernAsianPunctuation
bool mbIgnoreTabsAndBlanksForLineCalculation
bool mbHeaderSpacingBelowLastPara
virtual void set(DocumentSettingId id, bool value) override
Set the specified document setting.
virtual const css::i18n::ForbiddenCharacters * getForbiddenCharacters(LanguageType nLang, bool bLocaleData) const override
Return the forbidden characters.
virtual std::shared_ptr< SvxForbiddenCharactersTable > & getForbiddenCharacterTable() override
Get the forbidden character table and creates one if necessary.
bool mbUnbreakableNumberings
virtual SwFieldUpdateFlags getFieldUpdateFlags(bool bGlobalSettings) const override
Get the current field update mode.
bool mbMathBaselineAlignment
virtual void setForbiddenCharacters(LanguageType nLang, const css::i18n::ForbiddenCharacters &rForbiddenCharacters) override
Set the forbidden characters.
bool mbMsWordCompMinLineHeightByFly
bool mbAddParaSpacingToTableCells
bool mbConsiderWrapOnObjPos
bool mbDoNotJustifyLinesWithManualBreak
bool mbContinuousEndnotes
void dumpAsXml(xmlTextWriterPtr pWriter) const
bool mbFloattableNomargins
bool mbCollapseEmptyCellPara
struct _xmlTextWriter * xmlTextWriterPtr
static LanguageType nLang