xref: /aoo41x/main/editeng/inc/editeng/swafopt.hxx (revision 4c5491ea)
1*4c5491eaSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*4c5491eaSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*4c5491eaSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*4c5491eaSAndrew Rist  * distributed with this work for additional information
6*4c5491eaSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*4c5491eaSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*4c5491eaSAndrew Rist  * "License"); you may not use this file except in compliance
9*4c5491eaSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*4c5491eaSAndrew Rist  *
11*4c5491eaSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*4c5491eaSAndrew Rist  *
13*4c5491eaSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*4c5491eaSAndrew Rist  * software distributed under the License is distributed on an
15*4c5491eaSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*4c5491eaSAndrew Rist  * KIND, either express or implied.  See the License for the
17*4c5491eaSAndrew Rist  * specific language governing permissions and limitations
18*4c5491eaSAndrew Rist  * under the License.
19*4c5491eaSAndrew Rist  *
20*4c5491eaSAndrew Rist  *************************************************************/
21*4c5491eaSAndrew Rist 
22*4c5491eaSAndrew Rist 
23cdf0e10cSrcweir #ifndef _SVXSWAFOPT_HXX
24cdf0e10cSrcweir #define _SVXSWAFOPT_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <vcl/font.hxx>
27cdf0e10cSrcweir #include "editeng/editengdllapi.h"
28cdf0e10cSrcweir 
29cdf0e10cSrcweir class SvStringsISortDtor;
30cdf0e10cSrcweir class SmartTagMgr;
31cdf0e10cSrcweir 
32cdf0e10cSrcweir // Klasse fuer Optionen vom Autoformat
33cdf0e10cSrcweir struct EDITENG_DLLPUBLIC SvxSwAutoFmtFlags
34cdf0e10cSrcweir {
35cdf0e10cSrcweir 	Font aBulletFont;
36cdf0e10cSrcweir 	Font aByInputBulletFont;
37cdf0e10cSrcweir 	const SvStringsISortDtor* pAutoCmpltList;  // only valid inside the Dialog!!!
38cdf0e10cSrcweir     SmartTagMgr* pSmartTagMgr;
39cdf0e10cSrcweir 
40cdf0e10cSrcweir 	sal_Unicode cBullet;
41cdf0e10cSrcweir 	sal_Unicode cByInputBullet;
42cdf0e10cSrcweir 
43cdf0e10cSrcweir 	sal_uInt16 nAutoCmpltWordLen, nAutoCmpltListLen;
44cdf0e10cSrcweir 	sal_uInt16 nAutoCmpltExpandKey;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	sal_uInt8 nRightMargin;
47cdf0e10cSrcweir 
48cdf0e10cSrcweir 	sal_Bool bAutoCorrect : 1;
49cdf0e10cSrcweir 	sal_Bool bCptlSttSntnc : 1;
50cdf0e10cSrcweir 	sal_Bool bCptlSttWrd : 1;
51cdf0e10cSrcweir 	sal_Bool bChkFontAttr : 1;
52cdf0e10cSrcweir 
53cdf0e10cSrcweir 	sal_Bool bChgUserColl : 1;
54cdf0e10cSrcweir 	sal_Bool bChgEnumNum : 1;
55cdf0e10cSrcweir 
56cdf0e10cSrcweir 	sal_Bool bAFmtByInput : 1;
57cdf0e10cSrcweir 	sal_Bool bDelEmptyNode : 1;
58cdf0e10cSrcweir 	sal_Bool bSetNumRule : 1;
59cdf0e10cSrcweir 
60cdf0e10cSrcweir 	sal_Bool bChgOrdinalNumber : 1;
61cdf0e10cSrcweir 	sal_Bool bChgToEnEmDash : 1;
62cdf0e10cSrcweir     sal_Bool bAddNonBrkSpace : 1;
63cdf0e10cSrcweir 	sal_Bool bChgWeightUnderl : 1;
64cdf0e10cSrcweir 	sal_Bool bSetINetAttr : 1;
65cdf0e10cSrcweir 
66cdf0e10cSrcweir 	sal_Bool bSetBorder : 1;
67cdf0e10cSrcweir 	sal_Bool bCreateTable : 1;
68cdf0e10cSrcweir 	sal_Bool bReplaceStyles : 1;
69cdf0e10cSrcweir 	sal_Bool bDummy : 1;
70cdf0e10cSrcweir 
71cdf0e10cSrcweir 	sal_Bool bWithRedlining : 1;
72cdf0e10cSrcweir 
73cdf0e10cSrcweir 	sal_Bool bRightMargin : 1;
74cdf0e10cSrcweir 
75cdf0e10cSrcweir 	sal_Bool bAutoCompleteWords : 1;
76cdf0e10cSrcweir 	sal_Bool bAutoCmpltCollectWords : 1;
77cdf0e10cSrcweir 	sal_Bool bAutoCmpltEndless : 1;
78cdf0e10cSrcweir // -- under NT hier starts a new long
79cdf0e10cSrcweir 	sal_Bool bAutoCmpltAppendBlanc : 1;
80cdf0e10cSrcweir 	sal_Bool bAutoCmpltShowAsTip : 1;
81cdf0e10cSrcweir 
82cdf0e10cSrcweir 	sal_Bool bAFmtDelSpacesAtSttEnd : 1;
83cdf0e10cSrcweir 	sal_Bool bAFmtDelSpacesBetweenLines : 1;
84cdf0e10cSrcweir 	sal_Bool bAFmtByInpDelSpacesAtSttEnd : 1;
85cdf0e10cSrcweir 	sal_Bool bAFmtByInpDelSpacesBetweenLines : 1;
86cdf0e10cSrcweir 
87cdf0e10cSrcweir     sal_Bool bAutoCmpltKeepList : 1;
88cdf0e10cSrcweir 
89cdf0e10cSrcweir 	// some dummies for any new options
90cdf0e10cSrcweir 	sal_Bool bDummy6 : 1,
91cdf0e10cSrcweir 		 bDummy7 : 1,
92cdf0e10cSrcweir 		 bDummy8 : 1
93cdf0e10cSrcweir 		 ;
94cdf0e10cSrcweir 
95cdf0e10cSrcweir 	SvxSwAutoFmtFlags();
SvxSwAutoFmtFlagsSvxSwAutoFmtFlags96cdf0e10cSrcweir 	SvxSwAutoFmtFlags( const SvxSwAutoFmtFlags& rAFFlags ) { *this = rAFFlags; }
97cdf0e10cSrcweir 	SvxSwAutoFmtFlags& operator=( const SvxSwAutoFmtFlags& );
98cdf0e10cSrcweir };
99cdf0e10cSrcweir 
100cdf0e10cSrcweir #endif
101cdf0e10cSrcweir 
102