nbdtmg.cxx (766ce4d0) | nbdtmg.cxx (1ff378ef) |
---|---|
1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 1/************************************************************** |
4 * | 2 * |
5 * Copyright IBM Corporation 2009. 6 * Copyright 2009. by Sun Microsystems, Inc. 7 * 8 * OpenOffice.org - a multi-platform office productivity suite 9 * 10 * $RCSfile: nbdtmg.cxx,v $ 11 * $Revision: 1.00.00.0 $ 12 * 13 * This file is part of OpenOffice.org. 14 * 15 * OpenOffice.org is free software: you can redistribute it and/or modify 16 * it under the terms of the GNU Lesser General Public License version 3 17 * only, as published by the Free Software Foundation. 18 * 19 * OpenOffice.org is distributed in the hope that it will be useful, 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 * GNU Lesser General Public License version 3 for more details 23 * (a copy is included in the LICENSE file that accompanied this code). 24 * 25 * You should have received a copy of the GNU Lesser General Public License 26 * version 3 along with OpenOffice.org. If not, see 27 * <http://www.openoffice.org/license.html> 28 * for a copy of the LGPLv3 License. 29 * 30 ************************************************************************/ 31 32/*********************************************************************** 33 * 34 * Tool to Visualize Internal Data Structure for Productive Development 35 * It is a developer's tool from Lotus Symphony Documents Editor Team 36 * 37 * This file provides developers of OpenOffice.org a visualize tool for tracing 38 * the internal data structure and its parameters. 39 * 40 * Date: 05/25/2009 41 * 42 ***********************************************************************/ | 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ |
43#include "precompiled_svx.hxx" 44#ifndef _NBDTMG_HXX 45#include <svx/nbdtmg.hxx> 46#endif 47#ifndef _SVX_SVXIDS_HRC 48#include <svx/svxids.hrc> 49#endif 50#ifndef _SV_SVAPP_HXX --- 38 unchanged lines hidden (view full) --- 89#endif 90#ifndef _SV_GRAPH_HXX 91#include <vcl/graph.hxx> 92#endif 93 94#include <unotools/streamwrap.hxx> 95#include <unotools/ucbstreamhelper.hxx> 96#include <unotools/pathoptions.hxx> | 21#include "precompiled_svx.hxx" 22#ifndef _NBDTMG_HXX 23#include <svx/nbdtmg.hxx> 24#endif 25#ifndef _SVX_SVXIDS_HRC 26#include <svx/svxids.hrc> 27#endif 28#ifndef _SV_SVAPP_HXX --- 38 unchanged lines hidden (view full) --- 67#endif 68#ifndef _SV_GRAPH_HXX 69#include <vcl/graph.hxx> 70#endif 71 72#include <unotools/streamwrap.hxx> 73#include <unotools/ucbstreamhelper.hxx> 74#include <unotools/pathoptions.hxx> |
97//#include <svtools/pathoptions.hxx> | |
98#include <editeng/eeitem.hxx> 99 100#include <com/sun/star/text/HoriOrientation.hpp> 101#include <com/sun/star/text/VertOrientation.hpp> 102#include <com/sun/star/text/RelOrientation.hpp> 103#include <com/sun/star/style/NumberingType.hpp> 104#include <com/sun/star/lang/XMultiServiceFactory.hpp> 105#include <com/sun/star/container/XIndexAccess.hpp> --- 20 unchanged lines hidden (view full) --- 126typedef NumSettings_Impl* NumSettings_ImplPtr; 127SV_DECL_PTRARR_DEL(NumSettingsArr_Impl,NumSettings_ImplPtr,8,4) 128SV_IMPL_PTRARR( NumSettingsArr_Impl, NumSettings_ImplPtr ) 129 130typedef NumberSettings_Impl* NumberSettings_ImplPtr; 131SV_DECL_PTRARR_DEL(NumberSettingsArr_Impl,NumberSettings_ImplPtr,8,4) 132SV_IMPL_PTRARR( NumberSettingsArr_Impl, NumberSettings_ImplPtr ) 133 | 75#include <editeng/eeitem.hxx> 76 77#include <com/sun/star/text/HoriOrientation.hpp> 78#include <com/sun/star/text/VertOrientation.hpp> 79#include <com/sun/star/text/RelOrientation.hpp> 80#include <com/sun/star/style/NumberingType.hpp> 81#include <com/sun/star/lang/XMultiServiceFactory.hpp> 82#include <com/sun/star/container/XIndexAccess.hpp> --- 20 unchanged lines hidden (view full) --- 103typedef NumSettings_Impl* NumSettings_ImplPtr; 104SV_DECL_PTRARR_DEL(NumSettingsArr_Impl,NumSettings_ImplPtr,8,4) 105SV_IMPL_PTRARR( NumSettingsArr_Impl, NumSettings_ImplPtr ) 106 107typedef NumberSettings_Impl* NumberSettings_ImplPtr; 108SV_DECL_PTRARR_DEL(NumberSettingsArr_Impl,NumberSettings_ImplPtr,8,4) 109SV_IMPL_PTRARR( NumberSettingsArr_Impl, NumberSettings_ImplPtr ) 110 |
134//extern Font& lcl_GetDefaultBulletFont(); | |
135Font& lcl_GetDefaultBulletFont() 136{ 137 static sal_Bool bInit = 0; 138 static Font aDefBulletFont( UniString::CreateFromAscii( 139 RTL_CONSTASCII_STRINGPARAM( "StarSymbol" ) ), 140 String(), Size( 0, 14 ) ); 141 if(!bInit) 142 { --- 86 unchanged lines hidden (view full) --- 229 else 230 return (sal_uInt16)0xFFFF; 231} 232 233void NBOTypeMgrBase::StoreBulCharFmtName_impl() { 234 if ( pSet ) 235 { 236 SfxAllItemSet aSet(*pSet); | 111Font& lcl_GetDefaultBulletFont() 112{ 113 static sal_Bool bInit = 0; 114 static Font aDefBulletFont( UniString::CreateFromAscii( 115 RTL_CONSTASCII_STRINGPARAM( "StarSymbol" ) ), 116 String(), Size( 0, 14 ) ); 117 if(!bInit) 118 { --- 86 unchanged lines hidden (view full) --- 205 else 206 return (sal_uInt16)0xFFFF; 207} 208 209void NBOTypeMgrBase::StoreBulCharFmtName_impl() { 210 if ( pSet ) 211 { 212 SfxAllItemSet aSet(*pSet); |
237 //const SfxPoolItem* pItem; 238 SFX_ITEMSET_ARG(&aSet,pBulletCharFmt,SfxStringItem,SID_BULLET_CHAR_FMT,sal_False); 239 //if(SFX_ITEM_SET == pSet->GetItemState(SID_BULLET_CHAR_FMT, sal_False, &pItem)) 240 // pNumCharFmtName = new String(((const SfxStringItem*)pItem)->GetValue()); 241 242 //const SfxStringItem* pBulletCharFmt = (const SfxStringItem*)(pSet->GetItem(SID_BULLET_CHAR_FMT)); | 213 SFX_ITEMSET_ARG(&aSet,pBulletCharFmt,SfxStringItem,SID_BULLET_CHAR_FMT,sal_False); |
243 244 if ( pBulletCharFmt ) 245 { 246 aNumCharFmtName = String(pBulletCharFmt->GetValue()); 247 } 248 } 249} 250String NBOTypeMgrBase::GetBulCharFmtName() 251{ 252 return aNumCharFmtName; 253} 254void NBOTypeMgrBase::ImplLoad(String filename) 255{ 256 bIsLoading = true; | 214 215 if ( pBulletCharFmt ) 216 { 217 aNumCharFmtName = String(pBulletCharFmt->GetValue()); 218 } 219 } 220} 221String NBOTypeMgrBase::GetBulCharFmtName() 222{ 223 return aNumCharFmtName; 224} 225void NBOTypeMgrBase::ImplLoad(String filename) 226{ 227 bIsLoading = true; |
257 //Sym3_2508 store size with stardard unit | |
258 SfxMapUnit eOldCoreUnit=eCoreUnit; 259 eCoreUnit = SFX_MAPUNIT_100TH_MM; 260 INetURLObject aFile( SvtPathOptions().GetPalettePath() ); 261 aFile.Append( filename); 262 SvStream* pIStm = ::utl::UcbStreamHelper::CreateStream( aFile.GetMainURL( INetURLObject::NO_DECODE ), STREAM_READ ); 263 if( pIStm ) { 264 sal_uInt32 nVersion; 265 sal_Int32 nNumIndex; --- 24 unchanged lines hidden (view full) --- 290 } 291 } 292 eCoreUnit = eOldCoreUnit; 293 bIsLoading = false; 294} 295void NBOTypeMgrBase::ImplStore(String filename) 296{ 297 if (bIsLoading) return; | 228 SfxMapUnit eOldCoreUnit=eCoreUnit; 229 eCoreUnit = SFX_MAPUNIT_100TH_MM; 230 INetURLObject aFile( SvtPathOptions().GetPalettePath() ); 231 aFile.Append( filename); 232 SvStream* pIStm = ::utl::UcbStreamHelper::CreateStream( aFile.GetMainURL( INetURLObject::NO_DECODE ), STREAM_READ ); 233 if( pIStm ) { 234 sal_uInt32 nVersion; 235 sal_Int32 nNumIndex; --- 24 unchanged lines hidden (view full) --- 260 } 261 } 262 eCoreUnit = eOldCoreUnit; 263 bIsLoading = false; 264} 265void NBOTypeMgrBase::ImplStore(String filename) 266{ 267 if (bIsLoading) return; |
298 //Sym3_2508 store size with stardard unit | |
299 SfxMapUnit eOldCoreUnit=eCoreUnit; 300 eCoreUnit = SFX_MAPUNIT_100TH_MM; 301 INetURLObject aFile( SvtPathOptions().GetPalettePath() ); 302 aFile.Append( filename); 303 SvStream* pOStm = ::utl::UcbStreamHelper::CreateStream( aFile.GetMainURL( INetURLObject::NO_DECODE ), STREAM_WRITE ); 304 if( pOStm ) { 305 sal_uInt32 nVersion; 306 sal_Int32 nNumIndex; --- 826 unchanged lines hidden (view full) --- 1133 SvxNumberFormat aFmt(aNum.GetLevel(nActLv)); 1134 sal_Int16 eNumType = aFmt.GetNumberingType(); 1135 if( eNumType == SVX_NUM_CHAR_SPECIAL && pActualBullets[nIndex]->eType == eNBType::BULLETS ) 1136 { 1137 sal_Unicode cChar = aFmt.GetBulletChar(); 1138 const Font* pFont = aFmt.GetBulletFont(); 1139 BulletsSettings_Impl* pEntry = (BulletsSettings_Impl*) (pActualBullets[nIndex]->pBullets); 1140 pEntry->cBulletChar = cChar; | 268 SfxMapUnit eOldCoreUnit=eCoreUnit; 269 eCoreUnit = SFX_MAPUNIT_100TH_MM; 270 INetURLObject aFile( SvtPathOptions().GetPalettePath() ); 271 aFile.Append( filename); 272 SvStream* pOStm = ::utl::UcbStreamHelper::CreateStream( aFile.GetMainURL( INetURLObject::NO_DECODE ), STREAM_WRITE ); 273 if( pOStm ) { 274 sal_uInt32 nVersion; 275 sal_Int32 nNumIndex; --- 826 unchanged lines hidden (view full) --- 1102 SvxNumberFormat aFmt(aNum.GetLevel(nActLv)); 1103 sal_Int16 eNumType = aFmt.GetNumberingType(); 1104 if( eNumType == SVX_NUM_CHAR_SPECIAL && pActualBullets[nIndex]->eType == eNBType::BULLETS ) 1105 { 1106 sal_Unicode cChar = aFmt.GetBulletChar(); 1107 const Font* pFont = aFmt.GetBulletFont(); 1108 BulletsSettings_Impl* pEntry = (BulletsSettings_Impl*) (pActualBullets[nIndex]->pBullets); 1109 pEntry->cBulletChar = cChar; |
1141 //Sym3_2884 provide a default font when pFont is NULL | |
1142 pEntry->aFont = pFont?*pFont:lcl_GetDefaultBulletFont(); 1143 pEntry->bIsCustomized = sal_True; 1144 String aStrFromRES = String(SVX_RESSTR( RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION)); 1145 String aReplace = String::CreateFromAscii("%LIST_NUM"); 1146 String sNUM = String::CreateFromInt32( nIndex + 1 ); 1147 aStrFromRES.SearchAndReplace(aReplace,sNUM); 1148 pEntry->sDescription = aStrFromRES; 1149 --- 27 unchanged lines hidden (view full) --- 1177 pActualBullets[nIndex]->nIndexDefault = (sal_uInt16)0xFFFF; 1178 sEmpty = String(SVX_RESSTR( RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION)); 1179 String aReplace = String::CreateFromAscii("%LIST_NUM"); 1180 String sNUM = String::CreateFromInt32( nIndex + 1 ); 1181 sEmpty.SearchAndReplace(aReplace,sNUM); 1182 //pEntry->pGrfObj = pGrf; 1183 pEntry->pGrfObj = new Graphic(*pGrf); 1184 pEntry->aSize = aFmt.GetGraphicSize(); | 1110 pEntry->aFont = pFont?*pFont:lcl_GetDefaultBulletFont(); 1111 pEntry->bIsCustomized = sal_True; 1112 String aStrFromRES = String(SVX_RESSTR( RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION)); 1113 String aReplace = String::CreateFromAscii("%LIST_NUM"); 1114 String sNUM = String::CreateFromInt32( nIndex + 1 ); 1115 aStrFromRES.SearchAndReplace(aReplace,sNUM); 1116 pEntry->sDescription = aStrFromRES; 1117 --- 27 unchanged lines hidden (view full) --- 1145 pActualBullets[nIndex]->nIndexDefault = (sal_uInt16)0xFFFF; 1146 sEmpty = String(SVX_RESSTR( RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION)); 1147 String aReplace = String::CreateFromAscii("%LIST_NUM"); 1148 String sNUM = String::CreateFromInt32( nIndex + 1 ); 1149 sEmpty.SearchAndReplace(aReplace,sNUM); 1150 //pEntry->pGrfObj = pGrf; 1151 pEntry->pGrfObj = new Graphic(*pGrf); 1152 pEntry->aSize = aFmt.GetGraphicSize(); |
1185 //Sym3_2508 use standard unit to store size | |
1186 pEntry->aSize = OutputDevice::LogicToLogic(pEntry->aSize,(MapUnit)GetMapUnit(),MAP_100TH_MM); 1187 sal_uInt16 nDIndex = mGrfTMgr->GetNBOIndexForNumRule(aNum,mLevel); 1188 if (nDIndex!=(sal_uInt16)0xFFFF) pEntry->aSize=Size(0,0); 1189 } 1190 } 1191 pEntry->sDescription = sEmpty; 1192 pEntry->bIsCustomized = sal_True; 1193 }else --- 7 unchanged lines hidden (view full) --- 1201 if ( eNumType == SVX_NUM_CHAR_SPECIAL ) 1202 { 1203 sal_Unicode cChar = aFmt.GetBulletChar(); 1204 const Font* pFont = aFmt.GetBulletFont(); 1205 pActualBullets[nIndex]->eType = eNBType::BULLETS; 1206 pActualBullets[nIndex]->nIndex = nIndex+1; //index in the tab page display,decrease 1 to the index within arr 1207 pActualBullets[nIndex]->pBullets = new BulletsSettings_Impl(eNBType::BULLETS) ; 1208 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->cBulletChar = cChar; | 1153 pEntry->aSize = OutputDevice::LogicToLogic(pEntry->aSize,(MapUnit)GetMapUnit(),MAP_100TH_MM); 1154 sal_uInt16 nDIndex = mGrfTMgr->GetNBOIndexForNumRule(aNum,mLevel); 1155 if (nDIndex!=(sal_uInt16)0xFFFF) pEntry->aSize=Size(0,0); 1156 } 1157 } 1158 pEntry->sDescription = sEmpty; 1159 pEntry->bIsCustomized = sal_True; 1160 }else --- 7 unchanged lines hidden (view full) --- 1168 if ( eNumType == SVX_NUM_CHAR_SPECIAL ) 1169 { 1170 sal_Unicode cChar = aFmt.GetBulletChar(); 1171 const Font* pFont = aFmt.GetBulletFont(); 1172 pActualBullets[nIndex]->eType = eNBType::BULLETS; 1173 pActualBullets[nIndex]->nIndex = nIndex+1; //index in the tab page display,decrease 1 to the index within arr 1174 pActualBullets[nIndex]->pBullets = new BulletsSettings_Impl(eNBType::BULLETS) ; 1175 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->cBulletChar = cChar; |
1209 //Sym3_2884 provide a default font when pFont is NULL | |
1210 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->aFont = pFont?*pFont:lcl_GetDefaultBulletFont(); 1211 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->bIsCustomized = sal_True; 1212 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->eType = eNBType::BULLETS; 1213 BulletsTypeMgr* pBTMgr = BulletsTypeMgr::GetInstance(); 1214 if ( pBTMgr ) 1215 { 1216 //sal_uInt16 nDIndex = pBTMgr->GetNBOIndexForNumRule(aNum,mLevel); 1217 //if ( nDIndex != (sal_uInt16)0xFFFF) --- 46 unchanged lines hidden (view full) --- 1264 String aStrFromRES = String(SVX_RESSTR( RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION)); 1265 String aReplace = String::CreateFromAscii("%LIST_NUM"); 1266 String sNUM = String::CreateFromInt32( nIndex + 1 ); 1267 aStrFromRES.SearchAndReplace(aReplace,sNUM); 1268 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->sDescription = aStrFromRES; 1269 //((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->pGrfObj = pGrf; 1270 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->pGrfObj = new Graphic(*pGrf); 1271 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->pGrfObj = new Graphic(*pGrf); | 1176 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->aFont = pFont?*pFont:lcl_GetDefaultBulletFont(); 1177 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->bIsCustomized = sal_True; 1178 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->eType = eNBType::BULLETS; 1179 BulletsTypeMgr* pBTMgr = BulletsTypeMgr::GetInstance(); 1180 if ( pBTMgr ) 1181 { 1182 //sal_uInt16 nDIndex = pBTMgr->GetNBOIndexForNumRule(aNum,mLevel); 1183 //if ( nDIndex != (sal_uInt16)0xFFFF) --- 46 unchanged lines hidden (view full) --- 1230 String aStrFromRES = String(SVX_RESSTR( RID_SVXSTR_NUMBULLET_CUSTOM_BULLET_DESCRIPTION)); 1231 String aReplace = String::CreateFromAscii("%LIST_NUM"); 1232 String sNUM = String::CreateFromInt32( nIndex + 1 ); 1233 aStrFromRES.SearchAndReplace(aReplace,sNUM); 1234 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->sDescription = aStrFromRES; 1235 //((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->pGrfObj = pGrf; 1236 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->pGrfObj = new Graphic(*pGrf); 1237 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->pGrfObj = new Graphic(*pGrf); |
1272 //Sym3_2508 use standard unit to store size | |
1273 Size aTmpSize = aFmt.GetGraphicSize(); 1274 aTmpSize = OutputDevice::LogicToLogic(aTmpSize,(MapUnit)GetMapUnit(),MAP_100TH_MM); 1275 sal_uInt16 nDIndex = mGrfTMgr->GetNBOIndexForNumRule(aNum,mLevel); 1276 if (nDIndex!=(sal_uInt16)0xFFFF) aTmpSize=Size(0,0); 1277 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->aSize = aTmpSize; 1278 1279 } 1280 } --- 39 unchanged lines hidden (view full) --- 1320 { 1321 if(mLevel & nMask) 1322 { 1323 SvxNumberFormat aFmt(aNum.GetLevel(i)); 1324 if (SVX_NUM_CHAR_SPECIAL !=aFmt.GetNumberingType()) isResetSize=true; 1325 aFmt.SetNumberingType( SVX_NUM_CHAR_SPECIAL ); 1326 aFmt.SetBulletFont(&rActBulletFont); 1327 aFmt.SetBulletChar(cChar ); | 1238 Size aTmpSize = aFmt.GetGraphicSize(); 1239 aTmpSize = OutputDevice::LogicToLogic(aTmpSize,(MapUnit)GetMapUnit(),MAP_100TH_MM); 1240 sal_uInt16 nDIndex = mGrfTMgr->GetNBOIndexForNumRule(aNum,mLevel); 1241 if (nDIndex!=(sal_uInt16)0xFFFF) aTmpSize=Size(0,0); 1242 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->aSize = aTmpSize; 1243 1244 } 1245 } --- 39 unchanged lines hidden (view full) --- 1285 { 1286 if(mLevel & nMask) 1287 { 1288 SvxNumberFormat aFmt(aNum.GetLevel(i)); 1289 if (SVX_NUM_CHAR_SPECIAL !=aFmt.GetNumberingType()) isResetSize=true; 1290 aFmt.SetNumberingType( SVX_NUM_CHAR_SPECIAL ); 1291 aFmt.SetBulletFont(&rActBulletFont); 1292 aFmt.SetBulletChar(cChar ); |
1328 aFmt.SetCharFmtName(sBulletCharFmtName); 1329 //Sym3_2398 | 1293 aFmt.SetCharFmtName(sBulletCharFmtName); |
1330 String aEmptyStr; 1331 aFmt.SetPrefix( aEmptyStr ); 1332 aFmt.SetSuffix( aEmptyStr ); 1333 if (isResetSize) aFmt.SetBulletRelSize(45); 1334 aNum.SetLevel(i, aFmt); 1335 } 1336 nMask <<= 1; 1337 } --- 173 unchanged lines hidden (view full) --- 1511 const Sequence<PropertyValue>* pValuesArr = aNumberings.getConstArray(); 1512 for(sal_Int32 i = 0; i < nLength; i++) 1513 { 1514 NumSettings_ImplPtr pNew = lcl_CreateNumberingSettingsPtr(pValuesArr[i]); 1515 NumberSettings_Impl* pNumEntry = new NumberSettings_Impl; 1516 pNumEntry->nIndex = i + 1; 1517 pNumEntry->nIndexDefault = i; 1518 pNumEntry->pNumSetting = pNew; | 1294 String aEmptyStr; 1295 aFmt.SetPrefix( aEmptyStr ); 1296 aFmt.SetSuffix( aEmptyStr ); 1297 if (isResetSize) aFmt.SetBulletRelSize(45); 1298 aNum.SetLevel(i, aFmt); 1299 } 1300 nMask <<= 1; 1301 } --- 173 unchanged lines hidden (view full) --- 1475 const Sequence<PropertyValue>* pValuesArr = aNumberings.getConstArray(); 1476 for(sal_Int32 i = 0; i < nLength; i++) 1477 { 1478 NumSettings_ImplPtr pNew = lcl_CreateNumberingSettingsPtr(pValuesArr[i]); 1479 NumberSettings_Impl* pNumEntry = new NumberSettings_Impl; 1480 pNumEntry->nIndex = i + 1; 1481 pNumEntry->nIndexDefault = i; 1482 pNumEntry->pNumSetting = pNew; |
1519 //Modified for Sym2_7882 | |
1520 //SetItemText( i + 1, SVX_RESSTR( RID_SVXSTR_SINGLENUM_DESCRIPTIONS + i )); 1521 { 1522 String sText; 1523 //const OUString sValue(C2U("Value")); 1524 Reference<XNumberingFormatter> xFormatter(xDefNum, UNO_QUERY); 1525 if(xFormatter.is() && aNumberings.getLength() > i) 1526 { 1527 --- 547 unchanged lines hidden (view full) --- 2075 aFmt.SetGraphicBrush( pLevelSettings->pBrushItem, &aSize, &eOrient ); 2076 } 2077 } else 2078 { 2079 aFmt.SetIncludeUpperLevels(sal::static_int_cast< sal_uInt8 >(0 != nUpperLevelOrChar ? aNum.GetLevelCount() : 0)); 2080 aFmt.SetCharFmtName(sBulletCharFmtName); 2081 if (isResetSize) aFmt.SetBulletRelSize(100); 2082 } | 1483 //SetItemText( i + 1, SVX_RESSTR( RID_SVXSTR_SINGLENUM_DESCRIPTIONS + i )); 1484 { 1485 String sText; 1486 //const OUString sValue(C2U("Value")); 1487 Reference<XNumberingFormatter> xFormatter(xDefNum, UNO_QUERY); 1488 if(xFormatter.is() && aNumberings.getLength() > i) 1489 { 1490 --- 547 unchanged lines hidden (view full) --- 2038 aFmt.SetGraphicBrush( pLevelSettings->pBrushItem, &aSize, &eOrient ); 2039 } 2040 } else 2041 { 2042 aFmt.SetIncludeUpperLevels(sal::static_int_cast< sal_uInt8 >(0 != nUpperLevelOrChar ? aNum.GetLevelCount() : 0)); 2043 aFmt.SetCharFmtName(sBulletCharFmtName); 2044 if (isResetSize) aFmt.SetBulletRelSize(100); 2045 } |
2083 //Sym3_2636. Do not set indent values if no default value for this level | |
2084 if(pNumSettingsArr->Count() > i) { 2085 aFmt.SetLabelFollowedBy(pLevelSettings->eLabelFollowedBy); 2086 aFmt.SetListtabPos(pLevelSettings->nTabValue); 2087 aFmt.SetNumAdjust(pLevelSettings->eNumAlign); 2088 aFmt.SetFirstLineIndent(pLevelSettings->nNumAlignAt); 2089 aFmt.SetIndentAt(pLevelSettings->nNumIndentAt); 2090 } 2091 aFmt.SetPrefix(pLevelSettings->sPrefix); --- 48 unchanged lines hidden --- | 2046 if(pNumSettingsArr->Count() > i) { 2047 aFmt.SetLabelFollowedBy(pLevelSettings->eLabelFollowedBy); 2048 aFmt.SetListtabPos(pLevelSettings->nTabValue); 2049 aFmt.SetNumAdjust(pLevelSettings->eNumAlign); 2050 aFmt.SetFirstLineIndent(pLevelSettings->nNumAlignAt); 2051 aFmt.SetIndentAt(pLevelSettings->nNumIndentAt); 2052 } 2053 aFmt.SetPrefix(pLevelSettings->sPrefix); --- 48 unchanged lines hidden --- |