[Libreoffice-commits] .: sfx2/inc sfx2/source unusedcode.easy
Matus Kukan
mkukan at kemper.freedesktop.org
Mon Aug 22 11:07:12 PDT 2011
sfx2/inc/sfx2/controlwrapper.hxx | 18 ------------------
sfx2/inc/sfx2/itemconnect.hxx | 8 --------
sfx2/inc/sfx2/linkmgr.hxx | 3 ---
sfx2/inc/sfx2/lnkbase.hxx | 2 --
sfx2/inc/sfx2/taskpane.hxx | 13 -------------
sfx2/inc/sfx2/titledockwin.hxx | 6 ------
sfx2/source/appl/linkmgr2.cxx | 7 -------
sfx2/source/appl/lnkbase2.cxx | 7 -------
sfx2/source/dialog/itemconnect.cxx | 34 ----------------------------------
sfx2/source/dialog/taskpane.cxx | 12 ------------
sfx2/source/dialog/titledockwin.cxx | 6 ------
sfx2/source/doc/iframe.cxx | 16 ----------------
unusedcode.easy | 8 --------
13 files changed, 140 deletions(-)
New commits:
commit 4a2e1fc2796f5190c56003e4cfff621921c37adb
Author: Matúš Kukan <matus.kukan at gmail.com>
Date: Mon Aug 22 20:01:35 2011 +0200
unusedcode: sfx:: sfx2::
diff --git a/sfx2/inc/sfx2/controlwrapper.hxx b/sfx2/inc/sfx2/controlwrapper.hxx
index 5959e5e..21210d4 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 7808de9..9dc3e79 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 39fcd6b..698eca8 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 621e597..9841366 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 f80b66c..fe0f2bb 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 8b03be0..ecc45cc 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 9829c3b..e1b212a 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 cc7b31b..f61f1f3 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 0cffdf5..6653a8d 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 f32025e..76589da 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 f017ad4..33ede82 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 0fdd22f..7926e80 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
diff --git a/unusedcode.easy b/unusedcode.easy
index fcaa4ed..48dfed9 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -3369,15 +3369,7 @@ sdr::table::TableLayouter::getColumnStart(int) const
sdr::table::TableLayouter::getRowStart(int) const
sdr::table::TableLayouter::setColumnWidth(int, int)
sdr::table::TableLayouter::setRowHeight(int, int)
-sfx2::IFrameWindow_Impl::SetBorder(unsigned char)
-sfx2::LinkManager::InsertFileLink(sfx2::SvBaseLink&)
-sfx2::ModuleTaskPane::ModuleHasToolPanels(rtl::OUString const&)
-sfx2::SvBaseLink::GetName() const
-sfx2::TaskPaneController::SetDefaultTitle(String const&)
sfx2::TaskPaneWrapper::GetChildWindowId()
-sfx2::TitledDockingWindow::GetTitle() const
-sfx::EditWrapper::EditWrapper(Edit&)
-sfx::ItemConnectionBase::Activate(bool)
slideshow::internal::AnimatedSprite::getPixelOffset() const
slideshow::internal::AnimatedSprite::setPriority(double)
slideshow::internal::DrawShapeSubsetting::DrawShapeSubsetting(boost::shared_ptr<GDIMetaFile> const&)
More information about the Libreoffice-commits
mailing list