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)
SfxRepeatTargetGetRepeatTarget () const
void SetRepeatTarget (SfxRepeatTarget *pTarget)
virtual void Invalidate (sal_uInt16 nId=0)
bool IsActive () const
SfxDispatcherGetDispatcher () const
SfxViewFrameGetFrame () 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 ( SfxViewShell pParent,
FmFormView pView = nullptr 
FmFormShell::~FmFormShell ( )

Definition at line 180 of file fmshell.cxx.

References m_pFormView, m_pImpl, and SetView().

Member Function Documentation

void FmFormShell::Activate ( bool  bMDI)

Reimplemented from SfxShell.

Definition at line 1196 of file fmshell.cxx.

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

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

Definition at line 1329 of file fmshell.cxx.

References SdrMarkView::IsDesignMode().

void FmFormShell::Deactivate ( bool  bMDI)

Reimplemented from SfxShell.

Definition at line 1205 of file fmshell.cxx.

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

void FmFormShell::DetermineForms ( bool  bInvalidate)

Definition at line 1171 of file fmshell.cxx.

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

void FmFormShell::Execute ( SfxRequest rReq)

Definition at line 322 of file fmshell.cxx.

References Any, SfxRequest::AppendItem(), SfxViewFrame::ChildWindowExecute(), svx::FormControllerHelper::commitCurrentControl(), svx::FormControllerHelper::commitCurrentRecord(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateFmInputRecordNoDialog(), DBG_ASSERT, SfxRequest::Done(), VclAbstractDialog::Execute(), SfxDispatcher::Execute(), svx::FormControllerHelper::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(), AbstractFmInputRecordNoDialog::GetValue(), SfxViewShell::GetViewFrame(), SfxShell::GetViewShell(), SfxViewShell::GetWindow(), FmFormView::GrabFirstControlFocus(), vcl::Window::GrabFocus(), SfxViewFrame::HasChildWindow(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), SfxBindings::Invalidate(), KEY_MOD1, m_bDesignMode, m_nLastSlot, m_pFormView, NONE, RET_OK, FmFormModel::SetAutoControlFocus(), SetDesignMode(), FmFormModel::SetOpenInDesignMode(), AbstractFmInputRecordNoDialog::SetValue(), SfxViewFrame::ToggleChildWindow(), and xController.

void FmFormShell::ExecuteTextAttribute ( SfxRequest _rReq)

Definition at line 1214 of file fmshell.cxx.

References m_pImpl.

void FmFormShell::ForgetActiveControl ( )

Definition at line 1232 of file fmshell.cxx.

References m_pImpl.

FmFormPage * FmFormShell::GetCurPage ( ) const
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
Reference< runtime::XFormController > FmFormShell::GetFormController ( const css::uno::Reference< css::form::XForm > &  _rxForm,
const SdrView _rView,
const OutputDevice _rDevice 

Definition at line 1385 of file fmshell.cxx.

References FmFormView::GetFormController().

FmFormModel* FmFormShell::GetFormModel ( ) const
void FmFormShell::GetFormState ( SfxItemSet rSet,
sal_uInt16  nWhich 
FmFormView* FmFormShell::GetFormView ( ) const
FmXFormShell* FmFormShell::GetImpl ( ) const
void FmFormShell::GetState ( SfxItemSet rSet)
void FmFormShell::GetTextAttributeState ( SfxItemSet _rSet)

Definition at line 1220 of file fmshell.cxx.

References m_pImpl.

bool FmFormShell::GetY2KState ( sal_uInt16 &  nReturn)

Definition at line 1184 of file fmshell.cxx.

References GetImpl().

bool FmFormShell::HasUIFeature ( SfxShellFeature  nFeature) const

Reimplemented from SfxShell.

Definition at line 273 of file fmshell.cxx.

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

void FmFormShell::impl_setDesignMode ( bool  bDesign)
void FmFormShell::InitInterface_Impl ( )

SfxInterface initializer.

Definition at line 134 of file fmshell.cxx.


bool FmFormShell::IsActiveControl ( ) const

Definition at line 1226 of file fmshell.cxx.

References m_pImpl.

virtual bool FmFormShell::IsDesignMode ( ) const

Reimplemented from SfxShell.

Definition at line 158 of file fmshell.hxx.

Referenced by FmFormView::ShowSdrPage().

void FmFormShell::NotifyMarkListChanged ( FmFormView pWhichView)

Definition at line 189 of file fmshell.cxx.

bool FmFormShell::PrepareClose ( bool  bUI = true)
void FmFormShell::SetControlActivationHandler ( const Link< LinkParamNone *, void > &  _rHdl)

Definition at line 1238 of file fmshell.cxx.

References m_pImpl.

void FmFormShell::SetDesignMode ( bool  _bDesignMode)
void FmFormShell::SetView ( FmFormView pView)
void FmFormShell::SetY2KState ( sal_uInt16  n)

Definition at line 1190 of file fmshell.cxx.

References GetImpl().

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 1268 of file fmshell.cxx.

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

Friends And Related Function Documentation

friend class FmFormView

Definition at line 75 of file fmshell.hxx.

friend class FmXFormShell

Definition at line 76 of file fmshell.hxx.

Member Data Documentation

bool FmFormShell::m_bDesignMode
bool FmFormShell::m_bHasForms

Definition at line 84 of file fmshell.hxx.

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

sal_uInt16 FmFormShell::m_nLastSlot

Definition at line 82 of file fmshell.hxx.

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

FmFormModel* FmFormShell::m_pFormModel

Definition at line 80 of file fmshell.hxx.

Referenced by SetView().

FmFormView* FmFormShell::m_pFormView
rtl::Reference<FmXFormShell> FmFormShell::m_pImpl

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