LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
FmFormShell Class Referencefinal

#include <fmshell.hxx>

Inheritance diagram for FmFormShell:
Collaboration diagram for FmFormShell:

Public Member Functions

 FmFormShell (SfxViewShell *pParent, FmFormView *pView=nullptr)
virtual ~FmFormShell () override
void Execute (SfxRequest &)
void GetState (SfxItemSet &)
virtual bool HasUIFeature (SfxShellFeature nFeature) const override
void ExecuteTextAttribute (SfxRequest &)
void GetTextAttributeState (SfxItemSet &)
bool GetY2KState (sal_uInt16 &nReturn)
void SetY2KState (sal_uInt16 n)
void SetView (FmFormView *pView)
FmFormViewGetFormView () const
FmFormModelGetFormModel () const
FmFormPageGetCurPage () const
FmXFormShellGetImpl () const
bool PrepareClose (bool bUI=true)
bool IsActiveControl () const
void ForgetActiveControl ()
void SetControlActivationHandler (const Link< LinkParamNone *, void > &_rHdl)
virtual void Activate (bool bMDI) override
virtual void Deactivate (bool bMDI) override
SdrUnoObjGetFormControl (const css::uno::Reference< css::awt::XControlModel > &_rxModel, const SdrView &_rView, const OutputDevice &_rDevice, css::uno::Reference< css::awt::XControl > &_out_rxControl) const
void ToggleControlFocus (const SdrUnoObj &i_rNextCandidate, const SdrView &i_rView, const OutputDevice &i_rDevice) const
 puts the focus into the document window, if current a form control has the focus. More...
static ::std::unique_ptr< svx::ISdrObjectFilterCreateFocusableControlFilter (const SdrView &i_rView, const OutputDevice &i_rDevice)
virtual bool IsDesignMode () const override
void SetDesignMode (bool _bDesignMode)
- Public Member Functions inherited from SfxShell
virtual ~SfxShell () override
virtual SfxInterfaceGetInterface () const
void SetName (const OUString &rName)
const OUString & GetName () const
SfxViewShellGetViewShell () const
const SfxPoolItemGetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
const SfxPoolItemExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr)
void ExecuteSlot (SfxRequest &rReq, bool bAsync)
SfxItemPoolGetPool () const
void SetPool (SfxItemPool *pNewPool)
virtual SfxUndoManagerGetUndoManager ()
void SetUndoManager (SfxUndoManager *pNewUndoMgr)
SfxRepeatTarget * GetRepeatTarget () const
void SetRepeatTarget (SfxRepeatTarget *pTarget)
virtual void Invalidate (sal_uInt16 nId=0)
virtual bool IsDesignMode () const
bool IsActive () const
virtual void Activate (bool bMDI)
virtual void Deactivate (bool bMDI)
SfxDispatcherGetDispatcher () const
SfxViewFrameGetFrame () const
virtual bool HasUIFeature (SfxShellFeature nFeature) const
void UIFeatureChanged ()
const SfxPoolItemGetItem (sal_uInt16 nSlotId) const
const T * GetItem (TypedWhichId< T > nWhich) const
void PutItem (const SfxPoolItem &rItem)
void SetVerbs (const css::uno::Sequence< css::embed::VerbDescriptor > &aVerbs)
const css::uno::Sequence< css::embed::VerbDescriptor > & GetVerbs () const
void VerbExec (SfxRequest &)
SAL_DLLPRIVATE const SfxSlotGetVerbSlot_Impl (sal_uInt16 nId) const
virtual SfxObjectShellGetObjectShell ()
void SetDisableFlags (SfxDisableFlags nFlags)
SfxDisableFlags GetDisableFlags () const
virtual std::optional< SfxItemSetCreateItemSet (sal_uInt16 nId)
virtual void ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet)
void SetContextName (const OUString &rsContextName)
void BroadcastContextForActivation (const bool bIsActivated)
bool SetContextBroadcasterEnabled (const bool bIsEnabled)
SAL_DLLPRIVATE bool CanExecuteSlot_Impl (const SfxSlot &rSlot)
virtual bool IsConditionalFastCall (const SfxRequest &rReq)
SAL_DLLPRIVATE void DoActivate_Impl (SfxViewFrame *pFrame, bool bMDI)
SAL_DLLPRIVATE void DoDeactivate_Impl (SfxViewFrame const *pFrame, bool bMDI)

Static Public Member Functions

static css::uno::Reference< css::form::runtime::XFormController > GetFormController (const css::uno::Reference< css::form::XForm > &_rxForm, const SdrView &_rView, const OutputDevice &_rDevice)
- Static Public Member Functions inherited from SfxShell
static SfxInterfaceGetStaticInterface ()
static void EmptyExecStub (SfxShell *pShell, SfxRequest &)
static void EmptyStateStub (SfxShell *pShell, SfxItemSet &)
static void VerbState (SfxItemSet &)

Private Member Functions

