summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-26 00:30:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-26 10:05:17 +0100
commit0e74ec80c0d2c24807a961c9c46d39d979799501 (patch)
tree43f23820daa0f5f0981db26c1dd95cb2156eb598 /lotuswordpro
parent2694f1da5648ee97c38681133668e860f9883d09 (diff)
callcatcher: ditch various unused write methods
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpbulletstylemgr.cxx218
-rw-r--r--lotuswordpro/source/filter/lwpbulletstylemgr.hxx8
2 files changed, 0 insertions, 226 deletions
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
index b5ad2c22e20e..13b857930a33 100644
--- a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
+++ b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
@@ -246,197 +246,6 @@ rtl::OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOv
}
-/**
- * @short No use now.
- * @param rContent
- * @param nFontID
- * @param pIndent
- */
-/*rtl::OUString LwpBulletStyleMgr::RegisterBulletStyle(const rtl::OUString& rContent, sal_uInt32 nFontID, LwpIndentOverride* pIndent)
-{
- if (!pIndent)
- {
- assert(false);
- }
-
- if (!m_pFoundry)
- {
- return rtl::OUString();
- }
- LwpFontManager* pFontMgr = m_pFoundry->GetFontManger();
-
- rtl::OUString aFontName = pFontMgr->GetNameByID(nFontID);
- UChar32 cBulletChar = rContent.toChar();
- rtl::OUString aSuffix = rContent.copy(1);
- XFListStyle* pListStyle = new XFListStyle();
- XFStyleManager* pXFStyleMgr = XFStyleManager::Instance();
-
- for (sal_uInt8 nC = 1; nC < 11; nC++)
- {
- pListStyle->SetListBullet(nC, cBulletChar, aFontName, rtl::OUString(), aSuffix);
-
- if (pIndent->GetMRest() > 0.001)
- {
- pListStyle->SetListPosition(nC, 0.0,
- LwpTools::ConvertToMetric(LwpTools::ConvertFromUnits(pIndent->GetMRest())), 0.0);
- }
- else
- {
- pListStyle->SetListPosition(nC, 0.0,
- 0.0, LwpTools::ConvertToMetric(LwpTools::ConvertFromUnits(pIndent->GetMFirst())));
- }
- }
- return pXFStyleMgr->AddStyle(pListStyle);
-}*/
-
-/**
- * @short No use now.
- * @param pListStyle
- * @param pXFStyleMgr
- */
-/*void LwpBulletStyleMgr::CreateNewListStyle(XFListStyle*& pListStyle, XFStyleManager* pXFStyleMgr)
-{
- pListStyle = new XFListStyle();
- m_aBulletStyleList.push_back(pListStyle);
- m_aCurrentStyleName = pXFStyleMgr->AddStyle(pListStyle);
-}*/
-
-/**
- * @short No use now.
- * @param pSilverBullet
- * @param nLevel
- */
-/*rtl::OUString LwpBulletStyleMgr::AddStyleToList(LwpSilverBullet* pSilverBullet, sal_uInt16 nLevel)
-{
- XFListStyle* pListStyle = NULL;
- XFStyleManager* pXFStyleMgr = XFStyleManager::Instance();
-
- if (m_aBulletStyleList.empty())
- {
- // pListStyle = new XFListStyle();
- // m_aBulletStyleList.push_back(pListStyle);
- // m_aCurrentStyleName = pXFStyleMgr->AddStyle(pListStyle);
- // this->CreateNewListStyle(pListStyle, pXFStyleMgr);
- if (pSilverBullet->IsBulletOrdered())
- {
- m_strCurrentNumberingName = pSilverBullet->GetNumberingName();
- }
- else
- {
- m_nCurrentChar = pSilverBullet->GetBulletChar();
- m_strCurrentFontName = pSilverBullet->GetBulletFontName();
- }
- }
- else if (nLevel == 1)
- {
- if (pSilverBullet->IsBulletOrdered())
- {
- if (m_strCurrentNumberingName == pSilverBullet->GetNumberingName())
- {
- pListStyle = m_aBulletStyleList.back();
- }
- else
- {
- this->CreateNewListStyle(pListStyle, pXFStyleMgr);
- }
- }
- else
- {
- if ((m_nCurrentChar == pSilverBullet->GetBulletChar()) &&
- (m_strCurrentFontName == pSilverBullet->GetBulletFontName()))
- {
- pListStyle = m_aBulletStyleList.back();
- }
- else
- {
- this->CreateNewListStyle(pListStyle, pXFStyleMgr);
- }
- }
- }
- else
- {
- pListStyle = m_aBulletStyleList.back();
- }
-
- if (pSilverBullet->IsBulletOrdered())
- {
-// pListStyle->SetListNumber(int level, XFNumFmt & fmt, sal_Int16 start);
- }
- else
- {
- pListStyle->SetListBullet(nLevel, pSilverBullet->GetBulletChar(), pSilverBullet->GetBulletFontName(),
- pSilverBullet->GetPrefix(), pSilverBullet->GetSuffix());
- }
-
- return m_aCurrentStyleName;
-}*/
-
-/**
- * @short Output bullet list header, such as <text:ordered-list> and <text:list-item>
- * @param pOutputStream pointer of XFstream to be written in.
- * @param bIsOrdered if the list if ordered or not.
- * @param rStyleName style name of the list
- * @param nLevel level of the paragraph
- */
-void LwpBulletStyleMgr::OutputBulletListHeader(IXFStream* pOutputStream, sal_Bool bIsOrdered,
- const rtl::OUString& rStyleName, sal_Int16 nLevel, sal_Bool bIsBulletSkiped)
-{
- if (nLevel == 0)
- {
- return;
- }
-
- m_bIsBulletSkipped = bIsBulletSkiped;
-
- if (m_pBulletList)
- {
- delete m_pBulletList;
- }
-
- m_pBulletList = new XFList();
-
- //todo: need judge here.
- sal_Bool bContinue = m_bContinue;
-
- if (bIsOrdered)
- {
- m_pBulletList->SetOrdered(sal_True);
- }
- else
- {
- bContinue = sal_False;
- m_pBulletList->SetOrdered(sal_False);
- }
- m_pBulletList->SetStyleName(rStyleName);
-// if (nLevels < 0)
-// {
-// m_pBulletList->StartList(pOutputStream);
-// }
-// else
-// {
- for (sal_uInt8 nC = 0; nC < nLevel; nC++)
- {
- //continue numbering
- if (nC == nLevel-1)
- {
- m_pBulletList->StartList(pOutputStream, bContinue);
- }
- else
- {
- m_pBulletList->StartList(pOutputStream);
- }
- if ((nC == nLevel-1) && bIsBulletSkiped)
- {
- XFList::StartListHeader(pOutputStream);
- }
- else
- {
- XFList::StartListItem(pOutputStream);
- }
- }
-// }
-}
-
#include "xfilter/xflistitem.hxx"
//Create nested XFList and XFItems and then add it to XFContentContainer(pCont)
//Return the inner XFItem created.
@@ -504,33 +313,6 @@ XFContentContainer* LwpBulletStyleMgr::AddBulletList(
return InnerItem;
}
-/**
- * @short Output bullet list header, such as </text:ordered-list> and </text:list-item>
- * @param pOutputStream pointer of XFstream to be written in.
- * @param nLevel level of the paragraph
- */
-void LwpBulletStyleMgr::OutputBulletListTail(IXFStream* pOutputStream, sal_uInt16 nLevel)
-{
- if ( !m_pBulletList )
- {
- return;
- }
-
- for (sal_uInt8 nC = 0; nC < nLevel; nC++)
- {
- if (m_bIsBulletSkipped)
- {
- XFList::EndListHeader(pOutputStream);
- m_bIsBulletSkipped = sal_False;
- }
- else
- {
- XFList::EndListItem(pOutputStream);
- }
- m_pBulletList->EndList(pOutputStream);
- }
-}
-
rtl::OUString LwpBulletStyleMgr::GetSectionName(LwpPara* pPara)
{
LwpObjectID* pStoryID = pPara->GetStoryID();
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.hxx b/lotuswordpro/source/filter/lwpbulletstylemgr.hxx
index 0fd573783eb8..4809f0de4914 100644
--- a/lotuswordpro/source/filter/lwpbulletstylemgr.hxx
+++ b/lotuswordpro/source/filter/lwpbulletstylemgr.hxx
@@ -90,17 +90,10 @@ public:
virtual ~LwpBulletStyleMgr();
rtl::OUString RegisterBulletStyle(LwpPara* pPara, LwpBulletOverride* pBullOver,
LwpIndentOverride* pIndent);
-// rtl::OUString RegisterBulletStyle(const rtl::OUString& rContent, sal_uInt32 nFontID, LwpIndentOverride* pIndent);
-// rtl::OUString AddStyleToList(LwpSilverBullet* pSilverBullet, sal_uInt16 nLevel);
inline void SetFoundry(LwpFoundry* pFoundry);
inline void SetContinueFlag(sal_Bool bFlag);
- void OutputBulletListHeader(IXFStream* pOutputStream, sal_Bool bIsOrdered,
- const rtl::OUString& rStyleName, sal_Int16 nLevel, sal_Bool bIsBulletSkiped);
- //Added by Helen
XFContentContainer* AddBulletList(XFContentContainer* pCont, sal_Bool bIsOrdered,
const rtl::OUString& rStyleName, sal_Int16 nLevel, sal_Bool bIsBulletSkiped);
- //End of Add
- void OutputBulletListTail(IXFStream* pOutputStream, sal_uInt16 nLevel);
inline void SetCurrentPos(sal_uInt16 nNewPos);
inline void SetCurrentSilverBullet(const LwpObjectID& rNewID);
inline LwpObjectID GetCurrentSilverBullet();
@@ -109,7 +102,6 @@ public:
inline LwpNumberingOverride* GetCurrentNumOver();
private:
-// void CreateNewListStyle(XFListStyle*& pListStyle, XFStyleManager* pXFStyleMgr);
rtl::OUString GetSectionName(LwpPara* pPara);
private: