summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-30 09:08:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-30 09:09:27 +0100
commitacc5c0734cf1d403c2ae9e70010e216563718e25 (patch)
treeb8bf66a45dbcd00d56fc425a38fb37468be6cd36
parent11cc59815a3eb72fe1d2a50ad4e27d8716cc5642 (diff)
callcatcher: remove newly unused code
-rw-r--r--basic/source/inc/runtime.hxx1
-rw-r--r--basic/source/runtime/runtime.cxx11
-rw-r--r--editeng/inc/editeng/editview.hxx7
-rw-r--r--editeng/inc/editeng/outliner.hxx5
-rw-r--r--editeng/source/editeng/editview.cxx52
-rw-r--r--editeng/source/outliner/outlvw.cxx97
-rw-r--r--editeng/source/outliner/paralist.cxx44
-rw-r--r--editeng/source/outliner/paralist.hxx3
-rw-r--r--unusedcode.easy30
9 files changed, 3 insertions, 247 deletions
diff --git a/basic/source/inc/runtime.hxx b/basic/source/inc/runtime.hxx
index b81e88b2db64..b23a0b1b1612 100644
--- a/basic/source/inc/runtime.hxx
+++ b/basic/source/inc/runtime.hxx
@@ -210,7 +210,6 @@ public:
SbMethod* GetCaller( sal_uInt16 );
SbModule* GetActiveModule();
- SbxArray* GetLocals( SbMethod* );
SbiIoSystem* GetIoSystem() { return pIosys; }
SbiDdeControl* GetDdeControl() { return pDdeCtrl; }
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index af18d7129ce5..f778fbb92b26 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -516,17 +516,6 @@ SbMethod* SbiInstance::GetCaller( sal_uInt16 nLevel )
return NULL;
}
-SbxArray* SbiInstance::GetLocals( SbMethod* pMeth )
-{
- SbiRuntime* p = pRun;
- while( p && p->GetMethod() != pMeth )
- p = p->pNext;
- if( p )
- return p->GetLocals();
- else
- return NULL;
-}
-
// SbiInstance //
// Attention: pMeth can also be NULL (on a call of the init-code)
diff --git a/editeng/inc/editeng/editview.hxx b/editeng/inc/editeng/editview.hxx
index 09ad527f4a43..288d865a8acc 100644
--- a/editeng/inc/editeng/editview.hxx
+++ b/editeng/inc/editeng/editview.hxx
@@ -157,14 +157,10 @@ public:
void Paste();
void PasteSpecial();
- void EnablePaste( sal_Bool bEnable );
- sal_Bool IsPasteEnabled() const;
-
void Undo();
void Redo();
// especially for Oliver Specht
- sal_uInt16 GetParagraph( const Point& rMousePosPixel );
Point GetWindowPosTopLeft( sal_uInt16 nParagraph );
void MoveParagraphs( Range aParagraphs, sal_uInt16 nNewPos );
void MoveParagraphs( long nDiff );
@@ -196,7 +192,6 @@ public:
void ForceUpdate();
SfxStyleSheet* GetStyleSheet() const;
- void SetStyleSheet( SfxStyleSheet* pStyle );
void SetAnchorMode( EVAnchorMode eMode );
EVAnchorMode GetAnchorMode() const;
@@ -217,7 +212,6 @@ public:
sal_Bool IsCursorAtWrongSpelledWord( sal_Bool bMarkIfWrong = sal_False );
sal_Bool IsWrongSpelledWordAtPos( const Point& rPosPixel, sal_Bool bMarkIfWrong = sal_False );
- void SpellIgnoreWord();
void ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack = 0 );
void InsertField( const SvxFieldItem& rFld );
@@ -227,7 +221,6 @@ public:
const SvxFieldItem* GetFieldAtSelection() const;
- String GetWordUnderMousePointer() const;
String GetWordUnderMousePointer( Rectangle& rWordRect ) const;
void SetInvalidateMore( sal_uInt16 nPixel );
diff --git a/editeng/inc/editeng/outliner.hxx b/editeng/inc/editeng/outliner.hxx
index 23dfe65181da..319b6738b65f 100644
--- a/editeng/inc/editeng/outliner.hxx
+++ b/editeng/inc/editeng/outliner.hxx
@@ -238,11 +238,6 @@ private:
EDITENG_DLLPRIVATE void ImpHideDDCursor();
EDITENG_DLLPRIVATE void ImpPaintDDCursor();
- EDITENG_DLLPRIVATE void ImpScrollLeft();
- EDITENG_DLLPRIVATE void ImpScrollRight();
- EDITENG_DLLPRIVATE void ImpScrollUp();
- EDITENG_DLLPRIVATE void ImpScrollDown();
-
EDITENG_DLLPRIVATE Pointer ImpGetMousePointer( MouseTarget eTarget );
EDITENG_DLLPRIVATE sal_uInt16 ImpInitPaste( sal_uLong& rStart );
EDITENG_DLLPRIVATE void ImpPasted( sal_uLong nStart, sal_uLong nPrevParaCount, sal_uInt16 nSize);
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx
index 57efd1e5f70d..c0a64d18a0e2 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -632,20 +632,6 @@ void EditView::PasteSpecial()
pImpEditView->Paste(aClipBoard, sal_True );
}
-void EditView::EnablePaste( sal_Bool bEnable )
-{
- DBG_CHKTHIS( EditView, 0 );
- DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
- pImpEditView->EnablePaste( bEnable );
-}
-
-sal_Bool EditView::IsPasteEnabled() const
-{
- DBG_CHKTHIS( EditView, 0 );
- DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
- return pImpEditView->IsPasteEnabled();
-}
-
Point EditView::GetWindowPosTopLeft( sal_uInt16 nParagraph )
{
DBG_CHKTHIS( EditView, 0 );
@@ -654,17 +640,6 @@ Point EditView::GetWindowPosTopLeft( sal_uInt16 nParagraph )
return pImpEditView->GetWindowPos( aDocPos );
}
-sal_uInt16 EditView::GetParagraph( const Point& rMousePosPixel )
-{
- DBG_CHKTHIS( EditView, 0 );
- DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
- Point aMousePos( rMousePosPixel );
- aMousePos = GetWindow()->PixelToLogic( aMousePos );
- Point aDocPos( pImpEditView->GetDocPos( aMousePos ) );
- sal_uInt16 nParagraph = PIMPEE->GetParaPortions().FindParagraph( aDocPos.Y() );
- return nParagraph;
-}
-
EESelectionMode EditView::GetSelectionMode() const
{
DBG_CHKTHIS( EditView, 0 );
@@ -801,17 +776,6 @@ void EditView::ForceUpdate()
PIMPEE->SetUpdateMode( sal_True, this, sal_True );
}
-void EditView::SetStyleSheet( SfxStyleSheet* pStyle )
-{
- DBG_CHKTHIS( EditView, 0 );
- DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
-
- EditSelection aSel( pImpEditView->GetEditSelection() );
- PIMPEE->UndoActionStart( EDITUNDO_STYLESHEET );
- PIMPEE->SetStyleSheet( aSel, pStyle );
- PIMPEE->UndoActionEnd( EDITUNDO_STYLESHEET );
-}
-
SfxStyleSheet* EditView::GetStyleSheet() const
{
DBG_CHKTHIS( EditView, 0 );
@@ -1262,13 +1226,6 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack )
}
}
-void EditView::SpellIgnoreWord()
-{
- DBG_CHKTHIS( EditView, 0 );
- DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
- pImpEditView->SpellIgnoreOrAddWord( sal_False );
-}
-
sal_Bool EditView::SelectCurrentWord( sal_Int16 nWordType )
{
DBG_CHKTHIS( EditView, 0 );
@@ -1347,15 +1304,6 @@ const SvxFieldItem* EditView::GetFieldAtSelection() const
return 0;
}
-XubString EditView::GetWordUnderMousePointer() const
-{
- DBG_CHKTHIS( EditView, 0 );
- DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
-
- Rectangle aRect;
- return GetWordUnderMousePointer( aRect );
-}
-
XubString EditView::GetWordUnderMousePointer( Rectangle& rWordRect ) const
{
DBG_CHKTHIS( EditView, 0 );
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx
index 2c87222b5675..529c58368320 100644
--- a/editeng/source/outliner/outlvw.cxx
+++ b/editeng/source/outliner/outlvw.cxx
@@ -693,103 +693,6 @@ Rectangle OutlinerView::GetVisArea() const
return pEditView->GetVisArea();
}
-void OutlinerView::ImpScrollLeft()
-{
- DBG_CHKTHIS(OutlinerView,0);
- Rectangle aVisArea( pEditView->GetVisArea() );
- long nMaxScrollOffs = aVisArea.Left();
- if ( !nMaxScrollOffs )
- return;
- long nScrollOffsRef = (aVisArea.GetWidth() * OL_SCROLL_HOROFFSET) / 100;
- if ( !nScrollOffsRef )
- nScrollOffsRef = 1;
- if ( nScrollOffsRef > nMaxScrollOffs )
- nScrollOffsRef = nMaxScrollOffs;
-
- ImpHideDDCursor();
- Scroll( -nScrollOffsRef, 0 );
-
- EditStatus aScrollStat;
- aScrollStat.GetStatusWord() = EE_STAT_HSCROLL;
- pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat );
-}
-
-
-void OutlinerView::ImpScrollRight()
-{
- DBG_CHKTHIS(OutlinerView,0);
- Rectangle aVisArea( pEditView->GetVisArea() );
- long nMaxScrollOffs = pOwner->pEditEngine->GetPaperSize().Width() -
- aVisArea.Right();
- if ( !nMaxScrollOffs )
- return;
- long nScrollOffsRef = (aVisArea.GetWidth() * OL_SCROLL_HOROFFSET) / 100;
- if ( !nScrollOffsRef )
- nScrollOffsRef = 1;
- if ( nScrollOffsRef > nMaxScrollOffs )
- nScrollOffsRef = nMaxScrollOffs;
-
- ImpHideDDCursor();
- Scroll( nScrollOffsRef, 0 );
-
- EditStatus aScrollStat;
- aScrollStat.GetStatusWord() = EE_STAT_HSCROLL;
- pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat );
-}
-
-
-void OutlinerView::ImpScrollDown()
-{
- DBG_CHKTHIS(OutlinerView,0);
- Rectangle aVisArea( pEditView->GetVisArea() );
- Size aDocSize( 0, (long)pOwner->pEditEngine->GetTextHeight() );
-
- long nMaxScrollOffs = aDocSize.Height();
- nMaxScrollOffs -= aVisArea.Top();
- nMaxScrollOffs -= aVisArea.GetHeight();
- if ( !nMaxScrollOffs )
- return;
-
- long nScrollOffsRef = (aVisArea.GetHeight() * OL_SCROLL_VEROFFSET) / 100;
-
- if ( nScrollOffsRef > nMaxScrollOffs )
- nScrollOffsRef = nMaxScrollOffs;
- if ( !nScrollOffsRef )
- nScrollOffsRef = 1;
-
- ImpHideDDCursor();
- Scroll( 0, -nScrollOffsRef );
-
- EditStatus aScrollStat;
- aScrollStat.GetStatusWord() = EE_STAT_VSCROLL;
- pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat );
-}
-
-
-void OutlinerView::ImpScrollUp()
-{
- DBG_CHKTHIS(OutlinerView,0);
- Rectangle aVisArea( pEditView->GetVisArea() );
- long nMaxScrollOffs = aVisArea.Top();
- if ( !nMaxScrollOffs )
- return;
- long nScrollOffsRef = (aVisArea.GetHeight() * OL_SCROLL_VEROFFSET) / 100;
-
-
- if ( nScrollOffsRef > nMaxScrollOffs )
- nScrollOffsRef = nMaxScrollOffs;
- if ( !nScrollOffsRef )
- nScrollOffsRef = 1;
-
- ImpHideDDCursor();
- Scroll( 0, nScrollOffsRef );
-
- EditStatus aScrollStat;
- aScrollStat.GetStatusWord() = EE_STAT_VSCROLL;
- pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat );
-}
-
-
void OutlinerView::Expand()
{
DBG_CHKTHIS( OutlinerView, 0 );
diff --git a/editeng/source/outliner/paralist.cxx b/editeng/source/outliner/paralist.cxx
index c09e0f22d90f..37effdf1c9ef 100644
--- a/editeng/source/outliner/paralist.cxx
+++ b/editeng/source/outliner/paralist.cxx
@@ -180,34 +180,6 @@ void ParagraphList::MoveParagraphs( sal_uLong nStart, sal_uLong nDest, sal_uLong
}
}
-Paragraph* ParagraphList::NextVisible( Paragraph* pPara ) const
-{
- std::vector<Paragraph*>::const_iterator iter = std::find(maEntries.begin(),
- maEntries.end(),
- pPara);
- for (; iter != maEntries.end(); ++iter)
- {
- if ((*iter)->IsVisible())
- break;
- }
-
- return iter != maEntries.end() ? *iter : NULL;
-}
-
-Paragraph* ParagraphList::PrevVisible( Paragraph* pPara ) const
-{
- std::vector<Paragraph*>::const_reverse_iterator iter = std::find(maEntries.rbegin(),
- maEntries.rend(),
- pPara);
- for (; iter != maEntries.rend(); ++iter)
- {
- if ((*iter)->IsVisible())
- break;
- }
-
- return iter != maEntries.rend() ? *iter : NULL;
-}
-
Paragraph* ParagraphList::LastVisible() const
{
std::vector<Paragraph*>::const_reverse_iterator iter;
@@ -314,20 +286,4 @@ sal_uLong ParagraphList::GetAbsPos( Paragraph* pParent ) const
return ~0;
}
-sal_uLong ParagraphList::GetVisPos( Paragraph* pPara ) const
-{
- sal_uLong nVisPos = 0;
- std::vector<Paragraph*>::const_iterator iter;
- for (iter = maEntries.begin(); iter != maEntries.end(); ++iter, ++nVisPos)
- {
- if (*iter == pPara)
- break;
-
- if ((*iter)->IsVisible())
- ++nVisPos;
- }
-
- return nVisPos;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/source/outliner/paralist.hxx b/editeng/source/outliner/paralist.hxx
index 29398c24239e..d57455168863 100644
--- a/editeng/source/outliner/paralist.hxx
+++ b/editeng/source/outliner/paralist.hxx
@@ -51,15 +51,12 @@ public:
}
sal_uLong GetAbsPos( Paragraph* pParent ) const;
- sal_uLong GetVisPos( Paragraph* pParagraph ) const;
void Append( Paragraph *pPara);
void Insert( Paragraph* pPara, sal_uLong nAbsPos);
void Remove( sal_uLong nPara );
void MoveParagraphs( sal_uLong nStart, sal_uLong nDest, sal_uLong nCount );
- Paragraph* NextVisible( Paragraph* ) const;
- Paragraph* PrevVisible( Paragraph* ) const;
Paragraph* LastVisible() const;
Paragraph* GetParent( Paragraph* pParagraph /*, sal_uInt16& rRelPos */ ) const;
diff --git a/unusedcode.easy b/unusedcode.easy
index 29c565c1a3f8..b613cdbdca44 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -90,6 +90,7 @@ CurrencyBox::RemoveValue(long)
CurrencyField::CurrencyField(Window*, ResId const&)
CurrencyFormatter::SetCurrencySymbol(String const&)
CustomToolBarImportHelper::showToolbar(rtl::OUString const&)
+DateBox::DateBox(Window*, ResId const&)
DateBox::GetDate(unsigned short) const
DateBox::GetDatePos(Date const&) const
DateBox::InsertDate(Date const&, unsigned short)
@@ -142,8 +143,6 @@ EditEngine::WordRight(ESelection const&, unsigned short) const
EditView::Drop(DropEvent const&)
EditView::GetDropPos()
EditView::GetSelectionMode() const
-EditView::GetWordUnderMousePointer() const
-EditView::IsPasteEnabled() const
EditView::MatchGroup()
EditView::QueryDrop(DropEvent&)
EditView::SetCursor(Cursor const&)
@@ -289,7 +288,6 @@ MSFilterTracer::SetProperty(rtl::OUString const&, com::sun::star::uno::Any const
MSFilterTracer::StartElement(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>)
MachineSettings::CopyData()
MailDispatcher::removeListener(rtl::Reference<IMailDispatcherListener>)
-MaskSet::MaskSet(SvxBmpMask*, long)
Matrix3d::Inverse() const
Matrix3d::Matrix3d()
MergeData::~MergeData()
@@ -305,13 +303,11 @@ MiscSettings::SetDisablePrinting(unsigned char)
MiscSettings::SetEnableATToolSupport(unsigned char)
ModulWindow::LinkStubBasicErrorHdl(void*, void*)
MoreButton::RemoveWindow(Window*)
-MouseEvent::InitMouseEvent(com::sun::star::awt::MouseEvent&) const
MultiLineEdit::GetHScrollBar() const
MultiLineEdit::GetLeftMargin() const
MultiLineEdit::GetTextLines() const
MultiLineEdit::IsFocusSelectionHideEnabled() const
MultiLineEdit::IsRightToLeft() const
-MultiPropertySetHelper::MultiPropertySetHelper(rtl::OUString const*)
MultiSelection::Append(long)
MultiSelection::PrevSelected()
NameNode::IsOrderTree() const
@@ -341,22 +337,6 @@ OUStringsSort_Impl::Remove(unsigned short, unsigned short)
Octree::AddColor(BitmapColor const&)
Octree::Octree(unsigned long)
OdtGeneratorPrivate::_writeBegin()
-OutlinerView::AdjustDepth(Paragraph*, short, unsigned char)
-OutlinerView::AdjustHeight(Paragraph*, long, unsigned char)
-OutlinerView::Collapse(Paragraph*)
-OutlinerView::CompleteAutoCorrect()
-OutlinerView::EnablePaste(unsigned char)
-OutlinerView::Expand(Paragraph*)
-OutlinerView::GetFieldUnderMousePointer(unsigned short&, unsigned short&) const
-OutlinerView::ImpDragScroll(Point const&)
-OutlinerView::ImpGetDocPos(Point const&)
-OutlinerView::ImpGetInsertionPara(Point const&)
-OutlinerView::Redo()
-OutlinerView::RemoveCharAttribs(unsigned long, unsigned short)
-OutlinerView::SetOutliner(Outliner*)
-OutlinerView::SetStyleSheet(SfxStyleSheet*)
-OutlinerView::SpellIgnoreWord()
-OutlinerView::Undo()
OutputDevice::DrawNativeControlText(unsigned int, unsigned int, Rectangle const&, unsigned int, ImplControlValue const&, rtl::OUString)
OutputDevice::GetFontSubstitute(unsigned short, String&, String&, unsigned short&)
OutputDevice::GetMinKashida(Font const&) const
@@ -379,8 +359,6 @@ PageSpan::getMarginLeft() const
PageSpan::getMarginRight() const
ParaPortion::DbgCheckTextPortions()
ParaPortionList::DbgCheck(EditDoc&)
-ParagraphList::GetVisPos(Paragraph*) const
-ParagraphList::PrevVisible(Paragraph*) const
ParagraphObj::ParagraphObj(ParagraphObj&)
PathDialog::SetPath(Edit const&)
PatternBox::GetString(unsigned short) const
@@ -427,7 +405,6 @@ SalI18N_InputContext::SetPreeditState(int)
SanExtensionImpl::extractCertExt()
SanExtensionImpl::setCertExtn(com::sun::star::uno::Sequence<signed char>, com::sun::star::uno::Sequence<signed char>, unsigned char)
SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsigned int, unsigned char)
-SbMethod::GetLocals()
SbPropertyContainer::SbPropertyContainer()
SbPropertySetInfo::SbPropertySetInfo()
SbTextPortions::Insert(SbTextPortions const*, unsigned short, unsigned short, unsigned short)
@@ -884,6 +861,8 @@ SvStringsSortDtor::Insert(SvStringsSortDtor const*, unsigned short, unsigned sho
SvStringsSortDtor::Remove(String* const&, unsigned short)
SvStringsSortDtor::Remove(unsigned short, unsigned short)
SvTabListBox::GetTabJustify(unsigned short) const
+SvULongs::Insert(SvULongs const*, unsigned short, unsigned short, unsigned short)
+SvULongs::Remove(unsigned short, unsigned short)
SvULongs::Replace(unsigned long const&, unsigned short)
SvULongs::Replace(unsigned long const*, unsigned short, unsigned short)
SvULongs::_ForEach(unsigned short, unsigned short, unsigned char (*)(unsigned long const&, void*), void*)
@@ -1110,9 +1089,6 @@ SvxLanguageBox::SvxLanguageBox(Window*, long, unsigned char)
SvxLightCtl3D::SvxLightCtl3D(Window*, long)
SvxLineColorItem::SvxLineColorItem(Color const&, unsigned short)
SvxListBoxControl::RegisterControl(unsigned short, SfxModule*)
-SvxMSConvertOCXControls::OCX_Factory(String const&)
-SvxMSConvertOCXControls::WriteOCXExcelKludgeStream(SotStorageStreamRef&, com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> const&, com::sun::star::awt::Size const&, String&)
-SvxMSConvertOCXControls::WriteOCXStream(SotStorageRef&, com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> const&, com::sun::star::awt::Size const&, String&)
SvxMSDffManager::GetAutoForm(MSO_SPT) const
SvxMSDffManager::ImportFontWork(SvStream&, SfxItemSet&, Rectangle&) const
SvxMSDffManager::Scale(PolyPolygon&) const