merge the formfield patch from ooo-build
[ooovba.git] / svx / source / editeng / swafopt.cxx
blob0940a4e736db0ff1a321219ca0fb721f15ff19f0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: swafopt.cxx,v $
10 * $Revision: 1.9 $
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 /*------------------------------------------------------------------------
39 Beschreibung:
40 ------------------------------------------------------------------------*/
42 SvxSwAutoFmtFlags::SvxSwAutoFmtFlags()
43 : aBulletFont( String::CreateFromAscii(
44 RTL_CONSTASCII_STRINGPARAM( "StarSymbol" )),
45 Size( 0, 14 ) )
47 bReplaceQuote =
48 bAutoCorrect =
49 bCptlSttSntnc =
50 bCptlSttWrd =
51 bChkFontAttr =
52 bChgUserColl =
53 bChgEnumNum =
54 bChgFracionSymbol =
55 bChgOrdinalNumber =
56 bChgToEnEmDash =
57 bChgWeightUnderl =
58 bSetINetAttr =
59 bAFmtDelSpacesAtSttEnd =
60 bAFmtDelSpacesBetweenLines =
61 bAFmtByInpDelSpacesAtSttEnd =
62 bAFmtByInpDelSpacesBetweenLines =
63 bDummy = TRUE;
65 bReplaceStyles =
66 bDelEmptyNode =
67 bWithRedlining =
68 bAutoCmpltEndless =
69 bAutoCmpltAppendBlanc =
70 bAutoCmpltShowAsTip = FALSE;
72 bSetBorder =
73 bCreateTable =
74 bSetNumRule =
75 bAFmtByInput =
76 bRightMargin =
77 bAutoCompleteWords =
78 bAutoCmpltCollectWords =
79 bAutoCmpltKeepList = TRUE;
81 bDummy6 = bDummy7 = bDummy8 =
82 FALSE;
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 );
93 cBullet = 0x2022;
94 cByInputBullet = cBullet;
95 aByInputBulletFont = aBulletFont;
97 nAutoCmpltWordLen = 10;
98 nAutoCmpltListLen = 500;
99 pAutoCmpltList = 0;
100 pSmartTagMgr = 0;
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;
161 return *this;