bump product version to 5.0.4.1
[LibreOffice.git] / editeng / source / misc / swafopt.cxx
blob31f085c805c14d1d7ff805a39abe69be49d0dfe6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <editeng/swafopt.hxx>
21 #include <tools/gen.hxx>
22 #include <vcl/keycodes.hxx>
24 SvxSwAutoFormatFlags::SvxSwAutoFormatFlags()
25 : aBulletFont( OUString("StarSymbol"),
26 Size( 0, 14 ) )
28 bAutoCorrect =
29 bCptlSttSntnc =
30 bCptlSttWrd =
31 bChkFontAttr =
32 bChgUserColl =
33 bChgEnumNum =
34 bAddNonBrkSpace =
35 bChgOrdinalNumber =
36 bChgToEnEmDash =
37 bChgWeightUnderl =
38 bSetINetAttr =
39 bAFormatDelSpacesAtSttEnd =
40 bAFormatDelSpacesBetweenLines =
41 bAFormatByInpDelSpacesAtSttEnd =
42 bAFormatByInpDelSpacesBetweenLines =
43 bDummy = true;
45 bReplaceStyles =
46 bDelEmptyNode =
47 bWithRedlining =
48 bAutoCmpltEndless =
49 bAutoCmpltAppendBlanc = false;
51 bAutoCmpltShowAsTip =
52 bSetBorder =
53 bCreateTable =
54 bSetNumRule =
55 bAFormatByInput =
56 bRightMargin =
57 bAutoCompleteWords =
58 bAutoCmpltCollectWords =
59 bAutoCmpltKeepList = true;
61 bDummy6 = bDummy7 = bDummy8 =
62 false;
64 nRightMargin = 50; // default 50%
65 nAutoCmpltExpandKey = KEY_RETURN;
67 aBulletFont.SetCharSet( RTL_TEXTENCODING_SYMBOL );
68 aBulletFont.SetFamily( FAMILY_DONTKNOW );
69 aBulletFont.SetPitch( PITCH_DONTKNOW );
70 aBulletFont.SetWeight( WEIGHT_DONTKNOW );
71 aBulletFont.SetTransparent( true );
73 cBullet = 0x2022;
74 cByInputBullet = cBullet;
75 aByInputBulletFont = aBulletFont;
77 nAutoCmpltWordLen = 8;
78 nAutoCmpltListLen = 1000;
79 m_pAutoCompleteList = 0;
80 pSmartTagMgr = 0;
84 SvxSwAutoFormatFlags& SvxSwAutoFormatFlags::operator=( const SvxSwAutoFormatFlags& rAFFlags )
86 bAutoCorrect = rAFFlags.bAutoCorrect;
87 bCptlSttSntnc = rAFFlags.bCptlSttSntnc;
88 bCptlSttWrd = rAFFlags.bCptlSttWrd;
89 bChkFontAttr = rAFFlags.bChkFontAttr;
91 bChgUserColl = rAFFlags.bChgUserColl;
92 bChgEnumNum = rAFFlags.bChgEnumNum;
93 bDelEmptyNode = rAFFlags.bDelEmptyNode;
94 bSetNumRule = rAFFlags.bSetNumRule;
95 bAFormatByInput = rAFFlags.bAFormatByInput;
97 bAddNonBrkSpace = rAFFlags.bAddNonBrkSpace;
98 bChgOrdinalNumber = rAFFlags.bChgOrdinalNumber;
99 bChgToEnEmDash = rAFFlags.bChgToEnEmDash;
100 bChgWeightUnderl = rAFFlags.bChgWeightUnderl;
101 bSetINetAttr = rAFFlags.bSetINetAttr;
102 bSetBorder = rAFFlags.bSetBorder;
103 bCreateTable = rAFFlags.bCreateTable;
104 bReplaceStyles = rAFFlags.bReplaceStyles;
105 bAFormatDelSpacesAtSttEnd = rAFFlags.bAFormatDelSpacesAtSttEnd;
106 bAFormatDelSpacesBetweenLines = rAFFlags.bAFormatDelSpacesBetweenLines;
107 bAFormatByInpDelSpacesAtSttEnd = rAFFlags.bAFormatByInpDelSpacesAtSttEnd;
108 bAFormatByInpDelSpacesBetweenLines = rAFFlags.bAFormatByInpDelSpacesBetweenLines;
110 bDummy = rAFFlags.bDummy;
112 bDummy6 = rAFFlags.bDummy6;
113 bDummy7 = rAFFlags.bDummy7;
114 bDummy8 = rAFFlags.bDummy8;
116 bWithRedlining = rAFFlags.bWithRedlining;
118 bRightMargin = rAFFlags.bRightMargin;
119 nRightMargin = rAFFlags.nRightMargin;
121 cBullet = rAFFlags.cBullet;
122 aBulletFont = rAFFlags.aBulletFont;
124 cByInputBullet = rAFFlags.cByInputBullet;
125 aByInputBulletFont = rAFFlags.aByInputBulletFont;
127 bAutoCompleteWords = rAFFlags.bAutoCompleteWords;
128 bAutoCmpltCollectWords = rAFFlags.bAutoCmpltCollectWords;
129 bAutoCmpltKeepList = rAFFlags.bAutoCmpltKeepList;
130 bAutoCmpltEndless = rAFFlags.bAutoCmpltEndless;
131 bAutoCmpltAppendBlanc = rAFFlags.bAutoCmpltAppendBlanc;
132 bAutoCmpltShowAsTip = rAFFlags.bAutoCmpltShowAsTip;
133 m_pAutoCompleteList = rAFFlags.m_pAutoCompleteList;
134 pSmartTagMgr = rAFFlags.pSmartTagMgr;
135 nAutoCmpltExpandKey = rAFFlags.nAutoCmpltExpandKey;
137 nAutoCmpltWordLen = rAFFlags.nAutoCmpltWordLen;
138 nAutoCmpltListLen = rAFFlags.nAutoCmpltListLen;
140 return *this;
143 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */