Lines Matching refs:nIndex

429 sal_Bool BulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel)  in RelplaceNumRule()  argument
464 if ( nIndex >= DEFAULT_BULLET_TYPES ) in RelplaceNumRule()
467 pActualBullets[nIndex]->cBulletChar = cChar; in RelplaceNumRule()
469 pActualBullets[nIndex]->aFont = *pFont; in RelplaceNumRule()
470 pActualBullets[nIndex]->bIsCustomized = sal_True; in RelplaceNumRule()
474 String sNUM = String::CreateFromInt32( nIndex + 1 ); in RelplaceNumRule()
476 pActualBullets[nIndex]->sDescription = aStrFromRES; in RelplaceNumRule()
481 sal_Bool BulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel,sal_Bool… in ApplyNumRule() argument
506 if ( nIndex >= DEFAULT_BULLET_TYPES ) in ApplyNumRule()
508 cChar = pActualBullets[nIndex]->cBulletChar; in ApplyNumRule()
510 Font rActBulletFont = pActualBullets[nIndex]->aFont; in ApplyNumRule()
532 String BulletsTypeMgr::GetDescription(sal_uInt16 nIndex,sal_Bool /* isDefault */) in GetDescription() argument
538 if ( nIndex >= DEFAULT_BULLET_TYPES ) in GetDescription()
541 sRet = pActualBullets[nIndex]->sDescription; in GetDescription()
545 sal_Bool BulletsTypeMgr::IsCustomized(sal_uInt16 nIndex) in IsCustomized() argument
551 if ( nIndex >= DEFAULT_BULLET_TYPES ) in IsCustomized()
554 bRet = pActualBullets[nIndex]->bIsCustomized; in IsCustomized()
559 sal_Unicode BulletsTypeMgr::GetBulChar(sal_uInt16 nIndex) in GetBulChar() argument
565 if ( nIndex >= DEFAULT_BULLET_TYPES ) in GetBulChar()
568 cChar = pActualBullets[nIndex]->cBulletChar; in GetBulChar()
590 Font BulletsTypeMgr::GetBulCharFont(sal_uInt16 nIndex) in GetBulCharFont() argument
593 if ( nIndex >= DEFAULT_BULLET_TYPES ) in GetBulCharFont()
596 aRet = pActualBullets[nIndex]->aFont; in GetBulCharFont()
697 sal_Bool GraphyicBulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLev… in RelplaceNumRule() argument
705 if ( nIndex >= aGrfDataLst.Count() ) in RelplaceNumRule()
725 GrfBulDataRelation* pEntry = (GrfBulDataRelation*) aGrfDataLst.GetObject(nIndex); in RelplaceNumRule()
733 String sNUM = String::CreateFromInt32( nIndex + 1 ); in RelplaceNumRule()
744 sal_Bool GraphyicBulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel,… in ApplyNumRule() argument
749 if ( nIndex >= aGrfDataLst.Count() ) in ApplyNumRule()
753 GrfBulDataRelation* pEntry = (GrfBulDataRelation*) aGrfDataLst.GetObject(nIndex); in ApplyNumRule()
789 String GraphyicBulletsTypeMgr::GetDescription(sal_uInt16 nIndex,sal_Bool /* isDefault */) in GetDescription() argument
795 if ( nIndex >= nLength ) in GetDescription()
799 GrfBulDataRelation* pEntry = (GrfBulDataRelation*) aGrfDataLst.GetObject(nIndex); in GetDescription()
807 sal_Bool GraphyicBulletsTypeMgr::IsCustomized(sal_uInt16 nIndex) in IsCustomized() argument
814 if ( nIndex >= nLength ) in IsCustomized()
818 GrfBulDataRelation* pEntry = (GrfBulDataRelation*) aGrfDataLst.GetObject(nIndex); in IsCustomized()
827 String GraphyicBulletsTypeMgr::GetGrfName(sal_uInt16 nIndex) in GetGrfName() argument
830 if ( nIndex < aGrfDataLst.Count() ) in GetGrfName()
832 GrfBulDataRelation* pEntry = (GrfBulDataRelation*) aGrfDataLst.GetObject(nIndex); in GetGrfName()
882 pActualBullets[i]->nIndex = aTypeMgr.pActualBullets[i]->nIndex; //index in the tab page display in MixBulletsTypeMgr()
893 pActualBullets[i]->nIndex = aTypeMgr.pActualBullets[i]->nIndex; //index in the tab page display in MixBulletsTypeMgr()
916 …pActualBullets[0]->nIndex = 0+1; //index in the tab page display,decrease 1 to the index within arr in Init()
928 …pActualBullets[1]->nIndex = 1+1; //index in the tab page display,decrease 1 to the index within arr in Init()
940 …pActualBullets[2]->nIndex = 2+1; //index in the tab page display,decrease 1 to the index within arr in Init()
952 …pActualBullets[3]->nIndex = 3+1; //index in the tab page display,decrease 1 to the index within arr in Init()
964 …pActualBullets[4]->nIndex = 4+1; //index in the tab page display,decrease 1 to the index within arr in Init()
976 …pActualBullets[5]->nIndex = 5+1; //index in the tab page display,decrease 1 to the index within arr in Init()
992 …pActualBullets[6]->nIndex = 6+1; //index in the tab page display,decrease 1 to the index within arr in Init()
1003 …pActualBullets[7]->nIndex = 7+1; //index in the tab page display,decrease 1 to the index within arr in Init()
1042 return pActualBullets[i]->nIndex; in GetNBOIndexForNumRule()
1065 return pActualBullets[i]->nIndex; in GetNBOIndexForNumRule()
1075 return pActualBullets[i]->nIndex; in GetNBOIndexForNumRule()
1085 sal_Bool MixBulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel) in RelplaceNumRule() argument
1087 if ( mLevel == (sal_uInt16)0xFFFF || mLevel == 0 || nIndex>=DEFAULT_BULLET_TYPES) in RelplaceNumRule()
1100 if( eNumType == SVX_NUM_CHAR_SPECIAL && pActualBullets[nIndex]->eType == eNBType::BULLETS ) in RelplaceNumRule()
1104 BulletsSettings_Impl* pEntry = (BulletsSettings_Impl*) (pActualBullets[nIndex]->pBullets); in RelplaceNumRule()
1110 String sNUM = String::CreateFromInt32( nIndex + 1 ); in RelplaceNumRule()
1114 …}else if ( (eNumType&(~LINK_TOKEN)) == SVX_NUM_BITMAP && pActualBullets[nIndex]->eType == eNBType:… in RelplaceNumRule()
1128 GrfBulDataRelation* pEntry = (GrfBulDataRelation*) (pActualBullets[nIndex]->pBullets); in RelplaceNumRule()
1141 pActualBullets[nIndex]->nIndexDefault = (sal_uInt16)0xFFFF; in RelplaceNumRule()
1144 String sNUM = String::CreateFromInt32( nIndex + 1 ); in RelplaceNumRule()
1162 delete pActualBullets[nIndex]->pBullets; in RelplaceNumRule()
1163 pActualBullets[nIndex]->pBullets = 0; in RelplaceNumRule()
1168 pActualBullets[nIndex]->eType = eNBType::BULLETS; in RelplaceNumRule()
1169 …pActualBullets[nIndex]->nIndex = nIndex+1; //index in the tab page display,decrease 1 to the index… in RelplaceNumRule()
1170 pActualBullets[nIndex]->pBullets = new BulletsSettings_Impl(eNBType::BULLETS) ; in RelplaceNumRule()
1171 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->cBulletChar = cChar; in RelplaceNumRule()
1172 …((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->aFont = pFont?*pFont:lcl_GetDefaultBu… in RelplaceNumRule()
1173 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->bIsCustomized = sal_True; in RelplaceNumRule()
1174 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->eType = eNBType::BULLETS; in RelplaceNumRule()
1185 pActualBullets[nIndex]->nIndexDefault = (sal_uInt16)0xFFFF; in RelplaceNumRule()
1188 String sNUM = String::CreateFromInt32( nIndex + 1 ); in RelplaceNumRule()
1190 ((BulletsSettings_Impl*)(pActualBullets[nIndex]->pBullets))->sDescription = aStrFromRES; in RelplaceNumRule()
1208 pActualBullets[nIndex]->eType = eNBType::GRAPHICBULLETS; in RelplaceNumRule()
1209 …pActualBullets[nIndex]->nIndex = nIndex+1; //index in the tab page display,decrease 1 to the index… in RelplaceNumRule()
1210 pActualBullets[nIndex]->pBullets = new GrfBulDataRelation(eNBType::GRAPHICBULLETS) ; in RelplaceNumRule()
1212 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->sGrfName = *pGrfName; in RelplaceNumRule()
1213 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->bIsCustomized = sal_True; in RelplaceNumRule()
1214 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->eType = eNBType::GRAPHICBULLETS; in RelplaceNumRule()
1225 pActualBullets[nIndex]->nIndexDefault = (sal_uInt16)0xFFFF; in RelplaceNumRule()
1228 String sNUM = String::CreateFromInt32( nIndex + 1 ); in RelplaceNumRule()
1230 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->sDescription = aStrFromRES; in RelplaceNumRule()
1232 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->pGrfObj = new Graphic(*pGrf); in RelplaceNumRule()
1233 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->pGrfObj = new Graphic(*pGrf); in RelplaceNumRule()
1238 ((GrfBulDataRelation*)(pActualBullets[nIndex]->pBullets))->aSize = aTmpSize; in RelplaceNumRule()
1246 ApplyNumRule(aTmpRule1,nIndex,mLevel,true); in RelplaceNumRule()
1247 if (GetNBOIndexForNumRule(aTmpRule1,mLevel,nIndex)==nIndex+1) { in RelplaceNumRule()
1248 if (pActualBullets[nIndex]->eType == eNBType::BULLETS) { in RelplaceNumRule()
1249 BulletsSettings_Impl* pEntry = (BulletsSettings_Impl*) (pActualBullets[nIndex]->pBullets); in RelplaceNumRule()
1251 pEntry->sDescription = GetDescription(nIndex,true); in RelplaceNumRule()
1253 if (pActualBullets[nIndex]->eType == eNBType::GRAPHICBULLETS) { in RelplaceNumRule()
1254 GrfBulDataRelation* pEntry = (GrfBulDataRelation*) (pActualBullets[nIndex]->pBullets); in RelplaceNumRule()
1256 pEntry->sDescription = GetDescription(nIndex,true); in RelplaceNumRule()
1263 sal_Bool MixBulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel,sal_B… in ApplyNumRule() argument
1266 if ( nIndex>=DEFAULT_BULLET_TYPES ) in ApplyNumRule()
1268 MixBulletsSettings_Impl* pCurrentBullets = pActualBullets[nIndex]; in ApplyNumRule()
1269 if (isDefault) pCurrentBullets=pDefaultActualBullets[nIndex]; in ApplyNumRule()
1360 String MixBulletsTypeMgr::GetDescription(sal_uInt16 nIndex,sal_Bool isDefault) in GetDescription() argument
1366 if ( nIndex >= DEFAULT_BULLET_TYPES ) in GetDescription()
1369 sRet = pActualBullets[nIndex]->pBullets->sDescription; in GetDescription()
1370 if (isDefault) sRet = pDefaultActualBullets[nIndex]->pBullets->sDescription; in GetDescription()
1373 sal_Bool MixBulletsTypeMgr::IsCustomized(sal_uInt16 nIndex) in IsCustomized() argument
1379 if ( nIndex >= DEFAULT_BULLET_TYPES ) in IsCustomized()
1382 bRet = pActualBullets[nIndex]->pBullets->bIsCustomized; in IsCustomized()
1476 pNumEntry->nIndex = i + 1; in Init()
1560 sal_Bool NumberingTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel) in RelplaceNumRule() argument
1579 if ( nIndex >= nCount ) in RelplaceNumRule()
1582 NumberSettings_ImplPtr _pSet = pNumberSettingsArr->GetObject(nIndex); in RelplaceNumRule()
1591 ApplyNumRule(aTmpRule1,nIndex,mLevel,true); in RelplaceNumRule()
1592 ApplyNumRule(aTmpRule2,nIndex,mLevel,false); in RelplaceNumRule()
1597 String sNUM = String::CreateFromInt32( nIndex + 1 ); in RelplaceNumRule()
1601 _pSet->sDescription = GetDescription(nIndex,true); in RelplaceNumRule()
1607 sal_Bool NumberingTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel,sal_Bo… in ApplyNumRule() argument
1613 if(pNumberSettingsArr->Count() <= nIndex) in ApplyNumRule()
1617 NumberSettings_ImplPtr _pSet = pCurrentNumberSettingsArr->GetObject(nIndex); in ApplyNumRule()
1641 String NumberingTypeMgr::GetDescription(sal_uInt16 nIndex,sal_Bool isDefault) in GetDescription() argument
1647 if ( nIndex >= nLength ) in GetDescription()
1650 sRet = pNumberSettingsArr->GetObject(nIndex)->sDescription; in GetDescription()
1651 if (isDefault) sRet = pDefaultNumberSettingsArr->GetObject(nIndex)->sDescription; in GetDescription()
1655 sal_Bool NumberingTypeMgr::IsCustomized(sal_uInt16 nIndex) in IsCustomized() argument
1661 if ( nIndex >= nLength ) in IsCustomized()
1664 bRet = pNumberSettingsArr->GetObject(nIndex)->bIsCustomized; in IsCustomized()
1676 NumberSettings_Impl* NumberingTypeMgr::GetNumSettingByIndex(sal_uInt16 nIndex) const in GetNumSettingByIndex()
1679 if ( pNumberSettingsArr && nIndex< pNumberSettingsArr->Count() ) in GetNumSettingByIndex()
1681 pRet = pNumberSettingsArr->GetObject(nIndex); in GetNumSettingByIndex()
1859 sal_Bool OutlineTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel) in RelplaceNumRule() argument
1865 if ( nIndex >= nLength ) in RelplaceNumRule()
1868 OutlineSettings_Impl* pItemArr = pOutlineSettingsArrs[nIndex]; in RelplaceNumRule()
1913 ApplyNumRule(aTmpRule1,nIndex,mLevel,true); in RelplaceNumRule()
1914 ApplyNumRule(aTmpRule2,nIndex,mLevel,false); in RelplaceNumRule()
1919 String sNUM = String::CreateFromInt32( nIndex + 1 ); in RelplaceNumRule()
1923 pItemArr->sDescription = GetDescription(nIndex,true); in RelplaceNumRule()
1929 sal_Bool OutlineTypeMgr::ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 /* mLevel */,sa… in ApplyNumRule() argument
1934 DBG_ASSERT(DEFAULT_NUM_VALUSET_COUNT > nIndex, "wrong index"); in ApplyNumRule()
1935 if(DEFAULT_NUM_VALUSET_COUNT <= nIndex) in ApplyNumRule()
1940 OutlineSettings_Impl* pItemArr = pOutlineSettingsArrs[nIndex]; in ApplyNumRule()
1941 if (isDefault) pItemArr=pDefaultOutlineSettingsArrs[nIndex]; in ApplyNumRule()
2046 String OutlineTypeMgr::GetDescription(sal_uInt16 nIndex,sal_Bool isDefault) in GetDescription() argument
2052 if ( nIndex >= nLength ) in GetDescription()
2056 OutlineSettings_Impl* pItemArr = pOutlineSettingsArrs[nIndex]; in GetDescription()
2057 if (isDefault) pItemArr = pDefaultOutlineSettingsArrs[nIndex]; in GetDescription()
2065 sal_Bool OutlineTypeMgr::IsCustomized(sal_uInt16 nIndex) in IsCustomized() argument
2072 if ( nIndex >= nLength ) in IsCustomized()
2076 OutlineSettings_Impl* pItemArr = pOutlineSettingsArrs[nIndex]; in IsCustomized()