void NotifyMarkListChanged (FmFormView *)
void GetFormState (SfxItemSet &rSet, sal_uInt16 nWhich)
void DetermineForms (bool bInvalidate)
void impl_setDesignMode (bool bDesign)

Static Private Member Functions

static void InitInterface_Impl ()
 SfxInterface initializer. More...

Private Attributes

rtl::Reference< FmXFormShellm_pImpl
sal_uInt16 m_nLastSlot
bool m_bDesignMode: 1
bool m_bHasForms: 1


class FmFormView
class FmXFormShell

Additional Inherited Members

- Protected Member Functions inherited from SfxShell
 SfxShell ()
 SfxShell (SfxViewShell *pViewSh)
void SetViewShell_Impl (SfxViewShell *pView)
SAL_DLLPRIVATE void Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId)
- Static Protected Member Functions inherited from SfxShell
static void HandleOpenXmlFilterSettings (SfxRequest &)

Detailed Description

Definition at line 73 of file fmshell.hxx.

Constructor & Destructor Documentation

◆ FmFormShell()

FmFormShell::FmFormShell ( SfxViewShell pParent,
FmFormView pView = nullptr 

◆ ~FmFormShell()

FmFormShell::~FmFormShell ( )

Definition at line 180 of file fmshell.cxx.

References m_pFormView, m_pImpl, and SetView().

Member Function Documentation

◆ Activate()

void FmFormShell::Activate ( bool  bMDI)

Reimplemented from SfxShell.

Definition at line 1195 of file fmshell.cxx.

References SfxShell::Activate(), GetImpl(), and m_pFormView.

◆ CreateFocusableControlFilter()

std::unique_ptr< svx::ISdrObjectFilter > FmFormShell::CreateFocusableControlFilter ( const SdrView i_rView,
const OutputDevice i_rDevice 

Definition at line 1328 of file fmshell.cxx.

References SdrMarkView::IsDesignMode().

◆ Deactivate()

void FmFormShell::Deactivate ( bool  bMDI)

Reimplemented from SfxShell.

Definition at line 1204 of file fmshell.cxx.

References SfxShell::Deactivate(), GetImpl(), and m_pFormView.

◆ DetermineForms()

void FmFormShell::DetermineForms ( bool  bInvalidate)

Definition at line 1170 of file fmshell.cxx.

References GetImpl(), m_bHasForms, and SfxShell::UIFeatureChanged().

◆ Execute()

void FmFormShell::Execute ( SfxRequest rReq)

Definition at line 321 of file fmshell.cxx.

References Any, SfxRequest::AppendItem(), SfxViewFrame::ChildWindowExecute(), svx::FormControllerHelper::commitCurrentControl(), svx::FormControllerHelper::commitCurrentRecord(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateFmInputRecordNoDialog(), DBG_ASSERT, SfxRequest::Done(), svx::FormControllerHelper::execute(), SfxDispatcher::Execute(), SfxDispatcher::ExecuteList(), FmForm, FormButton, FormCheckbox, FormCombobox, FormCurrencyField, FormDateField, FormEdit, FormFileControl, FormFixedText, FormFormattedField, FormGrid, FormGroupBox, FormImageButton, FormImageControl, FormListbox, FormNavigationBar, FormNumericField, FormPatternField, FormRadioButton, FormScrollbar, FormSpinButton, FormTimeField, FmFormView::GetActualOutDev(), SfxRequest::GetArg(), SfxRequest::GetArgs(), FmFormModel::GetAutoControlFocus(), SfxViewFrame::GetBindings(), svx::FormControllerHelper::getCursor(), SfxViewFrame::GetDispatcher(), GetFormModel(), GetFormView(), SfxRequest::GetFrameWeld(), GetImpl(), SfxItemSet::GetItemState(), SfxRequest::GetModifier(), FmFormModel::GetOpenInDesignMode(), OutputDevice::GetOwnerWindow(), SfxRequest::GetSlot(), CntInt32Item::GetValue(), SfxBoolItem::GetValue(), SfxViewShell::GetViewFrame(), SfxShell::GetViewShell(), SfxViewShell::GetWindow(), FmFormView::GrabFirstControlFocus(), vcl::Window::GrabFocus(), SfxViewFrame::HasChildWindow(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SfxBindings::Invalidate(), KEY_MOD1, m_bDesignMode, m_nLastSlot, m_pFormView, NONE, RET_OK, FmFormModel::SetAutoControlFocus(), SetDesignMode(), FmFormModel::SetOpenInDesignMode(), SfxViewFrame::ToggleChildWindow(), and xController.

◆ ExecuteTextAttribute()

void FmFormShell::ExecuteTextAttribute ( SfxRequest _rReq)

Definition at line 1213 of file fmshell.cxx.

References m_pImpl.

◆ ForgetActiveControl()

void FmFormShell::ForgetActiveControl ( )

Definition at line 1231 of file fmshell.cxx.

References m_pImpl.

◆ GetCurPage()

FmFormPage * FmFormShell::GetCurPage ( ) const

◆ GetFormControl()

SdrUnoObj * FmFormShell::GetFormControl ( const css::uno::Reference< css::awt::XControlModel > &  _rxModel,
const SdrView _rView,
const OutputDevice _rDevice,
css::uno::Reference< css::awt::XControl > &  _out_rxControl 
) const

◆ GetFormController()

Reference< runtime::XFormController > FmFormShell::GetFormController ( const css::uno::Reference< css::form::XForm > &  _rxForm,
const SdrView _rView,
const OutputDevice _rDevice 

Definition at line 1384 of file fmshell.cxx.

References FmFormView::GetFormController().

◆ GetFormModel()

FmFormModel * FmFormShell::GetFormModel ( ) const

◆ GetFormState()

void FmFormShell::GetFormState ( SfxItemSet rSet,
sal_uInt16  nWhich 

◆ GetFormView()

FmFormView * FmFormShell::GetFormView ( ) const

◆ GetImpl()

FmXFormShell * FmFormShell::GetImpl ( ) const

◆ GetState()

void FmFormShell::GetState ( SfxItemSet rSet)

◆ GetTextAttributeState()

void FmFormShell::GetTextAttributeState ( SfxItemSet _rSet)

Definition at line 1219 of file fmshell.cxx.

References m_pImpl.

◆ GetY2KState()

bool FmFormShell::GetY2KState ( sal_uInt16 &  nReturn)

Definition at line 1183 of file fmshell.cxx.

References GetImpl().

◆ HasUIFeature()

bool FmFormShell::HasUIFeature ( SfxShellFeature  nFeature) const

Reimplemented from SfxShell.

Definition at line 272 of file fmshell.cxx.

References GetImpl(), m_bDesignMode, m_bHasForms, m_pFormView, and m_pImpl.

◆ impl_setDesignMode()

void FmFormShell::impl_setDesignMode ( bool  bDesign)

◆ InitInterface_Impl()

void FmFormShell::InitInterface_Impl ( )

SfxInterface initializer.

Definition at line 134 of file fmshell.cxx.


◆ IsActiveControl()

bool FmFormShell::IsActiveControl ( ) const

Definition at line 1225 of file fmshell.cxx.

References m_pImpl.

◆ IsDesignMode()

virtual bool FmFormShell::IsDesignMode ( ) const

Reimplemented from SfxShell.

Definition at line 158 of file fmshell.hxx.

Referenced by FmFormView::ShowSdrPage().

◆ NotifyMarkListChanged()

void FmFormShell::NotifyMarkListChanged ( FmFormView pWhichView)

Definition at line 189 of file fmshell.cxx.

◆ PrepareClose()

bool FmFormShell::PrepareClose ( bool  bUI = true)

◆ SetControlActivationHandler()

void FmFormShell::SetControlActivationHandler ( const Link< LinkParamNone *, void > &  _rHdl)

Definition at line 1237 of file fmshell.cxx.

References m_pImpl.

◆ SetDesignMode()

void FmFormShell::SetDesignMode ( bool  _bDesignMode)

◆ SetView()

void FmFormShell::SetView ( FmFormView pView)

◆ SetY2KState()

void FmFormShell::SetY2KState ( sal_uInt16  n)

Definition at line 1189 of file fmshell.cxx.

References GetImpl(), and n.

◆ ToggleControlFocus()

void FmFormShell::ToggleControlFocus ( const SdrUnoObj i_rNextCandidate,
const SdrView i_rView,
const OutputDevice i_rDevice 
) const

puts the focus into the document window, if current a form control has the focus.

Otherwise, moves the focus to the control belonging to the given SdrUnoObj.

Definition at line 1267 of file fmshell.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, GetFormControl(), GetImpl(), OutputDevice::GetOwnerWindow(), SdrUnoObj::GetUnoControlModel(), and vcl::Window::GrabFocus().

Friends And Related Function Documentation

◆ FmFormView

friend class FmFormView

Definition at line 75 of file fmshell.hxx.

◆ FmXFormShell

friend class FmXFormShell

Definition at line 76 of file fmshell.hxx.

Member Data Documentation

◆ m_bDesignMode

bool FmFormShell::m_bDesignMode

◆ m_bHasForms

bool FmFormShell::m_bHasForms

Definition at line 84 of file fmshell.hxx.

Referenced by DetermineForms(), GetState(), HasUIFeature(), and impl_setDesignMode().

◆ m_nLastSlot

sal_uInt16 FmFormShell::m_nLastSlot

Definition at line 82 of file fmshell.hxx.

Referenced by Execute(), GetState(), and impl_setDesignMode().

◆ m_pFormModel

FmFormModel* FmFormShell::m_pFormModel

Definition at line 80 of file fmshell.hxx.

Referenced by SetView().

◆ m_pFormView

FmFormView* FmFormShell::m_pFormView

◆ m_pImpl

rtl::Reference<FmXFormShell> FmFormShell::m_pImpl

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