LibreOffice Module svx (master)  1
Public Member Functions | Protected Types | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
svx::FmTextControlShell Class Reference

#include <fmtextcontrolshell.hxx>

Inheritance diagram for svx::FmTextControlShell:
[legend]
Collaboration diagram for svx::FmTextControlShell:
[legend]

Public Member Functions

 FmTextControlShell (SfxViewFrame *_pFrame)
 
virtual ~FmTextControlShell ()
 
void dispose ()
 
void ExecuteTextAttribute (SfxRequest &_rReq)
 
void GetTextAttributeState (SfxItemSet &_rSet)
 
bool IsActiveControl (bool _bCountRichTextOnly=false) const
 
void ForgetActiveControl ()
 
void SetControlActivationHandler (const Link< LinkParamNone *, void > &_rHdl)
 
void formActivated (const css::uno::Reference< css::form::runtime::XFormController > &_rxController)
 to be called when a form in our document has been activated More...
 
void formDeactivated (const css::uno::Reference< css::form::runtime::XFormController > &_rxController)
 to be called when a form in our document has been deactivated More...
 
void designModeChanged ()
 notifies the instance that the design mode has changed More...
 
void Invalidate (SfxSlotId _nSlot)
 

Protected Types

enum  AttributeSet {
  eCharAttribs,
  eParaAttribs
}
 

Protected Member Functions

virtual void focusGained (const css::awt::FocusEvent &_rEvent) override
 
virtual void focusLost (const css::awt::FocusEvent &_rEvent) override
 
virtual void contextMenuRequested () override
 
void executeAttributeDialog (AttributeSet _eSet, SfxRequest &_rReq)
 
void executeSelectAll ()
 
void executeClipboardSlot (SfxSlotId _nSlot)
 
- Protected Member Functions inherited from svx::IFocusObserver
 ~IFocusObserver ()
 
- Protected Member Functions inherited from svx::IContextRequestObserver
 ~IContextRequestObserver ()
 

Private Types

typedef rtl::Reference< FmFocusListenerAdapterFocusListenerAdapter
 
typedef ::std::vector< FocusListenerAdapterFocusListenerAdapters
 
typedef rtl::Reference< FmMouseListenerAdapterMouseListenerAdapter
 
typedef rtl::Reference< FmTextControlFeatureControlFeature
 
typedef ::std::map< SfxSlotId, ControlFeatureControlFeatures
 

Private Member Functions

bool isControllerListening () const
 
FmTextControlFeatureimplGetFeatureDispatcher (const css::uno::Reference< css::frame::XDispatchProvider > &_rxProvider, SfxApplication const *_pApplication, SfxSlotId _nSlot)
 
void fillFeatureDispatchers (const css::uno::Reference< css::awt::XControl > &_rxControl, SfxSlotId *_pZeroTerminatedSlots, ControlFeatures &_rDispatchers)
 
void controlActivated (const css::uno::Reference< css::awt::XControl > &_rxControl)
 to be called when a control has been activated More...
 
void controlDeactivated ()
 to be called when the currently active control has been deactivated More...
 
void implClearActiveControlRef ()
 
void startControllerListening (const css::uno::Reference< css::form::runtime::XFormController > &_rxController)
 starts listening at all controls of the given controller for focus events we don't have an active controller currently More...
 
void stopControllerListening ()
 stops listening at the active controller we have an active controller currently More...
 
 DECL_LINK (OnInvalidateClipboard, Timer *, void)
 

Static Private Member Functions

static void transferFeatureStatesToItemSet (ControlFeatures &_rDispatchers, SfxAllItemSet &_rSet, bool _bTranslateLatin)
 creates SfxPoolItes for all features in the given set, and puts them into the given SfxAllItemSet More...
 

Private Attributes

css::uno::Reference< css::util::XURLTransformer > m_xURLTransformer
 
css::uno::Reference< css::awt::XControl > m_xActiveControl
 
css::uno::Reference< css::awt::XTextComponent > m_xActiveTextComponent
 
css::uno::Reference< css::form::runtime::XFormController > m_xActiveController
 
bool m_bActiveControl
 
bool m_bActiveControlIsReadOnly
 
bool m_bActiveControlIsRichText
 
FocusListenerAdapters m_aControlObservers
 
MouseListenerAdapter m_aContextMenuObserver
 
ControlFeatures m_aControlFeatures
 
SfxViewFramem_pViewFrame
 
SfxBindingsm_rBindings
 
Link< LinkParamNone *, voidm_aControlActivationHandler
 
AutoTimer m_aClipboardInvalidation
 
bool m_bNeedClipboardInvalidation
 

Detailed Description

Definition at line 75 of file fmtextcontrolshell.hxx.

Member Typedef Documentation

Definition at line 102 of file fmtextcontrolshell.hxx.

Definition at line 103 of file fmtextcontrolshell.hxx.

Definition at line 94 of file fmtextcontrolshell.hxx.

Definition at line 95 of file fmtextcontrolshell.hxx.

Definition at line 98 of file fmtextcontrolshell.hxx.

Member Enumeration Documentation

Enumerator
eCharAttribs 
eParaAttribs 

Definition at line 147 of file fmtextcontrolshell.hxx.

Constructor & Destructor Documentation

svx::FmTextControlShell::FmTextControlShell ( SfxViewFrame _pFrame)
svx::FmTextControlShell::~FmTextControlShell ( )
virtual

Definition at line 537 of file fmtextcontrolshell.cxx.

References dispose().

Member Function Documentation

void svx::FmTextControlShell::contextMenuRequested ( )
overrideprotectedvirtual
void svx::FmTextControlShell::controlActivated ( const css::uno::Reference< css::awt::XControl > &  _rxControl)
private
void svx::FmTextControlShell::controlDeactivated ( )
private

to be called when the currently active control has been deactivated

Definition at line 1138 of file fmtextcontrolshell.cxx.

References DBG_ASSERT, SfxBindings::Invalidate(), IsActiveControl(), m_bActiveControl, and m_rBindings.

Referenced by dispose(), and formDeactivated().

svx::FmTextControlShell::DECL_LINK ( OnInvalidateClipboard  ,
Timer ,
void   
)
private
void svx::FmTextControlShell::designModeChanged ( )

notifies the instance that the design mode has changed

Definition at line 1017 of file fmtextcontrolshell.cxx.

References SfxBindings::Invalidate(), and m_rBindings.

void svx::FmTextControlShell::dispose ( void  )
void svx::FmTextControlShell::executeAttributeDialog ( AttributeSet  _eSet,
SfxRequest _rReq 
)
protected
void svx::FmTextControlShell::executeClipboardSlot ( SfxSlotId  _nSlot)
protected
void svx::FmTextControlShell::executeSelectAll ( )
protected

Definition at line 733 of file fmtextcontrolshell.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and m_xActiveTextComponent.

Referenced by ExecuteTextAttribute().

void svx::FmTextControlShell::ExecuteTextAttribute ( SfxRequest _rReq)
void svx::FmTextControlShell::fillFeatureDispatchers ( const css::uno::Reference< css::awt::XControl > &  _rxControl,
SfxSlotId _pZeroTerminatedSlots,
ControlFeatures _rDispatchers 
)
private
void svx::FmTextControlShell::focusGained ( const css::awt::FocusEvent &  _rEvent)
overrideprotectedvirtual

Implements svx::IFocusObserver.

Definition at line 1279 of file fmtextcontrolshell.cxx.

References controlActivated(), DBG_ASSERT, and SAL_INFO.

void svx::FmTextControlShell::focusLost ( const css::awt::FocusEvent &  _rEvent)
overrideprotectedvirtual

Implements svx::IFocusObserver.

Definition at line 1293 of file fmtextcontrolshell.cxx.

References m_bActiveControl, and SAL_INFO.

void svx::FmTextControlShell::ForgetActiveControl ( )

Definition at line 1305 of file fmtextcontrolshell.cxx.

References implClearActiveControlRef().

void svx::FmTextControlShell::formActivated ( const css::uno::Reference< css::form::runtime::XFormController > &  _rxController)

to be called when a form in our document has been activated

Definition at line 1023 of file fmtextcontrolshell.cxx.

References controlActivated(), DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, Exception, m_xActiveController, SAL_INFO, and startControllerListening().

void svx::FmTextControlShell::formDeactivated ( const css::uno::Reference< css::form::runtime::XFormController > &  _rxController)

to be called when a form in our document has been deactivated

Definition at line 1049 of file fmtextcontrolshell.cxx.

References controlDeactivated(), IsActiveControl(), isControllerListening(), SAL_INFO, and stopControllerListening().

void svx::FmTextControlShell::GetTextAttributeState ( SfxItemSet _rSet)
void svx::FmTextControlShell::implClearActiveControlRef ( )
private
FmTextControlFeature * svx::FmTextControlShell::implGetFeatureDispatcher ( const css::uno::Reference< css::frame::XDispatchProvider > &  _rxProvider,
SfxApplication const *  _pApplication,
SfxSlotId  _nSlot 
)
private
void svx::FmTextControlShell::Invalidate ( SfxSlotId  _nSlot)
bool svx::FmTextControlShell::IsActiveControl ( bool  _bCountRichTextOnly = false) const
bool svx::FmTextControlShell::isControllerListening ( ) const
inlineprivate
void svx::FmTextControlShell::SetControlActivationHandler ( const Link< LinkParamNone *, void > &  _rHdl)
inline

Definition at line 124 of file fmtextcontrolshell.hxx.

void svx::FmTextControlShell::startControllerListening ( const css::uno::Reference< css::form::runtime::XFormController > &  _rxController)
private

starts listening at all controls of the given controller for focus events we don't have an active controller currently

Definition at line 1060 of file fmtextcontrolshell.cxx.

References DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, Exception, isControllerListening(), m_aControlObservers, m_xActiveController, and stopControllerListening().

Referenced by formActivated().

void svx::FmTextControlShell::stopControllerListening ( )
private

stops listening at the active controller we have an active controller currently

Definition at line 1090 of file fmtextcontrolshell.cxx.

References isControllerListening(), m_aControlObservers, and m_xActiveController.

Referenced by dispose(), formDeactivated(), and startControllerListening().

void svx::FmTextControlShell::transferFeatureStatesToItemSet ( ControlFeatures _rDispatchers,
SfxAllItemSet _rSet,
bool  _bTranslateLatin 
)
staticprivate

creates SfxPoolItes for all features in the given set, and puts them into the given SfxAllItemSet

Definition at line 556 of file fmtextcontrolshell.cxx.

References SfxItemSet::GetPool(), SfxItemPool::GetWhich(), SfxItemPool::IsInRange(), SAL_INFO, SAL_WARN, SfxGetpApp(), and sMessage.

Referenced by executeAttributeDialog().

Member Data Documentation

AutoTimer svx::FmTextControlShell::m_aClipboardInvalidation
private
MouseListenerAdapter svx::FmTextControlShell::m_aContextMenuObserver
private

Definition at line 99 of file fmtextcontrolshell.hxx.

Referenced by controlActivated(), and implClearActiveControlRef().

Link<LinkParamNone*,void> svx::FmTextControlShell::m_aControlActivationHandler
private

Definition at line 109 of file fmtextcontrolshell.hxx.

Referenced by controlActivated().

ControlFeatures svx::FmTextControlShell::m_aControlFeatures
private
FocusListenerAdapters svx::FmTextControlShell::m_aControlObservers
private

Definition at line 96 of file fmtextcontrolshell.hxx.

Referenced by startControllerListening(), and stopControllerListening().

bool svx::FmTextControlShell::m_bActiveControl
private
bool svx::FmTextControlShell::m_bActiveControlIsReadOnly
private
bool svx::FmTextControlShell::m_bActiveControlIsRichText
private
bool svx::FmTextControlShell::m_bNeedClipboardInvalidation
private

Definition at line 111 of file fmtextcontrolshell.hxx.

Referenced by controlActivated(), and GetTextAttributeState().

SfxViewFrame* svx::FmTextControlShell::m_pViewFrame
private

Definition at line 106 of file fmtextcontrolshell.hxx.

Referenced by controlActivated(), and executeAttributeDialog().

SfxBindings& svx::FmTextControlShell::m_rBindings
private
css::uno::Reference< css::awt::XControl > svx::FmTextControlShell::m_xActiveControl
private
css::uno::Reference< css::form::runtime::XFormController > svx::FmTextControlShell::m_xActiveController
private
css::uno::Reference< css::awt::XTextComponent > svx::FmTextControlShell::m_xActiveTextComponent
private
css::uno::Reference< css::util::XURLTransformer > svx::FmTextControlShell::m_xURLTransformer
private

Definition at line 79 of file fmtextcontrolshell.hxx.

Referenced by implGetFeatureDispatcher().


The documentation for this class was generated from the following files: