1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 <vcl/keycodes.hxx>
21 #include <tools/string.hxx>
22 #include <tools/gen.hxx>
24 #include <editeng/swafopt.hxx>
26 SvxSwAutoFmtFlags::SvxSwAutoFmtFlags()
27 : aBulletFont( OUString("StarSymbol"),
41 bAFmtDelSpacesAtSttEnd
=
42 bAFmtDelSpacesBetweenLines
=
43 bAFmtByInpDelSpacesAtSttEnd
=
44 bAFmtByInpDelSpacesBetweenLines
=
51 bAutoCmpltAppendBlanc
= sal_False
;
60 bAutoCmpltCollectWords
=
61 bAutoCmpltKeepList
= sal_True
;
63 bDummy6
= bDummy7
= bDummy8
=
66 nRightMargin
= 50; // dflt. 50 %
67 nAutoCmpltExpandKey
= KEY_RETURN
;
69 aBulletFont
.SetCharSet( RTL_TEXTENCODING_SYMBOL
);
70 aBulletFont
.SetFamily( FAMILY_DONTKNOW
);
71 aBulletFont
.SetPitch( PITCH_DONTKNOW
);
72 aBulletFont
.SetWeight( WEIGHT_DONTKNOW
);
73 aBulletFont
.SetTransparent( sal_True
);
76 cByInputBullet
= cBullet
;
77 aByInputBulletFont
= aBulletFont
;
79 nAutoCmpltWordLen
= 8;
80 nAutoCmpltListLen
= 1000;
81 m_pAutoCompleteList
= 0;
86 SvxSwAutoFmtFlags
& SvxSwAutoFmtFlags::operator=( const SvxSwAutoFmtFlags
& rAFFlags
)
88 bAutoCorrect
= rAFFlags
.bAutoCorrect
;
89 bCptlSttSntnc
= rAFFlags
.bCptlSttSntnc
;
90 bCptlSttWrd
= rAFFlags
.bCptlSttWrd
;
91 bChkFontAttr
= rAFFlags
.bChkFontAttr
;
93 bChgUserColl
= rAFFlags
.bChgUserColl
;
94 bChgEnumNum
= rAFFlags
.bChgEnumNum
;
95 bDelEmptyNode
= rAFFlags
.bDelEmptyNode
;
96 bSetNumRule
= rAFFlags
.bSetNumRule
;
97 bAFmtByInput
= rAFFlags
.bAFmtByInput
;
99 bAddNonBrkSpace
= rAFFlags
.bAddNonBrkSpace
;
100 bChgOrdinalNumber
= rAFFlags
.bChgOrdinalNumber
;
101 bChgToEnEmDash
= rAFFlags
.bChgToEnEmDash
;
102 bChgWeightUnderl
= rAFFlags
.bChgWeightUnderl
;
103 bSetINetAttr
= rAFFlags
.bSetINetAttr
;
104 bSetBorder
= rAFFlags
.bSetBorder
;
105 bCreateTable
= rAFFlags
.bCreateTable
;
106 bReplaceStyles
= rAFFlags
.bReplaceStyles
;
107 bAFmtDelSpacesAtSttEnd
= rAFFlags
.bAFmtDelSpacesAtSttEnd
;
108 bAFmtDelSpacesBetweenLines
= rAFFlags
.bAFmtDelSpacesBetweenLines
;
109 bAFmtByInpDelSpacesAtSttEnd
= rAFFlags
.bAFmtByInpDelSpacesAtSttEnd
;
110 bAFmtByInpDelSpacesBetweenLines
= rAFFlags
.bAFmtByInpDelSpacesBetweenLines
;
112 bDummy
= rAFFlags
.bDummy
;
114 bDummy6
= rAFFlags
.bDummy6
;
115 bDummy7
= rAFFlags
.bDummy7
;
116 bDummy8
= rAFFlags
.bDummy8
;
118 bWithRedlining
= rAFFlags
.bWithRedlining
;
120 bRightMargin
= rAFFlags
.bRightMargin
;
121 nRightMargin
= rAFFlags
.nRightMargin
;
123 cBullet
= rAFFlags
.cBullet
;
124 aBulletFont
= rAFFlags
.aBulletFont
;
126 cByInputBullet
= rAFFlags
.cByInputBullet
;
127 aByInputBulletFont
= rAFFlags
.aByInputBulletFont
;
129 bAutoCompleteWords
= rAFFlags
.bAutoCompleteWords
;
130 bAutoCmpltCollectWords
= rAFFlags
.bAutoCmpltCollectWords
;
131 bAutoCmpltKeepList
= rAFFlags
.bAutoCmpltKeepList
;
132 bAutoCmpltEndless
= rAFFlags
.bAutoCmpltEndless
;
133 bAutoCmpltAppendBlanc
= rAFFlags
.bAutoCmpltAppendBlanc
;
134 bAutoCmpltShowAsTip
= rAFFlags
.bAutoCmpltShowAsTip
;
135 m_pAutoCompleteList
= rAFFlags
.m_pAutoCompleteList
;
136 pSmartTagMgr
= rAFFlags
.pSmartTagMgr
;
137 nAutoCmpltExpandKey
= rAFFlags
.nAutoCmpltExpandKey
;
139 nAutoCmpltWordLen
= rAFFlags
.nAutoCmpltWordLen
;
140 nAutoCmpltListLen
= rAFFlags
.nAutoCmpltListLen
;
145 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */