diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-10 14:53:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-10 15:42:53 +0000 |
commit | ea1fa6963d1f45130a3dc3d635e5b37120bf364b (patch) | |
tree | faf9361fae977f504e9d4ce795c3f6225bff67fb /svx | |
parent | 4e022ca124bbedfc6464f67edd11f3edd51d24e8 (diff) |
Remove unused code
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/numfmtsh.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/numinf.hxx | 3 | ||||
-rw-r--r-- | svx/inc/svx/pszctrl.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/simptabl.hxx | 1 | ||||
-rw-r--r-- | svx/inc/svx/zoomctrl.hxx | 2 | ||||
-rw-r--r-- | svx/source/accessibility/svxrectctaccessiblecontext.cxx | 32 | ||||
-rw-r--r-- | svx/source/dialog/simptabl.cxx | 31 | ||||
-rw-r--r-- | svx/source/inc/svxrectctaccessiblecontext.hxx | 5 | ||||
-rw-r--r-- | svx/source/items/numfmtsh.cxx | 13 | ||||
-rw-r--r-- | svx/source/items/numinf.cxx | 23 | ||||
-rw-r--r-- | svx/source/stbctrls/pszctrl.cxx | 14 | ||||
-rw-r--r-- | svx/source/stbctrls/zoomctrl.cxx | 6 |
12 files changed, 0 insertions, 134 deletions
diff --git a/svx/inc/svx/numfmtsh.hxx b/svx/inc/svx/numfmtsh.hxx index 850b46d48667..d6005ab572f3 100644 --- a/svx/inc/svx/numfmtsh.hxx +++ b/svx/inc/svx/numfmtsh.hxx @@ -171,12 +171,10 @@ public: String GetFormat4Entry(short nEntry); void SetComment4Entry(short nEntry,String aCommentString); - bool IsBankingSymbol(sal_uInt16 nPos); void SetCurrencySymbol(sal_uInt16 nPos); sal_uInt32 GetCurrencySymbol(); sal_uInt16 FindCurrencyFormat( const String& rFmtString ); sal_uInt16 FindCurrencyFormat(const NfCurrencyEntry* pTmpCurrencyEntry,bool bTmpBanking); - NfCurrencyEntry* GetCurCurrencyEntry(); void SetCurCurrencyEntry(NfCurrencyEntry*); short GetListPos4Entry(sal_uInt32 nIdx); short GetListPos4Entry( const String& rFmtString ); diff --git a/svx/inc/svx/numinf.hxx b/svx/inc/svx/numinf.hxx index 32b021f079b5..1b0e9713ebcc 100644 --- a/svx/inc/svx/numinf.hxx +++ b/svx/inc/svx/numinf.hxx @@ -71,11 +71,8 @@ public: String &rText, const IntlWrapper * = 0 ) const; SvNumberFormatter* GetNumberFormatter() const { return pFormatter; } - void SetNumberFormatter( SvNumberFormatter* pNumFrmt ); const String& GetValueString() const { return aStringVal; } - void SetStringValue( const String& rNewVal ); double GetValueDouble() const { return nDoubleVal; } - void SetDoubleValue( const double& rNewVal ); const sal_uInt32* GetDelArray() const { return pDelFormatArr; } void SetDelFormatArray( const sal_uInt32* pData, diff --git a/svx/inc/svx/pszctrl.hxx b/svx/inc/svx/pszctrl.hxx index 918cf8878357..1cbe54dca78c 100644 --- a/svx/inc/svx/pszctrl.hxx +++ b/svx/inc/svx/pszctrl.hxx @@ -54,8 +54,6 @@ public: virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); virtual void Paint( const UserDrawEvent& rEvt ); virtual void Command( const CommandEvent& rCEvt ); - - static sal_uIntPtr GetDefItemWidth( const StatusBar& rStb ); }; diff --git a/svx/inc/svx/simptabl.hxx b/svx/inc/svx/simptabl.hxx index b15a485f473f..1340b0b35e9d 100644 --- a/svx/inc/svx/simptabl.hxx +++ b/svx/inc/svx/simptabl.hxx @@ -101,7 +101,6 @@ protected: public: SvxSimpleTable(SvxSimpleTableContainer& rParent, WinBits nBits = WB_BORDER); - SvxSimpleTable(SvxSimpleTableContainer& rParent, const ResId&); ~SvxSimpleTable(); void UpdateViewSize(); diff --git a/svx/inc/svx/zoomctrl.hxx b/svx/inc/svx/zoomctrl.hxx index d45f071212f5..e27309207e0d 100644 --- a/svx/inc/svx/zoomctrl.hxx +++ b/svx/inc/svx/zoomctrl.hxx @@ -51,8 +51,6 @@ public: SvxZoomStatusBarControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb ); - static sal_uIntPtr GetDefItemWidth(const StatusBar& rStb); - }; diff --git a/svx/source/accessibility/svxrectctaccessiblecontext.cxx b/svx/source/accessibility/svxrectctaccessiblecontext.cxx index fa57706dc255..703cc770364b 100644 --- a/svx/source/accessibility/svxrectctaccessiblecontext.cxx +++ b/svx/source/accessibility/svxrectctaccessiblecontext.cxx @@ -672,38 +672,6 @@ void SvxRectCtlAccessibleContext::selectChild( RECT_POINT eButton ) selectChild( PointToIndex( eButton, mbAngleMode ) ); } -void SvxRectCtlAccessibleContext::setName( const ::rtl::OUString& rName ) -{ - Any aPreVal, aPostVal; - { - ::osl::MutexGuard aGuard( m_aMutex ); - - aPreVal <<= msName; - aPostVal <<= rName; - - msName = rName; - } - - const Reference< XInterface > xSource( *this ); - CommitChange( AccessibleEventObject( xSource, AccessibleEventId::NAME_CHANGED, aPreVal, aPostVal ) ); -} - -void SvxRectCtlAccessibleContext::setDescription( const ::rtl::OUString& rDescr ) -{ - Any aPreVal, aPostVal; - { - ::osl::MutexGuard aGuard( m_aMutex ); - - aPreVal <<= msDescription; - aPostVal <<= rDescr; - - msDescription = rDescr; - } - - const Reference< XInterface > xSource( *this ); - CommitChange( AccessibleEventObject( xSource, AccessibleEventId::DESCRIPTION_CHANGED, aPreVal, aPostVal ) ); -} - void SvxRectCtlAccessibleContext::CommitChange( const AccessibleEventObject& rEvent ) { if (mnClientId) diff --git a/svx/source/dialog/simptabl.cxx b/svx/source/dialog/simptabl.cxx index e3b0aa597486..d33c625a5df9 100644 --- a/svx/source/dialog/simptabl.cxx +++ b/svx/source/dialog/simptabl.cxx @@ -108,37 +108,6 @@ SvxSimpleTable::SvxSimpleTable(SvxSimpleTableContainer& rParent, WinBits nBits): SvHeaderTabListBox::Show(); } -SvxSimpleTable::SvxSimpleTable(SvxSimpleTableContainer& rParent,const ResId& rResId): - SvHeaderTabListBox(&rParent,rResId), - m_rParentTableContainer(rParent), - aHeaderBar(&rParent,WB_BUTTONSTYLE | WB_BORDER | WB_TABSTOP), - nHeaderItemId(1), - bResizeFlag(sal_True), - bPaintFlag(sal_True) -{ - SetStyle(GetStyle()|WB_CLIPCHILDREN | WB_HSCROLL | WB_TABSTOP), - m_rParentTableContainer.SetTable(this); - - bSortDirection=sal_True; - nOldPos=0; - nSortCol=0xFFFF; - - aHeaderBar.SetStartDragHdl(LINK( this, SvxSimpleTable, StartDragHdl)); - aHeaderBar.SetDragHdl(LINK( this, SvxSimpleTable, DragHdl)); - aHeaderBar.SetEndDragHdl(LINK( this, SvxSimpleTable, EndDragHdl)); - aHeaderBar.SetSelectHdl(LINK( this, SvxSimpleTable, HeaderBarClick)); - aHeaderBar.SetDoubleClickHdl(LINK( this, SvxSimpleTable, HeaderBarDblClick)); - - UpdateViewSize(); - - EnableCellFocus(); - DisableTransientChildren(); - InitHeaderBar( &aHeaderBar ); - - aHeaderBar.Show(); - SvHeaderTabListBox::Show(); -} - SvxSimpleTable::~SvxSimpleTable() { } diff --git a/svx/source/inc/svxrectctaccessiblecontext.hxx b/svx/source/inc/svxrectctaccessiblecontext.hxx index d5dd9204db4a..cee795b49d0d 100644 --- a/svx/source/inc/svxrectctaccessiblecontext.hxx +++ b/svx/source/inc/svxrectctaccessiblecontext.hxx @@ -265,11 +265,6 @@ public: */ void selectChild( RECT_POINT ePoint ); - /// Sets the name - void setName( const ::rtl::OUString& rName ); - - /// Sets the description - void setDescription( const ::rtl::OUString& rDescr ); private: static ::com::sun::star::uno::Sequence< sal_Int8 > getUniqueId( void ); protected: diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx index d3fe22dea8da..d696123ea8b4 100644 --- a/svx/source/items/numfmtsh.cxx +++ b/svx/source/items/numfmtsh.cxx @@ -1618,14 +1618,6 @@ void SvxNumberFormatShell::GetCurrencySymbols(std::vector<rtl::OUString>& rList, delete pLanguageTable; } -bool SvxNumberFormatShell::IsBankingSymbol(sal_uInt16 nPos) -{ - const NfCurrencyTable& rCurrencyTable=SvNumberFormatter::GetTheCurrencyTable(); - sal_uInt16 nCount=rCurrencyTable.Count(); - - return (nPos>nCount); -} - void SvxNumberFormatShell::SetCurrencySymbol(sal_uInt16 nPos) { const NfCurrencyTable& rCurrencyTable=SvNumberFormatter::GetTheCurrencyTable(); @@ -1656,11 +1648,6 @@ sal_uInt32 SvxNumberFormatShell::GetCurrencySymbol() return nCurCurrencyEntryPos; } -NfCurrencyEntry* SvxNumberFormatShell::GetCurCurrencyEntry() -{ - return pCurCurrencyEntry; -} - void SvxNumberFormatShell::SetCurCurrencyEntry(NfCurrencyEntry* pCEntry) { pCurCurrencyEntry=pCEntry; diff --git a/svx/source/items/numinf.cxx b/svx/source/items/numinf.cxx index 6e5f89e9b04a..9401e002d44f 100644 --- a/svx/source/items/numinf.cxx +++ b/svx/source/items/numinf.cxx @@ -200,29 +200,6 @@ SvStream& SvxNumberInfoItem::Store( SvStream &rStream, sal_uInt16 /*nItemVersion // ----------------------------------------------------------------------- -void SvxNumberInfoItem::SetNumberFormatter( SvNumberFormatter* pNumFormatter ) -{ - pFormatter = pNumFormatter; -} - -// ----------------------------------------------------------------------- - -void SvxNumberInfoItem::SetStringValue( const String& rNewVal ) -{ - aStringVal = rNewVal; - eValueType = SVX_VALUE_TYPE_STRING; -} - -// ----------------------------------------------------------------------- - -void SvxNumberInfoItem::SetDoubleValue( const double& rNewVal ) -{ - nDoubleVal = rNewVal; - eValueType = SVX_VALUE_TYPE_NUMBER; -} - -// ----------------------------------------------------------------------- - void SvxNumberInfoItem::SetDelFormatArray( const sal_uInt32* pData, const sal_uInt32 nCount ) { diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx index a912fa5e8247..9c8a3e3bb5b9 100644 --- a/svx/source/stbctrls/pszctrl.cxx +++ b/svx/source/stbctrls/pszctrl.cxx @@ -425,19 +425,5 @@ void SvxPosSizeStatusBarControl::Paint( const UserDrawEvent& rUsrEvt ) pDev->SetFillColor( aOldFillColor ); } -// ----------------------------------------------------------------------- - -sal_uIntPtr SvxPosSizeStatusBarControl::GetDefItemWidth(const StatusBar& rStb) -{ - Image aTmpPosImage( ResId( RID_SVXBMP_POSITION, DIALOG_MGR() ) ); - Image aTmpSizeImage( ResId( RID_SVXBMP_SIZE, DIALOG_MGR() ) ); - - sal_uIntPtr nWidth=PAINT_OFFSET+aTmpPosImage.GetSizePixel().Width(); - nWidth+=PAINT_OFFSET+aTmpSizeImage.GetSizePixel().Width(); - nWidth+=2*(PAINT_OFFSET+rStb.GetTextWidth(String::CreateFromAscii("XXXX,XX / XXXX,XX"))); - - return nWidth; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx index 835911bac1f7..1284075842d0 100644 --- a/svx/source/stbctrls/zoomctrl.cxx +++ b/svx/source/stbctrls/zoomctrl.cxx @@ -192,11 +192,5 @@ void SvxZoomStatusBarControl::Command( const CommandEvent& rCEvt ) SfxStatusBarControl::Command( rCEvt ); } -sal_uIntPtr SvxZoomStatusBarControl::GetDefItemWidth(const StatusBar& rStb) -{ - long nWidth1 = rStb.GetTextWidth(String::CreateFromAscii("XXXXX%")); - return nWidth1; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |