summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-05 18:47:50 +0800
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-05 21:40:30 +0400
commit9c2f7056a82c4d7719715ca1c77f8dd4c17aa24c (patch)
treefcfff781b70e6423b5b5c32831eae1ca251be6b7 /sfx2
parent4fa8d043f8336e7b35130934498f8a4b357967d3 (diff)
Remove unused code
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/sfx2/childwin.hxx1
-rw-r--r--sfx2/inc/sfx2/ctrlitem.hxx3
-rw-r--r--sfx2/inc/sfx2/docfile.hxx1
-rw-r--r--sfx2/inc/sfx2/frame.hxx2
-rw-r--r--sfx2/inc/sfx2/frmdescr.hxx5
-rw-r--r--sfx2/inc/sfx2/hintpost.hxx1
-rw-r--r--sfx2/inc/sfx2/ipclient.hxx2
-rw-r--r--sfx2/inc/sfx2/mailmodelapi.hxx1
-rw-r--r--sfx2/inc/sfx2/msgpool.hxx1
-rw-r--r--sfx2/inc/sfx2/passwd.hxx1
-rw-r--r--sfx2/inc/sfx2/request.hxx1
-rw-r--r--sfx2/inc/sfx2/shell.hxx3
-rw-r--r--sfx2/inc/sfx2/tabdlg.hxx1
-rw-r--r--sfx2/inc/sfx2/tbxctrl.hxx1
-rw-r--r--sfx2/inc/sfx2/unoctitm.hxx1
-rw-r--r--sfx2/inc/sfx2/viewfac.hxx1
-rw-r--r--sfx2/inc/sfx2/viewfrm.hxx1
-rw-r--r--sfx2/source/appl/appbaslib.cxx12
-rw-r--r--sfx2/source/appl/childwin.cxx16
-rw-r--r--sfx2/source/control/ctrlitem.cxx59
-rw-r--r--sfx2/source/control/msgpool.cxx10
-rw-r--r--sfx2/source/control/request.cxx23
-rw-r--r--sfx2/source/control/shell.cxx53
-rw-r--r--sfx2/source/dialog/mailmodel.cxx5
-rw-r--r--sfx2/source/dialog/passwd.cxx9
-rw-r--r--sfx2/source/dialog/tabdlg.cxx11
-rw-r--r--sfx2/source/doc/docfile.cxx6
-rw-r--r--sfx2/source/doc/frmdescr.cxx35
-rw-r--r--sfx2/source/doc/oleprops.cxx14
-rw-r--r--sfx2/source/inc/appbaslib.hxx5
-rw-r--r--sfx2/source/notify/hintpost.cxx7
-rw-r--r--sfx2/source/toolbox/tbxitem.cxx9
-rw-r--r--sfx2/source/view/frame.cxx10
-rw-r--r--sfx2/source/view/ipclient.cxx21
-rw-r--r--sfx2/source/view/viewfac.cxx5
-rw-r--r--sfx2/source/view/viewfrm.cxx8
36 files changed, 0 insertions, 345 deletions
diff --git a/sfx2/inc/sfx2/childwin.hxx b/sfx2/inc/sfx2/childwin.hxx
index 61da6641f700..fc7cf83feec7 100644
--- a/sfx2/inc/sfx2/childwin.hxx
+++ b/sfx2/inc/sfx2/childwin.hxx
@@ -150,7 +150,6 @@ public:
{ return nContextId; }
FloatingWindow* GetFloatingWindow() const;
- SfxChildAlignment GetAlignment() const;
virtual void Resizing( Size& rSize );
virtual sal_Bool Close();
diff --git a/sfx2/inc/sfx2/ctrlitem.hxx b/sfx2/inc/sfx2/ctrlitem.hxx
index e7b1dc6cfbc2..83a1cd04d373 100644
--- a/sfx2/inc/sfx2/ctrlitem.hxx
+++ b/sfx2/inc/sfx2/ctrlitem.hxx
@@ -67,7 +67,6 @@ public:
void UnBind();
void ReBind();
sal_Bool IsBound() const;
- void UpdateSlot();
void ClearCache();
void SetBindings(SfxBindings &rBindings) { pBindings = &rBindings; }
@@ -81,8 +80,6 @@ public:
const SfxPoolItem* pState );
virtual void DeleteFloatingWindow();
- SfxMapUnit GetCoreMetric() const;
-
static SfxItemState GetItemState( const SfxPoolItem* pState );
SAL_DLLPRIVATE sal_Bool IsBindable_Impl() const
diff --git a/sfx2/inc/sfx2/docfile.hxx b/sfx2/inc/sfx2/docfile.hxx
index ac25f43c20f2..55cd3a2e0d0f 100644
--- a/sfx2/inc/sfx2/docfile.hxx
+++ b/sfx2/inc/sfx2/docfile.hxx
@@ -139,7 +139,6 @@ public:
SfxFrame* GetLoadTargetFrame() const;
void SetReferer( const String& rRefer );
- const String& GetReferer( ) const;
void SetFilter(const SfxFilter *pFlt, sal_Bool bResetOrig = sal_False);
const SfxFilter * GetFilter() const { return pFilter; }
const SfxFilter * GetOrigFilter( sal_Bool bNotCurrent = sal_False ) const;
diff --git a/sfx2/inc/sfx2/frame.hxx b/sfx2/inc/sfx2/frame.hxx
index 793c5283f5ec..3430a052e9f7 100644
--- a/sfx2/inc/sfx2/frame.hxx
+++ b/sfx2/inc/sfx2/frame.hxx
@@ -157,7 +157,6 @@ public:
static const SfxPoolItem*
OpenDocumentSynchron( SfxItemSet& aSet, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& i_rTargetFrame );
- SfxBroadcaster& GetBroadcaster() const;
SfxObjectShell* GetCurrentDocument() const;
SfxViewFrame* GetCurrentViewFrame() const;
SfxFrame& GetTopFrame() const;
@@ -166,7 +165,6 @@ public:
sal_uInt32 GetFrameType() const;
void GetTargetList( TargetList& ) const;
SAL_DLLPRIVATE SfxFrame* GetContainingDocFrame_Impl( SfxFrame* pSelf );
- sal_Bool IsTop() const;
void UpdateDescriptor( SfxObjectShell *pDoc );
void Resize();
sal_Bool HasComponent() const;
diff --git a/sfx2/inc/sfx2/frmdescr.hxx b/sfx2/inc/sfx2/frmdescr.hxx
index e271a5efa318..fad3f5b3129d 100644
--- a/sfx2/inc/sfx2/frmdescr.hxx
+++ b/sfx2/inc/sfx2/frmdescr.hxx
@@ -102,7 +102,6 @@ public:
SfxItemSet* GetArgs();
const INetURLObject& GetURL() const
{ return aURL; }
- void SetURL( const INetURLObject& rURL );
void SetURL( const String& rURL );
const INetURLObject& GetActualURL() const
{ return aActualURL; }
@@ -149,7 +148,6 @@ public:
// FrameBorder
void SetWallpaper( const Wallpaper& rWallpaper );
- const Wallpaper* GetWallpaper() const;
sal_Bool HasFrameBorder() const;
sal_Bool IsFrameBorderOn() const
@@ -176,9 +174,6 @@ public:
{ return nItemId; }
void SetItemId( sal_uInt16 nId )
{ nItemId = nId; }
- sal_uInt16 GetWinBits() const;
- long GetSize() const;
- sal_uInt16 GetItemPos() const;
// Copy for example for Views
SfxFrameDescriptor* Clone( sal_Bool bWithIds = sal_True ) const;
diff --git a/sfx2/inc/sfx2/hintpost.hxx b/sfx2/inc/sfx2/hintpost.hxx
index 13c4993bca5d..f455d8438632 100644
--- a/sfx2/inc/sfx2/hintpost.hxx
+++ b/sfx2/inc/sfx2/hintpost.hxx
@@ -64,7 +64,6 @@ protected:
virtual void Event( SfxHint* pPostedHint );
public:
- SfxHintPoster();
SfxHintPoster( const GenLink& rLink );
void Post( SfxHint* pHint = 0 );
diff --git a/sfx2/inc/sfx2/ipclient.hxx b/sfx2/inc/sfx2/ipclient.hxx
index c4530498578d..9f8a4aee6748 100644
--- a/sfx2/inc/sfx2/ipclient.hxx
+++ b/sfx2/inc/sfx2/ipclient.hxx
@@ -79,7 +79,6 @@ public:
Size GetObjectVisAreaSize() const;
sal_Bool IsObjectUIActive() const;
sal_Bool IsObjectInPlaceActive() const;
- sal_Bool IsObjectActive() const;
void DeactivateObject();
sal_Bool SetObjArea( const Rectangle & );
Rectangle GetObjArea() const;
@@ -89,7 +88,6 @@ public:
const Fraction& GetScaleWidth() const;
const Fraction& GetScaleHeight() const;
void Invalidate();
- static Window* GetActiveWindow( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject );
static SfxInPlaceClient* GetClient( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject );
sal_Int64 GetAspect() const;
sal_Int64 GetObjectMiscStatus() const;
diff --git a/sfx2/inc/sfx2/mailmodelapi.hxx b/sfx2/inc/sfx2/mailmodelapi.hxx
index cec84d28b5fc..ccf94fccbeda 100644
--- a/sfx2/inc/sfx2/mailmodelapi.hxx
+++ b/sfx2/inc/sfx2/mailmodelapi.hxx
@@ -134,7 +134,6 @@ public:
const rtl::OUString& rType );
SendMailResult Send( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame );
- sal_Int32 GetCount() const;
sal_Bool IsEmpty() const;
};
diff --git a/sfx2/inc/sfx2/msgpool.hxx b/sfx2/inc/sfx2/msgpool.hxx
index bd65772f922c..5088a72ce689 100644
--- a/sfx2/inc/sfx2/msgpool.hxx
+++ b/sfx2/inc/sfx2/msgpool.hxx
@@ -65,7 +65,6 @@ public:
void RegisterInterface( SfxInterface& rFace );
void ReleaseInterface( SfxInterface& rFace );
SfxInterface* FirstInterface();
- SfxInterface* NextInterface();
static SfxSlotPool& GetSlotPool( SfxViewFrame *pFrame=NULL );
diff --git a/sfx2/inc/sfx2/passwd.hxx b/sfx2/inc/sfx2/passwd.hxx
index 567320cfa58e..5a014c14ace7 100644
--- a/sfx2/inc/sfx2/passwd.hxx
+++ b/sfx2/inc/sfx2/passwd.hxx
@@ -93,7 +93,6 @@ public:
void SetGroup2Text( const String& i_rText ) { maPassword2Box.SetText( i_rText ); }
void SetMinLen( sal_uInt16 Len );
- void SetMaxLen( sal_uInt16 Len );
void SetEditHelpId( const rtl::OString& rId ) { maPasswordED.SetHelpId( rId ); }
void ShowExtras( sal_uInt16 nExtras ) { mnExtras = nExtras; }
void AllowAsciiOnly( bool i_bAsciiOnly = true ) { mbAsciiOnly = i_bAsciiOnly; }
diff --git a/sfx2/inc/sfx2/request.hxx b/sfx2/inc/sfx2/request.hxx
index e78fceba26a1..f32527acc179 100644
--- a/sfx2/inc/sfx2/request.hxx
+++ b/sfx2/inc/sfx2/request.hxx
@@ -106,7 +106,6 @@ public:
sal_Bool IsAPI() const;
sal_Bool IsSynchronCall() const;
void SetSynchronCall( sal_Bool bSynchron );
- void SetTarget( const String &rTarget );
sal_Bool IsDone() const;
void Done( sal_Bool bRemove = sal_False );
diff --git a/sfx2/inc/sfx2/shell.hxx b/sfx2/inc/sfx2/shell.hxx
index e757cbd0ea62..0d51c20ac10b 100644
--- a/sfx2/inc/sfx2/shell.hxx
+++ b/sfx2/inc/sfx2/shell.hxx
@@ -184,8 +184,6 @@ public:
TYPEINFO();
virtual ~SfxShell();
- SfxBroadcaster* GetBroadcaster();
-
// TODO/CLEANUP: still needed?!
virtual SvGlobalName GetGlobalName() const;
@@ -237,7 +235,6 @@ public:
// Items
const SfxPoolItem* GetItem( sal_uInt16 nSlotId ) const;
void PutItem( const SfxPoolItem& rItem );
- void RemoveItem( sal_uInt16 nSlotId );
// TODO/CLEANUP: still needed?!
void SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::embed::VerbDescriptor >& aVerbs);
diff --git a/sfx2/inc/sfx2/tabdlg.hxx b/sfx2/inc/sfx2/tabdlg.hxx
index a68949915163..7db8f7a39b4b 100644
--- a/sfx2/inc/sfx2/tabdlg.hxx
+++ b/sfx2/inc/sfx2/tabdlg.hxx
@@ -189,7 +189,6 @@ public:
void EnableApplyButton(sal_Bool bEnable = sal_True);
sal_Bool IsApplyButtonEnabled() const;
void SetApplyHandler(const Link& _rHdl);
- Link GetApplyHandler() const;
SAL_DLLPRIVATE void Start_Impl();
SAL_DLLPRIVATE sal_Bool OK_Impl() { return PrepareLeaveCurrentPage(); }
diff --git a/sfx2/inc/sfx2/tbxctrl.hxx b/sfx2/inc/sfx2/tbxctrl.hxx
index d8f35b3581ff..1559713cae95 100644
--- a/sfx2/inc/sfx2/tbxctrl.hxx
+++ b/sfx2/inc/sfx2/tbxctrl.hxx
@@ -141,7 +141,6 @@ protected:
void BindListener();
void UnbindListener();
void AddStatusListener( const rtl::OUString& rCommandURL );
- void RemoveStatusListener( const rtl::OUString& rCommandURL );
// SfxStatusListenerInterface
using FloatingWindow::StateChanged;
diff --git a/sfx2/inc/sfx2/unoctitm.hxx b/sfx2/inc/sfx2/unoctitm.hxx
index 2a76da14f7fd..0c4557334af9 100644
--- a/sfx2/inc/sfx2/unoctitm.hxx
+++ b/sfx2/inc/sfx2/unoctitm.hxx
@@ -178,7 +178,6 @@ class SfxDispatchController_Impl : public SfxControllerItem
void addParametersToArgs( const com::sun::star::util::URL& aURL,
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rArgs ) const;
- using SfxControllerItem::GetCoreMetric;
SfxMapUnit GetCoreMetric( SfxItemPool& rPool, sal_uInt16 nSlot );
public:
diff --git a/sfx2/inc/sfx2/viewfac.hxx b/sfx2/inc/sfx2/viewfac.hxx
index 590dc5d065ca..c2f75f0f7e3f 100644
--- a/sfx2/inc/sfx2/viewfac.hxx
+++ b/sfx2/inc/sfx2/viewfac.hxx
@@ -46,7 +46,6 @@ class SFX2_DLLPUBLIC SfxViewFactory
public:
SfxViewFactory( SfxViewCtor fnC, SfxViewInit fnI,
sal_uInt16 nOrdinal, const sal_Char* asciiViewName );
- ~SfxViewFactory();
SfxViewShell *CreateInstance(SfxViewFrame *pViewFrame, SfxViewShell *pOldSh);
sal_uInt16 GetOrdinal() const { return nOrd; }
diff --git a/sfx2/inc/sfx2/viewfrm.hxx b/sfx2/inc/sfx2/viewfrm.hxx
index 8916d14cb796..266e058ae9cc 100644
--- a/sfx2/inc/sfx2/viewfrm.hxx
+++ b/sfx2/inc/sfx2/viewfrm.hxx
@@ -142,7 +142,6 @@ public:
{ nAdjustPosPixelLock--; }
void DoAdjustPosSizePixel( SfxViewShell * pSh,
const Point &rPos, const Size &rSize );
- void Hide();
void Show();
sal_Bool IsVisible() const;
void ToTop();
diff --git a/sfx2/source/appl/appbaslib.cxx b/sfx2/source/appl/appbaslib.cxx
index f630d8898124..a5b6e337ff6e 100644
--- a/sfx2/source/appl/appbaslib.cxx
+++ b/sfx2/source/appl/appbaslib.cxx
@@ -76,18 +76,6 @@ void SfxBasicManagerHolder::reset( BasicManager* _pBasicManager )
}
}
-bool SfxBasicManagerHolder::isAnyContainerModified() const
-{
- OSL_PRECOND( isValid(), "SfxBasicManagerHolder::isAnyContainerModified: not initialized!" );
-
- if ( mxBasicContainer.is() && mxBasicContainer->isModified() )
- return true;
- if ( mxDialogContainer.is() && mxDialogContainer->isModified() )
- return true;
-
- return false;
-}
-
void SfxBasicManagerHolder::storeAllLibraries()
{
OSL_PRECOND( isValid(), "SfxBasicManagerHolder::storeAllLibraries: not initialized!" );
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
index 8a555d557e96..ab61c0f88872 100644
--- a/sfx2/source/appl/childwin.cxx
+++ b/sfx2/source/appl/childwin.cxx
@@ -534,22 +534,6 @@ FloatingWindow* SfxChildWindowContext::GetFloatingWindow() const
}
}
-SfxChildAlignment SfxChildWindowContext::GetAlignment() const
-{
- Window *pParent = pWindow->GetParent();
- if ( pParent->GetType() == RSC_DOCKINGWINDOW )
- {
- return ((SfxDockingWindow*)pParent)->GetAlignment();
- }
- else if ( pParent->GetType() == RSC_TOOLBOX )
- {
- HACK(noch nicht verwendet und noch nicht implementiert);
- return SFX_ALIGN_NOALIGNMENT;
- }
- else
- return SFX_ALIGN_NOALIGNMENT;
-}
-
void SfxChildWindowContext::Resizing( Size& )
{
}
diff --git a/sfx2/source/control/ctrlitem.cxx b/sfx2/source/control/ctrlitem.cxx
index d6dda852fa89..905c9dd4976b 100644
--- a/sfx2/source/control/ctrlitem.cxx
+++ b/sfx2/source/control/ctrlitem.cxx
@@ -168,26 +168,6 @@ DBG_CHKTHIS(SfxControllerItem, 0);
pBindings->Register(*this);
}
-//====================================================================
-
-void SfxControllerItem::UpdateSlot()
-
-/* [Description]
-
- Get the Status again.
-
- [Cross-reference]
-
- <SfxControllerItem::ClearCache()>
-*/
-
-{
- DBG_CHKTHIS(SfxControllerItem, 0);
- DBG_ASSERT(pBindings, "No Bindings");
-
- pBindings->Update( GetId() );
-}
-
//--------------------------------------------------------------------
void SfxControllerItem::ClearCache()
@@ -382,45 +362,6 @@ SfxItemState SfxControllerItem::GetItemState
: SFX_ITEM_AVAILABLE;
}
-//--------------------------------------------------------------------
-
-SfxMapUnit SfxControllerItem::GetCoreMetric() const
-
-/* [Description]
-
- Gets the measurement unit from the competent pool, in which the Status
- item exist.
-*/
-
-{
- SfxStateCache *pCache = pBindings->GetStateCache( nId );
- SfxDispatcher *pDispat = pBindings->GetDispatcher_Impl();
-
- if ( !pDispat )
- {
- SfxViewFrame* pViewFrame = SfxViewFrame::Current();
- if ( !pViewFrame )
- SfxViewFrame::GetFirst();
- if ( pViewFrame )
- pDispat = pViewFrame->GetDispatcher();
- }
-
- if ( pDispat && pCache )
- {
- const SfxSlotServer *pServer = pCache->GetSlotServer( *pDispat );
- if ( pServer )
- {
- SfxShell *pSh = pDispat->GetShell( pServer->GetShellLevel() );
- SfxItemPool &rPool = pSh->GetPool();
- sal_uInt16 nWhich = rPool.GetWhich( nId );
- return rPool.GetMetric( nWhich );
- }
- }
-
- DBG_WARNING( "W1: Can not find ItemPool!" );
- return SFX_MAPUNIT_100TH_MM;
-}
-
//------------------------------------------------------------------------
#ifdef _MSC_VER
diff --git a/sfx2/source/control/msgpool.cxx b/sfx2/source/control/msgpool.cxx
index 8b6cee9291b5..76b0e5e14dee 100644
--- a/sfx2/source/control/msgpool.cxx
+++ b/sfx2/source/control/msgpool.cxx
@@ -301,16 +301,6 @@ SfxInterface* SfxSlotPool::FirstInterface()
//--------------------------------------------------------------------
-SfxInterface* SfxSlotPool::NextInterface()
-{
- _nCurInterface++;
- sal_uInt16 nFirstInterface = _pParentPool ? _pParentPool->_pInterfaces->size() : 0;
- if ( _nCurInterface < nFirstInterface )
- return (*_pParentPool->_pInterfaces)[_nCurInterface];
- sal_uInt16 nInterface = _nCurInterface - nFirstInterface;
- return nInterface < _pInterfaces->size() ? (*_pInterfaces)[nInterface] : 0;
-}
-
const SfxSlot* SfxSlotPool::GetUnoSlot( const String& rName )
{
const SfxSlot *pSlot = NULL;
diff --git a/sfx2/source/control/request.cxx b/sfx2/source/control/request.cxx
index d4a8786d32ee..2bdc5d16e3a0 100644
--- a/sfx2/source/control/request.cxx
+++ b/sfx2/source/control/request.cxx
@@ -870,29 +870,6 @@ sal_uInt16 SfxRequest::GetModifier() const
//--------------------------------------------------------------------
-void SfxRequest::SetTarget( const String &rTarget )
-
-/* [Description]
-
- With this method the recording of the target object can be implemented.
-
- [Example]
-
- The BASIC-Methode 'Open' is although executed by the Shell 'Application'
- but recorded on the Objekt 'Documents' (global):
-
- rReq.SetTarget( "Documents" );
-
- This then leads to:
-
- Documents.Open( ... )
-*/
-
-{
- pImp->aTarget = rTarget;
- pImp->bUseTarget = sal_True;
-}
-
void SfxRequest::AllowRecording( sal_Bool bSet )
{
pImp->bAllowRecording = bSet;
diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx
index ecc5fb4cc03e..ecda3acd192c 100644
--- a/sfx2/source/control/shell.cxx
+++ b/sfx2/source/control/shell.cxx
@@ -308,45 +308,6 @@ const SfxPoolItem* SfxShell::GetItem
//--------------------------------------------------------------------
-void SfxShell::RemoveItem
-(
- sal_uInt16 nSlotId // Slot-Id of the deleting <SfxPoolItem>s
-)
-
-/* [Description]
-
- With this method the general available subclasses instances of
- <cSfxPoolItem> from the SfxShell are removed.
-
- The stored instance is deleted.
-
- [Cross-reference]
-
- <SfxShell::PutItem(const SfxPoolItem&)>
- <SfxShell::GetItem(sal_uInt16)>
-*/
-
-{
- for ( sal_uInt16 nPos = 0; nPos < pImp->aItems.Count(); ++nPos )
- if ( pImp->aItems.GetObject(nPos)->Which() == nSlotId )
- {
- // Remove and delete Item
- SfxPoolItem *pItem = pImp->aItems.GetObject(nPos);
- delete pItem;
- pImp->aItems.Remove(nPos);
-
- // if active, notify Bindings
- SfxDispatcher *pDispat = GetDispatcher();
- if ( pDispat )
- {
- SfxVoidItem aVoid( nSlotId );
- pDispat->GetBindings()->Broadcast( SfxPoolItemHint( &aVoid ) );
- }
- }
-}
-
-//--------------------------------------------------------------------
-
void SfxShell::PutItem
(
const SfxPoolItem& rItem /* Instance, of which a copy is created,
@@ -430,20 +391,6 @@ SfxInterface* SfxShell::GetInterface() const
//--------------------------------------------------------------------
-SfxBroadcaster* SfxShell::GetBroadcaster()
-
-/* [Description]
-
- Returns a SfxBroadcaster for this SfxShell instance until the class of
- SfxShell is derived by SfxBroadcaster.
-*/
-
-{
- return pImp;
-}
-
-//--------------------------------------------------------------------
-
::svl::IUndoManager* SfxShell::GetUndoManager()
/* [Description]
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx
index 0284df0bb5f4..73723b4b2bdd 100644
--- a/sfx2/source/dialog/mailmodel.cxx
+++ b/sfx2/source/dialog/mailmodel.cxx
@@ -307,11 +307,6 @@ SfxMailModel::SaveResult SfxMailModel::ShowFilterOptionsDialog(
return eRet;
}
-sal_Int32 SfxMailModel::GetCount() const
-{
- return maAttachedDocuments.size();
-}
-
sal_Bool SfxMailModel::IsEmpty() const
{
return maAttachedDocuments.empty();
diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx
index 98bcc1fe825f..d66d14281dfd 100644
--- a/sfx2/source/dialog/passwd.cxx
+++ b/sfx2/source/dialog/passwd.cxx
@@ -224,15 +224,6 @@ void SfxPasswordDialog::SetMinLen( sal_uInt16 nLen )
// -----------------------------------------------------------------------
-void SfxPasswordDialog::SetMaxLen( sal_uInt16 nLen )
-{
- maPasswordED.SetMaxTextLen( nLen );
- maConfirmED.SetMaxTextLen( nLen );
- EditModifyHdl( NULL );
-}
-
-// -----------------------------------------------------------------------
-
short SfxPasswordDialog::Execute()
{
maUserFT.Hide();
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index fece88584918..8fd76ed79929 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -620,17 +620,6 @@ void SfxTabDialog::SetApplyHandler(const Link& _rHdl)
// -----------------------------------------------------------------------
-Link SfxTabDialog::GetApplyHandler() const
-{
- DBG_ASSERT( pImpl->pApplyButton, "SfxTabDialog::GetApplyHandler: no button enabled!" );
- if ( !pImpl->pApplyButton )
- return Link();
-
- return pImpl->pApplyButton->GetClickHdl();
-}
-
-// -----------------------------------------------------------------------
-
void SfxTabDialog::EnableApplyButton(sal_Bool bEnable)
{
if ( IsApplyButtonEnabled() == bEnable )
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index c4685aba1e1e..c7e60dada5c4 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -2959,12 +2959,6 @@ void SfxMedium::SetReferer( const String& rRefer )
{
pImp->aReferer = rRefer;
}
-//----------------------------------------------------------------
-
-const String& SfxMedium::GetReferer( ) const
-{
- return pImp->aReferer;
-}
//----------------------------------------------------------------
diff --git a/sfx2/source/doc/frmdescr.cxx b/sfx2/source/doc/frmdescr.cxx
index 81da3e86da75..760869ffe58b 100644
--- a/sfx2/source/doc/frmdescr.cxx
+++ b/sfx2/source/doc/frmdescr.cxx
@@ -89,12 +89,6 @@ void SfxFrameDescriptor::SetURL( const String& rURL )
SetActualURL( aURL );
}
-void SfxFrameDescriptor::SetURL( const INetURLObject& rURL )
-{
- aURL = rURL.GetMainURL( INetURLObject::DECODE_TO_IURI );
- SetActualURL( aURL );
-}
-
void SfxFrameDescriptor::SetActualURL( const String& rURL )
{
aActualURL = INetURLObject(rURL);
@@ -151,30 +145,11 @@ SfxFrameDescriptor* SfxFrameDescriptor::Clone( sal_Bool bWithIds ) const
return pFrame;
}
-sal_uInt16 SfxFrameDescriptor::GetWinBits() const
-{
- sal_uInt16 nBits = 0;
- if ( eSizeSelector == SIZE_REL )
- nBits |= SWIB_RELATIVESIZE;
- if ( eSizeSelector == SIZE_PERCENT )
- nBits |= SWIB_PERCENTSIZE;
- if ( !IsResizable() )
- nBits |= SWIB_FIXED;
- if ( !nWidth )
- nBits |= SWIB_INVISIBLE;
- return nBits;
-}
-
sal_Bool SfxFrameDescriptor::HasFrameBorder() const
{
return (nHasBorder & BORDER_YES) != 0;
}
-long SfxFrameDescriptor::GetSize() const
-{
- return nWidth;
-}
-
void SfxFrameDescriptor::SetWallpaper( const Wallpaper& rWallpaper )
{
DELETEZ( pImp->pWallpaper );
@@ -183,16 +158,6 @@ void SfxFrameDescriptor::SetWallpaper( const Wallpaper& rWallpaper )
pImp->pWallpaper = new Wallpaper( rWallpaper );
}
-const Wallpaper* SfxFrameDescriptor::GetWallpaper() const
-{
- return pImp->pWallpaper;
-}
-
-sal_uInt16 SfxFrameDescriptor::GetItemPos() const
-{
- return USHRT_MAX;
-}
-
SfxFrameProperties& SfxFrameProperties::operator =(
const SfxFrameProperties &rProp )
{
diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx
index 91d9c5bce5ac..9c111a05d2a8 100644
--- a/sfx2/source/doc/oleprops.cxx
+++ b/sfx2/source/doc/oleprops.cxx
@@ -181,7 +181,6 @@ class SfxOleString16Property : public SfxOleStringPropertyBase
{
public:
explicit SfxOleString16Property( sal_Int32 nPropId );
- explicit SfxOleString16Property( sal_Int32 nPropId, const String& rValue );
private:
virtual void ImplLoad( SvStream& rStrm );
@@ -216,8 +215,6 @@ class SfxOleDateProperty : public SfxOlePropertyBase
{
public:
explicit SfxOleDateProperty( sal_Int32 nPropId );
- /** @param rDate Date as LOCAL time. */
- explicit SfxOleDateProperty( sal_Int32 nPropId, const util::Date& rDate );
/** Returns the date value as LOCAL time. */
inline const util::Date& GetValue() const { return maDate; }
@@ -571,11 +568,6 @@ SfxOleString16Property::SfxOleString16Property( sal_Int32 nPropId ) :
{
}
-SfxOleString16Property::SfxOleString16Property( sal_Int32 nPropId, const String& rValue ) :
- SfxOleStringPropertyBase( nPropId, PROPTYPE_STRING16, RTL_TEXTENCODING_UCS2, rValue )
-{
-}
-
void SfxOleString16Property::ImplLoad( SvStream& rStrm )
{
SetValue( LoadString16( rStrm ) );
@@ -648,12 +640,6 @@ SfxOleDateProperty::SfxOleDateProperty( sal_Int32 nPropId ) :
{
}
-SfxOleDateProperty::SfxOleDateProperty( sal_Int32 nPropId, const util::Date& rDate ) :
- SfxOlePropertyBase( nPropId, PROPTYPE_DATE ),
- maDate( rDate )
-{
-}
-
void SfxOleDateProperty::ImplLoad( SvStream& rStrm )
{
double fValue(0.0);
diff --git a/sfx2/source/inc/appbaslib.hxx b/sfx2/source/inc/appbaslib.hxx
index dd47c79273aa..820102251d3d 100644
--- a/sfx2/source/inc/appbaslib.hxx
+++ b/sfx2/source/inc/appbaslib.hxx
@@ -73,11 +73,6 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer >
getLibraryContainer( ContainerType _eType );
- /** determines whether any of our library containers is modified, i.e. returns <TRUE/>
- in its isContainerModified call.
- */
- bool isAnyContainerModified() const;
-
/** calls the storeLibraries at both our script and basic library container
*/
void storeAllLibraries();
diff --git a/sfx2/source/notify/hintpost.cxx b/sfx2/source/notify/hintpost.cxx
index aa69f37c15b9..3c849c5fe254 100644
--- a/sfx2/source/notify/hintpost.cxx
+++ b/sfx2/source/notify/hintpost.cxx
@@ -40,13 +40,6 @@ void SfxHintPoster::RegisterEvent()
//--------------------------------------------------------------------
-SfxHintPoster::SfxHintPoster()
-{
- RegisterEvent();
-}
-
-//--------------------------------------------------------------------
-
SfxHintPoster::SfxHintPoster( const GenLink& rLink ):
aLink(rLink)
{
diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx
index 3f6ec91ac7f0..1cc71f228c51 100644
--- a/sfx2/source/toolbox/tbxitem.cxx
+++ b/sfx2/source/toolbox/tbxitem.cxx
@@ -1286,15 +1286,6 @@ void SfxPopupWindow::AddStatusListener( const rtl::OUString& rCommandURL )
//--------------------------------------------------------------------
-void SfxPopupWindow::RemoveStatusListener( const rtl::OUString& rCommandURL )
-{
- GetOrCreateStatusListener();
- if ( m_xStatusListener.is() )
- m_pStatusListener->removeStatusListener( rCommandURL );
-}
-
-//--------------------------------------------------------------------
-
sal_Bool SfxPopupWindow::Close()
{
m_bFloating = sal_False;
diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx
index d2705599dd2c..2e1c16861f84 100644
--- a/sfx2/source/view/frame.cxx
+++ b/sfx2/source/view/frame.cxx
@@ -496,11 +496,6 @@ void SfxFrame::GetTargetList( TargetList& rList ) const
//-------------------------------------------------------------------------
-SfxBroadcaster& SfxFrame::GetBroadcaster() const
-{
- return *pImp;
-}
-
sal_Bool SfxFrame::IsParent( SfxFrame *pFrame ) const
{
SfxFrame *pParent = pParentFrame;
@@ -703,11 +698,6 @@ SfxFrame* SfxFrameIterator::NextSibling_Impl( SfxFrame& rPrev )
return pRet;
}
-sal_Bool SfxFrame::IsTop() const
-{
- return GetFrameInterface().is() ? GetFrameInterface()->isTop() : sal_False;
-}
-
sal_Bool SfxFrame::HasComponent() const
{
return sal_False;
diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx
index 1f5d49dafaae..ac7dea2116e6 100644
--- a/sfx2/source/view/ipclient.cxx
+++ b/sfx2/source/view/ipclient.cxx
@@ -876,27 +876,6 @@ sal_Bool SfxInPlaceClient::IsObjectInPlaceActive() const
}
//--------------------------------------------------------------------
-sal_Bool SfxInPlaceClient::IsObjectActive() const
-{
- try {
- return ( m_pImp->m_xObject.is() && ( m_pImp->m_xObject->getCurrentState() == embed::EmbedStates::ACTIVE ) );
- }
- catch( uno::Exception& )
- {}
-
- return sal_False;
-}
-
-//--------------------------------------------------------------------
-Window* SfxInPlaceClient::GetActiveWindow( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject )
-{
- SfxInPlaceClient* pClient = GetClient( pDoc, xObject );
- if ( pClient )
- return pClient->GetEditWin();
- return NULL;
-}
-
-//--------------------------------------------------------------------
SfxInPlaceClient* SfxInPlaceClient::GetClient( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject )
{
for ( SfxViewFrame* pFrame = SfxViewFrame::GetFirst(pDoc); pFrame; pFrame=SfxViewFrame::GetNext(*pFrame,pDoc) )
diff --git a/sfx2/source/view/viewfac.cxx b/sfx2/source/view/viewfac.cxx
index 639495336ece..948811542633 100644
--- a/sfx2/source/view/viewfac.cxx
+++ b/sfx2/source/view/viewfac.cxx
@@ -73,10 +73,5 @@ SfxViewFactory::SfxViewFactory( SfxViewCtor fnC, SfxViewInit fnI,
DBG_CTOR(SfxViewFactory, 0);
}
-SfxViewFactory::~SfxViewFactory()
-{
- DBG_DTOR(SfxViewFactory, 0);
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index e342fadc29c2..af22c83a823d 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1784,14 +1784,6 @@ sal_Bool SfxViewFrame::IsVisible() const
}
//--------------------------------------------------------------------
-void SfxViewFrame::Hide()
-{
- GetWindow().Hide();
- if ( pImp->bObjLocked )
- LockObjectShell_Impl( sal_False );
-}
-
-//--------------------------------------------------------------------
void SfxViewFrame::LockObjectShell_Impl( sal_Bool bLock )
{
DBG_ASSERT( pImp->bObjLocked != bLock, "Wrong Locked status!" );