diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-01-18 19:48:19 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-01-18 20:45:14 +0100 |
commit | 105546f7f11ccee50f8066bfb7c753fabb177fc8 (patch) | |
tree | 4515108e07c8498bbfb01edf4309b9b6dddf526c /svx | |
parent | 051e60ff36da9b1b7d0ee5268f74fcd34c4ef059 (diff) |
remove unused code
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/ctredlin.hxx | 6 | ||||
-rw-r--r-- | svx/inc/svx/simptabl.hxx | 3 | ||||
-rw-r--r-- | svx/inc/svx/unoshape.hxx | 3 | ||||
-rw-r--r-- | svx/source/dialog/_contdlg.cxx | 44 | ||||
-rw-r--r-- | svx/source/dialog/contimp.hxx | 3 | ||||
-rw-r--r-- | svx/source/dialog/ctredlin.cxx | 95 | ||||
-rw-r--r-- | svx/source/dialog/simptabl.cxx | 10 | ||||
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 16 |
8 files changed, 0 insertions, 180 deletions
diff --git a/svx/inc/svx/ctredlin.hxx b/svx/inc/svx/ctredlin.hxx index 18089c791687..74e92bcce50b 100644 --- a/svx/inc/svx/ctredlin.hxx +++ b/svx/inc/svx/ctredlin.hxx @@ -122,7 +122,6 @@ protected: public: SvxRedlinTable(SvxSimpleTableContainer& rParent, WinBits nBits = WB_BORDER); - SvxRedlinTable(SvxSimpleTableContainer& rParent, const ResId& rResId); ~SvxRedlinTable(); // For FilterPage only { @@ -141,8 +140,6 @@ public: // } For FilterPage only void SetCalcView(sal_Bool bFlag=sal_True); - sal_Bool IsValidCalcEntry(const String& ,RedlinData *pUserData); - sal_Bool IsValidWriterEntry(const String& ,RedlinData *pUserData); // no NULL-pointer checking { sal_Bool IsValidEntry(const String* pAuthor,const DateTime *pDateTime,const String* pComment); @@ -239,7 +236,6 @@ public: void ClearAuthors(); void InsertAuthor( const String& rString, sal_uInt16 nPos = LISTBOX_APPEND ); - sal_uInt16 GetSelectedAuthorPos(); String GetSelectedAuthor()const; void SelectedAuthorPos(sal_uInt16 nPos); sal_uInt16 SelectAuthor(const String& aString); @@ -251,11 +247,9 @@ public: void SetRange(const String& rString); String GetRange() const; void HideRange(sal_Bool bHide=sal_True); - void DisableRange(sal_Bool bFlag=sal_True); void SetFocusToRange(); // } Methods for Calc - void HideClocks(sal_Bool bHide=sal_True); void DisableRef(sal_Bool bFlag); sal_Bool IsDate(); diff --git a/svx/inc/svx/simptabl.hxx b/svx/inc/svx/simptabl.hxx index c192458be2c8..b15a485f473f 100644 --- a/svx/inc/svx/simptabl.hxx +++ b/svx/inc/svx/simptabl.hxx @@ -112,7 +112,6 @@ public: void SetTabs( long* pTabs, MapUnit = MAP_APPFONT ); - void ClearAll(); void ClearHeader(); // to be removed all calls of the related methods are redirected to *Table() methods @@ -138,8 +137,6 @@ public: void DisableTable(); sal_Bool IsEnabled() const; - void TableToTop(); - sal_uInt16 GetSelectedCol(); void SortByCol(sal_uInt16,sal_Bool bDir=sal_True); sal_Bool GetSortDirection(){ return bSortDirection;} diff --git a/svx/inc/svx/unoshape.hxx b/svx/inc/svx/unoshape.hxx index beb51026bf95..f22468f0f8c9 100644 --- a/svx/inc/svx/unoshape.hxx +++ b/svx/inc/svx/unoshape.hxx @@ -191,7 +191,6 @@ public: SdrObject* GetSdrObject() const {return mpObj.get();} void SetShapeType( const ::rtl::OUString& ShapeType ) { maShapeType = ShapeType; } ::com::sun::star::uno::Any GetBitmap( sal_Bool bMetaFile = sal_False ) const throw (); - static SvxShape* GetShapeForSdrObj( SdrObject* pObj ) throw (); ::svx::PropertyChangeNotifier& getShapePropertyChangeNotifier(); @@ -223,8 +222,6 @@ public: ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL _getTypes( ) throw(::com::sun::star::uno::RuntimeException); void setMaster( SvxShapeMaster* pMaster ); - const SvxShapeMaster* getMaster() const; - SvxShapeMaster* getMaster(); // SfxListener virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) throw (); diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx index a49fa0dfa179..576d06e925d7 100644 --- a/svx/source/dialog/_contdlg.cxx +++ b/svx/source/dialog/_contdlg.cxx @@ -501,50 +501,6 @@ sal_Bool SvxSuperContourDlg::IsRedoPossible() const return aRedoGraphic.GetType() != GRAPHIC_NONE; } -void SvxSuperContourDlg::DoAutoCreate() -{ - aCreateTimer.Start(); -} - -void SvxSuperContourDlg::ReducePoints( const long nTol ) -{ - PolyPolygon aPolyPoly( GetPolyPolygon( sal_False ) ); - - if ( aPolyPoly.Count() ) - { - const MapMode aMapMode( MAP_100TH_MM ); - const long nTol2 = nTol * nTol; - Polygon& rPoly = aPolyPoly[ 0 ]; - OutputDevice* pOutDev = Application::GetDefaultDevice(); - Point aPtPix; - const sal_uInt16 nSize = rPoly.GetSize(); - sal_uInt16 nCounter = 0; - - if ( nSize ) - aPtPix = pOutDev->LogicToPixel( rPoly[ 0 ], aMapMode ); - - for( sal_uInt16 i = 1; i < nSize; i++ ) - { - const Point& rNewPt = rPoly[ i ]; - const Point aNewPtPix( pOutDev->LogicToPixel( rNewPt, aMapMode ) ); - - const long nDistX = aNewPtPix.X() - aPtPix.X(); - const long nDistY = aNewPtPix.Y() - aPtPix.Y(); - - if( ( nDistX * nDistX + nDistY * nDistY ) >= nTol2 ) - { - rPoly[ ++nCounter ] = rNewPt; - aPtPix = aNewPtPix; - } - } - - rPoly.SetSize( nCounter ); - aContourWnd.SetPolyPolygon( aPolyPoly ); - aContourWnd.GetSdrModel()->SetChanged( sal_True ); - } -} - - // Click handler for ToolBox IMPL_LINK( SvxSuperContourDlg, Tbx1ClickHdl, ToolBox*, pTbx ) diff --git a/svx/source/dialog/contimp.hxx b/svx/source/dialog/contimp.hxx index bf40b9812228..9a7c8de4b02b 100644 --- a/svx/source/dialog/contimp.hxx +++ b/svx/source/dialog/contimp.hxx @@ -65,9 +65,6 @@ class SvxSuperContourDlg : public SvxContourDlg virtual void Resize(); virtual sal_Bool Close(); - void DoAutoCreate(); - void ReducePoints( const long nTol = 8 ); - DECL_LINK( Tbx1ClickHdl, ToolBox* ); DECL_LINK( MousePosHdl, ContourWindow* ); DECL_LINK( GraphSizeHdl, ContourWindow* ); diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx index a7ba9562d8f8..ba858714113c 100644 --- a/svx/source/dialog/ctredlin.cxx +++ b/svx/source/dialog/ctredlin.cxx @@ -163,22 +163,6 @@ SvxRedlinTable::SvxRedlinTable(SvxSimpleTableContainer& rParent,WinBits nBits) SetNodeDefaultImages(); } -SvxRedlinTable::SvxRedlinTable(SvxSimpleTableContainer& rParent,const ResId& rResId) - : SvxSimpleTable(rParent,rResId), - aDaTiFirst( DateTime::EMPTY ), - aDaTiLast( DateTime::EMPTY ), - aDaTiFilterFirst( DateTime::EMPTY ), - aDaTiFilterLast( DateTime::EMPTY ) -{ - bAuthor=sal_False; - bDate=sal_False; - bIsCalc=sal_False; - bComment=sal_False; - nDatePos=WRITER_DATE; - pCommentSearcher=NULL; - SetNodeDefaultImages(); -} - SvxRedlinTable::~SvxRedlinTable() { if(pCommentSearcher!=NULL) @@ -339,50 +323,6 @@ void SvxRedlinTable::SetCommentParams( const utl::SearchParam* pSearchPara ) } } -sal_Bool SvxRedlinTable::IsValidWriterEntry(const String& rString,RedlinData *pUserData) -{ - sal_Bool nTheFlag=sal_True; - String aString=rString.GetToken(WRITER_AUTHOR,'\t'); - if(pUserData==NULL) - { - if(bAuthor) - { - if(aAuthor.CompareTo(aString)==COMPARE_EQUAL) - nTheFlag=sal_True; - else - nTheFlag=sal_False; - } - } - else - { - DateTime aDateTime=pUserData->aDateTime; - nTheFlag=IsValidEntry(&aString,&aDateTime); - } - return nTheFlag; -} - -sal_Bool SvxRedlinTable::IsValidCalcEntry(const String& rString,RedlinData *pUserData) -{ - sal_Bool nTheFlag=sal_True; - String aString=rString.GetToken(CALC_AUTHOR,'\t'); - if(pUserData==NULL) - { - if(bAuthor) - { - if(aAuthor.CompareTo(aString)==COMPARE_EQUAL) - nTheFlag=sal_True; - else - nTheFlag=sal_False; - } - } - else - { - DateTime aDateTime=pUserData->aDateTime; - nTheFlag=IsValidEntry(&aString,&aDateTime); - } - return nTheFlag; -} - sal_Bool SvxRedlinTable::IsValidEntry(const String* pAuthorStr, const DateTime *pDateTime,const String* pCommentStr) { @@ -837,22 +777,6 @@ String SvxTPFilter::GetMyName() const return aStrMyName; } -void SvxTPFilter::DisableRange(sal_Bool bFlag) -{ - if(bFlag) - { - aCbRange.Disable(); - aEdRange.Disable(); - aBtnRange.Disable(); - } - else - { - aCbRange.Enable(); - aEdRange.Enable(); - aBtnRange.Enable(); - } -} - void SvxTPFilter::ShowDateFields(sal_uInt16 nKind) { String aEmpty; @@ -991,11 +915,6 @@ String SvxTPFilter::GetSelectedAuthor() const return aLbAuthor.GetSelectEntry(); } -sal_uInt16 SvxTPFilter::GetSelectedAuthorPos() -{ - return (sal_uInt16) aLbAuthor.GetSelectEntryPos(); -} - void SvxTPFilter::SelectedAuthorPos(sal_uInt16 nPos) { aLbAuthor.SelectEntryPos(nPos); @@ -1040,20 +959,6 @@ void SvxTPFilter::HideRange(sal_Bool bHide) } } -void SvxTPFilter::HideClocks(sal_Bool bHide) -{ - if(bHide) - { - aIbClock. Hide(); - aIbClock2.Hide(); - } - else - { - aIbClock. Show(); - aIbClock2.Show(); - } -} - void SvxTPFilter::SetComment(const String &rComment) { aEdComment.SetText(rComment); diff --git a/svx/source/dialog/simptabl.cxx b/svx/source/dialog/simptabl.cxx index c9fae16aca3a..e3b0aa597486 100644 --- a/svx/source/dialog/simptabl.cxx +++ b/svx/source/dialog/simptabl.cxx @@ -250,11 +250,6 @@ void SvxSimpleTable::InsertHeaderEntry(const rtl::OUString& rText, SetTabs(); } -void SvxSimpleTable::ClearAll() -{ - aHeaderBar.Clear(); - Clear(); -} void SvxSimpleTable::ClearHeader() { aHeaderBar.Clear(); @@ -290,11 +285,6 @@ sal_Bool SvxSimpleTable::IsEnabled() const return m_rParentTableContainer.IsEnabled(); } -void SvxSimpleTable::TableToTop() -{ - m_rParentTableContainer.ToTop(); -} - sal_uInt16 SvxSimpleTable::GetSelectedCol() { return (aHeaderBar.GetCurItemId()-1); diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 2b575105cc06..6a15396a68c6 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -310,16 +310,6 @@ void SvxShape::setMaster( SvxShapeMaster* pMaster ) mpImpl->mpMaster = pMaster; } -SvxShapeMaster* SvxShape::getMaster() -{ - return mpImpl->mpMaster; -} - -const SvxShapeMaster* SvxShape::getMaster() const -{ - return mpImpl->mpMaster; -} - //---------------------------------------------------------------------- uno::Any SAL_CALL SvxShape::queryAggregation( const uno::Type& rType ) throw (uno::RuntimeException) @@ -368,12 +358,6 @@ sal_Int64 SAL_CALL SvxShape::getSomething( const ::com::sun::star::uno::Sequence } //---------------------------------------------------------------------- -SvxShape* SvxShape::GetShapeForSdrObj( SdrObject* pObj ) throw() -{ - return getImplementation( pObj->getUnoShape() ); -} - -//---------------------------------------------------------------------- ::svx::PropertyChangeNotifier& SvxShape::getShapePropertyChangeNotifier() { return mpImpl->maPropertyNotifier; |