24#include <com/sun/star/sdb/SQLContext.hpp>
25#include <com/sun/star/sdbc/XConnection.hpp>
26#include <com/sun/star/form/XLoadable.hpp>
46#include <com/sun/star/lang/XServiceInfo.hpp>
47#include <com/sun/star/awt/XControl.hpp>
51#include <svx/svxids.hrc>
97 DBG_ASSERT( !bInitDesignMode,
"FmFormView::Init: doesn't the model default to FALSE anymore?" );
100 bInitDesignMode =
true;
104 if ( pObjShell && pObjShell->
GetMedium() )
109 bInitDesignMode = aComponentData.
getOrDefault(
"ApplyFormDesignMode", bInitDesignMode );
123 pImpl->notifyViewDying();
141 if (
pImpl->m_pMarkedGrid &&
pImpl->m_pMarkedGrid != pObj )
143 pImpl->m_pMarkedGrid =
nullptr;
144 if (
pImpl->m_xWindow.is() )
147 pImpl->m_xWindow =
nullptr;
163 for ( sal_uInt32 window = 0; window < pPageView->
PageWindowCount(); ++window )
183 const SdrPageWindow* pPageWindow = findPageWindow(
this, &rNewDev );
185 pImpl->addWindow( *pPageWindow );
191 const SdrPageWindow* pPageWindow = findPageWindow(
this, &rNewDev );
274 if (bForceControlFocus)
309 pFormShellImpl->UpdateForms_Lock(
true);
353 pImpl->addWindow(rPageWindow);
373 return pImpl->implCreateFieldControl( _rColumnDescriptor );
379 return pImpl->implCreateXFormsControl(_rDesc);
391 if (sFieldName.isEmpty() || sObjectName.isEmpty() || sDataSource.isEmpty())
394 ODataAccessDescriptor aColumnDescriptor;
395 aColumnDescriptor.setDataSource(sDataSource);
396 aColumnDescriptor[ DataAccessDescriptorProperty::Command ] <<= sObjectName;
397 aColumnDescriptor[ DataAccessDescriptorProperty::CommandType ] <<= nObjectType;
398 aColumnDescriptor[ DataAccessDescriptorProperty::ColumnName ] <<= sFieldName;
400 return pImpl->implCreateFieldControl( aColumnDescriptor );
419 pImpl->addWindow(rPageWindow);
430 pImpl->removeWindow( xCC );
438 pImpl->suspendTabOrderUpdate();
446 pImpl->resumeTabOrderUpdate();
468 Reference< awt::XWindow > xWindow( pObj->GetUnoControl( *
this, *pWin->
GetOutDev() ), UNO_QUERY );
471 pImpl->m_pMarkedGrid = pObj;
472 pImpl->m_xWindow = xWindow;
500 for (
size_t a = 0;
a < pCurPage->GetObjCount(); ++
a)
503 FmFormObj* pFormObject = FmFormObj::GetFormObject(pObj);
507 Reference<awt::XControl> xControl = pFormObject->GetUnoControl(*
this, *pWin->
GetOutDev());
514 pWindow->GrabFocus();
515 pWindow->KeyInput(rKEvt);
530 Reference< css::awt::XControl> xControl(
pImpl->m_xWindow,UNO_QUERY);
531 bool bRet = !xControl.is() || !_xSource.is() || _xSource != xControl->getModel();
556 FmFormObj* pFormObject =
nullptr;
566 Reference< XServiceInfo > xServInfo( pFormObject->GetUnoControlModel(), UNO_QUERY );
568 pFormObject =
nullptr;
576 const Reference< XPropertySet >& _rxField,
const Reference< XNumberFormats >& _rxNumberFormats,
583 *_pOutDev, _nXOffsetMM, _nYOffsetMM,
584 _rxField, _rxNumberFormats,
585 _nControlObjectID,
u"", _nInventor, _nLabelObjectID,
593 return pImpl->getFormController( _rxForm, _rDevice );
const vcl::I18nHelper & GetUILocaleI18nHelper() const
static const AllSettings & GetSettings()
Derived class of SdrView to edit 3D objects.
sal_Unicode GetCharCode() const
const vcl::KeyCode & GetKeyCode() const
virtual vcl::Window * GetOwnerWindow() const
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
bool IsDesignMode() const
void SetDesignMode(bool bOn=true)
Everything a View needs to know about a selected object.
SdrObject * GetMarkedSdrObj() const
virtual void DeleteDeviceFromPaintView(OutputDevice &rOldWin) override
void HideSdrPage() override
SdrPageView * ShowSdrPage(SdrPage *pPage) override
virtual void AddDeviceToPaintView(OutputDevice &rNewDev, vcl::Window *pWindow) override
virtual void MarkListHasChanged() override
void ActionChanged() const
sal_uInt32 PageWindowCount() const
SdrPage * GetPage() const
SdrPageWindow * GetPageWindow(sal_uInt32 nIndex) const
css::uno::Reference< css::awt::XControlContainer > const & GetControlContainer(bool _bCreateIfNecessary=true) const
SdrPaintWindow & GetPaintWindow() const
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
virtual SdrPaintWindow * BeginCompleteRedraw(OutputDevice *pOut)
SdrPageView * GetSdrPageView() const
virtual void EndCompleteRedraw(SdrPaintWindow &rPaintWindow, bool bPaintFormLayer)
SdrModel & GetModel() const
OutputDevice & GetOutputDevice() const
virtual bool MouseButtonDown(const MouseEvent &rMEvt, OutputDevice *pWin) override
bool KeyInput(const KeyEvent &rKEvt, vcl::Window *pWin) override
SdrHitKind PickAnything(const MouseEvent &rMEvt, SdrMouseEventKind nMouseDownOrMoveOrUp, SdrViewEvent &rVEvt) const
void Invalidate(sal_uInt16 nId)
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SfxItemSet & GetItemSet() const
SfxMedium * GetMedium() const
SfxViewShell * GetViewShell() const
SfxBindings & GetBindings()
SfxViewFrame & GetViewFrame() const
static vcl::Window * GetWindow(const css::uno::Reference< css::awt::XWindow > &rxWindow)
VALUE_TYPE getOrDefault(const OUString &_rValueName, const VALUE_TYPE &_rDefault) const
bool MatchMnemonic(std::u16string_view rString, sal_Unicode cMnemonicChar) const
sal_uInt16 GetCode() const
::OutputDevice const * GetOutDev() const
#define DBG_ASSERT(sCon, aError)
#define suppress_fun_call_w_exception(expr)
constexpr OUStringLiteral FM_SUN_COMPONENT_GRIDCONTROL
constexpr sal_uInt16 KEY_RETURN
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)