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:
[legend]
Collaboration diagram for FmFormShell:
[legend]

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, 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
 
void CallExec (SfxExecFunc pFunc, SfxRequest &rReq)
 
void CallState (SfxStateFunc pFunc, SfxItemSet &rSet)
 
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::unique_ptr< 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
 
FmFormViewm_pFormView
 
FmFormModelm_pFormModel
 
sal_uInt16 m_nLastSlot
 
bool m_bDesignMode: 1
 
bool m_bHasForms: 1
 

Friends

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 ( )
overridevirtual

Definition at line 199 of file fmshell.cxx.

References m_pFormView, m_pImpl, and SetView().

Member Function Documentation

void FmFormShell::Activate ( bool  bMDI)
overridevirtual

Reimplemented from SfxShell.

Definition at line 1215 of file fmshell.cxx.

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

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

Definition at line 1348 of file fmshell.cxx.

References SdrMarkView::IsDesignMode().

void FmFormShell::Deactivate ( bool  bMDI)
overridevirtual

Reimplemented from SfxShell.

Definition at line 1224 of file fmshell.cxx.

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

void FmFormShell::DetermineForms ( bool  bInvalidate)
private
void FmFormShell::Execute ( SfxRequest rReq)

Definition at line 341 of file fmshell.cxx.

References SfxRequest::AppendItem(), SfxViewFrame::ChildWindowExecute(), svx::FormControllerHelper::commitCurrentControl(), svx::FormControllerHelper::commitCurrentRecord(), SvxAbstractDialogFactory::Create(), FmXFormShell::CreateExternalView_Lock(), SvxAbstractDialogFactory::CreateFmInputRecordNoDialog(), DBG_ASSERT, SfxRequest::Done(), VclAbstractDialog::Execute(), SfxDispatcher::Execute(), svx::FormControllerHelper::execute(), FmXFormShell::executeControlConversionSlot_Lock(), FmXFormShell::ExecuteFormSlot_Lock(), SfxDispatcher::ExecuteList(), FmXFormShell::ExecuteSearch_Lock(), FmXFormShell::ExecuteTabOrderDialog_Lock(), FmForm, FmXFormShell::getActiveControllerFeatures_Lock(), FmFormView::GetActualOutDev(), SfxRequest::GetArg(), SfxRequest::GetArgs(), FmFormModel::GetAutoControlFocus(), SfxViewFrame::GetBindings(), svx::FormControllerHelper::getCursor(), SfxViewFrame::GetDispatcher(), GetFormModel(), GetFormView(), SfxRequest::GetFrameWeld(), GetImpl(), SfxItemSet::GetItemState(), SfxRequest::GetModifier(), FmXFormShell::getNavControllerFeatures_Lock(), FmFormModel::GetOpenInDesignMode(), SfxRequest::GetSlot(), CntInt32Item::GetValue(), SfxBoolItem::GetValue(), AbstractFmInputRecordNoDialog::GetValue(), SfxViewShell::GetViewFrame(), SfxShell::GetViewShell(), SfxViewShell::GetWindow(), FmFormView::GrabFirstControlFocus(), vcl::Window::GrabFocus(), SfxViewFrame::HasChildWindow(), FmXFormShell::HasControlFocus_Lock(), SfxBindings::Invalidate(), KEY_MOD1, m_bDesignMode, m_nLastSlot, m_pFormView, makeAny(), OBJ_FM_BUTTON, OBJ_FM_CHECKBOX, OBJ_FM_COMBOBOX, OBJ_FM_CURRENCYFIELD, OBJ_FM_DATEFIELD, OBJ_FM_EDIT, OBJ_FM_FILECONTROL, OBJ_FM_FIXEDTEXT, OBJ_FM_FORMATTEDFIELD, OBJ_FM_GRID, OBJ_FM_GROUPBOX, OBJ_FM_IMAGEBUTTON, OBJ_FM_IMAGECONTROL, OBJ_FM_LISTBOX, OBJ_FM_NAVIGATIONBAR, OBJ_FM_NUMERICFIELD, OBJ_FM_PATTERNFIELD, OBJ_FM_RADIOBUTTON, OBJ_FM_SCROLLBAR, OBJ_FM_SPINBUTTON, OBJ_FM_TIMEFIELD, RET_OK, FmXFormShell::selectLastMarkedControls_Lock(), FmFormModel::SetAutoControlFocus(), FmXFormShell::setCurrentSelection_Lock(), SetDesignMode(), FmFormModel::SetOpenInDesignMode(), FmXFormShell::SetSelection_Lock(), AbstractFmInputRecordNoDialog::SetValue(), FmXFormShell::SetWizardUsing_Lock(), FmXFormShell::ShowSelectionProperties_Lock(), FmXFormShell::SlotToIdent(), FmXFormShell::startFiltering_Lock(), FmXFormShell::stopFiltering_Lock(), SfxViewFrame::ToggleChildWindow(), and xController.

void FmFormShell::ExecuteTextAttribute ( SfxRequest _rReq)

Definition at line 1233 of file fmshell.cxx.

References m_pImpl.

void FmFormShell::ForgetActiveControl ( )

Definition at line 1251 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 
)
static

Definition at line 1404 of file fmshell.cxx.

References FmFormView::GetFormController().

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

Definition at line 1239 of file fmshell.cxx.

References m_pImpl.

bool FmFormShell::GetY2KState ( sal_uInt16 &  nReturn)

Definition at line 1203 of file fmshell.cxx.

References GetImpl(), and FmXFormShell::GetY2KState_Lock().

bool FmFormShell::HasUIFeature ( SfxShellFeature  nFeature) const
overridevirtual
void FmFormShell::impl_setDesignMode ( bool  bDesign)
private
void FmFormShell::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

Definition at line 153 of file fmshell.cxx.

References SFX_OBJECTBAR_NAVIGATION, and SFX_OBJECTBAR_OBJECT.

bool FmFormShell::IsActiveControl ( ) const

Definition at line 1245 of file fmshell.cxx.

References m_pImpl.

virtual bool FmFormShell::IsDesignMode ( ) const
inlineoverridevirtual
void FmFormShell::NotifyMarkListChanged ( FmFormView pWhichView)
private

Definition at line 208 of file fmshell.cxx.

Referenced by FmXFormShell::selectionChanged(), and FmXFormShell::SetSelection_Lock().

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

Definition at line 1257 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 1209 of file fmshell.cxx.

References GetImpl(), and FmXFormShell::SetY2KState_Lock().

void FmFormShell::ToggleControlFocus ( const SdrUnoObj i_rNextCandidate,
const SdrView i_rView,
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 1287 of file fmshell.cxx.

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

Friends And Related Function Documentation

friend class FmFormView
friend

Definition at line 75 of file fmshell.hxx.

friend class FmXFormShell
friend

Definition at line 76 of file fmshell.hxx.

Member Data Documentation

bool FmFormShell::m_bDesignMode
private
bool FmFormShell::m_bHasForms
private

Definition at line 84 of file fmshell.hxx.

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

sal_uInt16 FmFormShell::m_nLastSlot
private

Definition at line 82 of file fmshell.hxx.

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

FmFormModel* FmFormShell::m_pFormModel
private

Definition at line 80 of file fmshell.hxx.

Referenced by SetView().

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

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