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