summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2010-12-23 12:46:09 +0100
committerDavid Tardon <dtardon@redhat.com>2010-12-24 14:17:53 +0100
commit3d80d56d744cb3c2ea533ca08c42b723fefec127 (patch)
tree412ea690c84559fd744cf72a11b6373291815aac /lotuswordpro/source/filter/lwpbulletstylemgr.cxx
parentremove redundant semicolons (diff)
downloadcore-3d80d56d744cb3c2ea533ca08c42b723fefec127.tar.gz
core-3d80d56d744cb3c2ea533ca08c42b723fefec127.zip
remove unused code
Diffstat (limited to 'lotuswordpro/source/filter/lwpbulletstylemgr.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpbulletstylemgr.cxx23
1 files changed, 2 insertions, 21 deletions
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
index 939b7fcf3e86..d0f5293d93a0 100644
--- a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
+++ b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
@@ -185,24 +185,6 @@ rtl::OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOv
}
else
{
- rtl::OUString aPrefix = rtl::OUString();
-
- LwpFrib* pFrib = pBulletParaFribs->HasFrib(FRIB_TAG_DOCVAR);
- LwpFribDocVar* pDocVarFrib = NULL;
- if (pFrib)
- {
- pDocVarFrib = static_cast<LwpFribDocVar*>(pFrib);
-// ModifierInfo* pInfo = pDocVarFrib->GetModifiers();
- switch (pDocVarFrib->GetType())
- {
- case 0x000D: // division name
- aPrefix = this->GetDivisionName();
- break;
- case 0x000E: // section name
- aPrefix = this->GetSectionName(pPara);
- break;
- }
- }
ParaNumbering aParaNumbering;
pBulletPara->GetParaNumber(1, &aParaNumbering);
LwpFribParaNumber* pParaNumber = aParaNumbering.pParaNumber;
@@ -210,14 +192,13 @@ rtl::OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOv
{
for (sal_uInt8 nPos = 1; nPos < 10; nPos++)
{
- aPrefix = rtl::OUString();
if (pParaNumber->GetStyleID() != NUMCHAR_other)
{
+ rtl::OUString aPrefix;
XFNumFmt aFmt;
if (aParaNumbering.pPrefix)
{
aPrefix += aParaNumbering.pPrefix->GetText();
-// aFmt.SetPrefix(aParaNumbering.pPrefix->GetText() + aAdditionalInfoName);
}
rtl::OUString aNumber = LwpSilverBullet::GetNumCharByStyleID(pParaNumber);
@@ -257,7 +238,7 @@ rtl::OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOv
pListStyle->SetListPosition(nPos, 0.0, 0.635, 0.0);
}
aStyleName = pXFStyleMgr->AddStyle(pListStyle)->GetStyleName();
- }
+ }
}