diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-23 00:38:29 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-23 01:28:24 +0200 |
commit | fdbe98ebb50fd30e94750a8398cf7466f65dea47 (patch) | |
tree | 25b9cfcf7ecb41743a86707c955d35a20048248c /svtools | |
parent | 648bbe3d648761f5e82d6ee0d40f6c5641c3a522 (diff) |
unusedcode: svt::
Diffstat (limited to 'svtools')
36 files changed, 0 insertions, 600 deletions
diff --git a/svtools/inc/svtools/contextmenuhelper.hxx b/svtools/inc/svtools/contextmenuhelper.hxx index c6f30e2a3d4b..3b7d8605890e 100644 --- a/svtools/inc/svtools/contextmenuhelper.hxx +++ b/svtools/inc/svtools/contextmenuhelper.hxx @@ -69,14 +69,6 @@ class SVT_DLLPUBLIC ContextMenuHelper void completeAndExecute( const Point& aPos, PopupMenu& aPopupMenu ); void completeAndExecute( const Point& aPos, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu >& xPopupMenu ); - // methods to create a popup menu referenced by resource URL - // NOT IMPLEMENTED YET! - ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu > create( const ::rtl::OUString& aPopupMenuResourceURL ); - - // method to create and execute a popup menu referenced by a resource URL - // NOT IMPLEMENTED YET! - bool createAndExecute( const Point& aPos, const ::rtl::OUString& aPopupMenuResourceURL ); - private: // asynchronous link to prevent destruction while on stack DECL_STATIC_LINK( ContextMenuHelper, ExecuteHdl_Impl, ExecuteInfo* ); diff --git a/svtools/inc/svtools/dialogclosedlistener.hxx b/svtools/inc/svtools/dialogclosedlistener.hxx index 7b80ed6b449d..13783b6c342a 100644 --- a/svtools/inc/svtools/dialogclosedlistener.hxx +++ b/svtools/inc/svtools/dialogclosedlistener.hxx @@ -59,7 +59,6 @@ namespace svt public: DialogClosedListener(); - DialogClosedListener( const Link& rLink ); inline void SetDialogClosedLink( const Link& rLink ) { m_aDialogClosedLink = rLink; } diff --git a/svtools/inc/svtools/dialogcontrolling.hxx b/svtools/inc/svtools/dialogcontrolling.hxx index d0bb6646ba85..2771c062a8fc 100644 --- a/svtools/inc/svtools/dialogcontrolling.hxx +++ b/svtools/inc/svtools/dialogcontrolling.hxx @@ -166,11 +166,8 @@ namespace svt disabled when it's unchecked */ void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow ); - void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2 ); void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3 ); - void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4 ); void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5 ); - void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5, Window& _rDependentWindow6 ); /** ensures that a given window is enabled or disabled, according to the mark state of a given check box @@ -182,10 +179,7 @@ namespace svt */ void enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow ); void enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2 ); - void enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3 ); void enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4 ); - void enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5 ); - void enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5, Window& _rDependentWindow6 ); /** adds a non-standard controller whose functionality is not covered by the other methods diff --git a/svtools/inc/svtools/editbrowsebox.hxx b/svtools/inc/svtools/editbrowsebox.hxx index d8c389215613..750ed745a902 100644 --- a/svtools/inc/svtools/editbrowsebox.hxx +++ b/svtools/inc/svtools/editbrowsebox.hxx @@ -249,7 +249,6 @@ namespace svt public: TYPEINFO(); EditCellController( Edit* _pEdit ); - EditCellController( MultiLineTextCell* _pEdit ); EditCellController( IEditImplementation* _pImplementation ); ~EditCellController( ); diff --git a/svtools/inc/svtools/embedhlp.hxx b/svtools/inc/svtools/embedhlp.hxx index abae6318de69..bbd7c31f0a82 100644 --- a/svtools/inc/svtools/embedhlp.hxx +++ b/svtools/inc/svtools/embedhlp.hxx @@ -76,8 +76,6 @@ namespace svt const ::rtl::OUString& aName, const ::rtl::OUString& aMediaType ); - static sal_Bool ObjectIsModified( const NS_UNO::Reference < NS_EMBED::XEmbeddedObject >& ) - throw( NS_UNO::Exception ); static NS_UNO::Reference< NS_IO::XInputStream > GetGraphicReplacementStream( sal_Int64 nViewAspect, const NS_UNO::Reference < NS_EMBED::XEmbeddedObject >&, @@ -95,13 +93,11 @@ namespace svt ~EmbeddedObjectRef(); EmbeddedObjectRef( const EmbeddedObjectRef& ); - sal_Bool TryRunningState(); // assigning to a container enables the object to exchange graphical representations with a storage void AssignToContainer( comphelper::EmbeddedObjectContainer* pContainer, const ::rtl::OUString& rPersistName ); comphelper::EmbeddedObjectContainer* GetContainer() const; - ::rtl::OUString GetPersistName() const; sal_Int64 GetViewAspect() const; void SetViewAspect( sal_Int64 nAspect ); Graphic* GetGraphic( ::rtl::OUString* pMediaType=0 ) const; @@ -117,7 +113,6 @@ namespace svt void UpdateReplacement() { GetReplacement( sal_True ); } void UpdateReplacementOnDemand(); - MapUnit GetMapUnit() const; void Lock( sal_Bool bLock = sal_True ); sal_Bool IsLocked() const; void Clear(); diff --git a/svtools/inc/svtools/fileurlbox.hxx b/svtools/inc/svtools/fileurlbox.hxx index 570c2cb82a2a..b4679c6d1a70 100644 --- a/svtools/inc/svtools/fileurlbox.hxx +++ b/svtools/inc/svtools/fileurlbox.hxx @@ -46,9 +46,7 @@ namespace svt String m_sPreservedText; public: - FileURLBox( Window* _pParent ); FileURLBox( Window* _pParent, WinBits _nStyle ); - FileURLBox( Window* _pParent, const ResId& _rId ); protected: virtual long PreNotify( NotifyEvent& rNEvt ); diff --git a/svtools/inc/svtools/framestatuslistener.hxx b/svtools/inc/svtools/framestatuslistener.hxx index 4a41d93d5334..ba909d30bfe5 100644 --- a/svtools/inc/svtools/framestatuslistener.hxx +++ b/svtools/inc/svtools/framestatuslistener.hxx @@ -56,9 +56,6 @@ class SVT_DLLPUBLIC FrameStatusListener : public ::com::sun::star::frame::XStatu const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame ); virtual ~FrameStatusListener(); - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > getFrameInterface() const; - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getServiceManager() const; - void updateStatus( const rtl::OUString aCommandURL ); // methods to support status forwarder, known by the old sfx2 toolbox controller implementation diff --git a/svtools/inc/svtools/hyperlabel.hxx b/svtools/inc/svtools/hyperlabel.hxx index a94a5ea99168..6a4e89a39263 100644 --- a/svtools/inc/svtools/hyperlabel.hxx +++ b/svtools/inc/svtools/hyperlabel.hxx @@ -61,7 +61,6 @@ namespace svt void implInit(); public: - HyperLabel( Window* _pParent, const ResId& _rId ); HyperLabel( Window* _pParent, WinBits _nWinStyle = 0 ); ~HyperLabel( ); @@ -74,9 +73,6 @@ namespace svt sal_Int32 GetIndex() const; void SetLabel( const ::rtl::OUString& _rText ); - sal_Int32 GetLogicWidth(); - - ::rtl::OUString GetLabel( ); void ToggleBackgroundColor( const Color& _rGBColor ); void SetInteractive( sal_Bool _bInteractive ); diff --git a/svtools/inc/svtools/roadmap.hxx b/svtools/inc/svtools/roadmap.hxx index 9ca04fd5b2ca..5f9be67ab60b 100644 --- a/svtools/inc/svtools/roadmap.hxx +++ b/svtools/inc/svtools/roadmap.hxx @@ -65,7 +65,6 @@ namespace svt void implInit(); public: - ORoadmap( Window* _pParent, const ResId& _rId ); ORoadmap( Window* _pParent, WinBits _nWinStyle = 0 ); ~ORoadmap( ); diff --git a/svtools/inc/svtools/statusbarcontroller.hxx b/svtools/inc/svtools/statusbarcontroller.hxx index 0703a87f4d06..0d1247f0408e 100644 --- a/svtools/inc/svtools/statusbarcontroller.hxx +++ b/svtools/inc/svtools/statusbarcontroller.hxx @@ -67,13 +67,8 @@ class SVT_DLLPUBLIC StatusbarController : public ::com::sun::star::frame::XStatu virtual ~StatusbarController(); ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > getFrameInterface() const; - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getServiceManager() const; - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager > getLayoutManager() const; ::com::sun::star::uno::Reference< ::com::sun::star::util::XURLTransformer > getURLTransformer() const; - void updateStatus( const rtl::OUString aCommandURL ); - void updateStatus(); - ::Rectangle getControlRect() const; // XInterface @@ -129,10 +124,7 @@ class SVT_DLLPUBLIC StatusbarController : public ::com::sun::star::frame::XStatu // methods to support status forwarder, known by the old sfx2 toolbox controller implementation void addStatusListener( const rtl::OUString& aCommandURL ); - void removeStatusListener( const rtl::OUString& aCommandURL ); void bindListener(); - void unbindListener(); - sal_Bool isBound() const; // execute methods // execute bound status bar controller command/execute various commands diff --git a/svtools/inc/svtools/stdctrl.hxx b/svtools/inc/svtools/stdctrl.hxx index b8f6a12019cd..4903ce8f6f16 100644 --- a/svtools/inc/svtools/stdctrl.hxx +++ b/svtools/inc/svtools/stdctrl.hxx @@ -57,7 +57,6 @@ namespace svt void Init(); public: - SelectableFixedText( Window* pParent, WinBits nWinStyle ); SelectableFixedText( Window* pParent, const ResId& rResId ); virtual ~SelectableFixedText(); diff --git a/svtools/inc/svtools/table/gridtablerenderer.hxx b/svtools/inc/svtools/table/gridtablerenderer.hxx index 9e3322695439..21607a2583c6 100644 --- a/svtools/inc/svtools/table/gridtablerenderer.hxx +++ b/svtools/inc/svtools/table/gridtablerenderer.hxx @@ -63,17 +63,6 @@ namespace svt { namespace table GridTableRenderer( ITableModel& _rModel ); ~GridTableRenderer(); - /** returns the index of the row currently being painted - - According to the ->ITableRenderer interface, one call is made - to the renderer with a row to prepare (->PrepareRow()), and subsequent - calls do not carry the row index anymore, but are relative to the - row which has previously been prepared. - - This method returns the index of the last row which has been prepared - */ - RowPos getCurrentRow() const; - /** determines whether or not to paint grid lines */ bool useGridLines() const; diff --git a/svtools/inc/svtools/table/tablecontrol.hxx b/svtools/inc/svtools/table/tablecontrol.hxx index 726490a0710b..8856d597253a 100644 --- a/svtools/inc/svtools/table/tablecontrol.hxx +++ b/svtools/inc/svtools/table/tablecontrol.hxx @@ -81,11 +81,6 @@ namespace svt { namespace table /// retrieves the current table model PTableModel GetModel() const; - /// returns the top row, i.e. the first visible row - RowPos GetTopRow() const; - /// sets a new top row. The top row is the first visible row in the control - void SetTopRow( RowPos _nRow ); - /** retrieves the current row The current row is the one which contains the active cell. @@ -149,8 +144,6 @@ namespace svt { namespace table SVT_DLLPRIVATE virtual void Resize(); virtual void Select(); - void SetSelectHdl( const Link& rLink ); - const Link& GetSelectHdl() const; /**after removing a row, updates the vector which contains the selected rows if the row, which should be removed, is selected, it will be erased from the vector diff --git a/svtools/inc/svtools/toolpanel/tablayouter.hxx b/svtools/inc/svtools/toolpanel/tablayouter.hxx index 18051d636108..4225fb66b05d 100644 --- a/svtools/inc/svtools/toolpanel/tablayouter.hxx +++ b/svtools/inc/svtools/toolpanel/tablayouter.hxx @@ -80,14 +80,6 @@ namespace svt void SetTabItemContent( const TabItemContent& i_eItemContent ); TabAlignment GetTabAlignment() const; - // helpers for the A11Y implementation - ::boost::optional< size_t > - GetFocusedPanelItem() const; - void FocusPanelItem( const size_t i_nItemPos ); - bool IsPanelSelectorEnabled() const; - bool IsPanelSelectorVisible() const; - Rectangle GetItemScreenRect( const size_t i_nItemPos ) const; - // IDeckLayouter virtual Rectangle Layout( const Rectangle& i_rDeckPlayground ); virtual void Destroy(); diff --git a/svtools/inc/svtools/urlcontrol.hxx b/svtools/inc/svtools/urlcontrol.hxx index f5fd8df8150b..07b36578f3ec 100644 --- a/svtools/inc/svtools/urlcontrol.hxx +++ b/svtools/inc/svtools/urlcontrol.hxx @@ -46,7 +46,6 @@ namespace svt String m_sPreservedText; public: - OFileURLControl(Window* _pParent); OFileURLControl(Window* _pParent, const ResId& _rId); protected: diff --git a/svtools/inc/svtools/wizardmachine.hxx b/svtools/inc/svtools/wizardmachine.hxx index 76535089b51b..9627f4e546d2 100644 --- a/svtools/inc/svtools/wizardmachine.hxx +++ b/svtools/inc/svtools/wizardmachine.hxx @@ -105,7 +105,6 @@ namespace svt if the OWizardPage is used in an OWizardMachine, this parameter must be the OWizardMachine (which is derived from Window) */ - OWizardPage( Window* _pParent, WinBits _nStyle = 0 ); OWizardPage( Window* _pParent, const ResId& _rResId ); ~OWizardPage(); @@ -174,7 +173,6 @@ namespace svt // hold members in this structure to allow keeping compatible when members are added SVT_DLLPRIVATE void addButtons(Window* _pParent, sal_uInt32 _nButtonFlags); - SVT_DLLPRIVATE long calcRightHelpOffset(sal_uInt32 _nButtonFlags); public: /** ctor @@ -196,7 +194,6 @@ namespace svt /// set the base of the title to use - the title of the current page is appended void setTitleBase(const String& _rTitleBase); - const String& getTitleBase() const; /// determines whether there is a next state to which we can advance virtual bool canAdvance() const; diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx index 7b679aed53b2..dd556bf4b641 100644 --- a/svtools/source/brwbox/ebbcontrols.cxx +++ b/svtools/source/brwbox/ebbcontrols.cxx @@ -405,14 +405,6 @@ namespace svt } //------------------------------------------------------------------ - EditCellController::EditCellController( MultiLineTextCell* _pEdit ) - :CellController( _pEdit ) - ,m_pEditImplementation( new MultiLineEditImplementation( *_pEdit ) ) - ,m_bOwnImplementation( sal_True ) - { - } - - //------------------------------------------------------------------ EditCellController::EditCellController( IEditImplementation* _pImplementation ) :CellController( &_pImplementation->GetControl() ) ,m_pEditImplementation( _pImplementation ) diff --git a/svtools/source/control/fileurlbox.cxx b/svtools/source/control/fileurlbox.cxx index f2880feef2d0..d67b53547a7f 100644 --- a/svtools/source/control/fileurlbox.cxx +++ b/svtools/source/control/fileurlbox.cxx @@ -41,13 +41,6 @@ namespace svt //= FileURLBox //===================================================================== //--------------------------------------------------------------------- - FileURLBox::FileURLBox(Window* _pParent) - :SvtURLBox(_pParent, INET_PROT_FILE) - { - DisableHistory(); - } - - //--------------------------------------------------------------------- FileURLBox::FileURLBox( Window* _pParent, WinBits _nStyle ) :SvtURLBox( _pParent, _nStyle, INET_PROT_FILE ) { @@ -55,13 +48,6 @@ namespace svt } //--------------------------------------------------------------------- - FileURLBox::FileURLBox(Window* _pParent, const ResId& _rId) - :SvtURLBox(_pParent, _rId, INET_PROT_FILE) - { - DisableHistory(); - } - - //--------------------------------------------------------------------- void FileURLBox::DisplayURL( const String& _rURL ) { String sOldText = GetText(); diff --git a/svtools/source/control/hyperlabel.cxx b/svtools/source/control/hyperlabel.cxx index ab42a891a1ed..e2338fceb33d 100644 --- a/svtools/source/control/hyperlabel.cxx +++ b/svtools/source/control/hyperlabel.cxx @@ -79,13 +79,6 @@ namespace svt { } - HyperLabel::HyperLabel( Window* _pParent, const ResId& _rId ) - :FixedText( _pParent, _rId ) - ,m_pImpl( new HyperLabelImpl ) - { - implInit(); - } - HyperLabel::HyperLabel( Window* _pParent, WinBits _nWinStyle ) :FixedText( _pParent, _nWinStyle ) ,m_pImpl( new HyperLabelImpl ) @@ -93,14 +86,6 @@ namespace svt implInit(); } - - sal_Int32 HyperLabel::GetLogicWidth() - { - Size rLogicLocSize = PixelToLogic( m_pImpl->m_aMinSize, MAP_APPFONT ); - return rLogicLocSize.Width(); - } - - Size HyperLabel::CalcMinimumSize( long nMaxWidth ) const { m_pImpl->m_aMinSize = FixedText::CalcMinimumSize( nMaxWidth ); @@ -229,11 +214,6 @@ namespace svt m_pImpl->Index = _Index; } - ::rtl::OUString HyperLabel::GetLabel( ) - { - return GetText(); - } - void HyperLabel::SetLabel( const ::rtl::OUString& _rText ) { SetText(_rText); diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx index 7848be58c889..c8ec87bc04d5 100644 --- a/svtools/source/control/roadmap.cxx +++ b/svtools/source/control/roadmap.cxx @@ -110,7 +110,6 @@ namespace svt void SetIndex( ItemIndex _Index ); ItemIndex GetIndex() const; - void SetLabel( const ::rtl::OUString& _rText ); ::rtl::OUString GetLabel( ); void Update( ItemIndex _RMIndex, const ::rtl::OUString& _rText ); @@ -121,8 +120,6 @@ namespace svt void SetInteractive( sal_Bool _bInteractive ); void SetClickHdl( const Link& rLink ); - const Link& GetClickHdl() const; - void SetZOrder( RoadmapItem* pRefRoadmapHyperLabel, sal_uInt16 nFlags ); void Enable( sal_Bool bEnable = sal_True); sal_Bool IsEnabled() const; void GrabFocus(); @@ -199,10 +196,6 @@ namespace svt } }; - - //===================================================================== - //= Roadmap - //===================================================================== //--------------------------------------------------------------------- void RoadmapImpl::initItemSize() { @@ -216,14 +209,6 @@ namespace svt //= Roadmap //===================================================================== //--------------------------------------------------------------------- - ORoadmap::ORoadmap( Window* _pParent, const ResId& _rId ) - :Control( _pParent, _rId ) - ,m_pImpl( new RoadmapImpl( *this ) ) - { - implInit(); - } - - //--------------------------------------------------------------------- ORoadmap::ORoadmap( Window* _pParent, WinBits _nWinStyle ) :Control( _pParent, _nWinStyle ) ,m_pImpl( new RoadmapImpl( *this ) ) @@ -845,13 +830,6 @@ namespace svt } //--------------------------------------------------------------------- - void RoadmapItem::SetLabel( const ::rtl::OUString& _rText ) - { - if ( mpDescription ) - mpDescription->SetText(_rText); - } - - //--------------------------------------------------------------------- ::rtl::OUString RoadmapItem::GetLabel( ) { return mpDescription ? mpDescription->GetText() : String(); @@ -880,15 +858,6 @@ namespace svt } //--------------------------------------------------------------------- - void RoadmapItem::SetZOrder( RoadmapItem* pRefRoadmapHyperLabel, sal_uInt16 nFlags ) - { - if (pRefRoadmapHyperLabel == NULL) - mpDescription->SetZOrder( NULL, nFlags); //WINDOW_ZORDER_FIRST ); - else - mpDescription->SetZOrder( pRefRoadmapHyperLabel->mpDescription, nFlags); //, WINDOW_ZORDER_BEHIND ); - } - - //--------------------------------------------------------------------- void RoadmapItem::Enable( sal_Bool _bEnable) { mpID->Enable(_bEnable); @@ -968,12 +937,6 @@ namespace svt } //--------------------------------------------------------------------- - const Link& RoadmapItem::GetClickHdl( ) const - { - return mpDescription->GetClickHdl(); - } - - //--------------------------------------------------------------------- IDLabel::IDLabel( Window* _pParent, WinBits _nWinStyle ) :FixedText( _pParent, _nWinStyle ) { diff --git a/svtools/source/control/stdctrl.cxx b/svtools/source/control/stdctrl.cxx index d2cd0aa75099..156885849df6 100644 --- a/svtools/source/control/stdctrl.cxx +++ b/svtools/source/control/stdctrl.cxx @@ -50,14 +50,6 @@ namespace svt { // class svt::SelectableFixedText ---------------------------------------- - SelectableFixedText::SelectableFixedText( Window* pParent, WinBits nWinStyle ) : - Edit( pParent, nWinStyle ) - { - Init(); - } - - // ----------------------------------------------------------------------- - SelectableFixedText::SelectableFixedText( Window* pParent, const ResId& rResId ) : Edit( pParent, rResId ) { diff --git a/svtools/source/control/urlcontrol.cxx b/svtools/source/control/urlcontrol.cxx index eeb562b2a663..39b17ca232b1 100644 --- a/svtools/source/control/urlcontrol.cxx +++ b/svtools/source/control/urlcontrol.cxx @@ -41,13 +41,6 @@ namespace svt //= OFileURLControl //===================================================================== //--------------------------------------------------------------------- - OFileURLControl::OFileURLControl(Window* _pParent) - :SvtURLBox(_pParent, INET_PROT_FILE) - { - DisableHistory(); - } - - //--------------------------------------------------------------------- OFileURLControl::OFileURLControl(Window* _pParent, const ResId& _rId) :SvtURLBox(_pParent, _rId, INET_PROT_FILE) { diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx index f4e024b65cc1..0a3bd4594761 100644 --- a/svtools/source/dialogs/wizardmachine.cxx +++ b/svtools/source/dialogs/wizardmachine.cxx @@ -54,14 +54,6 @@ namespace svt //===================================================================== //= OWizardPage //===================================================================== - //--------------------------------------------------------------------- - OWizardPage::OWizardPage( Window* _pParent, WinBits _nStyle ) - :TabPage( _pParent, _nStyle ) - ,m_pImpl( new WizardPageImplData ) - { - } - - //--------------------------------------------------------------------- OWizardPage::OWizardPage( Window* _pParent, const ResId& _rResId ) :TabPage( _pParent, _rResId ) ,m_pImpl( new WizardPageImplData ) @@ -130,24 +122,6 @@ namespace svt } }; - long OWizardMachine::calcRightHelpOffset(sal_uInt32 _nButtonFlags) - { - sal_Int32 nMask = 1; - sal_Int32 nRightAlignedButtonCount = -1; - for (unsigned int i = 0; i < 8*sizeof(_nButtonFlags); i++ ) - { - if( ( _nButtonFlags & nMask ) != 0 ) - nRightAlignedButtonCount++; - nMask <<= 1; - } - Size aSize = GetPageSizePixel(); - sal_Int32 nTotButtonWidth = nRightAlignedButtonCount * LogicalCoordinateToPixel(50); - sal_Int32 nTotRightButtonSpaceOffset = (nRightAlignedButtonCount) * WIZARDDIALOG_BUTTON_STDOFFSET_X; - if ((_nButtonFlags & WZB_NEXT) && (_nButtonFlags & WZB_NEXT)) - nTotRightButtonSpaceOffset = (nTotRightButtonSpaceOffset - WIZARDDIALOG_BUTTON_STDOFFSET_X) + WIZARDDIALOG_BUTTON_SMALLSTDOFFSET_X; - return aSize.Width() - nTotButtonWidth - nTotRightButtonSpaceOffset; - } - //===================================================================== //= OWizardMachine //===================================================================== @@ -278,12 +252,6 @@ namespace svt } //--------------------------------------------------------------------- - const String& OWizardMachine::getTitleBase() const - { - return m_pImpl->sTitleBase; - } - - //--------------------------------------------------------------------- void OWizardMachine::setTitleBase(const String& _rTitleBase) { m_pImpl->sTitleBase = _rTitleBase; diff --git a/svtools/source/misc/dialogclosedlistener.cxx b/svtools/source/misc/dialogclosedlistener.cxx index f07d24b536a9..4afcd931f1ac 100644 --- a/svtools/source/misc/dialogclosedlistener.cxx +++ b/svtools/source/misc/dialogclosedlistener.cxx @@ -46,13 +46,6 @@ namespace svt { } - DialogClosedListener::DialogClosedListener( const Link& rLink ) : - - m_aDialogClosedLink( rLink ) - - { - } - // XDialogClosedListener methods void SAL_CALL DialogClosedListener::dialogClosed( const DialogClosedEvent& aEvent ) throw (RuntimeException) { diff --git a/svtools/source/misc/dialogcontrolling.cxx b/svtools/source/misc/dialogcontrolling.cxx index d5e9ac545962..3829675314b6 100644 --- a/svtools/source/misc/dialogcontrolling.cxx +++ b/svtools/source/misc/dialogcontrolling.cxx @@ -192,15 +192,6 @@ namespace svt } //--------------------------------------------------------------------- - void ControlDependencyManager::enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2 ) - { - PDialogController pController( new RadioDependentEnabler( _rRadio ) ); - pController->addDependentWindow( _rDependentWindow1 ); - pController->addDependentWindow( _rDependentWindow2 ); - m_pImpl->aControllers.push_back( pController ); - } - - //--------------------------------------------------------------------- void ControlDependencyManager::enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3 ) { PDialogController pController( new RadioDependentEnabler( _rRadio ) ); @@ -211,17 +202,6 @@ namespace svt } //--------------------------------------------------------------------- - void ControlDependencyManager::enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4 ) - { - PDialogController pController( new RadioDependentEnabler( _rRadio ) ); - pController->addDependentWindow( _rDependentWindow1 ); - pController->addDependentWindow( _rDependentWindow2 ); - pController->addDependentWindow( _rDependentWindow3 ); - pController->addDependentWindow( _rDependentWindow4 ); - m_pImpl->aControllers.push_back( pController ); - } - - //--------------------------------------------------------------------- void ControlDependencyManager::enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5 ) { PDialogController pController( new RadioDependentEnabler( _rRadio ) ); @@ -234,19 +214,6 @@ namespace svt } //--------------------------------------------------------------------- - void ControlDependencyManager::enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5, Window& _rDependentWindow6 ) - { - PDialogController pController( new RadioDependentEnabler( _rRadio ) ); - pController->addDependentWindow( _rDependentWindow1 ); - pController->addDependentWindow( _rDependentWindow2 ); - pController->addDependentWindow( _rDependentWindow3 ); - pController->addDependentWindow( _rDependentWindow4 ); - pController->addDependentWindow( _rDependentWindow5 ); - pController->addDependentWindow( _rDependentWindow6 ); - m_pImpl->aControllers.push_back( pController ); - } - - //--------------------------------------------------------------------- void ControlDependencyManager::enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow ) { PDialogController pController( new RadioDependentEnabler( _rBox ) ); @@ -264,16 +231,6 @@ namespace svt } //--------------------------------------------------------------------- - void ControlDependencyManager::enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3 ) - { - PDialogController pController( new RadioDependentEnabler( _rBox ) ); - pController->addDependentWindow( _rDependentWindow1 ); - pController->addDependentWindow( _rDependentWindow2 ); - pController->addDependentWindow( _rDependentWindow3 ); - m_pImpl->aControllers.push_back( pController ); - } - - //--------------------------------------------------------------------- void ControlDependencyManager::enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4 ) { PDialogController pController( new RadioDependentEnabler( _rBox ) ); @@ -284,31 +241,6 @@ namespace svt m_pImpl->aControllers.push_back( pController ); } - //--------------------------------------------------------------------- - void ControlDependencyManager::enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5 ) - { - PDialogController pController( new RadioDependentEnabler( _rBox ) ); - pController->addDependentWindow( _rDependentWindow1 ); - pController->addDependentWindow( _rDependentWindow2 ); - pController->addDependentWindow( _rDependentWindow3 ); - pController->addDependentWindow( _rDependentWindow4 ); - pController->addDependentWindow( _rDependentWindow5 ); - m_pImpl->aControllers.push_back( pController ); - } - - //--------------------------------------------------------------------- - void ControlDependencyManager::enableOnCheckMark( CheckBox& _rBox, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5, Window& _rDependentWindow6 ) - { - PDialogController pController( new RadioDependentEnabler( _rBox ) ); - pController->addDependentWindow( _rDependentWindow1 ); - pController->addDependentWindow( _rDependentWindow2 ); - pController->addDependentWindow( _rDependentWindow3 ); - pController->addDependentWindow( _rDependentWindow4 ); - pController->addDependentWindow( _rDependentWindow5 ); - pController->addDependentWindow( _rDependentWindow6 ); - m_pImpl->aControllers.push_back( pController ); - } - //........................................................................ } // namespace svt //........................................................................ diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index 2d589f59b53a..8bba1be66c0b 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -380,20 +380,6 @@ comphelper::EmbeddedObjectContainer* EmbeddedObjectRef::GetContainer() const return mpImp->pContainer; } -::rtl::OUString EmbeddedObjectRef::GetPersistName() const -{ - return mpImp->aPersistName; -} - -MapUnit EmbeddedObjectRef::GetMapUnit() const -{ - if ( mpImp->nViewAspect == embed::Aspects::MSOLE_CONTENT ) - return VCLUnoHelper::UnoEmbed2VCLMapUnit( mxObj->getMapUnit( mpImp->nViewAspect ) ); - else - // TODO/LATER: currently only CONTENT aspect requires communication with the object - return MAP_100TH_MM; -} - sal_Int64 EmbeddedObjectRef::GetViewAspect() const { return mpImp->nViewAspect; @@ -718,11 +704,6 @@ void EmbeddedObjectRef::DrawShading( const Rectangle &rRect, OutputDevice *pOut } -sal_Bool EmbeddedObjectRef::TryRunningState() -{ - return TryRunningState( mxObj ); -} - sal_Bool EmbeddedObjectRef::TryRunningState( const uno::Reference < embed::XEmbeddedObject >& xEmbObj ) { if ( !xEmbObj.is() ) @@ -759,24 +740,6 @@ void EmbeddedObjectRef::SetGraphicToContainer( const Graphic& rGraphic, OSL_FAIL( "Export of graphic is failed!\n" ); } -sal_Bool EmbeddedObjectRef::ObjectIsModified( const uno::Reference< embed::XEmbeddedObject >& xObj ) - throw( uno::Exception ) -{ - sal_Bool bResult = sal_False; - - sal_Int32 nState = xObj->getCurrentState(); - if ( nState != embed::EmbedStates::LOADED && nState != embed::EmbedStates::RUNNING ) - { - // the object is active so if the model is modified the replacement - // should be retrieved from the object - uno::Reference< util::XModifiable > xModifiable( xObj->getComponent(), uno::UNO_QUERY ); - if ( xModifiable.is() ) - bResult = xModifiable->isModified(); - } - - return bResult; -} - uno::Reference< io::XInputStream > EmbeddedObjectRef::GetGraphicReplacementStream( sal_Int64 nViewAspect, const uno::Reference< embed::XEmbeddedObject >& xObj, diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx index 20d82fe6e02b..871b9c78779e 100644 --- a/svtools/source/misc/templatefoldercache.cxx +++ b/svtools/source/misc/templatefoldercache.cxx @@ -143,9 +143,7 @@ namespace svt ~TemplateContent(); public: - TemplateContent(); TemplateContent( const INetURLObject& _rURL ); - TemplateContent( const INetURLObject& _rURL, const util::DateTime& _rLastModified ); // attribute access inline String getName( ) const { return m_sLocalName; } @@ -169,13 +167,6 @@ namespace svt DBG_NAME( TemplateContent ) //--------------------------------------------------------------------- - TemplateContent::TemplateContent() - { - DBG_CTOR( TemplateContent, NULL ); - implResetDate(); - } - - //--------------------------------------------------------------------- TemplateContent::TemplateContent( const INetURLObject& _rURL ) :m_aURL( _rURL ) { @@ -186,16 +177,6 @@ namespace svt } //--------------------------------------------------------------------- - TemplateContent::TemplateContent( const INetURLObject& _rURL, const util::DateTime& _rLastModified ) - :m_aURL( _rURL ) - ,m_aLastModified( _rLastModified ) - { - DBG_CTOR( TemplateContent, NULL ); - DBG_ASSERT( INET_PROT_NOT_VALID != m_aURL.GetProtocol(), "TemplateContent::TemplateContent: invalid URL!" ); - m_sLocalName = m_aURL.getName(); - } - - //--------------------------------------------------------------------- TemplateContent::~TemplateContent() { DBG_DTOR( TemplateContent, NULL ); diff --git a/svtools/source/table/gridtablerenderer.cxx b/svtools/source/table/gridtablerenderer.cxx index e69ad5589087..f9e4e6d55ffe 100644 --- a/svtools/source/table/gridtablerenderer.cxx +++ b/svtools/source/table/gridtablerenderer.cxx @@ -198,12 +198,6 @@ namespace svt { namespace table } //------------------------------------------------------------------------------------------------------------------ - RowPos GridTableRenderer::getCurrentRow() const - { - return m_pImpl->nCurrentRow; - } - - //------------------------------------------------------------------------------------------------------------------ bool GridTableRenderer::useGridLines() const { return m_pImpl->bUseGridLines; diff --git a/svtools/source/table/tablecontrol.cxx b/svtools/source/table/tablecontrol.cxx index 6ec1ec5e7121..1e5c1b3d54d8 100644 --- a/svtools/source/table/tablecontrol.cxx +++ b/svtools/source/table/tablecontrol.cxx @@ -151,19 +151,6 @@ namespace svt { namespace table } // ----------------------------------------------------------------------------------------------------------------- - RowPos TableControl::GetTopRow() const - { - return m_pImpl->getTopRow(); - } - - // ----------------------------------------------------------------------------------------------------------------- - void TableControl::SetTopRow( RowPos _nRow ) - { - OSL_ENSURE( false, "TableControl::SetTopRow: not implemented!" ); - OSL_UNUSED( _nRow ); - } - - // ----------------------------------------------------------------------------------------------------------------- sal_Int32 TableControl::GetCurrentRow() const { return m_pImpl->getCurrentRow(); @@ -594,19 +581,7 @@ namespace svt { namespace table { ImplCallEventListenersAndHandler( VCLEVENT_TABLEROW_SELECT, m_pImpl->getSelectHandler(), this ); } -//........................................................................ - //------------------------------------------------------------------------------------------------------------------ - void TableControl::SetSelectHdl( const Link& i_selectHandler ) - { - m_pImpl->setSelectHandler( i_selectHandler ); - } - - //------------------------------------------------------------------------------------------------------------------ - const Link& TableControl::GetSelectHdl() const - { - return m_pImpl->getSelectHandler(); - } }} // namespace svt::table //...................................................................................................................... diff --git a/svtools/source/table/tabledatawindow.cxx b/svtools/source/table/tabledatawindow.cxx index 7c546421555d..910baa0bd5c4 100644 --- a/svtools/source/table/tabledatawindow.cxx +++ b/svtools/source/table/tabledatawindow.cxx @@ -83,11 +83,6 @@ namespace svt { namespace table Window::SetControlBackground( rColor ); } //------------------------------------------------------------------------------------------------------------------ - void TableDataWindow::SetBackground() - { - Window::SetBackground(); - } - //------------------------------------------------------------------------------------------------------------------ void TableDataWindow::SetControlBackground() { Window::SetControlBackground(); diff --git a/svtools/source/table/tabledatawindow.hxx b/svtools/source/table/tabledatawindow.hxx index c26cd6ccd596..96f178a62801 100644 --- a/svtools/source/table/tabledatawindow.hxx +++ b/svtools/source/table/tabledatawindow.hxx @@ -78,7 +78,6 @@ namespace svt { namespace table virtual void RequestHelp( const HelpEvent& rHEvt ); void SetBackground(const Wallpaper& rColor); - void SetBackground(); private: void impl_hideTipWindow(); diff --git a/svtools/source/toolpanel/tablayouter.cxx b/svtools/source/toolpanel/tablayouter.cxx index b9615dffc774..c6dd7621c985 100644 --- a/svtools/source/toolpanel/tablayouter.cxx +++ b/svtools/source/toolpanel/tablayouter.cxx @@ -128,46 +128,6 @@ namespace svt } //-------------------------------------------------------------------- - ::boost::optional< size_t > TabDeckLayouter::GetFocusedPanelItem() const - { - if ( lcl_checkDisposed( *m_pData ) ) - return ::boost::optional< size_t >(); - return m_pData->pTabBar->GetFocusedPanelItem(); - } - - //-------------------------------------------------------------------- - void TabDeckLayouter::FocusPanelItem( const size_t i_nItemPos ) - { - if ( lcl_checkDisposed( *m_pData ) ) - return; - m_pData->pTabBar->FocusPanelItem( i_nItemPos ); - } - - //-------------------------------------------------------------------- - bool TabDeckLayouter::IsPanelSelectorEnabled() const - { - if ( lcl_checkDisposed( *m_pData ) ) - return false; - return m_pData->pTabBar->IsEnabled(); - } - - //-------------------------------------------------------------------- - bool TabDeckLayouter::IsPanelSelectorVisible() const - { - if ( lcl_checkDisposed( *m_pData ) ) - return false; - return m_pData->pTabBar->IsVisible(); - } - - //-------------------------------------------------------------------- - Rectangle TabDeckLayouter::GetItemScreenRect( const size_t i_nItemPos ) const - { - if ( lcl_checkDisposed( *m_pData ) ) - return Rectangle(); - return m_pData->pTabBar->GetItemScreenRect( i_nItemPos ); - } - - //-------------------------------------------------------------------- Rectangle TabDeckLayouter::Layout( const Rectangle& i_rDeckPlayground ) { if ( lcl_checkDisposed( *m_pData ) ) diff --git a/svtools/source/uno/contextmenuhelper.cxx b/svtools/source/uno/contextmenuhelper.cxx index 82ae79fa2c92..5edce0ea7d95 100644 --- a/svtools/source/uno/contextmenuhelper.cxx +++ b/svtools/source/uno/contextmenuhelper.cxx @@ -307,23 +307,6 @@ ContextMenuHelper::completeAndExecute( } } -uno::Reference< awt::XPopupMenu > -ContextMenuHelper::create( - const ::rtl::OUString& /*aPopupMenuResourceId*/ ) -{ - // NOT IMPLEMENTED YET! - return uno::Reference< awt::XPopupMenu >(); -} - -bool -ContextMenuHelper::createAndExecute( - const Point& /*aPos*/, - const ::rtl::OUString& /*aPopupMenuResourceId*/ ) -{ - // NOT IMPLEMENTED YET! - return false; -} - // private member void diff --git a/svtools/source/uno/framestatuslistener.cxx b/svtools/source/uno/framestatuslistener.cxx index 2c228f28e5e6..a86fb21128f7 100644 --- a/svtools/source/uno/framestatuslistener.cxx +++ b/svtools/source/uno/framestatuslistener.cxx @@ -60,18 +60,6 @@ FrameStatusListener::~FrameStatusListener() { } -Reference< XFrame > FrameStatusListener::getFrameInterface() const -{ - SolarMutexGuard aSolarMutexGuard; - return m_xFrame; -} - -Reference< XMultiServiceFactory > FrameStatusListener::getServiceManager() const -{ - SolarMutexGuard aSolarMutexGuard; - return m_xServiceManager; -} - // XInterface Any SAL_CALL FrameStatusListener::queryInterface( const Type& rType ) throw ( RuntimeException ) @@ -172,13 +160,6 @@ throw ( RuntimeException ) m_xFrame.clear(); } -// XStatusListener -void SAL_CALL FrameStatusListener::statusChanged( const FeatureStateEvent& ) -throw ( RuntimeException ) -{ - // must be implemented by sub class -} - void FrameStatusListener::frameAction( const FrameActionEvent& Action ) throw ( RuntimeException ) { diff --git a/svtools/source/uno/genericunodialog.cxx b/svtools/source/uno/genericunodialog.cxx index 065c6207317a..5ba2ef2875c5 100644 --- a/svtools/source/uno/genericunodialog.cxx +++ b/svtools/source/uno/genericunodialog.cxx @@ -127,13 +127,6 @@ Sequence<Type> SAL_CALL OGenericUnoDialog::getTypes( ) throw(RuntimeException) } //------------------------------------------------------------------------- -Sequence<sal_Int8> SAL_CALL OGenericUnoDialog::getImplementationId( ) throw(RuntimeException) -{ - static ::cppu::OImplementationId aId; - return aId.getImplementationId(); -} - -//------------------------------------------------------------------------- sal_Bool SAL_CALL OGenericUnoDialog::supportsService(const ::rtl::OUString& ServiceName) throw(RuntimeException) { Sequence< ::rtl::OUString > aSupported(getSupportedServiceNames()); diff --git a/svtools/source/uno/statusbarcontroller.cxx b/svtools/source/uno/statusbarcontroller.cxx index a64117823c60..3b1185a9d923 100644 --- a/svtools/source/uno/statusbarcontroller.cxx +++ b/svtools/source/uno/statusbarcontroller.cxx @@ -89,33 +89,6 @@ Reference< XFrame > StatusbarController::getFrameInterface() const return m_xFrame; } -Reference< XMultiServiceFactory > StatusbarController::getServiceManager() const -{ - SolarMutexGuard aSolarMutexGuard; - return m_xServiceManager; -} - -Reference< XLayoutManager > StatusbarController::getLayoutManager() const -{ - SolarMutexGuard aSolarMutexGuard; - Reference< XLayoutManager > xLayoutManager; - Reference< XPropertySet > xPropSet( m_xFrame, UNO_QUERY ); - if ( xPropSet.is() ) - { - try - { - Any a; - a = xPropSet->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ))); - a >>= xLayoutManager; - } - catch ( Exception& ) - { - } - } - - return xLayoutManager; -} - Reference< XURLTransformer > StatusbarController::getURLTransformer() const { SolarMutexGuard aSolarMutexGuard; @@ -452,33 +425,6 @@ void StatusbarController::addStatusListener( const rtl::OUString& aCommandURL ) } } -void StatusbarController::removeStatusListener( const rtl::OUString& aCommandURL ) -{ - SolarMutexGuard aSolarMutexGuard; - - URLToDispatchMap::iterator pIter = m_aListenerMap.find( aCommandURL ); - if ( pIter != m_aListenerMap.end() ) - { - Reference< XDispatch > xDispatch( pIter->second ); - Reference< XStatusListener > xStatusListener( static_cast< OWeakObject* >( this ), UNO_QUERY ); - m_aListenerMap.erase( pIter ); - - try - { - Reference< XURLTransformer > xURLTransformer = getURLTransformer(); - com::sun::star::util::URL aTargetURL; - aTargetURL.Complete = aCommandURL; - xURLTransformer->parseStrict( aTargetURL ); - - if ( xDispatch.is() && xStatusListener.is() ) - xDispatch->removeStatusListener( xStatusListener, aTargetURL ); - } - catch ( Exception& ) - { - } - } -} - void StatusbarController::bindListener() { std::vector< Listener > aDispatchVector; @@ -572,105 +518,6 @@ void StatusbarController::bindListener() } } -void StatusbarController::unbindListener() -{ - SolarMutexGuard aSolarMutexGuard; - - if ( !m_bInitialized ) - return; - - // Collect all registered command URL's and store them temporary - Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY ); - if ( m_xServiceManager.is() && xDispatchProvider.is() ) - { - Reference< XStatusListener > xStatusListener( static_cast< OWeakObject* >( this ), UNO_QUERY ); - URLToDispatchMap::iterator pIter = m_aListenerMap.begin(); - while ( pIter != m_aListenerMap.end() ) - { - Reference< XURLTransformer > xURLTransformer = getURLTransformer(); - com::sun::star::util::URL aTargetURL; - aTargetURL.Complete = pIter->first; - xURLTransformer->parseStrict( aTargetURL ); - - Reference< XDispatch > xDispatch( pIter->second ); - if ( xDispatch.is() ) - { - // We already have a dispatch object => we have to requery. - // Release old dispatch object and remove it as listener - try - { - xDispatch->removeStatusListener( xStatusListener, aTargetURL ); - } - catch ( Exception& ) - { - } - } - pIter->second.clear(); - ++pIter; - } - } -} - -sal_Bool StatusbarController::isBound() const -{ - SolarMutexGuard aSolarMutexGuard; - - if ( !m_bInitialized ) - return sal_False; - - URLToDispatchMap::const_iterator pIter = m_aListenerMap.find( m_aCommandURL ); - if ( pIter != m_aListenerMap.end() ) - return ( pIter->second.is() ); - - return sal_False; -} - -void StatusbarController::updateStatus() -{ - bindListener(); -} - -void StatusbarController::updateStatus( const rtl::OUString aCommandURL ) -{ - Reference< XDispatch > xDispatch; - Reference< XStatusListener > xStatusListener; - com::sun::star::util::URL aTargetURL; - - { - SolarMutexGuard aSolarMutexGuard; - - if ( !m_bInitialized ) - return; - - // Try to find a dispatch object for the requested command URL - Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY ); - xStatusListener = Reference< XStatusListener >( static_cast< OWeakObject* >( this ), UNO_QUERY ); - if ( m_xServiceManager.is() && xDispatchProvider.is() ) - { - Reference< XURLTransformer > xURLTransformer = getURLTransformer(); - aTargetURL.Complete = aCommandURL; - xURLTransformer->parseStrict( aTargetURL ); - xDispatch = xDispatchProvider->queryDispatch( aTargetURL, rtl::OUString(), 0 ); - } - } - - if ( xDispatch.is() && xStatusListener.is() ) - { - // Catch exception as we release our mutex, it is possible that someone else - // has already disposed this instance! - // Add/remove status listener to get a update status information from the - // requested command. - try - { - xDispatch->addStatusListener( xStatusListener, aTargetURL ); - xDispatch->removeStatusListener( xStatusListener, aTargetURL ); - } - catch ( Exception& ) - { - } - } -} - ::Rectangle StatusbarController::getControlRect() const { ::Rectangle aRect; |