34#include <com/sun/star/beans/NamedValue.hpp>
35#include <com/sun/star/form/binding/XBindableValue.hpp>
36#include <com/sun/star/form/binding/XValueBinding.hpp>
37#include <com/sun/star/form/binding/XListEntrySink.hpp>
38#include <com/sun/star/awt/XUnoControlContainer.hpp>
39#include <com/sun/star/awt/XVclContainerPeer.hpp>
40#include <com/sun/star/container/XContainer.hpp>
41#include <com/sun/star/lang/XServiceInfo.hpp>
42#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
43#include <com/sun/star/script/XScriptEventsSupplier.hpp>
44#include <com/sun/star/table/CellAddress.hpp>
45#include <com/sun/star/table/CellRangeAddress.hpp>
66 return pFormThis->GetDlgEditor();
93 aUniqueName <<= aOUniqueName;
105 xCont->insertByName( aOUniqueName,
Any(xCtrl) );
117 const OUString& rModelName,
118 const css::uno::Reference< css::lang::XMultiServiceFactory >& rxSFac)
119:
SdrUnoObj(rSdrModel, rModelName, rxSFac)
140 _out_pDlgEdForm =
dynamic_cast< DlgEdForm*
>( _pObject );
141 if ( !_out_pDlgEdForm )
143 DBG_ASSERT( _out_pDlgEdForm,
"lcl_getDlgEdForm: no form!" );
144 return ( _out_pDlgEdForm !=
nullptr );
150 uno::Reference< awt::XControl > xControl;
153 DlgEditor const& rEditor = pForm->GetDlgEditor();
160 sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn,
161 sal_Int32& nXOut, sal_Int32& nYOut, sal_Int32& nWidthOut, sal_Int32& nHeightOut )
164 Size aPos( nXIn, nYIn );
165 Size aSize( nWidthIn, nHeightIn );
169 if ( !lcl_getDlgEdForm(
this, pForm ) )
172 Size aFormPos( aFormRect.
Left(), aFormRect.
Top() );
176 DBG_ASSERT( pDevice,
"DlgEdObj::TransformSdrToControlCoordinates: missing default device!" );
189 DBG_ASSERT( xPSetForm.is(),
"DlgEdObj::TransformFormToSdrCoordinates: no form property set!" );
190 if ( !xPSetForm.is() )
192 bool bDecoration =
true;
206 nXOut = aPos.
Width();
208 nWidthOut = aSize.
Width();
209 nHeightOut = aSize.
Height();
215 sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn,
216 sal_Int32& nXOut, sal_Int32& nYOut, sal_Int32& nWidthOut, sal_Int32& nHeightOut )
219 Size aPos( nXIn, nYIn );
220 Size aSize( nWidthIn, nHeightIn );
224 DBG_ASSERT( pDevice,
"DlgEdObj::TransformSdrToFormCoordinates: missing default device!" );
232 if ( !lcl_getDlgEdForm(
this, pForm ) )
237 DBG_ASSERT( xPSetForm.is(),
"DlgEdObj::TransformFormToSdrCoordinates: no form property set!" );
238 if ( !xPSetForm.is() )
240 bool bDecoration =
true;
245 aSize.
AdjustWidth( -(aDeviceInfo.LeftInset + aDeviceInfo.RightInset) );
246 aSize.
AdjustHeight( -(aDeviceInfo.TopInset + aDeviceInfo.BottomInset) );
253 nXOut = aPos.
Width();
255 nWidthOut = aSize.
Width();
256 nHeightOut = aSize.
Height();
262 sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn,
263 sal_Int32& nXOut, sal_Int32& nYOut, sal_Int32& nWidthOut, sal_Int32& nHeightOut )
266 Size aPos( nXIn, nYIn );
267 Size aSize( nWidthIn, nHeightIn );
271 if ( !lcl_getDlgEdForm(
this, pForm ) )
275 DBG_ASSERT( xPSetForm.is(),
"DlgEdObj::TransformControlToSdrCoordinates: no form property set!" );
276 if ( !xPSetForm.is() )
278 sal_Int32 nFormX = 0, nFormY = 0;
281 Size aFormPos( nFormX, nFormY );
285 DBG_ASSERT( pDevice,
"DlgEdObj::TransformControlToSdrCoordinates: missing default device!" );
297 bool bDecoration =
true;
311 nXOut = aPos.
Width();
313 nWidthOut = aSize.
Width();
314 nHeightOut = aSize.
Height();
320 sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn,
321 sal_Int32& nXOut, sal_Int32& nYOut, sal_Int32& nWidthOut, sal_Int32& nHeightOut )
324 Size aPos( nXIn, nYIn );
325 Size aSize( nWidthIn, nHeightIn );
329 DBG_ASSERT( pDevice,
"DlgEdObj::TransformFormToSdrCoordinates: missing default device!" );
335 if ( !lcl_getDlgEdForm(
this, pForm ) )
343 DBG_ASSERT( xPSetForm.is(),
"DlgEdObj::TransformFormToSdrCoordinates: no form property set!" );
344 if ( !xPSetForm.is() )
346 bool bDecoration =
true;
351 aSize.
AdjustWidth(aDeviceInfo.LeftInset + aDeviceInfo.RightInset );
352 aSize.
AdjustHeight(aDeviceInfo.TopInset + aDeviceInfo.BottomInset );
360 nXOut = aPos.
Width();
362 nWidthOut = aSize.
Width();
363 nHeightOut = aSize.
Height();
375 sal_Int32 nXIn = 0, nYIn = 0, nWidthIn = 0, nHeightIn = 0;
382 sal_Int32 nXOut, nYOut, nWidthOut, nHeightOut;
386 Point aPoint( nXOut, nYOut );
387 Size aSize( nWidthOut, nHeightOut );
396 sal_Int32 nXIn = aRect_.
Left();
397 sal_Int32 nYIn = aRect_.
Top();
398 sal_Int32 nWidthIn = aRect_.
GetWidth();
399 sal_Int32 nHeightIn = aRect_.
GetHeight();
402 sal_Int32 nXOut, nYOut, nWidthOut, nHeightOut;
423 sal_Int32 nPageWidthIn = aPageSize.
Width();
424 sal_Int32 nPageHeightIn = aPageSize.
Height();
425 sal_Int32 nPageX, nPageY, nPageWidth, nPageHeight;
431 sal_Int32 nX = 0, nY = 0, nWidth = 0, nHeight = 0;
439 sal_Int32 nNewValue =
nValue;
443 if ( nNewValue + nWidth > nPageX + nPageWidth )
444 nNewValue = nPageX + nPageWidth - nWidth;
445 if ( nNewValue < nPageX )
450 if ( nNewValue + nHeight > nPageY + nPageHeight )
451 nNewValue = nPageY + nPageHeight - nHeight;
452 if ( nNewValue < nPageY )
457 if ( nX + nNewValue > nPageX + nPageWidth )
458 nNewValue = nPageX + nPageWidth - nX;
464 if ( nY + nNewValue > nPageY + nPageHeight )
465 nNewValue = nPageY + nPageHeight - nY;
470 if ( nNewValue !=
nValue )
473 xPSet->setPropertyValue( evt.PropertyName,
Any(nNewValue) );
487 evt.OldValue >>= aOldName;
491 evt.NewValue >>= aNewName;
493 if ( aNewName == aOldName )
497 if ( !(xNameAcc.is() && xNameAcc->hasByName(aOldName)) )
500 if (!xNameAcc->hasByName(aNewName) && !aNewName.isEmpty())
509 xCont->removeByName( aOldName );
510 xCont->insertByName( aNewName , aAny );
550 if ( nStep && (nStep != nCurStep) )
572 std::vector<DlgEdObj*> aChildList = pForm->
GetChildren();
573 for (
auto const& child : aChildList)
575 child->EndListening(
false );
583 const OUString* pNames = aNames.getConstArray();
584 sal_Int32 nCtrls = aNames.getLength();
588 for ( sal_Int32
i = 0;
i < nCtrls; ++
i )
591 OUString
aName( pNames[
i] );
594 sal_Int16 nTabIndex = -1;
595 Any aCtrl = xNameAcc->getByName(
aName );
599 evt.OldValue >>= nTabIndex;
600 else if ( xPSet.is() )
604 aIndexToNameMap.emplace( nTabIndex,
aName );
608 std::vector< OUString > aNameList( aIndexToNameMap.size() );
610 aIndexToNameMap.begin(), aIndexToNameMap.end(),
616 sal_Int16 nOldTabIndex = 0;
617 evt.OldValue >>= nOldTabIndex;
618 sal_Int16 nNewTabIndex = 0;
619 evt.NewValue >>= nNewTabIndex;
620 if ( nNewTabIndex < 0 )
622 else if ( nNewTabIndex > nCtrls - 1 )
623 nNewTabIndex = sal::static_int_cast<sal_Int16>( nCtrls - 1 );
626 OUString aCtrlName = aNameList[nOldTabIndex];
627 aNameList.erase( aNameList.begin() + nOldTabIndex );
628 aNameList.insert( aNameList.begin() + nNewTabIndex , aCtrlName );
631 for ( sal_Int32
i = 0;
i < nCtrls; ++
i )
633 Any aCtrl = xNameAcc->getByName( aNameList[
i] );
641 SAL_WARN(
"basctl",
"tab " <<
i <<
" > SAL_MAX_INT16");
655 for (
auto const& child : aChildList)
657 child->StartListening();
663 bool bSupports =
false;
667 if ( xServiceInfo.is() )
668 bSupports = xServiceInfo->supportsService( serviceName );
676 OUString aDefaultName;
681 else if (
supportsService(
"com.sun.star.awt.UnoControlButtonModel" ) )
685 else if (
supportsService(
"com.sun.star.awt.UnoControlRadioButtonModel" ) )
689 else if (
supportsService(
"com.sun.star.awt.UnoControlCheckBoxModel" ) )
693 else if (
supportsService(
"com.sun.star.awt.UnoControlListBoxModel" ) )
697 else if (
supportsService(
"com.sun.star.awt.UnoControlComboBoxModel" ) )
701 else if (
supportsService(
"com.sun.star.awt.UnoControlGroupBoxModel" ) )
709 else if (
supportsService(
"com.sun.star.awt.UnoControlFixedTextModel" ) )
713 else if (
supportsService(
"com.sun.star.awt.UnoControlImageControlModel" ) )
717 else if (
supportsService(
"com.sun.star.awt.UnoControlProgressBarModel" ) )
721 else if (
supportsService(
"com.sun.star.awt.UnoControlScrollBarModel" ) )
725 else if (
supportsService(
"com.sun.star.awt.UnoControlFixedLineModel" ) )
729 else if (
supportsService(
"com.sun.star.awt.UnoControlDateFieldModel" ) )
733 else if (
supportsService(
"com.sun.star.awt.UnoControlTimeFieldModel" ) )
737 else if (
supportsService(
"com.sun.star.awt.UnoControlNumericFieldModel" ) )
741 else if (
supportsService(
"com.sun.star.awt.UnoControlCurrencyFieldModel" ) )
745 else if (
supportsService(
"com.sun.star.awt.UnoControlFormattedFieldModel" ) )
749 else if (
supportsService(
"com.sun.star.awt.UnoControlPatternFieldModel" ) )
753 else if (
supportsService(
"com.sun.star.awt.UnoControlFileControlModel" ) )
757 else if (
supportsService(
"com.sun.star.awt.tree.TreeControlModel" ) )
761 else if (
supportsService(
"com.sun.star.awt.grid.UnoControlGridModel" ) )
765 else if (
supportsService(
"com.sun.star.awt.UnoControlFixedHyperlinkModel" ) )
769 else if (
supportsService(
"com.sun.star.awt.UnoControlSpinButtonModel" ) )
778 if (!sResId.isEmpty())
779 aDefaultName = sResId;
786 OUString aUniqueName;
796 aUniqueName = aDefaultName + OUString::number(++
n);
797 }
while (xNameAcc->hasByName(aUniqueName));
805 return SdrInventor::BasicDialog;
812 return SdrObjKind::BasicDialogDialog;
816 return SdrObjKind::BasicDialogPushButton;
818 else if (
supportsService(
"com.sun.star.awt.UnoControlRadioButtonModel" ))
820 return SdrObjKind::BasicDialogRadioButton;
822 else if (
supportsService(
"com.sun.star.awt.UnoControlCheckBoxModel" ))
824 return SdrObjKind::BasicDialogCheckbox;
826 else if (
supportsService(
"com.sun.star.awt.UnoControlListBoxModel" ))
828 return SdrObjKind::BasicDialogListbox;
830 else if (
supportsService(
"com.sun.star.awt.UnoControlComboBoxModel" ))
832 return SdrObjKind::BasicDialogCombobox;
834 else if (
supportsService(
"com.sun.star.awt.UnoControlGroupBoxModel" ))
836 return SdrObjKind::BasicDialogGroupBox;
840 return SdrObjKind::BasicDialogEdit;
842 else if (
supportsService(
"com.sun.star.awt.UnoControlFixedTextModel" ))
844 return SdrObjKind::BasicDialogFixedText;
846 else if (
supportsService(
"com.sun.star.awt.UnoControlImageControlModel" ))
848 return SdrObjKind::BasicDialogImageControl;
850 else if (
supportsService(
"com.sun.star.awt.UnoControlProgressBarModel" ))
852 return SdrObjKind::BasicDialogProgressbar;
854 else if (
supportsService(
"com.sun.star.awt.UnoControlScrollBarModel" ))
856 return SdrObjKind::BasicDialogHorizontalScrollbar;
858 else if (
supportsService(
"com.sun.star.awt.UnoControlFixedLineModel" ))
860 return SdrObjKind::BasicDialogHorizontalFixedLine;
862 else if (
supportsService(
"com.sun.star.awt.UnoControlDateFieldModel" ))
864 return SdrObjKind::BasicDialogDateField;
866 else if (
supportsService(
"com.sun.star.awt.UnoControlTimeFieldModel" ))
868 return SdrObjKind::BasicDialogTimeField;
870 else if (
supportsService(
"com.sun.star.awt.UnoControlNumericFieldModel" ))
872 return SdrObjKind::BasicDialogNumericField;
874 else if (
supportsService(
"com.sun.star.awt.UnoControlCurrencyFieldModel" ))
876 return SdrObjKind::BasicDialogCurencyField;
878 else if (
supportsService(
"com.sun.star.awt.UnoControlFormattedFieldModel" ))
880 return SdrObjKind::BasicDialogFormattedField;
882 else if (
supportsService(
"com.sun.star.awt.UnoControlPatternFieldModel" ))
884 return SdrObjKind::BasicDialogPatternField;
886 else if (
supportsService(
"com.sun.star.awt.UnoControlFileControlModel" ))
888 return SdrObjKind::BasicDialogFileControl;
892 return SdrObjKind::BasicDialogTreeControl;
894 else if (
supportsService(
"com.sun.star.awt.grid.UnoControlGridModel" ))
896 return SdrObjKind::BasicDialogGridControl;
898 else if (
supportsService(
"com.sun.star.awt.UnoControlFixedHyperlinkModel" ))
900 return SdrObjKind::BasicDialogHyperlinkControl;
904 return SdrObjKind::BasicDialogControl;
910 return new DlgEdObj(rTargetModel, *
this);
967 if(
nullptr != pDlgEdPage)
1008 if (
supportsService(
"com.sun.star.awt.UnoControlFormattedFieldModel" ) )
1011 if ( xSupplier.is() )
1026 aTabIndex <<= static_cast<sal_Int16>(aNames.getLength());
1031 if ( xPSetForm.is() )
1041 xCont->insertByName( aOUniqueName , aAny );
1052 pDlgEdForm->GetDlgEditor().SetDialogModelChanged();
1084 DBG_ASSERT(xEventCont.is(),
"DlgEdObj::StartListening: control model has no script event container!");
1100 if (!bRemoveListener)
1118 DBG_ASSERT(xEventCont.is(),
"DlgEdObj::EndListening: control model has no script event container!");
1132 if (!pRealDlgEdForm)
1134 if (!pRealDlgEdForm)
1162 catch (container::NoSuchElementException
const&)
1165 throw lang::WrappedTargetRuntimeException(
"",
nullptr,
1214 if ( nLayer != nOldLayer )
1227 rDlgEditor(rDlgEditor_)
1242 sal_Int32 nXIn = 0, nYIn = 0, nWidthIn = 0, nHeightIn = 0;
1249 sal_Int32 nXOut, nYOut, nWidthOut, nHeightOut;
1253 Point aPoint( nXOut, nYOut );
1254 Size aSize( nWidthOut, nHeightOut );
1263 sal_Int32 nXIn = aRect_.
Left();
1264 sal_Int32 nYIn = aRect_.
Top();
1265 sal_Int32 nWidthIn = aRect_.
GetWidth();
1266 sal_Int32 nHeightIn = aRect_.
GetHeight();
1269 sal_Int32 nXOut, nYOut, nWidthOut, nHeightOut;
1299 sal_Int32 nPageXIn = 0;
1300 sal_Int32 nPageYIn = 0;
1302 sal_Int32 nPageWidthIn = aPageSize.
Width();
1303 sal_Int32 nPageHeightIn = aPageSize.
Height();
1304 sal_Int32 nPageX, nPageY, nPageWidth, nPageHeight;
1308 if ( xPSetForm.is() )
1312 sal_Int32 nNewValue =
nValue;
1316 if ( nNewValue < nPageX )
1321 if ( nNewValue < nPageY )
1326 if ( nNewValue < 1 )
1331 if ( nNewValue < 1 )
1335 if ( nNewValue !=
nValue )
1338 xPSetForm->setPropertyValue( evt.PropertyName,
Any(nNewValue) );
1346 std::vector<DlgEdObj*>
const& aChildList =
GetChildren();
1348 if ( bAdjustedPageSize )
1352 nPageWidthIn = aPageSize.
Width();
1353 nPageHeightIn = aPageSize.
Height();
1356 for (
auto const& child : aChildList)
1361 sal_Int32 nX = 0, nY = 0, nWidth = 0, nHeight = 0;
1367 sal_Int32 nNewX = nX;
1368 if ( nX + nWidth > nPageX + nPageWidth )
1370 nNewX = nPageX + nPageWidth - nWidth;
1371 if ( nNewX < nPageX )
1381 sal_Int32 nNewY = nY;
1382 if ( nY + nHeight > nPageY + nPageHeight )
1384 nNewY = nPageY + nPageHeight - nHeight;
1385 if ( nNewY < nPageY )
1399 for (
auto const& child : aChildList)
1400 child->SetRectFromProps();
1410 for (
size_t i = 0 ;
i < nObjCount ;
i++ )
1413 if (pDlgEdObj && !
dynamic_cast<DlgEdForm*
>(pDlgEdObj))
1424 child->EndListening(
false );
1428 if ( xNameAcc.is() )
1432 const OUString* pNames = aNames.getConstArray();
1433 sal_Int32 nCtrls = aNames.getLength();
1437 for ( sal_Int32
i = 0;
i < nCtrls; ++
i )
1440 OUString
aName( pNames[
i] );
1443 sal_Int16 nTabIndex = -1;
1444 Any aCtrl = xNameAcc->getByName(
aName );
1451 aIndexToNameMap.emplace( nTabIndex,
aName );
1455 sal_Int16 nNewTabIndex = 0;
1456 for (
auto const& indexToName : aIndexToNameMap)
1458 Any aCtrl = xNameAcc->getByName( indexToName.second );
1474 child->StartListening();
1491 sal_Int32
nCount = aSeqTabCtrls.getLength();
1492 for ( sal_Int32
i = 0;
i <
nCount; ++
i )
1493 pTabCtrls[
i]->activateTabOrder();
1508 if ( !xTabModel.is() )
1512 std::vector<DlgEdObj*> aChildList =
GetChildren();
1513 sal_uInt32 nSize = aChildList.size();
1515 for ( sal_uInt32
i = 0;
i < nSize; ++
i )
1516 aSeqControls.getArray()[
i] = aChildList[
i]->GetControl();
1518 sal_Int32 nGroupCount = xTabModel->getGroupCount();
1519 for ( sal_Int32 nGroup = 0; nGroup < nGroupCount; ++nGroup )
1524 xTabModel->getGroup( nGroup, aSeqModels,
aName );
1526 sal_Int32 nModelCount = aSeqModels.getLength();
1530 for ( sal_Int32 nModel = 0; nModel < nModelCount; ++nModel )
1534 sal_Int32 nControlCount = aSeqControls.getLength();
1535 for ( sal_Int32 nControl = 0; nControl < nControlCount; ++nControl )
1541 if ( xCtrlModel.get() == pModels[nModel].get() )
1544 aSeqPeers.getArray()[ nModel ].set( xCtrl->getPeer(), UNO_QUERY );
1556 if ( xDlgPeer.is() )
1557 xDlgPeer->setGroup( aSeqPeers );
1580 child->EndListening(
false);
1581 child->SetPropsFromRect();
1582 child->StartListening();
1601 child->EndListening(
false);
1602 child->SetPropsFromRect();
1603 child->StartListening();
1631 awt::DeviceInfo aDeviceInfo;
1639 if ( !xDialogControl.
is() )
1648 xDialogControl.
reset(
1655 if ( xDialogControl.
is() )
1656 xDialogDevice.set( xDialogControl->getPeer(), UNO_QUERY );
1657 DBG_ASSERT( xDialogDevice.is(),
"DlgEdForm::getDeviceInfo: no device!" );
1658 if ( xDialogDevice.is() )
1659 aDeviceInfo = xDialogDevice->getInfo();
1681 css::beans::NamedValue aCellValue;
1682 aCellValue.Name =
"BoundCell";
1683 css::table::CellAddress aCellAddress;
1684 aCellValue.Value <<= aCellAddress;
1686 css::beans::NamedValue aCellRange;
1687 aCellRange.Name =
"CellRange";
1688 css::table::CellRangeAddress aRangeAddress;
1689 aCellRange.Value <<= aRangeAddress;
1693 if ( xBindable.is() )
1696 xBindable->setValueBinding( xBinding );
1698 if ( xListEntrySink.is() )
1701 xListEntrySink->setListEntrySource( xSource );
static OutputDevice * GetDefaultDevice()
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
SAL_WARN_UNUSED_RESULT Point LogicToPixel(const Point &rLogicPt) const
virtual const tools::Rectangle & GetSnapRect() const override
SdrPageView * GetPageView() const
const OUString & GetControlLayerName() const
SdrLayerID GetLayerID(const OUString &rName) const
const SdrPage * GetPage(sal_uInt16 nPgNum) const
virtual SdrObject * SetObjectOrdNum(size_t nOldObjNum, size_t nNewObjNum)
SdrObject * GetObj(size_t nNum) const
size_t GetObjCount() const
SdrModel & getSdrModelFromSdrObject() const
SdrPage * getSdrPageFromSdrObject() const
virtual void SetSnapRect(const tools::Rectangle &rRect)
virtual SdrLayerID GetLayer() const
virtual void SetLayer(SdrLayerID nLayer)
SdrPage * GetPage() const
virtual void NbcMove(const Size &rSiz) override
virtual bool EndCreate(SdrDragStat &rStat, SdrCreateCmd eCmd) override
css::uno::Reference< css::awt::XControl > GetTemporaryControlForWindow(const vcl::Window &_rWindow, css::uno::Reference< css::awt::XControlContainer > &_inout_ControlContainer) const
const css::uno::Reference< css::awt::XControlModel > & GetUnoControlModel() const
css::uno::Reference< css::awt::XControl > GetUnoControl(const SdrView &_rView, const OutputDevice &_rOut) const
virtual void NbcResize(const Point &rRef, const Fraction &xFact, const Fraction &yFact) override
SdrUnoObj(SdrModel &rSdrModel, const OUString &rModelName)
void Broadcast(const SfxHint &rHint)
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
tools::Long AdjustWidth(tools::Long n)
constexpr tools::Long Width() const
rtl::Reference< DlgEdForm > pDlgEdForm
css::uno::Reference< css::beans::XPropertyChangeListener > m_xPropertyChangeListener
sal_Int32 GetStep() const
css::uno::Reference< css::awt::XControl > GetControl() const
virtual SdrObjKind GetObjIdentifier() const override
css::uno::Reference< css::container::XContainerListener > m_xContainerListener
virtual bool EndCreate(SdrDragStat &rStat, SdrCreateCmd eCmd) override
bool TransformSdrToControlCoordinates(sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn, sal_Int32 &nXOut, sal_Int32 &nYOut, sal_Int32 &nWidthOut, sal_Int32 &nHeightOut)
DlgEdForm * GetDlgEdForm() const
bool supportsService(OUString const &serviceName) const
DlgEdObj(SdrModel &rSdrModel)
OUString GetUniqueName() const
virtual void SetRectFromProps()
void NameChange(const css::beans::PropertyChangeEvent &evt)
void TabIndexChange(const css::beans::PropertyChangeEvent &evt)
OUString GetDefaultName() const
virtual void SetLayer(SdrLayerID nLayer) override
friend class DlgEdPropListenerImpl
void MakeDataAware(const css::uno::Reference< css::frame::XModel > &xModel)
virtual ~DlgEdObj() override
DlgEditor & GetDialogEditor()
bool TransformControlToSdrCoordinates(sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn, sal_Int32 &nXOut, sal_Int32 &nYOut, sal_Int32 &nWidthOut, sal_Int32 &nHeightOut)
bool TransformSdrToFormCoordinates(sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn, sal_Int32 &nXOut, sal_Int32 &nYOut, sal_Int32 &nWidthOut, sal_Int32 &nHeightOut)
virtual rtl::Reference< SdrObject > CloneSdrObject(SdrModel &rTargetModel) const override
void EndListening(bool bRemoveListener)
virtual SdrInventor GetObjInventor() const override
virtual rtl::Reference< SdrObject > getFullDragClone() const override
virtual void PositionAndSizeChange(const css::beans::PropertyChangeEvent &evt)
bool TransformFormToSdrCoordinates(sal_Int32 nXIn, sal_Int32 nYIn, sal_Int32 nWidthIn, sal_Int32 nHeightIn, sal_Int32 &nXOut, sal_Int32 &nYOut, sal_Int32 &nWidthOut, sal_Int32 &nHeightOut)
virtual void NbcMove(const Size &rSize) override
virtual void NbcResize(const Point &rRef, const Fraction &xFact, const Fraction &yFact) override
void _propertyChange(const css::beans::PropertyChangeEvent &evt)
virtual void UpdateStep()
virtual void SetPropsFromRect()
DlgEdForm * GetDlgEdForm() const
void SetDialogModelChanged()
css::uno::Reference< css::awt::XControlContainer > const & GetWindowControlContainer()
returns the control container associated with our window
DlgEdView & GetView() const
vcl::Window & GetWindow() const
DlgEdPage & GetPage() const
css::uno::Reference< css::util::XNumberFormatsSupplier > const & GetNumberFormatsSupplier()
static void setControlResourceIDsForNewEditorObject(DlgEditor const *pEditor, const css::uno::Any &rControlAny, std::u16string_view aCtrlName)
static void renameControlResourceIDsForEditorObject(DlgEditor const *pEditor, const css::uno::Any &rControlAny, std::u16string_view aNewCtrlName)
void reset(const css::uno::Reference< INTERFACE > &_rxComponent, AssignmentMode _eMode=TakeOwnership)
::OutputDevice const * GetOutDev() const
#define DBG_ASSERT(sCon, aError)
#define SAL_WARN(area, stream)
constexpr OUStringLiteral DLGED_PROP_NAME
constexpr OUStringLiteral DLGED_PROP_FORMATSSUPPLIER
constexpr OUStringLiteral DLGED_PROP_LABEL
std::multimap< sal_Int16, OUString > IndexToNameMap
constexpr OUStringLiteral DLGED_PROP_STEP
constexpr OUStringLiteral DLGED_PROP_WIDTH
constexpr OUStringLiteral DLGED_PROP_POSITIONX
constexpr OUStringLiteral DLGED_PROP_TABINDEX
constexpr OUStringLiteral DLGED_PROP_HEIGHT
constexpr OUStringLiteral DLGED_PROP_DECORATION
constexpr OUStringLiteral DLGED_PROP_POSITIONY
Any SAL_CALL getCaughtException()
constexpr OUStringLiteral RID_STR_CLASS_DIALOG
constexpr OUStringLiteral RID_STR_CLASS_CHECKBOX
constexpr OUStringLiteral RID_STR_CLASS_FILECONTROL
constexpr OUStringLiteral RID_STR_CLASS_GROUPBOX
constexpr OUStringLiteral RID_STR_CLASS_FIXEDTEXT
constexpr OUStringLiteral RID_STR_CLASS_TIMEFIELD
constexpr OUStringLiteral RID_STR_CLASS_LISTBOX
constexpr OUStringLiteral RID_STR_CLASS_FORMATTEDFIELD
constexpr OUStringLiteral RID_STR_CLASS_PATTERNFIELD
constexpr OUStringLiteral RID_STR_CLASS_GRIDCONTROL
constexpr OUStringLiteral RID_STR_CLASS_RADIOBUTTON
constexpr OUStringLiteral RID_STR_CLASS_TREECONTROL
constexpr OUStringLiteral RID_STR_CLASS_CURRENCYFIELD
constexpr OUStringLiteral RID_STR_CLASS_PROGRESSBAR
constexpr OUStringLiteral RID_STR_CLASS_BUTTON
constexpr OUStringLiteral RID_STR_CLASS_NUMERICFIELD
constexpr OUStringLiteral RID_STR_CLASS_DATEFIELD
constexpr OUStringLiteral RID_STR_CLASS_SPINCONTROL
constexpr OUStringLiteral RID_STR_CLASS_SCROLLBAR
constexpr OUStringLiteral RID_STR_CLASS_CONTROL
constexpr OUStringLiteral RID_STR_CLASS_COMBOBOX
constexpr OUStringLiteral RID_STR_CLASS_IMAGECONTROL
constexpr OUStringLiteral RID_STR_CLASS_EDIT
constexpr OUStringLiteral RID_STR_CLASS_HYPERLINKCONTROL
constexpr OUStringLiteral RID_STR_CLASS_FIXEDLINE
Reference< XModel > xModel