summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-26 22:26:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-29 09:56:05 +0100
commit012072ebd70a2180918864818f522944e46adf07 (patch)
treeba33e6c949b52aa7f61ef410f809c817fea5c328 /editeng
parenteb71f3d572b6e1c24a072bd2fcd9c29e08113d32 (diff)
valgrind: various unused code
Diffstat (limited to 'editeng')
-rw-r--r--editeng/inc/editeng/editeng.hxx4
-rw-r--r--editeng/inc/editeng/outliner.hxx1
-rw-r--r--editeng/source/editeng/editdbg.cxx23
-rw-r--r--editeng/source/editeng/editdbg.hxx3
-rw-r--r--editeng/source/editeng/editeng.cxx21
-rw-r--r--editeng/source/outliner/outlvw.cxx10
6 files changed, 0 insertions, 62 deletions
diff --git a/editeng/inc/editeng/editeng.hxx b/editeng/inc/editeng/editeng.hxx
index 6f48a66112fd..5ab7c23f4866 100644
--- a/editeng/inc/editeng/editeng.hxx
+++ b/editeng/inc/editeng/editeng.hxx
@@ -357,9 +357,6 @@ public:
void EnablePasteSpecial( sal_Bool bEnable );
sal_Bool IsPasteSpecialEnabled() const;
- void EnableIdleFormatter( sal_Bool bEnable );
- sal_Bool IsIdleFormatterEnabled() const;
-
void EraseVirtualDevice();
void SetSpeller( ::com::sun::star::uno::Reference<
@@ -470,7 +467,6 @@ public:
static sal_uInt16 GetAvailableSearchOptions();
static void SetFontInfoInItemSet( SfxItemSet& rItemSet, const Font& rFont );
static void SetFontInfoInItemSet( SfxItemSet& rItemSet, const SvxFont& rFont );
- static Font CreateFontFromItemSet( const SfxItemSet& rItemSet );
static Font CreateFontFromItemSet( const SfxItemSet& rItemSet, sal_uInt16 nScriptType );
static SvxFont CreateSvxFontFromItemSet( const SfxItemSet& rItemSet );
static sal_Bool IsPrintable( sal_Unicode c ) { return ( ( c >= 32 ) && ( c != 127 ) ); }
diff --git a/editeng/inc/editeng/outliner.hxx b/editeng/inc/editeng/outliner.hxx
index 8fc3e576f3a4..9a6872712623 100644
--- a/editeng/inc/editeng/outliner.hxx
+++ b/editeng/inc/editeng/outliner.hxx
@@ -236,7 +236,6 @@ private:
EDITENG_DLLPRIVATE void ImpToggleExpand( Paragraph* pParentPara );
EDITENG_DLLPRIVATE ParaRange ImpGetSelectedParagraphs( sal_Bool bIncludeHiddenChilds );
EDITENG_DLLPRIVATE void ImpHideDDCursor();
- EDITENG_DLLPRIVATE void ImpShowDDCursor();
EDITENG_DLLPRIVATE void ImpPaintDDCursor();
EDITENG_DLLPRIVATE void ImpDragScroll( const Point& rPosPix );
diff --git a/editeng/source/editeng/editdbg.cxx b/editeng/source/editeng/editdbg.cxx
index 1f00e90799c2..8ad732bcd06f 100644
--- a/editeng/source/editeng/editdbg.cxx
+++ b/editeng/source/editeng/editdbg.cxx
@@ -533,29 +533,6 @@ rtl::OString EditDbg::GetPortionInfo( ParaPortion* pPPortion )
return aDebStr.makeStringAndClear();
}
-rtl::OString EditDbg::GetTextPortionInfo(TextPortionList& rPortions)
-{
- rtl::OStringBuffer aDebStr;
- for (sal_uInt16 z = 0; z < rPortions.Count(); ++z)
- {
- TextPortion* pPortion = rPortions.GetObject( z );
- aDebStr.append(' ');
- aDebStr.append(static_cast<sal_Int32>(pPortion->GetLen()));
- aDebStr.append('(');
- aDebStr.append(static_cast<sal_Int32>(pPortion->GetSize().Width()));
- aDebStr.append(')');
- aDebStr.append(';');
- }
- return aDebStr.makeStringAndClear();
-}
-
-void EditDbg::ShowPortionData( ParaPortion* pPortion )
-{
- ByteString aDebStr( GetPortionInfo( pPortion ) );
- InfoBox( 0, String( aDebStr, RTL_TEXTENCODING_ASCII_US ) ).Execute();
-}
-
-
sal_Bool ParaPortion::DbgCheckTextPortions()
{
// check, if Portion length ok:
diff --git a/editeng/source/editeng/editdbg.hxx b/editeng/source/editeng/editdbg.hxx
index 79c1f6634888..7154dfdb06e5 100644
--- a/editeng/source/editeng/editdbg.hxx
+++ b/editeng/source/editeng/editdbg.hxx
@@ -48,13 +48,10 @@ class EditDbg
{
public:
static void ShowEditEngineData( EditEngine* pEditEngine, sal_Bool bInfoBox = sal_True );
- static void ShowPortionData( ParaPortion* pPortion );
static rtl::OString GetPortionInfo( ParaPortion* pPPortion );
- static rtl::OString GetTextPortionInfo(TextPortionList& rPortions);
static ByteString GetUndoDebStr( EditUndoList* pUndoList );
};
-
#endif // _EDITDBG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx
index c28248ad078a..64547e6c5cc3 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -2081,21 +2081,6 @@ sal_Bool EditEngine::IsPasteSpecialEnabled() const
return pImpEditEngine->GetStatus().AllowPasteSpecial();
}
-void EditEngine::EnableIdleFormatter( sal_Bool bEnable )
-{
- DBG_CHKTHIS( EditEngine, 0 );
- if ( bEnable )
- pImpEditEngine->GetStatus().TurnOnFlags( EE_CNTRL_DOIDLEFORMAT );
- else
- pImpEditEngine->GetStatus().TurnOffFlags( EE_CNTRL_DOIDLEFORMAT);
-}
-
-sal_Bool EditEngine::IsIdleFormatterEnabled() const
-{
- DBG_CHKTHIS( EditEngine, 0 );
- return pImpEditEngine->GetStatus().UseIdleFormatter();
-}
-
void EditEngine::EraseVirtualDevice()
{
DBG_CHKTHIS( EditEngine, 0 );
@@ -2666,12 +2651,6 @@ Font EditEngine::CreateFontFromItemSet( const SfxItemSet& rItemSet, sal_uInt16 n
return aFont;
}
-// Maybe we can remove the next two methods, check after 6.x
-Font EditEngine::CreateFontFromItemSet( const SfxItemSet& rItemSet )
-{
- return CreateSvxFontFromItemSet( rItemSet );
-}
-
SvxFont EditEngine::CreateSvxFontFromItemSet( const SfxItemSet& rItemSet )
{
SvxFont aFont;
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx
index 1bf148648f33..f8fe488adb9d 100644
--- a/editeng/source/outliner/outlvw.cxx
+++ b/editeng/source/outliner/outlvw.cxx
@@ -412,16 +412,6 @@ void OutlinerView::ImpHideDDCursor()
}
}
-void OutlinerView::ImpShowDDCursor()
-{
- DBG_CHKTHIS(OutlinerView,0);
- if ( !bDDCursorVisible )
- {
- bDDCursorVisible = sal_True;
- ImpPaintDDCursor();
- }
-}
-
void OutlinerView::ImpPaintDDCursor()
{
DBG_CHKTHIS(OutlinerView,0);