summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-18 09:36:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-18 10:10:01 +0000
commitd13545987a59e369f1becec5e1fbc4c69db03184 (patch)
treec8c402f59120946ef4a478f19386e29b6654f42d /sfx2
parent4f7e948af4f6673b048b71228381572a5af4a8d8 (diff)
callcatcher: update unused code lists
Change-Id: Ie975f8a970eec63b593933ebb2394db76d537c51
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/thumbnailview.cxx7
-rw-r--r--sfx2/source/dialog/backingwindow.cxx25
-rw-r--r--sfx2/source/dialog/backingwindow.hxx1
-rw-r--r--sfx2/source/sidebar/TabBar.cxx15
-rw-r--r--sfx2/source/sidebar/TabBar.hxx1
5 files changed, 0 insertions, 49 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index dbe2f462dd04..ee1c016a8f61 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -60,13 +60,6 @@ ThumbnailView::ThumbnailView (Window *pParent, WinBits nWinStyle, bool bDisableT
mbIsTransientChildrenDisabled = bDisableTransientChildren;
}
-ThumbnailView::ThumbnailView (Window *pParent, const ResId &rResId, bool bDisableTransientChildren)
- : Control( pParent, rResId )
-{
- ImplInit();
- mbIsTransientChildrenDisabled = bDisableTransientChildren;
-}
-
ThumbnailView::~ThumbnailView()
{
com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 5f849cd45d9e..5a6c242c49cf 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -497,31 +497,6 @@ IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton )
return 0;
}
-IMPL_LINK( BackingWindow, OpenTemplateHdl, ThumbnailViewItem*, pItem)
-{
- uno::Sequence< PropertyValue > aArgs(4);
- aArgs[0].Name = "AsTemplate";
- aArgs[0].Value <<= sal_True;
- aArgs[1].Name = "MacroExecutionMode";
- aArgs[1].Value <<= MacroExecMode::USE_CONFIG;
- aArgs[2].Name = "UpdateDocMode";
- aArgs[2].Value <<= UpdateDocMode::ACCORDING_TO_CONFIG;
- aArgs[3].Name = "InteractionHandler";
- aArgs[3].Value <<= task::InteractionHandler::createWithParent( ::comphelper::getProcessComponentContext(), 0 );
-
- TemplateViewItem *pTemplateItem = static_cast<TemplateViewItem*>(pItem);
-
- try
- {
- mxDesktop->loadComponentFromURL(pTemplateItem->getPath(),"_default", 0, aArgs );
- }
- catch( const uno::Exception& )
- {
- }
-
- return 0;
-}
-
struct ImplDelayedDispatch
{
Reference< XDispatch > xDispatch;
diff --git a/sfx2/source/dialog/backingwindow.hxx b/sfx2/source/dialog/backingwindow.hxx
index dfa67b0b7016..90f4ff0baad0 100644
--- a/sfx2/source/dialog/backingwindow.hxx
+++ b/sfx2/source/dialog/backingwindow.hxx
@@ -97,7 +97,6 @@ class BackingWindow
DECL_LINK(ClickHdl, Button*);
DECL_LINK(ExtLinkClickHdl, Button*);
- DECL_LINK(OpenTemplateHdl, ThumbnailViewItem*);
void initControls();
diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 27f451b867f7..1a81b6d293df 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -251,21 +251,6 @@ void TabBar::HighlightDeck (const ::rtl::OUString& rsDeckId)
-TabBar::Item* TabBar::GetItemForId (const ::rtl::OUString& rsDeckId)
-{
- for (ItemContainer::iterator iItem(maItems.begin()),iEnd(maItems.end());
- iItem!=iEnd;
- ++iItem)
- {
- if (iItem->msDeckId.equals(rsDeckId))
- return &*iItem;
- }
- return NULL;
-}
-
-
-
-
void TabBar::DataChanged (const DataChangedEvent& rDataChangedEvent)
{
SetBackground(Theme::GetPaint(Theme::Paint_TabBarBackground).GetWallpaper());
diff --git a/sfx2/source/sidebar/TabBar.hxx b/sfx2/source/sidebar/TabBar.hxx
index 01073ce6c30c..ef09a07544c8 100644
--- a/sfx2/source/sidebar/TabBar.hxx
+++ b/sfx2/source/sidebar/TabBar.hxx
@@ -113,7 +113,6 @@ private:
PopupMenuProvider maPopupMenuProvider;
RadioButton* CreateTabItem (const DeckDescriptor& rDeckDescriptor);
- Item* GetItemForId (const ::rtl::OUString& rsId);
Image GetItemImage (const DeckDescriptor& rDeskDescriptor) const;
void Layout (void);
void UpdateButtonIcons (void);