LibreOffice Module svx (master) 1
|
#include <fmvwimp.hxx>
Classes | |
class | ObjectRemoveListener |
Public Member Functions | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | elementInserted (const css::container::ContainerEvent &rEvent) override |
virtual void SAL_CALL | elementReplaced (const css::container::ContainerEvent &rEvent) override |
virtual void SAL_CALL | elementRemoved (const css::container::ContainerEvent &rEvent) override |
virtual void SAL_CALL | formActivated (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | formDeactivated (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | focusGained (const css::awt::FocusEvent &e) override |
virtual void SAL_CALL | focusLost (const css::awt::FocusEvent &e) override |
FmFormView * | getView () const |
rtl::Reference< FormViewPageWindowAdapter > | findWindow (const css::uno::Reference< css::awt::XControlContainer > &_rxCC) const |
css::uno::Reference< css::form::runtime::XFormController > | getFormController (const css::uno::Reference< css::form::XForm > &_rxForm, const OutputDevice &_rDevice) const |
bool | hasEverBeenActivated () const |
void | setHasBeenActivated () |
void | onFirstViewActivation (const FmFormModel *_pDocModel) |
void | suspendTabOrderUpdate () |
suspends the calls to activateTabOrder, which normally happen whenever for any ControlContainer of the view, new controls are inserted. More... | |
void | resumeTabOrderUpdate () |
resumes calls to activateTabOrder, and also does all pending calls which were collected since the last suspendTabOrderUpdate call. More... | |
void | onCreatedFormObject (FmFormObj const &_rFormObject) |
void | breakCreateFormObject () |
Static Public Member Functions | |
static bool | isFocusable (const css::uno::Reference< css::awt::XControl > &i_rControl) |
Private Types | |
typedef ::std::set< css::uno::Reference< css::form::XForm > > | SetOfForms |
Private Member Functions | |
FmFormShell * | GetFormShell () const |
css::uno::Reference< css::awt::XWindow > | GetParentWindow () const |
FmXFormView (FmFormView *_pView) | |
virtual | ~FmXFormView () override |
void | saveMarkList () |
void | restoreMarkList (SdrMarkList &_rRestoredMarkList) |
void | stopMarkListWatching () |
void | startMarkListWatching () |
void | notifyViewDying () |
void | addWindow (const SdrPageWindow &) |
void | removeWindow (const css::uno::Reference< css::awt::XControlContainer > &_rxCC) |
void | Activate (bool bSync=false) |
void | Deactivate (bool bDeactivateController=true) |
rtl::Reference< SdrObject > | implCreateFieldControl (const svx::ODataAccessDescriptor &_rColumnDescriptor) |
rtl::Reference< SdrObject > | implCreateXFormsControl (const svx::OXFormsDescriptor &_rDesc) |
bool | createControlLabelPair (OutputDevice const &_rOutDev, sal_Int32 _nXOffsetMM, sal_Int32 _nYOffsetMM, const css::uno::Reference< css::beans::XPropertySet > &_rxField, const css::uno::Reference< css::util::XNumberFormats > &_rxNumberFormats, SdrObjKind _nControlObjectID, std::u16string_view _rFieldPostfix, rtl::Reference< SdrUnoObj > &_rpLabel, rtl::Reference< SdrUnoObj > &_rpControl, const css::uno::Reference< css::sdbc::XDataSource > &_rxDataSource, const OUString &_rDataSourceName, const OUString &_rCommand, const sal_Int32 _nCommandType) |
void | ObjectRemovedInAliveMode (const SdrObject *pObject) |
void | displayAsyncErrorMessage (const css::sdb::SQLErrorEvent &_rEvent) |
void | cancelEvents () |
void | AutoFocus () |
the auto focus to the first (in terms of the tab order) control More... | |
DECL_LINK (OnActivate, void *, void) | |
DECL_LINK (OnAutoFocus, void *, void) | |
DECL_LINK (OnDelayedErrorMessage, void *, void) | |
DECL_LINK (OnStartControlWizard, void *, void) | |
::svxform::DocumentType | impl_getDocumentType () const |
Static Private Member Functions | |
static bool | createControlLabelPair (OutputDevice const &_rOutDev, sal_Int32 _nXOffsetMM, sal_Int32 _nYOffsetMM, const css::uno::Reference< css::beans::XPropertySet > &_rxField, const css::uno::Reference< css::util::XNumberFormats > &_rxNumberFormats, SdrObjKind _nControlObjectID, std::u16string_view _rFieldPostfix, SdrInventor _nInventor, SdrObjKind _nLabelObjectID, SdrModel &_rModel, rtl::Reference< SdrUnoObj > &_rpLabel, rtl::Reference< SdrUnoObj > &_rpControl) |
Private Attributes | |
css::uno::Reference< css::awt::XWindow > | m_xWindow |
css::uno::Reference< css::beans::XPropertySet > | m_xLastCreatedControlModel |
FmFormObj * | m_pMarkedGrid |
FmFormView * | m_pView |
ImplSVEvent * | m_nActivationEvent |
ImplSVEvent * | m_nErrorMessageEvent |
ImplSVEvent * | m_nAutoFocusEvent |
ImplSVEvent * | m_nControlWizardEvent |
css::sdb::SQLErrorEvent | m_aAsyncError |
std::vector< rtl::Reference< FormViewPageWindowAdapter > > | m_aPageWindowAdapters |
std::map< css::uno::Reference< css::awt::XControlContainer >, SetOfForms > | m_aNeedTabOrderUpdate |
SdrMarkList | m_aMark |
std::unique_ptr< ObjectRemoveListener > | m_pWatchStoredList |
bool | m_bFirstActivation |
bool | m_isTabOrderUpdateSuspended |
Friends | |
class | FmFormView |
class | FmFormShell |
class | FmXFormShell |
class | FormViewPageWindowAdapter |
class | ObjectRemoveListener |
Definition at line 132 of file fmvwimp.hxx.
|
private |
Definition at line 159 of file fmvwimp.hxx.
|
private |
Definition at line 386 of file fmvwimp.cxx.
|
overrideprivatevirtual |
Definition at line 435 of file fmvwimp.cxx.
References cancelEvents(), DBG_ASSERT, and m_aPageWindowAdapters.
|
private |
Definition at line 732 of file fmvwimp.cxx.
References LINK, m_nActivationEvent, Application::PostUserEvent(), and Application::RemoveUserEvent().
|
private |
Definition at line 527 of file fmvwimp.cxx.
References findWindow(), FormViewPageWindowAdapter, SdrPageWindow::GetControlContainer(), SdrPageView::GetPage(), SdrPageWindow::GetPageView(), comphelper::getProcessComponentContext(), and m_aPageWindowAdapters.
|
private |
the auto focus to the first (in terms of the tab order) control
Definition at line 768 of file fmvwimp.cxx.
References LINK, m_nAutoFocusEvent, Application::PostUserEvent(), and Application::RemoveUserEvent().
void FmXFormView::breakCreateFormObject | ( | ) |
Definition at line 1004 of file fmvwimp.cxx.
References m_nControlWizardEvent, m_xLastCreatedControlModel, and Application::RemoveUserEvent().
|
private |
Definition at line 399 of file fmvwimp.cxx.
References m_nActivationEvent, m_nAutoFocusEvent, m_nControlWizardEvent, m_nErrorMessageEvent, and Application::RemoveUserEvent().
Referenced by notifyViewDying(), and ~FmXFormView().
|
private |
|
staticprivate |
Referenced by FmFormView::createControlLabelPair(), implCreateFieldControl(), and implCreateXFormsControl().
|
private |
Definition at line 749 of file fmvwimp.cxx.
References FmXFormShell, FmFormView::GetFormShell(), FmFormShell::GetImpl(), m_nActivationEvent, m_pView, and Application::RemoveUserEvent().
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 569 of file fmvwimp.cxx.
References DBG_ASSERT, LINK, m_aAsyncError, m_nErrorMessageEvent, and Application::PostUserEvent().
Referenced by implCreateFieldControl().
|
overridevirtual |
Definition at line 448 of file fmvwimp.cxx.
References m_pView, m_xWindow, FmFormView::SetMoveOutside(), and Source.
|
overridevirtual |
Definition at line 478 of file fmvwimp.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, findWindow(), m_aNeedTabOrderUpdate, and m_isTabOrderUpdateSuspended.
Referenced by elementReplaced().
|
overridevirtual |
Definition at line 512 of file fmvwimp.cxx.
|
overridevirtual |
Definition at line 506 of file fmvwimp.cxx.
References elementInserted().
rtl::Reference< FormViewPageWindowAdapter > FmXFormView::findWindow | ( | const css::uno::Reference< css::awt::XControlContainer > & | _rxCC | ) | const |
Definition at line 517 of file fmvwimp.cxx.
References i, and m_aPageWindowAdapters.
Referenced by addWindow(), elementInserted(), and resumeTabOrderUpdate().
|
overridevirtual |
Definition at line 1894 of file fmvwimp.cxx.
References m_pView, m_xWindow, and FmFormView::SetMoveOutside().
|
overridevirtual |
Definition at line 1902 of file fmvwimp.cxx.
References m_pView, m_xWindow, and FmFormView::SetMoveOutside().
|
overridevirtual |
Definition at line 463 of file fmvwimp.cxx.
References FmFormView::GetFormShell(), FmFormShell::GetImpl(), and m_pView.
|
overridevirtual |
Definition at line 470 of file fmvwimp.cxx.
References FmFormView::GetFormShell(), FmFormShell::GetImpl(), and m_pView.
Reference< XFormController > FmXFormView::getFormController | ( | const css::uno::Reference< css::form::XForm > & | _rxForm, |
const OutputDevice & | _rDevice | ||
) | const |
Definition at line 875 of file fmvwimp.cxx.
References OutputDevice::GetOwnerWindow(), m_aPageWindowAdapters, SAL_WARN, and xController.
|
private |
Definition at line 763 of file fmvwimp.cxx.
References FmFormView::GetFormShell(), and m_pView.
Referenced by impl_getDocumentType(), restoreMarkList(), and startMarkListWatching().
|
private |
Definition at line 1014 of file fmvwimp.cxx.
References FmFormView::GetActualOutDev(), VCLUnoHelper::GetInterface(), m_pView, and pOut.
|
inline |
Definition at line 205 of file fmvwimp.hxx.
References m_pView.
Referenced by implCreateFieldControl(), implCreateXFormsControl(), and FormViewPageWindowAdapter::makeVisible().
|
inline |
Definition at line 212 of file fmvwimp.hxx.
References m_bFirstActivation.
|
private |
Definition at line 1912 of file fmvwimp.cxx.
References svxform::eUnknownDocumentType, GetFormShell(), and FmFormShell::GetImpl().
|
private |
Definition at line 1115 of file fmvwimp.cxx.
References createControlLabelPair(), DBG_UNHANDLED_EXCEPTION, displayAsyncErrorMessage(), Exception, FM_PROP_FIELDTYPE, FM_PROP_ISCURRENCY, FormCheckbox, FormCurrencyField, FormDateField, FormEdit, FormFormattedField, FormImageControl, FormNumericField, FormTimeField, FmFormView::GetActualOutDev(), getConnection_withFeedback(), svx::ODataAccessDescriptor::getDataSource(), getDataSource(), getFieldsByCommandDescriptor(), getNumberFormats(), OutputDevice::GetOutDevType(), SdrPaintWindow::GetOutputDevice(), SdrPageWindow::GetPaintWindow(), comphelper::getProcessComponentContext(), SdrPaintView::GetSdrPageView(), getView(), i, SdrObjList::InsertObject(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), SdrMarkView::IsDesignMode(), m_pView, nDataType, NONE, utl::SharedUNOComponent< css::sdbc::XConnection >::NoTakeOwnership, OUTDEV_WINDOW, SdrPaintWindow::OutputToWindow(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::reset(), and SvxResId().
|
private |
Definition at line 1347 of file fmvwimp.cxx.
References Any, createControlLabelPair(), DBG_ASSERT, Exception, FM_COMPONENT_COMMANDBUTTON, FM_PROP_BUTTON_TYPE, FM_PROP_LABEL, FM_SUN_COMPONENT_CHECKBOX, FM_SUN_COMPONENT_NUMERICFIELD, FmForm, FormButton, FormCheckbox, FormEdit, FormNumericField, FmFormView::GetActualOutDev(), OutputDevice::GetMapMode(), OutputDevice::GetOutDevType(), SdrPaintWindow::GetOutputDevice(), SdrPageWindow::GetPaintWindow(), MapMode::GetScaleX(), MapMode::GetScaleY(), SdrPaintView::GetSdrPageView(), getView(), Size::Height(), i, SdrObjList::InsertObject(), SdrMarkView::IsDesignMode(), OutputDevice::LogicToLogic(), m_pView, SdrObjFactory::MakeNewObject(), OUTDEV_WINDOW, Size::setHeight(), Size::setWidth(), svx::OXFormsDescriptor::szName, svx::OXFormsDescriptor::szServiceName, TOOLS_WARN_EXCEPTION, Size::Width(), and svx::OXFormsDescriptor::xPropSet.
|
static |
Definition at line 777 of file fmvwimp.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, FM_PROP_CLASSID, and FM_PROP_ENABLED.
Referenced by lcl_firstFocussableControl().
|
private |
Definition at line 427 of file fmvwimp.cxx.
References cancelEvents(), DBG_ASSERT, and m_pView.
|
private |
Definition at line 1702 of file fmvwimp.cxx.
References SdrMarkList::DeleteMark(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMark::GetMarkedSdrObj(), i, m_aMark, nCount, and pObject.
void FmXFormView::onCreatedFormObject | ( | FmFormObj const & | _rFormObject | ) |
Definition at line 968 of file fmvwimp.cxx.
References SvtModuleOptions::DATABASE, FmXFormShell, FmFormView::GetFormShell(), FmFormShell::GetImpl(), LINK, m_nControlWizardEvent, m_pView, m_xLastCreatedControlModel, Application::PostUserEvent(), and Application::RemoveUserEvent().
void FmXFormView::onFirstViewActivation | ( | const FmFormModel * | _pDocModel | ) |
Definition at line 584 of file fmvwimp.cxx.
References FmFormModel::GetAutoControlFocus(), LINK, m_nAutoFocusEvent, and Application::PostUserEvent().
|
private |
Definition at line 549 of file fmvwimp.cxx.
References i, and m_aPageWindowAdapters.
|
private |
Definition at line 1807 of file fmvwimp.cxx.
References SdrMarkList::Clear(), FmForm, FmFormShell::GetCurPage(), GetFormShell(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetObjInventor(), SdrMark::GetPageView(), SdrPaintView::GetSdrPageView(), SdrObject::GetSubList(), i, SdrObject::IsGroupObject(), SdrObjListIter::IsMore(), SdrMarkView::IsObjMarked(), lcl_hasObject(), m_aMark, m_pView, SdrMarkView::MarkObj(), nCount, and SdrObjListIter::Next().
void FmXFormView::resumeTabOrderUpdate | ( | ) |
resumes calls to activateTabOrder, and also does all pending calls which were collected since the last suspendTabOrderUpdate call.
Definition at line 596 of file fmvwimp.cxx.
References findWindow(), m_aNeedTabOrderUpdate, and m_isTabOrderUpdateSuspended.
|
private |
Definition at line 1753 of file fmvwimp.cxx.
References SdrMarkList::Clear(), FmForm, SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetObjInventor(), SdrMark::GetPageView(), SdrObject::GetSubList(), i, SdrObject::IsGroupObject(), SdrObjListIter::IsMore(), SdrMarkView::IsObjMarked(), m_aMark, m_pView, SdrMarkView::MarkObj(), nCount, and SdrObjListIter::Next().
|
inline |
Definition at line 213 of file fmvwimp.hxx.
References m_bFirstActivation.
|
private |
Definition at line 1735 of file fmvwimp.cxx.
References DBG_ASSERT, FmFormShell::GetFormModel(), GetFormShell(), m_pWatchStoredList, and ObjectRemoveListener.
|
private |
Definition at line 1725 of file fmvwimp.cxx.
References m_pWatchStoredList.
void FmXFormView::suspendTabOrderUpdate | ( | ) |
suspends the calls to activateTabOrder, which normally happen whenever for any ControlContainer of the view, new controls are inserted.
Cannot be nested, i.e. you need to call resumeTabOrderUpdate before calling suspendTabOrderUpdate, again.
Definition at line 590 of file fmvwimp.cxx.
References m_isTabOrderUpdateSuspended.
|
friend |
Definition at line 138 of file fmvwimp.hxx.
|
friend |
Definition at line 137 of file fmvwimp.hxx.
|
friend |
Definition at line 139 of file fmvwimp.hxx.
Referenced by Deactivate(), and onCreatedFormObject().
|
friend |
Definition at line 140 of file fmvwimp.hxx.
Referenced by addWindow().
|
friend |
Definition at line 142 of file fmvwimp.hxx.
Referenced by startMarkListWatching().
|
private |
Definition at line 155 of file fmvwimp.hxx.
Referenced by displayAsyncErrorMessage().
|
private |
Definition at line 164 of file fmvwimp.hxx.
Referenced by ObjectRemovedInAliveMode(), restoreMarkList(), and saveMarkList().
|
private |
Definition at line 161 of file fmvwimp.hxx.
Referenced by elementInserted(), and resumeTabOrderUpdate().
|
private |
Definition at line 158 of file fmvwimp.hxx.
Referenced by addWindow(), findWindow(), getFormController(), removeWindow(), and ~FmXFormView().
|
private |
Definition at line 168 of file fmvwimp.hxx.
Referenced by hasEverBeenActivated(), and setHasBeenActivated().
|
private |
Definition at line 169 of file fmvwimp.hxx.
Referenced by elementInserted(), resumeTabOrderUpdate(), and suspendTabOrderUpdate().
|
private |
Definition at line 149 of file fmvwimp.hxx.
Referenced by Activate(), cancelEvents(), and Deactivate().
|
private |
Definition at line 151 of file fmvwimp.hxx.
Referenced by AutoFocus(), cancelEvents(), and onFirstViewActivation().
|
private |
Definition at line 152 of file fmvwimp.hxx.
Referenced by breakCreateFormObject(), cancelEvents(), and onCreatedFormObject().
|
private |
Definition at line 150 of file fmvwimp.hxx.
Referenced by cancelEvents(), and displayAsyncErrorMessage().
|
private |
Definition at line 147 of file fmvwimp.hxx.
|
private |
Definition at line 148 of file fmvwimp.hxx.
Referenced by Deactivate(), disposing(), focusGained(), focusLost(), formActivated(), formDeactivated(), GetFormShell(), GetParentWindow(), getView(), implCreateFieldControl(), implCreateXFormsControl(), notifyViewDying(), onCreatedFormObject(), restoreMarkList(), and saveMarkList().
|
private |
Definition at line 166 of file fmvwimp.hxx.
Referenced by startMarkListWatching(), and stopMarkListWatching().
|
private |
Definition at line 145 of file fmvwimp.hxx.
Referenced by breakCreateFormObject(), and onCreatedFormObject().
|
private |
Definition at line 144 of file fmvwimp.hxx.
Referenced by disposing(), focusGained(), and focusLost().