loplugin:mergeclasses merge svx::ISlotInvalidator with svx::FmTextControlShell
Change-Id: I828ef52bc093d3fa2946f813a2dd09ac6b34e94c
This commit is contained in:
@@ -351,7 +351,6 @@ merge svx::IContextRequestObserver with svx::FmTextControlShell
|
|||||||
merge svx::IControllerFeatureInvalidation with FmXFormShell
|
merge svx::IControllerFeatureInvalidation with FmXFormShell
|
||||||
merge svx::IFocusObserver with svx::FmTextControlShell
|
merge svx::IFocusObserver with svx::FmTextControlShell
|
||||||
merge svx::IPropertyValueProvider with svx::PropertyValueProvider
|
merge svx::IPropertyValueProvider with svx::PropertyValueProvider
|
||||||
merge svx::ISlotInvalidator with svx::FmTextControlShell
|
|
||||||
merge svx::RegistrationItemSetHolder with svx::DatabaseRegistrationDialog
|
merge svx::RegistrationItemSetHolder with svx::DatabaseRegistrationDialog
|
||||||
merge svx::sidebar::SvxShapeCommandsMap with svx::sidebar::DefaultShapesPanel
|
merge svx::sidebar::SvxShapeCommandsMap with svx::sidebar::DefaultShapesPanel
|
||||||
merge svxform::(anonymous namespace)::IScript with svxform::(anonymous namespace)::NewStyleUNOScript
|
merge svxform::(anonymous namespace)::IScript with svxform::(anonymous namespace)::NewStyleUNOScript
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "fmtextcontrolfeature.hxx"
|
#include "fmtextcontrolfeature.hxx"
|
||||||
|
#include "fmtextcontrolshell.hxx"
|
||||||
|
|
||||||
#include <osl/diagnose.h>
|
#include <osl/diagnose.h>
|
||||||
|
|
||||||
@@ -31,7 +32,7 @@ namespace svx
|
|||||||
using namespace ::com::sun::star::beans;
|
using namespace ::com::sun::star::beans;
|
||||||
using namespace ::com::sun::star::util;
|
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_xDispatcher ( _rxDispatcher )
|
||||||
,m_aFeatureURL ( _rFeatureURL )
|
,m_aFeatureURL ( _rFeatureURL )
|
||||||
,m_nSlotId ( _nSlotId )
|
,m_nSlotId ( _nSlotId )
|
||||||
|
@@ -23,15 +23,6 @@
|
|||||||
namespace svx
|
namespace svx
|
||||||
{
|
{
|
||||||
typedef sal_uInt16 SfxSlotId;
|
typedef sal_uInt16 SfxSlotId;
|
||||||
|
|
||||||
class ISlotInvalidator
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
virtual void Invalidate( SfxSlotId _nSlot ) = 0;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
~ISlotInvalidator() {}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // INCLUDED_SVX_SOURCE_INC_FMSLOTINVALIDATOR_HXX
|
#endif // INCLUDED_SVX_SOURCE_INC_FMSLOTINVALIDATOR_HXX
|
||||||
|
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
namespace svx
|
namespace svx
|
||||||
{
|
{
|
||||||
|
class FmTextControlShell;
|
||||||
|
|
||||||
typedef ::cppu::WeakImplHelper < css::frame::XStatusListener
|
typedef ::cppu::WeakImplHelper < css::frame::XStatusListener
|
||||||
> FmTextControlFeature_Base;
|
> FmTextControlFeature_Base;
|
||||||
@@ -42,7 +43,7 @@ namespace svx
|
|||||||
css::util::URL m_aFeatureURL;
|
css::util::URL m_aFeatureURL;
|
||||||
css::uno::Any m_aFeatureState;
|
css::uno::Any m_aFeatureState;
|
||||||
SfxSlotId m_nSlotId;
|
SfxSlotId m_nSlotId;
|
||||||
ISlotInvalidator* m_pInvalidator;
|
FmTextControlShell* m_pInvalidator;
|
||||||
bool m_bFeatureEnabled;
|
bool m_bFeatureEnabled;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -56,7 +57,7 @@ namespace svx
|
|||||||
const css::uno::Reference< css::frame::XDispatch >& _rxDispatcher,
|
const css::uno::Reference< css::frame::XDispatch >& _rxDispatcher,
|
||||||
const css::util::URL& _rFeatureURL,
|
const css::util::URL& _rFeatureURL,
|
||||||
SfxSlotId _nId,
|
SfxSlotId _nId,
|
||||||
ISlotInvalidator* _pInvalidator
|
FmTextControlShell* _pInvalidator
|
||||||
);
|
);
|
||||||
|
|
||||||
/// determines whether the feature we're responsible for is currently enabled
|
/// determines whether the feature we're responsible for is currently enabled
|
||||||
|
@@ -74,7 +74,6 @@ namespace svx
|
|||||||
};
|
};
|
||||||
|
|
||||||
class FmTextControlShell :public IFocusObserver
|
class FmTextControlShell :public IFocusObserver
|
||||||
,public ISlotInvalidator
|
|
||||||
,public IContextRequestObserver
|
,public IContextRequestObserver
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
@@ -136,6 +135,8 @@ namespace svx
|
|||||||
*/
|
*/
|
||||||
void designModeChanged( bool _bNewDesignMode );
|
void designModeChanged( bool _bNewDesignMode );
|
||||||
|
|
||||||
|
void Invalidate( SfxSlotId _nSlot );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// IFocusObserver
|
// IFocusObserver
|
||||||
virtual void focusGained( const css::awt::FocusEvent& _rEvent ) override;
|
virtual void focusGained( const css::awt::FocusEvent& _rEvent ) override;
|
||||||
@@ -144,10 +145,6 @@ namespace svx
|
|||||||
// IContextRequestObserver
|
// IContextRequestObserver
|
||||||
virtual void contextMenuRequested( const css::awt::MouseEvent& _rEvent ) override;
|
virtual void contextMenuRequested( const css::awt::MouseEvent& _rEvent ) override;
|
||||||
|
|
||||||
// ISlotInvalidator
|
|
||||||
virtual void Invalidate( SfxSlotId _nSlot ) override;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
enum AttributeSet { eCharAttribs, eParaAttribs };
|
enum AttributeSet { eCharAttribs, eParaAttribs };
|
||||||
void executeAttributeDialog( AttributeSet _eSet, SfxRequest& _rReq );
|
void executeAttributeDialog( AttributeSet _eSet, SfxRequest& _rReq );
|
||||||
void executeSelectAll( );
|
void executeSelectAll( );
|
||||||
|
Reference in New Issue
Block a user