1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29*cdf0e10cSrcweir #include "precompiled_editeng.hxx" 30*cdf0e10cSrcweir #include <vcl/keycodes.hxx> 31*cdf0e10cSrcweir #include <tools/string.hxx> 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir #include <editeng/swafopt.hxx> 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir /*------------------------------------------------------------------------ 36*cdf0e10cSrcweir Beschreibung: 37*cdf0e10cSrcweir ------------------------------------------------------------------------*/ 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir SvxSwAutoFmtFlags::SvxSwAutoFmtFlags() 40*cdf0e10cSrcweir : aBulletFont( String::CreateFromAscii( 41*cdf0e10cSrcweir RTL_CONSTASCII_STRINGPARAM( "StarSymbol" )), 42*cdf0e10cSrcweir Size( 0, 14 ) ) 43*cdf0e10cSrcweir { 44*cdf0e10cSrcweir bAutoCorrect = 45*cdf0e10cSrcweir bCptlSttSntnc = 46*cdf0e10cSrcweir bCptlSttWrd = 47*cdf0e10cSrcweir bChkFontAttr = 48*cdf0e10cSrcweir bChgUserColl = 49*cdf0e10cSrcweir bChgEnumNum = 50*cdf0e10cSrcweir bAddNonBrkSpace = 51*cdf0e10cSrcweir bChgOrdinalNumber = 52*cdf0e10cSrcweir bChgToEnEmDash = 53*cdf0e10cSrcweir bChgWeightUnderl = 54*cdf0e10cSrcweir bSetINetAttr = 55*cdf0e10cSrcweir bAFmtDelSpacesAtSttEnd = 56*cdf0e10cSrcweir bAFmtDelSpacesBetweenLines = 57*cdf0e10cSrcweir bAFmtByInpDelSpacesAtSttEnd = 58*cdf0e10cSrcweir bAFmtByInpDelSpacesBetweenLines = 59*cdf0e10cSrcweir bDummy = sal_True; 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir bReplaceStyles = 62*cdf0e10cSrcweir bDelEmptyNode = 63*cdf0e10cSrcweir bWithRedlining = 64*cdf0e10cSrcweir bAutoCmpltEndless = 65*cdf0e10cSrcweir bAutoCmpltAppendBlanc = 66*cdf0e10cSrcweir bAutoCmpltShowAsTip = sal_False; 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir bSetBorder = 69*cdf0e10cSrcweir bCreateTable = 70*cdf0e10cSrcweir bSetNumRule = 71*cdf0e10cSrcweir bAFmtByInput = 72*cdf0e10cSrcweir bRightMargin = 73*cdf0e10cSrcweir bAutoCompleteWords = 74*cdf0e10cSrcweir bAutoCmpltCollectWords = 75*cdf0e10cSrcweir bAutoCmpltKeepList = sal_True; 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir bDummy6 = bDummy7 = bDummy8 = 78*cdf0e10cSrcweir sal_False; 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir nRightMargin = 50; // dflt. 50 % 81*cdf0e10cSrcweir nAutoCmpltExpandKey = KEY_RETURN; 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir aBulletFont.SetCharSet( RTL_TEXTENCODING_SYMBOL ); 84*cdf0e10cSrcweir aBulletFont.SetFamily( FAMILY_DONTKNOW ); 85*cdf0e10cSrcweir aBulletFont.SetPitch( PITCH_DONTKNOW ); 86*cdf0e10cSrcweir aBulletFont.SetWeight( WEIGHT_DONTKNOW ); 87*cdf0e10cSrcweir aBulletFont.SetTransparent( sal_True ); 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir cBullet = 0x2022; 90*cdf0e10cSrcweir cByInputBullet = cBullet; 91*cdf0e10cSrcweir aByInputBulletFont = aBulletFont; 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir nAutoCmpltWordLen = 10; 94*cdf0e10cSrcweir nAutoCmpltListLen = 500; 95*cdf0e10cSrcweir pAutoCmpltList = 0; 96*cdf0e10cSrcweir pSmartTagMgr = 0; 97*cdf0e10cSrcweir } 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir SvxSwAutoFmtFlags& SvxSwAutoFmtFlags::operator=( const SvxSwAutoFmtFlags& rAFFlags ) 101*cdf0e10cSrcweir { 102*cdf0e10cSrcweir bAutoCorrect = rAFFlags.bAutoCorrect; 103*cdf0e10cSrcweir bCptlSttSntnc = rAFFlags.bCptlSttSntnc; 104*cdf0e10cSrcweir bCptlSttWrd = rAFFlags.bCptlSttWrd; 105*cdf0e10cSrcweir bChkFontAttr = rAFFlags.bChkFontAttr; 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir bChgUserColl = rAFFlags.bChgUserColl; 108*cdf0e10cSrcweir bChgEnumNum = rAFFlags.bChgEnumNum; 109*cdf0e10cSrcweir bDelEmptyNode = rAFFlags.bDelEmptyNode; 110*cdf0e10cSrcweir bSetNumRule = rAFFlags.bSetNumRule; 111*cdf0e10cSrcweir bAFmtByInput = rAFFlags.bAFmtByInput; 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir bAddNonBrkSpace = rAFFlags.bAddNonBrkSpace; 114*cdf0e10cSrcweir bChgOrdinalNumber = rAFFlags.bChgOrdinalNumber; 115*cdf0e10cSrcweir bChgToEnEmDash = rAFFlags.bChgToEnEmDash; 116*cdf0e10cSrcweir bChgWeightUnderl = rAFFlags.bChgWeightUnderl; 117*cdf0e10cSrcweir bSetINetAttr = rAFFlags.bSetINetAttr; 118*cdf0e10cSrcweir bSetBorder = rAFFlags.bSetBorder; 119*cdf0e10cSrcweir bCreateTable = rAFFlags.bCreateTable; 120*cdf0e10cSrcweir bReplaceStyles = rAFFlags.bReplaceStyles; 121*cdf0e10cSrcweir bAFmtDelSpacesAtSttEnd = rAFFlags.bAFmtDelSpacesAtSttEnd; 122*cdf0e10cSrcweir bAFmtDelSpacesBetweenLines = rAFFlags.bAFmtDelSpacesBetweenLines; 123*cdf0e10cSrcweir bAFmtByInpDelSpacesAtSttEnd = rAFFlags.bAFmtByInpDelSpacesAtSttEnd; 124*cdf0e10cSrcweir bAFmtByInpDelSpacesBetweenLines = rAFFlags.bAFmtByInpDelSpacesBetweenLines; 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir bDummy = rAFFlags.bDummy; 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir bDummy6 = rAFFlags.bDummy6; 129*cdf0e10cSrcweir bDummy7 = rAFFlags.bDummy7; 130*cdf0e10cSrcweir bDummy8 = rAFFlags.bDummy8; 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir bWithRedlining = rAFFlags.bWithRedlining; 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir bRightMargin = rAFFlags.bRightMargin; 135*cdf0e10cSrcweir nRightMargin = rAFFlags.nRightMargin; 136*cdf0e10cSrcweir 137*cdf0e10cSrcweir cBullet = rAFFlags.cBullet; 138*cdf0e10cSrcweir aBulletFont = rAFFlags.aBulletFont; 139*cdf0e10cSrcweir 140*cdf0e10cSrcweir cByInputBullet = rAFFlags.cByInputBullet; 141*cdf0e10cSrcweir aByInputBulletFont = rAFFlags.aByInputBulletFont; 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir bAutoCompleteWords = rAFFlags.bAutoCompleteWords; 144*cdf0e10cSrcweir bAutoCmpltCollectWords = rAFFlags.bAutoCmpltCollectWords; 145*cdf0e10cSrcweir bAutoCmpltKeepList = rAFFlags.bAutoCmpltKeepList; 146*cdf0e10cSrcweir bAutoCmpltEndless = rAFFlags.bAutoCmpltEndless; 147*cdf0e10cSrcweir bAutoCmpltAppendBlanc = rAFFlags.bAutoCmpltAppendBlanc; 148*cdf0e10cSrcweir bAutoCmpltShowAsTip = rAFFlags.bAutoCmpltShowAsTip; 149*cdf0e10cSrcweir pAutoCmpltList = rAFFlags.pAutoCmpltList; 150*cdf0e10cSrcweir pSmartTagMgr = rAFFlags.pSmartTagMgr; 151*cdf0e10cSrcweir nAutoCmpltExpandKey = rAFFlags.nAutoCmpltExpandKey; 152*cdf0e10cSrcweir 153*cdf0e10cSrcweir nAutoCmpltWordLen = rAFFlags.nAutoCmpltWordLen; 154*cdf0e10cSrcweir nAutoCmpltListLen = rAFFlags.nAutoCmpltListLen; 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir return *this; 157*cdf0e10cSrcweir } 158*cdf0e10cSrcweir 159