xref: /core/editeng/source/misc/swafopt.cxx (revision 37722469)
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 
SvxSwAutoFormatFlags()24 SvxSwAutoFormatFlags::SvxSwAutoFormatFlags()
25     : aBulletFont( u"OpenSymbol"_ustr, Size( 0, 14 ) )
26 {
27     bAutoCorrect =
28     bCapitalStartSentence =
29     bCapitalStartWord =
30     bChgEnumNum =
31     bAddNonBrkSpace =
32     bChgOrdinalNumber =
33     bTransliterateRTL =
34     bChgAngleQuotes =
35     bChgToEnEmDash =
36     bChgWeightUnderl =
37     bSetINetAttr =
38     bSetDOIAttr =
39     bAFormatDelSpacesAtSttEnd =
40     bAFormatDelSpacesBetweenLines =
41     bAFormatByInpDelSpacesAtSttEnd =
42     bAFormatByInpDelSpacesBetweenLines = true;
43 
44     bChgUserColl =
45     bReplaceStyles =
46     bDelEmptyNode =
47     bWithRedlining =
48     bAutoCmpltEndless =
49     bSetNumRuleAfterSpace =
50     bAutoCmpltAppendBlank = false;
51 
52     bAutoCmpltShowAsTip =
53     bSetBorder =
54     bCreateTable =
55     bSetNumRule =
56     bAFormatByInput =
57     bRightMargin =
58     bAutoCompleteWords =
59     bAutoCmpltCollectWords =
60     bAutoCmpltKeepList = true;
61 
62     nRightMargin = 50;      // default 50%
63     nAutoCmpltExpandKey = KEY_RETURN;
64 
65     aBulletFont.SetCharSet( RTL_TEXTENCODING_SYMBOL );
66     aBulletFont.SetFamily( FAMILY_DONTKNOW );
67     aBulletFont.SetPitch( PITCH_DONTKNOW );
68     aBulletFont.SetWeight( WEIGHT_DONTKNOW );
69     aBulletFont.SetTransparent( true );
70 
71     cBullet = 0x2022;
72     cByInputBullet = cBullet;
73     aByInputBulletFont = aBulletFont;
74 
75     nAutoCmpltWordLen = 8;
76     nAutoCmpltListLen = 1000;
77     m_pAutoCompleteList = nullptr;
78     pSmartTagMgr = nullptr;
79 }
80 
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
82