Kaydet (Commit) 6bdfb757 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:mergeclasses merge svx::ISlotInvalidator with svx::FmTextControlShell

Change-Id: I828ef52bc093d3fa2946f813a2dd09ac6b34e94c
üst 2a504a24
......@@ -351,7 +351,6 @@ merge svx::IContextRequestObserver with svx::FmTextControlShell
merge svx::IControllerFeatureInvalidation with FmXFormShell
merge svx::IFocusObserver with svx::FmTextControlShell
merge svx::IPropertyValueProvider with svx::PropertyValueProvider
merge svx::ISlotInvalidator with svx::FmTextControlShell
merge svx::RegistrationItemSetHolder with svx::DatabaseRegistrationDialog
merge svx::sidebar::SvxShapeCommandsMap with svx::sidebar::DefaultShapesPanel
merge svxform::(anonymous namespace)::IScript with svxform::(anonymous namespace)::NewStyleUNOScript
......
......@@ -18,6 +18,7 @@
*/
#include "fmtextcontrolfeature.hxx"
#include "fmtextcontrolshell.hxx"
#include <osl/diagnose.h>
......@@ -31,7 +32,7 @@ namespace svx
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::util;
FmTextControlFeature::FmTextControlFeature( const Reference< XDispatch >& _rxDispatcher, const URL& _rFeatureURL, SfxSlotId _nSlotId, ISlotInvalidator* _pInvalidator )
FmTextControlFeature::FmTextControlFeature( const Reference< XDispatch >& _rxDispatcher, const URL& _rFeatureURL, SfxSlotId _nSlotId, FmTextControlShell* _pInvalidator )
:m_xDispatcher ( _rxDispatcher )
,m_aFeatureURL ( _rFeatureURL )
,m_nSlotId ( _nSlotId )
......
......@@ -23,15 +23,6 @@
namespace svx
{
typedef sal_uInt16 SfxSlotId;
class ISlotInvalidator
{
public:
virtual void Invalidate( SfxSlotId _nSlot ) = 0;
protected:
~ISlotInvalidator() {}
};
}
#endif // INCLUDED_SVX_SOURCE_INC_FMSLOTINVALIDATOR_HXX
......
......@@ -30,6 +30,7 @@
namespace svx
{
class FmTextControlShell;
typedef ::cppu::WeakImplHelper < css::frame::XStatusListener
> FmTextControlFeature_Base;
......@@ -42,7 +43,7 @@ namespace svx
css::util::URL m_aFeatureURL;
css::uno::Any m_aFeatureState;
SfxSlotId m_nSlotId;
ISlotInvalidator* m_pInvalidator;
FmTextControlShell* m_pInvalidator;
bool m_bFeatureEnabled;
public:
......@@ -56,7 +57,7 @@ namespace svx
const css::uno::Reference< css::frame::XDispatch >& _rxDispatcher,
const css::util::URL& _rFeatureURL,
SfxSlotId _nId,
ISlotInvalidator* _pInvalidator
FmTextControlShell* _pInvalidator
);
/// determines whether the feature we're responsible for is currently enabled
......
......@@ -74,7 +74,6 @@ namespace svx
};
class FmTextControlShell :public IFocusObserver
,public ISlotInvalidator
,public IContextRequestObserver
{
private:
......@@ -136,6 +135,8 @@ namespace svx
*/
void designModeChanged( bool _bNewDesignMode );
void Invalidate( SfxSlotId _nSlot );
protected:
// IFocusObserver
virtual void focusGained( const css::awt::FocusEvent& _rEvent ) override;
......@@ -144,10 +145,6 @@ namespace svx
// IContextRequestObserver
virtual void contextMenuRequested( const css::awt::MouseEvent& _rEvent ) override;
// ISlotInvalidator
virtual void Invalidate( SfxSlotId _nSlot ) override;
protected:
enum AttributeSet { eCharAttribs, eParaAttribs };
void executeAttributeDialog( AttributeSet _eSet, SfxRequest& _rReq );
void executeSelectAll( );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment