1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: swafopt.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_svx.hxx"
33 #include <vcl/keycodes.hxx>
34 #include <tools/string.hxx>
36 #include <svx/swafopt.hxx>
38 /*------------------------------------------------------------------------
40 ------------------------------------------------------------------------*/
42 SvxSwAutoFmtFlags::SvxSwAutoFmtFlags()
43 : aBulletFont( String::CreateFromAscii(
44 RTL_CONSTASCII_STRINGPARAM( "StarSymbol" )),
59 bAFmtDelSpacesAtSttEnd
=
60 bAFmtDelSpacesBetweenLines
=
61 bAFmtByInpDelSpacesAtSttEnd
=
62 bAFmtByInpDelSpacesBetweenLines
=
69 bAutoCmpltAppendBlanc
=
70 bAutoCmpltShowAsTip
= FALSE
;
78 bAutoCmpltCollectWords
=
79 bAutoCmpltKeepList
= TRUE
;
81 bDummy6
= bDummy7
= bDummy8
=
84 nRightMargin
= 50; // dflt. 50 %
85 nAutoCmpltExpandKey
= KEY_RETURN
;
87 aBulletFont
.SetCharSet( RTL_TEXTENCODING_SYMBOL
);
88 aBulletFont
.SetFamily( FAMILY_DONTKNOW
);
89 aBulletFont
.SetPitch( PITCH_DONTKNOW
);
90 aBulletFont
.SetWeight( WEIGHT_DONTKNOW
);
91 aBulletFont
.SetTransparent( TRUE
);
94 cByInputBullet
= cBullet
;
95 aByInputBulletFont
= aBulletFont
;
97 nAutoCmpltWordLen
= 10;
98 nAutoCmpltListLen
= 500;
104 SvxSwAutoFmtFlags
& SvxSwAutoFmtFlags::operator=( const SvxSwAutoFmtFlags
& rAFFlags
)
106 bAutoCorrect
= rAFFlags
.bAutoCorrect
;
107 bReplaceQuote
= rAFFlags
.bReplaceQuote
;
108 bCptlSttSntnc
= rAFFlags
.bCptlSttSntnc
;
109 bCptlSttWrd
= rAFFlags
.bCptlSttWrd
;
110 bChkFontAttr
= rAFFlags
.bChkFontAttr
;
112 bChgUserColl
= rAFFlags
.bChgUserColl
;
113 bChgEnumNum
= rAFFlags
.bChgEnumNum
;
114 bDelEmptyNode
= rAFFlags
.bDelEmptyNode
;
115 bSetNumRule
= rAFFlags
.bSetNumRule
;
116 bAFmtByInput
= rAFFlags
.bAFmtByInput
;
118 bChgFracionSymbol
= rAFFlags
.bChgFracionSymbol
;
119 bChgOrdinalNumber
= rAFFlags
.bChgOrdinalNumber
;
120 bChgToEnEmDash
= rAFFlags
.bChgToEnEmDash
;
121 bChgWeightUnderl
= rAFFlags
.bChgWeightUnderl
;
122 bSetINetAttr
= rAFFlags
.bSetINetAttr
;
123 bSetBorder
= rAFFlags
.bSetBorder
;
124 bCreateTable
= rAFFlags
.bCreateTable
;
125 bReplaceStyles
= rAFFlags
.bReplaceStyles
;
126 bAFmtDelSpacesAtSttEnd
= rAFFlags
.bAFmtDelSpacesAtSttEnd
;
127 bAFmtDelSpacesBetweenLines
= rAFFlags
.bAFmtDelSpacesBetweenLines
;
128 bAFmtByInpDelSpacesAtSttEnd
= rAFFlags
.bAFmtByInpDelSpacesAtSttEnd
;
129 bAFmtByInpDelSpacesBetweenLines
= rAFFlags
.bAFmtByInpDelSpacesBetweenLines
;
131 bDummy
= rAFFlags
.bDummy
;
133 bDummy6
= rAFFlags
.bDummy6
;
134 bDummy7
= rAFFlags
.bDummy7
;
135 bDummy8
= rAFFlags
.bDummy8
;
137 bWithRedlining
= rAFFlags
.bWithRedlining
;
139 bRightMargin
= rAFFlags
.bRightMargin
;
140 nRightMargin
= rAFFlags
.nRightMargin
;
142 cBullet
= rAFFlags
.cBullet
;
143 aBulletFont
= rAFFlags
.aBulletFont
;
145 cByInputBullet
= rAFFlags
.cByInputBullet
;
146 aByInputBulletFont
= rAFFlags
.aByInputBulletFont
;
148 bAutoCompleteWords
= rAFFlags
.bAutoCompleteWords
;
149 bAutoCmpltCollectWords
= rAFFlags
.bAutoCmpltCollectWords
;
150 bAutoCmpltKeepList
= rAFFlags
.bAutoCmpltKeepList
;
151 bAutoCmpltEndless
= rAFFlags
.bAutoCmpltEndless
;
152 bAutoCmpltAppendBlanc
= rAFFlags
.bAutoCmpltAppendBlanc
;
153 bAutoCmpltShowAsTip
= rAFFlags
.bAutoCmpltShowAsTip
;
154 pAutoCmpltList
= rAFFlags
.pAutoCmpltList
;
155 pSmartTagMgr
= rAFFlags
.pSmartTagMgr
;
156 nAutoCmpltExpandKey
= rAFFlags
.nAutoCmpltExpandKey
;
158 nAutoCmpltWordLen
= rAFFlags
.nAutoCmpltWordLen
;
159 nAutoCmpltListLen
= rAFFlags
.nAutoCmpltListLen
;