Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include <editeng/swafopt.hxx>
21 : #include <tools/gen.hxx>
22 : #include <vcl/keycodes.hxx>
23 :
24 0 : SvxSwAutoFmtFlags::SvxSwAutoFmtFlags()
25 : : aBulletFont( OUString("StarSymbol"),
26 0 : Size( 0, 14 ) )
27 : {
28 : bAutoCorrect =
29 : bCptlSttSntnc =
30 : bCptlSttWrd =
31 : bChkFontAttr =
32 : bChgUserColl =
33 : bChgEnumNum =
34 : bAddNonBrkSpace =
35 : bChgOrdinalNumber =
36 : bChgToEnEmDash =
37 : bChgWeightUnderl =
38 : bSetINetAttr =
39 : bAFmtDelSpacesAtSttEnd =
40 : bAFmtDelSpacesBetweenLines =
41 : bAFmtByInpDelSpacesAtSttEnd =
42 : bAFmtByInpDelSpacesBetweenLines =
43 0 : bDummy = true;
44 :
45 : bReplaceStyles =
46 : bDelEmptyNode =
47 : bWithRedlining =
48 : bAutoCmpltEndless =
49 0 : bAutoCmpltAppendBlanc = false;
50 :
51 : bAutoCmpltShowAsTip =
52 : bSetBorder =
53 : bCreateTable =
54 : bSetNumRule =
55 : bAFmtByInput =
56 : bRightMargin =
57 : bAutoCompleteWords =
58 : bAutoCmpltCollectWords =
59 0 : bAutoCmpltKeepList = true;
60 :
61 : bDummy6 = bDummy7 = bDummy8 =
62 0 : false;
63 :
64 0 : nRightMargin = 50; // dflt. 50 %
65 0 : nAutoCmpltExpandKey = KEY_RETURN;
66 :
67 0 : aBulletFont.SetCharSet( RTL_TEXTENCODING_SYMBOL );
68 0 : aBulletFont.SetFamily( FAMILY_DONTKNOW );
69 0 : aBulletFont.SetPitch( PITCH_DONTKNOW );
70 0 : aBulletFont.SetWeight( WEIGHT_DONTKNOW );
71 0 : aBulletFont.SetTransparent( true );
72 :
73 0 : cBullet = 0x2022;
74 0 : cByInputBullet = cBullet;
75 0 : aByInputBulletFont = aBulletFont;
76 :
77 0 : nAutoCmpltWordLen = 8;
78 0 : nAutoCmpltListLen = 1000;
79 0 : m_pAutoCompleteList = 0;
80 0 : pSmartTagMgr = 0;
81 0 : }
82 :
83 :
84 0 : SvxSwAutoFmtFlags& SvxSwAutoFmtFlags::operator=( const SvxSwAutoFmtFlags& rAFFlags )
85 : {
86 0 : bAutoCorrect = rAFFlags.bAutoCorrect;
87 0 : bCptlSttSntnc = rAFFlags.bCptlSttSntnc;
88 0 : bCptlSttWrd = rAFFlags.bCptlSttWrd;
89 0 : bChkFontAttr = rAFFlags.bChkFontAttr;
90 :
91 0 : bChgUserColl = rAFFlags.bChgUserColl;
92 0 : bChgEnumNum = rAFFlags.bChgEnumNum;
93 0 : bDelEmptyNode = rAFFlags.bDelEmptyNode;
94 0 : bSetNumRule = rAFFlags.bSetNumRule;
95 0 : bAFmtByInput = rAFFlags.bAFmtByInput;
96 :
97 0 : bAddNonBrkSpace = rAFFlags.bAddNonBrkSpace;
98 0 : bChgOrdinalNumber = rAFFlags.bChgOrdinalNumber;
99 0 : bChgToEnEmDash = rAFFlags.bChgToEnEmDash;
100 0 : bChgWeightUnderl = rAFFlags.bChgWeightUnderl;
101 0 : bSetINetAttr = rAFFlags.bSetINetAttr;
102 0 : bSetBorder = rAFFlags.bSetBorder;
103 0 : bCreateTable = rAFFlags.bCreateTable;
104 0 : bReplaceStyles = rAFFlags.bReplaceStyles;
105 0 : bAFmtDelSpacesAtSttEnd = rAFFlags.bAFmtDelSpacesAtSttEnd;
106 0 : bAFmtDelSpacesBetweenLines = rAFFlags.bAFmtDelSpacesBetweenLines;
107 0 : bAFmtByInpDelSpacesAtSttEnd = rAFFlags.bAFmtByInpDelSpacesAtSttEnd;
108 0 : bAFmtByInpDelSpacesBetweenLines = rAFFlags.bAFmtByInpDelSpacesBetweenLines;
109 :
110 0 : bDummy = rAFFlags.bDummy;
111 :
112 0 : bDummy6 = rAFFlags.bDummy6;
113 0 : bDummy7 = rAFFlags.bDummy7;
114 0 : bDummy8 = rAFFlags.bDummy8;
115 :
116 0 : bWithRedlining = rAFFlags.bWithRedlining;
117 :
118 0 : bRightMargin = rAFFlags.bRightMargin;
119 0 : nRightMargin = rAFFlags.nRightMargin;
120 :
121 0 : cBullet = rAFFlags.cBullet;
122 0 : aBulletFont = rAFFlags.aBulletFont;
123 :
124 0 : cByInputBullet = rAFFlags.cByInputBullet;
125 0 : aByInputBulletFont = rAFFlags.aByInputBulletFont;
126 :
127 0 : bAutoCompleteWords = rAFFlags.bAutoCompleteWords;
128 0 : bAutoCmpltCollectWords = rAFFlags.bAutoCmpltCollectWords;
129 0 : bAutoCmpltKeepList = rAFFlags.bAutoCmpltKeepList;
130 0 : bAutoCmpltEndless = rAFFlags.bAutoCmpltEndless;
131 0 : bAutoCmpltAppendBlanc = rAFFlags.bAutoCmpltAppendBlanc;
132 0 : bAutoCmpltShowAsTip = rAFFlags.bAutoCmpltShowAsTip;
133 0 : m_pAutoCompleteList = rAFFlags.m_pAutoCompleteList;
134 0 : pSmartTagMgr = rAFFlags.pSmartTagMgr;
135 0 : nAutoCmpltExpandKey = rAFFlags.nAutoCmpltExpandKey;
136 :
137 0 : nAutoCmpltWordLen = rAFFlags.nAutoCmpltWordLen;
138 0 : nAutoCmpltListLen = rAFFlags.nAutoCmpltListLen;
139 :
140 0 : return *this;
141 : }
142 :
143 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|