LibreOffice Module svx (master) 1
|
#include <fmshell.hxx>
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) |
FmFormView * | GetFormView () const |
FmFormModel * | GetFormModel () const |
FmFormPage * | GetCurPage () const |
FmXFormShell * | GetImpl () 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 |
SdrUnoObj * | GetFormControl (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::ISdrObjectFilter > | CreateFocusableControlFilter (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 SfxInterface * | GetInterface () const |
void | SetName (const OUString &rName) |
const OUString & | GetName () const |
SfxViewShell * | GetViewShell () const |
const SfxPoolItem * | GetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr) |
const SfxPoolItem * | ExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr) |
void | ExecuteSlot (SfxRequest &rReq, bool bAsync) |
SfxItemPool & | GetPool () const |
void | SetPool (SfxItemPool *pNewPool) |
virtual SfxUndoManager * | GetUndoManager () |
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) |
SfxDispatcher * | GetDispatcher () const |
SfxViewFrame * | GetFrame () const |
virtual bool | HasUIFeature (SfxShellFeature nFeature) const |
void | UIFeatureChanged () |
const SfxPoolItem * | GetItem (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 SfxSlot * | GetVerbSlot_Impl (sal_uInt16 nId) const |
virtual SfxObjectShell * | GetObjectShell () |
void | SetDisableFlags (SfxDisableFlags nFlags) |
SfxDisableFlags | GetDisableFlags () const |
virtual std::optional< SfxItemSet > | CreateItemSet (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 SfxInterface * | GetStaticInterface () |
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< FmXFormShell > | m_pImpl |
FmFormView * | m_pFormView |
FmFormModel * | m_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 &) |
Definition at line 73 of file fmshell.hxx.
FmFormShell::FmFormShell | ( | SfxViewShell * | pParent, |
FmFormView * | pView = nullptr |
||
) |
Definition at line 164 of file fmshell.cxx.
References SfxShell::GetPool(), m_pFormView, m_pImpl, SfxShell::SetName(), SfxShell::SetPool(), SetView(), and SfxGetpApp().
|
overridevirtual |
Definition at line 180 of file fmshell.cxx.
References m_pFormView, m_pImpl, and SetView().
|
overridevirtual |
Reimplemented from SfxShell.
Definition at line 1195 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 1328 of file fmshell.cxx.
References SdrMarkView::IsDesignMode().
|
overridevirtual |
Reimplemented from SfxShell.
Definition at line 1204 of file fmshell.cxx.
References SfxShell::Deactivate(), GetImpl(), and m_pFormView.
|
private |
Definition at line 1170 of file fmshell.cxx.
References GetImpl(), m_bHasForms, and SfxShell::UIFeatureChanged().
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.
void FmFormShell::ExecuteTextAttribute | ( | SfxRequest & | _rReq | ) |
Definition at line 1213 of file fmshell.cxx.
References m_pImpl.
void FmFormShell::ForgetActiveControl | ( | ) |
Definition at line 1231 of file fmshell.cxx.
References m_pImpl.
FmFormPage * FmFormShell::GetCurPage | ( | ) | const |
Definition at line 1131 of file fmshell.cxx.
References SdrPageView::GetPage(), SdrPaintView::GetSdrPageView(), and m_pFormView.
Referenced by svxform::NavigatorTreeModel::GetForms(), FmPropBrw::impl_createPropertyBrowser_throw(), FmXFormView::restoreMarkList(), svxform::NavigatorTree::UpdateContent(), and svxform::NavigatorTreeModel::UpdateContent().
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 |
Definition at line 1339 of file fmshell.cxx.
References GetFormModel(), SdrPageView::GetPage(), SdrModel::GetPage(), SdrModel::GetPageCount(), SdrPaintView::GetSdrPageView(), and SdrUnoObj::GetUnoControl().
Referenced by ToggleControlFocus().
|
static |
Definition at line 1384 of file fmshell.cxx.
References FmFormView::GetFormController().
|
inline |
Definition at line 116 of file fmshell.hxx.
Referenced by svxform::NavigatorTree::DeleteSelection(), Execute(), GetFormControl(), GetState(), svxform::IMPL_LINK(), svxform::NavigatorTree::implExecuteDataTransfer(), SetDesignMode(), svxform::NavigatorTreeModel::SetModified(), FmXFormView::startMarkListWatching(), svxform::NavigatorTreeModel::UpdateContent(), and svxform::NavigatorTreeModel::~NavigatorTreeModel().
|
private |
Definition at line 1031 of file fmshell.cxx.
References SfxItemSet::DisableItem(), Exception, FM_PROP_ROWCOUNT, GetImpl(), isRowSetAlive(), m_bDesignMode, m_pFormView, nCount, SfxItemSet::Put(), rSet, and TOOLS_WARN_EXCEPTION.
Referenced by GetState().
|
inline |
Definition at line 115 of file fmshell.hxx.
Referenced by svxform::NavigatorTree::DeleteSelection(), Execute(), FmPropBrw::impl_createPropertyBrowser_throw(), svxform::NavigatorTree::implExecuteDataTransfer(), svxform::NavigatorTree::MarkViewObj(), svxform::NavigatorTree::ShowSelectionProperties(), svxform::NavigatorTree::SynchronizeSelection(), and svxform::NavigatorTree::UnmarkAllViewObj().
|
inline |
Definition at line 118 of file fmshell.hxx.
References m_pImpl.
Referenced by Activate(), FmFormView::ChangeDesignMode(), FmXFormView::Deactivate(), Deactivate(), svxform::NavigatorTree::DeleteSelection(), DetermineForms(), Execute(), FmXFormView::formActivated(), FmXFormView::formDeactivated(), GetFormState(), GetState(), GetY2KState(), HasUIFeature(), FmFormView::HideSdrPage(), FmXFormView::impl_getDocumentType(), svxform::IMPL_LINK(), impl_setDesignMode(), svxform::NavigatorTree::implExecuteDataTransfer(), FmFormView::KeyInput(), FmFormView::MarkListHasChanged(), FmFormView::MouseButtonDown(), svxform::NavigatorTree::NewForm(), FmXFormView::onCreatedFormObject(), PrepareClose(), svxform::NavigatorTreeModel::Remove(), SetView(), SetY2KState(), FmFormView::ShowSdrPage(), svxform::NavigatorTree::ShowSelectionProperties(), FmPropBrw::StateChangedAtToolBoxControl(), svxform::NavigatorTree::SynchronizeMarkList(), ToggleControlFocus(), FmFieldWin::UpdateContent(), and svxform::FmFilterNavigatorWin::UpdateContent().
void FmFormShell::GetState | ( | SfxItemSet & | rSet | ) |
Definition at line 779 of file fmshell.cxx.
References SvtModuleOptions::DATABASE, SfxItemSet::DisableItem(), SfxWhichIter::FirstWhich(), SdrPaintView::GetActiveLayer(), GetFormModel(), GetFormState(), GetImpl(), SdrPaintView::GetSdrPageView(), SfxShell::GetViewShell(), SdrPageView::IsLayerLocked(), m_bDesignMode, m_bHasForms, m_nLastSlot, m_pFormView, SfxWhichIter::NextWhich(), SfxItemSet::Put(), rSet, SfxShell::SfxObjectItem, and u.
void FmFormShell::GetTextAttributeState | ( | SfxItemSet & | _rSet | ) |
Definition at line 1219 of file fmshell.cxx.
References m_pImpl.
bool FmFormShell::GetY2KState | ( | sal_uInt16 & | nReturn | ) |
Definition at line 1183 of file fmshell.cxx.
References GetImpl().
|
overridevirtual |
Reimplemented from SfxShell.
Definition at line 272 of file fmshell.cxx.
References GetImpl(), m_bDesignMode, m_bHasForms, m_pFormView, and m_pImpl.
|
private |
Definition at line 252 of file fmshell.cxx.
References bDesign, ControllerSlotMap, SfxViewFrame::GetBindings(), GetImpl(), SfxViewShell::GetViewFrame(), SfxShell::GetViewShell(), SfxBindings::Invalidate(), m_bDesignMode, m_bHasForms, m_nLastSlot, m_pFormView, and SfxShell::UIFeatureChanged().
Referenced by SetDesignMode(), and SetView().
|
staticprivate |
SfxInterface initializer.
Definition at line 134 of file fmshell.cxx.
References SFX_OBJECTBAR_NAVIGATION, and SFX_OBJECTBAR_OBJECT.
bool FmFormShell::IsActiveControl | ( | ) | const |
Definition at line 1225 of file fmshell.cxx.
References m_pImpl.
|
inlineoverridevirtual |
Reimplemented from SfxShell.
Definition at line 158 of file fmshell.hxx.
Referenced by FmFormView::ShowSdrPage().
|
private |
Definition at line 189 of file fmshell.cxx.
bool FmFormShell::PrepareClose | ( | bool | bUI = true | ) |
Definition at line 196 of file fmshell.cxx.
References svx::FormControllerHelper::commitCurrentControl(), svx::FormControllerHelper::commitCurrentRecord(), Application::CreateBuilder(), SdrPageView::FindPageWindow(), FmFormView::GetActualOutDev(), vcl::Window::GetFrameWeld(), GetImpl(), OutputDevice::GetOutDevType(), SdrPaintView::GetSdrPageView(), SfxShell::GetViewShell(), SfxViewShell::GetWindow(), svx::FormControllerHelper::isModifiedRow(), m_bDesignMode, m_pFormView, OUTDEV_WINDOW, RET_CANCEL, RET_NO, and RET_YES.
Referenced by SetDesignMode().
void FmFormShell::SetControlActivationHandler | ( | const Link< LinkParamNone *, void > & | _rHdl | ) |
Definition at line 1237 of file fmshell.cxx.
References m_pImpl.
void FmFormShell::SetDesignMode | ( | bool | _bDesignMode | ) |
Definition at line 1394 of file fmshell.cxx.
References GetFormModel(), FmFormModel::GetUndoEnv(), impl_setDesignMode(), FmXUndoEnvironment::Lock(), m_bDesignMode, PrepareClose(), and FmXUndoEnvironment::UnLock().
Referenced by Execute().
void FmFormShell::SetView | ( | FmFormView * | pView | ) |
Definition at line 1140 of file fmshell.cxx.
References GetImpl(), SdrPaintView::GetModel(), impl_setDesignMode(), SfxShell::IsActive(), SdrMarkView::IsDesignMode(), m_pFormModel, m_pFormView, and FmFormView::SetFormShell().
Referenced by FmFormShell(), ~FmFormShell(), and FmFormView::~FmFormView().
void FmFormShell::SetY2KState | ( | sal_uInt16 | n | ) |
Definition at line 1189 of file fmshell.cxx.
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().
|
friend |
Definition at line 75 of file fmshell.hxx.
|
friend |
Definition at line 76 of file fmshell.hxx.
|
private |
Definition at line 83 of file fmshell.hxx.
Referenced by Execute(), GetFormState(), GetState(), HasUIFeature(), impl_setDesignMode(), PrepareClose(), and SetDesignMode().
|
private |
Definition at line 84 of file fmshell.hxx.
Referenced by DetermineForms(), GetState(), HasUIFeature(), and impl_setDesignMode().
|
private |
Definition at line 82 of file fmshell.hxx.
Referenced by Execute(), GetState(), and impl_setDesignMode().
|
private |
Definition at line 80 of file fmshell.hxx.
Referenced by SetView().
|
private |
Definition at line 79 of file fmshell.hxx.
Referenced by Activate(), Deactivate(), Execute(), FmFormShell(), GetCurPage(), GetFormState(), GetState(), HasUIFeature(), impl_setDesignMode(), PrepareClose(), SetView(), and ~FmFormShell().
|
private |
Definition at line 78 of file fmshell.hxx.
Referenced by ExecuteTextAttribute(), ForgetActiveControl(), GetTextAttributeState(), HasUIFeature(), IsActiveControl(), SetControlActivationHandler(), and ~FmFormShell().