diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-02-09 11:29:37 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-02-09 11:29:37 +0100 |
commit | c12ab867f282e783507fcf74ab5c90e784681f65 (patch) | |
tree | 6435dd10b5d05d86b9ea4549bceb2696d028b641 /sc | |
parent | d84e78aa31252f6e514ad8a8ef38c4a4ec93cb37 (diff) |
Remove unused methods
GetOptimalSizePixel and GetHCtrlWidth are never called
Change-Id: Ib2ce1445447e85de66683f8b0fdf4fc8aa464084
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/inc/prevwsh.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/tabvwsh.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/prevwsh.cxx | 36 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh4.cxx | 28 |
4 files changed, 0 insertions, 68 deletions
diff --git a/sc/source/ui/inc/prevwsh.hxx b/sc/source/ui/inc/prevwsh.hxx index 753047843fc4..8a4910093a0e 100644 --- a/sc/source/ui/inc/prevwsh.hxx +++ b/sc/source/ui/inc/prevwsh.hxx @@ -71,8 +71,6 @@ protected: virtual void InnerResizePixel( const Point &rOfs, const Size &rSize ); virtual void OuterResizePixel( const Point &rOfs, const Size &rSize ); - virtual Size GetOptimalSizePixel() const; - virtual String GetDescription() const; virtual void WriteUserData(String &, sal_Bool bBrowse = false); diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx index d1e53adb39e4..9ca9868a4542 100644 --- a/sc/source/ui/inc/tabvwsh.hxx +++ b/sc/source/ui/inc/tabvwsh.hxx @@ -213,8 +213,6 @@ protected: virtual void QueryObjAreaPixel( Rectangle& rRect ) const; - virtual Size GetOptimalSizePixel() const; - virtual String GetSelectionText( sal_Bool bWholeWord ); virtual sal_Bool HasSelection( sal_Bool bText ) const; virtual String GetDescription() const; diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index 37e0e8678d95..2cc99a59eab2 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -211,42 +211,6 @@ String ScPreviewShell::GetDescription() const return rtl::OUString(" ** Test ** "); } -Size ScPreviewShell::GetOptimalSizePixel() const -{ - Size aOptSize(100,100); - - ScTabViewShell* pViewSh = pDocShell->GetBestViewShell(); - - if ( pViewSh ) - { - ScViewData* pViewData = pViewSh->GetViewData(); - SCTAB nCurTab = pViewData->GetTabNo(); - ScDocument* pDoc = pDocShell->GetDocument(); - ScStyleSheetPool* pStylePool = pDoc->GetStyleSheetPool(); - SfxStyleSheetBase* pStyleSheet = pStylePool->Find( - pDoc->GetPageStyle( nCurTab ), - SFX_STYLE_FAMILY_PAGE ); - - OSL_ENSURE( pStyleSheet, "PageStyle not found :-/" ); - - if ( pStyleSheet ) - { - const SfxItemSet& rSet = pStyleSheet->GetItemSet(); - const SvxSizeItem& rItem = (const SvxSizeItem&)rSet.Get( ATTR_PAGE_SIZE ); - const Size& rPageSize = rItem.GetSize(); - - aOptSize.Width() = (long) (rPageSize.Width() * pViewData->GetPPTX()); - aOptSize.Height() = (long) (rPageSize.Height() * pViewData->GetPPTY()); - } - } - else - { - OSL_FAIL( "TabViewShell not found :-/" ); - } - - return aOptSize; -} - void ScPreviewShell::AdjustPosSizePixel( const Point &rPos, const Size &rSize ) { Size aOutSize( rSize ); diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index 4f9681d0f373..04af91d985d6 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -305,34 +305,6 @@ sal_uInt16 ScTabViewShell::PrepareClose(sal_Bool bUI, sal_Bool bForBrowsing) //------------------------------------------------------------------ -Size ScTabViewShell::GetOptimalSizePixel() const -{ - Size aOptSize; - - SCTAB nCurTab = GetViewData()->GetTabNo(); - ScDocument* pDoc = GetViewData()->GetDocument(); - ScStyleSheetPool* pStylePool = pDoc->GetStyleSheetPool(); - SfxStyleSheetBase* pStyleSheet = pStylePool->Find( - pDoc->GetPageStyle( nCurTab ), - SFX_STYLE_FAMILY_PAGE ); - - OSL_ENSURE( pStyleSheet, "PageStyle not found :-/" ); - - if ( pStyleSheet ) - { - const SfxItemSet& rSet = pStyleSheet->GetItemSet(); - const SvxSizeItem& rItem = (const SvxSizeItem&)rSet.Get( ATTR_PAGE_SIZE ); - const Size& rPageSize = rItem.GetSize(); - - aOptSize.Width() = (long) (rPageSize.Width() * GetViewData()->GetPPTX()); - aOptSize.Height() = (long) (rPageSize.Height() * GetViewData()->GetPPTY()); - } - - return aOptSize; -} - -//------------------------------------------------------------------ - // Zoom fuer In-Place berechnen // aus Verhaeltnis von VisArea und Fenstergroesse des GridWin |