diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-22 20:01:35 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-22 20:06:49 +0200 |
commit | 4a2e1fc2796f5190c56003e4cfff621921c37adb (patch) | |
tree | bb018589e1cebd15c68f8706075421decfe2388a /sfx2 | |
parent | a789d8a487c2bcc9687e859337b6d6a1b6bbf8bc (diff) |
unusedcode: sfx:: sfx2::
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/controlwrapper.hxx | 18 | ||||
-rw-r--r-- | sfx2/inc/sfx2/itemconnect.hxx | 8 | ||||
-rw-r--r-- | sfx2/inc/sfx2/linkmgr.hxx | 3 | ||||
-rw-r--r-- | sfx2/inc/sfx2/lnkbase.hxx | 2 | ||||
-rw-r--r-- | sfx2/inc/sfx2/taskpane.hxx | 13 | ||||
-rw-r--r-- | sfx2/inc/sfx2/titledockwin.hxx | 6 | ||||
-rw-r--r-- | sfx2/source/appl/linkmgr2.cxx | 7 | ||||
-rw-r--r-- | sfx2/source/appl/lnkbase2.cxx | 7 | ||||
-rw-r--r-- | sfx2/source/dialog/itemconnect.cxx | 34 | ||||
-rw-r--r-- | sfx2/source/dialog/taskpane.cxx | 12 | ||||
-rw-r--r-- | sfx2/source/dialog/titledockwin.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/doc/iframe.cxx | 16 |
12 files changed, 0 insertions, 132 deletions
diff --git a/sfx2/inc/sfx2/controlwrapper.hxx b/sfx2/inc/sfx2/controlwrapper.hxx index 5959e5eed2ea..21210d404841 100644 --- a/sfx2/inc/sfx2/controlwrapper.hxx +++ b/sfx2/inc/sfx2/controlwrapper.hxx @@ -260,24 +260,6 @@ public: // ---------------------------------------------------------------------------- -/** A wrapper for the VCL Edit. */ -class EditWrapper : public SingleControlWrapper< Edit, String > -{ - /* Note: cannot use 'const String&' as template argument, because VCL's - Edit control returns the string by value and not by reference, - therefore GetControlValue() must return a temporary object too. */ -public: - explicit EditWrapper( Edit& rEdit ); - - virtual bool IsControlDontKnow() const; - virtual void SetControlDontKnow( bool bSet ); - - virtual String GetControlValue() const; - virtual void SetControlValue( String aValue ); -}; - -// ---------------------------------------------------------------------------- - /** A wrapper for the SVTOOLS ColorListBox. */ class SFX2_DLLPUBLIC ColorListBoxWrapper: public SingleControlWrapper< ColorListBox, Color > diff --git a/sfx2/inc/sfx2/itemconnect.hxx b/sfx2/inc/sfx2/itemconnect.hxx index 7808de9d32f8..9dc3e79b2353 100644 --- a/sfx2/inc/sfx2/itemconnect.hxx +++ b/sfx2/inc/sfx2/itemconnect.hxx @@ -164,7 +164,6 @@ const ItemConnFlags ITEMCONN_DEFAULT = ITEMCONN_NONE; +- ItemControlConnection< ItemWrpT, ControlWrpT > | | | +- CheckBoxConnection [1] - | +- EditConnection [1] | | | +- NumericConnection< ItemWrpT > [1] | | | @@ -196,10 +195,6 @@ public: /** Returns the flags passed in the constructor. */ inline ItemConnFlags GetFlags() const { return mnFlags; } - /** Activates or deactivates this connection. - @descr Deactivated connections do not execute the virtual functions - ApplyFlags(), Reset(), and FillItemSet(). */ - void Activate( bool bActive = true ); /** Returns true if this connection is active. */ bool IsActive() const; @@ -315,9 +310,6 @@ private: /** Connection between an SfxBoolItem and a VCL CheckBox. */ typedef ItemControlConnection< BoolItemWrapper, CheckBoxWrapper > CheckBoxConnection; -/** Connection between an SfxStringItem and a VCL Edit. */ -typedef ItemControlConnection< StringItemWrapper, EditWrapper > EditConnection; - // ============================================================================ /** Connection between an item and the VCL NumericField. */ diff --git a/sfx2/inc/sfx2/linkmgr.hxx b/sfx2/inc/sfx2/linkmgr.hxx index 39fcd6bd3918..698eca8962b2 100644 --- a/sfx2/inc/sfx2/linkmgr.hxx +++ b/sfx2/inc/sfx2/linkmgr.hxx @@ -120,9 +120,6 @@ public: const String* pFilterNm = 0, const String* pRange = 0 ); - // if everything is already set for the link! - sal_Bool InsertFileLink( sfx2::SvBaseLink& ); - void ReconnectDdeLink(SfxObjectShell& rServer); /** diff --git a/sfx2/inc/sfx2/lnkbase.hxx b/sfx2/inc/sfx2/lnkbase.hxx index 621e597c23bd..984136665f2a 100644 --- a/sfx2/inc/sfx2/lnkbase.hxx +++ b/sfx2/inc/sfx2/lnkbase.hxx @@ -96,8 +96,6 @@ protected: // Set LinkSourceName without action void SetName( const String & rLn ); - // LinkSourceName which is in SvLinkBase - String GetName() const; ImplBaseLinkData* pImplData; diff --git a/sfx2/inc/sfx2/taskpane.hxx b/sfx2/inc/sfx2/taskpane.hxx index f80b66c4d0ee..fe0f2bb788c7 100644 --- a/sfx2/inc/sfx2/taskpane.hxx +++ b/sfx2/inc/sfx2/taskpane.hxx @@ -139,9 +139,6 @@ namespace sfx2 /** determines whether a given module has any registered tool panels */ - static bool ModuleHasToolPanels( const ::rtl::OUString& i_rModuleIdentifier ); - /** determines whether a given module has any registered tool panels - */ static bool ModuleHasToolPanels( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& i_rDocumentFrame ); /** provides access to the Window aspect of the PanelDeck @@ -197,16 +194,6 @@ namespace sfx2 ); ~TaskPaneController(); - /** sets the default title to be used for the TitledDockingWindow - - When the controller switches the docking window to "tabbed" mode, then the title of the docking window - will contain the name of the currently active panel (since this name isn't to be seen elsewhere). - When the controller switches the docking window to "drawer" mode, then the title of the docking window - contains the default title as given here (since in this mode, the names of the panels are shown in - the drawers). - */ - void SetDefaultTitle( const String& i_rTitle ); - /// activates the panel with the given URL void ActivateToolPanel( const ::rtl::OUString& i_rPanelURL ); diff --git a/sfx2/inc/sfx2/titledockwin.hxx b/sfx2/inc/sfx2/titledockwin.hxx index 8b03be062387..ecc45cc1da28 100644 --- a/sfx2/inc/sfx2/titledockwin.hxx +++ b/sfx2/inc/sfx2/titledockwin.hxx @@ -59,12 +59,6 @@ namespace sfx2 /** sets a title to be displayed in the docking window */ void SetTitle( const String& i_rTitle ); - /** returns the current title displayed in the docking window - - Note that if you never called SetTitle before, then this method will not return an empty string, - but the window text (Window::GetText), since this is what is displayed as title then. - */ - String GetTitle() const; /** adds a drop down item to the toolbox. Usually, this is used to add some kind of menu to the toolbox. diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index 9829c3bed5ce..e1b212a4e98e 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -478,13 +478,6 @@ sal_Bool LinkManager::InsertFileLink( sfx2::SvBaseLink& rLink, return InsertLink( &rLink, nFileType, sfx2::LINKUPDATE_ONCALL, &sCmd ); } -sal_Bool LinkManager::InsertFileLink( sfx2::SvBaseLink& rLink ) -{ - if( OBJECT_CLIENT_FILE == ( OBJECT_CLIENT_FILE & rLink.GetObjType() )) - return InsertLink( &rLink, rLink.GetObjType(), sfx2::LINKUPDATE_ONCALL ); - return sal_False; -} - // A transfer is aborted, so cancel all download media // (for now this is only of interest for the file links!) void LinkManager::CancelTransfers() diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx index cc7b31bd1b15..f61f1f3329a9 100644 --- a/sfx2/source/appl/lnkbase2.cxx +++ b/sfx2/source/appl/lnkbase2.cxx @@ -245,13 +245,6 @@ void SvBaseLink::SetName( const String & rNm ) //-------------------------------------------------------------------------- -String SvBaseLink::GetName() const -{ - return aLinkName; -} - -//-------------------------------------------------------------------------- - void SvBaseLink::SetObj( SvLinkSource * pObj ) { DBG_ASSERT( (nObjType & OBJECT_CLIENT_SO && diff --git a/sfx2/source/dialog/itemconnect.cxx b/sfx2/source/dialog/itemconnect.cxx index 0cffdf5217ab..6653a8dd20aa 100644 --- a/sfx2/source/dialog/itemconnect.cxx +++ b/sfx2/source/dialog/itemconnect.cxx @@ -146,35 +146,6 @@ void CheckBoxWrapper::SetControlValue( sal_Bool bValue ) // ---------------------------------------------------------------------------- -EditWrapper::EditWrapper( Edit& rEdit ) : - SingleControlWrapperType( rEdit ) -{ -} - -bool EditWrapper::IsControlDontKnow() const -{ - // no "don't know" state - empty string is a valid value of an Edit - return false; -} - -void EditWrapper::SetControlDontKnow( bool bSet ) -{ - if( bSet ) - GetControl().SetText( String() ); -} - -String EditWrapper::GetControlValue() const -{ - return GetControl().GetText(); -} - -void EditWrapper::SetControlValue( String aValue ) -{ - GetControl().SetText( aValue ); -} - -// ---------------------------------------------------------------------------- - ColorListBoxWrapper::ColorListBoxWrapper(ColorListBox & rListBox): SingleControlWrapper< ColorListBox, Color >(rListBox) {} @@ -262,11 +233,6 @@ ItemConnectionBase::~ItemConnectionBase() { } -void ItemConnectionBase::Activate( bool bActive ) -{ - if( bActive ) mnFlags &= ~ITEMCONN_INACTIVE; else mnFlags |= ITEMCONN_INACTIVE; -} - bool ItemConnectionBase::IsActive() const { return !(mnFlags & ITEMCONN_INACTIVE); diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx index f32025e74414..76589da3bcb2 100644 --- a/sfx2/source/dialog/taskpane.cxx +++ b/sfx2/source/dialog/taskpane.cxx @@ -749,12 +749,6 @@ namespace sfx2 } //------------------------------------------------------------------------------------------------------------------ - bool ModuleTaskPane::ModuleHasToolPanels( const ::rtl::OUString& i_rModuleIdentifier ) - { - return ModuleTaskPane_Impl::ModuleHasToolPanels( i_rModuleIdentifier ); - } - - //------------------------------------------------------------------------------------------------------------------ bool ModuleTaskPane::ModuleHasToolPanels( const Reference< XFrame >& i_rDocumentFrame ) { return ModuleTaskPane_Impl::ModuleHasToolPanels( lcl_identifyModule( i_rDocumentFrame ) ); @@ -1283,12 +1277,6 @@ namespace sfx2 } //------------------------------------------------------------------------------------------------------------------ - void TaskPaneController::SetDefaultTitle( const String& i_rTitle ) - { - m_pImpl->SetDefaultTitle( i_rTitle ); - } - - //------------------------------------------------------------------------------------------------------------------ void TaskPaneController::ActivateToolPanel( const ::rtl::OUString& i_rPanelURL ) { m_pImpl->ActivateToolPanel( i_rPanelURL ); diff --git a/sfx2/source/dialog/titledockwin.cxx b/sfx2/source/dialog/titledockwin.cxx index f017ad454063..33ede82a46d4 100644 --- a/sfx2/source/dialog/titledockwin.cxx +++ b/sfx2/source/dialog/titledockwin.cxx @@ -97,12 +97,6 @@ namespace sfx2 } //------------------------------------------------------------------------------------------------------------------ - String TitledDockingWindow::GetTitle() const - { - return impl_getTitle(); - } - - //------------------------------------------------------------------------------------------------------------------ void TitledDockingWindow::SetText( const String& i_rText ) { SfxDockingWindow::SetText( i_rText ); diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx index 0fdd22f70e3e..7926e802aef9 100644 --- a/sfx2/source/doc/iframe.cxx +++ b/sfx2/source/doc/iframe.cxx @@ -61,7 +61,6 @@ public: WinBits nWinBits = 0 ); public: - void SetBorder( sal_Bool bNewBorder = sal_True ); sal_Bool HasBorder() const { return bBorder; } }; @@ -76,21 +75,6 @@ IFrameWindow_Impl::IFrameWindow_Impl( Window *pParent, sal_Bool bHasBorder, WinB SetBorderStyle( WINDOW_BORDER_NORMAL ); } -void IFrameWindow_Impl::SetBorder( sal_Bool bNewBorder ) -{ - if ( bBorder != bNewBorder ) - { - Size aSize = GetSizePixel(); - bBorder = bNewBorder; - if ( bBorder ) - SetBorderStyle( WINDOW_BORDER_NORMAL ); - else - SetBorderStyle( WINDOW_BORDER_NOBORDER ); - if ( GetSizePixel() != aSize ) - SetSizePixel( aSize ); - } -} - #define PROPERTY_UNBOUND 0 #define WID_FRAME_URL 1 |