22#include <dlgedclip.hxx>
24#include <dlgedfac.hxx>
25#include <dlgedfunc.hxx>
33#include <com/sun/star/awt/Toolkit.hpp>
34#include <com/sun/star/awt/UnoControlDialog.hpp>
35#include <com/sun/star/awt/XVclWindowPeer.hpp>
36#include <com/sun/star/resource/StringResource.hpp>
37#include <com/sun/star/util/XCloneable.hpp>
38#include <com/sun/star/util/NumberFormatsSupplier.hpp>
50#include <osl/diagnose.h>
93 uno::Reference< awt::XUnoControlDialog > xDlg = awt::UnoControlDialog::create( xContext );
97 uno::Reference< util::XCloneable > xNew = xC->createClone();
98 uno::Reference< awt::XControlModel > xDlgMod( xNew, uno::UNO_QUERY );
101 uno::Reference< beans::XPropertySet > xNewDlgModPropSet( xDlgMod, uno::UNO_QUERY );
102 if( xNewDlgModPropSet.is() )
104 if( xSrcDlgModPropSet.is() )
111 catch(
const UnknownPropertyException& )
113 OSL_FAIL(
"DlgEditor::ShowDialog(): No ResourceResolver property" );
120 bool bDecoration =
true;
123 aDecorationAny >>= bDecoration;
127 xNewDlgModPropSet->setPropertyValue(
"Title",
Any( OUString() ) );
130 catch(
const UnknownPropertyException& )
135 xDlg->setModel( xDlgMod );
138 uno::Reference< awt::XToolkit> xToolkit = awt::Toolkit::create( xContext );
153 bool bWasMarked =
pDlgEdView->IsObjMarked( pDlgObj );
156 pDlgEdView->MarkObj( pDlgObj, pPgView,
true );
167 bool bWasMarked =
pDlgEdView->IsObjMarked( pDlgObj );
178 css::uno::Reference<css::frame::XModel>
const& xModel,
179 css::uno::Reference<css::container::XNameContainer>
const & xDialogModel
186 ,m_ClipboardDataFlavors{ {
"application/vnd.sun.xml.dialog",
189 ,m_ClipboardDataFlavorsResource{ m_ClipboardDataFlavors[0],
190 {
"application/vnd.sun.xml.dialogwithresource",
193 ,pObjFac(
new DlgEdFactory(xModel))
195 ,pFunc(
new DlgEdFuncSelect(*
this))
197 ,
eMode( DlgEditor::SELECT )
198 ,eActObj( SdrObjKind::BasicDialogPushButton )
201 ,bDialogModelChanged(
false)
202 ,aMarkIdle(
"basctl DlgEditor Mark")
206 pDlgEdModel->GetItemPool().FreezeIdRanges();
207 pDlgEdView.reset(
new DlgEdView(*pDlgEdModel, *rWindow_.GetOutDev(), *
this));
208 pDlgEdModel->SetScaleUnit( MapUnit::Map100thMM );
214 pDlgEdModel->InsertPage(pDlgEdPage);
216 aMarkIdle.SetInvokeHandler(
LINK(
this, DlgEditor, MarkTimeout ) );
218 rWindow.SetMapMode(
MapMode( MapUnit::Map100thMM ) );
221 pDlgEdView->ShowSdrPage(pDlgEdView->GetModel().GetPage(0));
222 pDlgEdView->SetLayerVisible(
"HiddenLayer",
false );
223 pDlgEdView->SetMoveSnapOnlyTopLeft(
true);
226 Size aGridSize( 100, 100 );
227 pDlgEdView->SetGridCoarse( aGridSize );
228 pDlgEdView->SetSnapGridWidth(
Fraction(aGridSize.Width(), 1),
Fraction(aGridSize.Height(), 1));
229 pDlgEdView->SetGridSnap(
true );
230 pDlgEdView->SetGridVisible(
false );
231 pDlgEdView->SetDragStripes(
false);
233 pDlgEdView->SetDesignMode();
235 ::comphelper::disposeComponent( m_xControlContainer );
237 SetDialog(xDialogModel);
240DlgEditor::~DlgEditor()
244 ::comphelper::disposeComponent( m_xControlContainer );
249 if (!m_xControlContainer.is())
251 return m_xControlContainer;
262void DlgEditor::InitScrollBars()
264 DBG_ASSERT( pHScroll,
"DlgEditor::InitScrollBars: no horizontal scroll bar!" );
265 DBG_ASSERT( pVScroll,
"DlgEditor::InitScrollBars: no vertical scroll bar!" );
266 if ( !pHScroll || !pVScroll )
269 Size aOutSize = rWindow.GetOutDev()->GetOutputSize();
270 Size aPgSize = pDlgEdPage->GetSize();
272 pHScroll->SetRange(
Range( 0, aPgSize.
Width() ));
274 pHScroll->SetVisibleSize( aOutSize.
Width() );
275 pVScroll->SetVisibleSize( aOutSize.
Height() );
277 pHScroll->SetLineSize( aOutSize.
Width() / 10 );
278 pVScroll->SetLineSize( aOutSize.
Height() / 10 );
279 pHScroll->SetPageSize( aOutSize.
Width() / 2 );
280 pVScroll->SetPageSize( aOutSize.
Height() / 2 );
286void DlgEditor::DoScroll()
288 if( !pHScroll || !pVScroll )
294 Size aScrollPos( pHScroll->GetThumbPos(), pVScroll->GetThumbPos() );
295 aScrollPos = rWindow.LogicToPixel( aScrollPos );
296 aScrollPos = rWindow.PixelToLogic( aScrollPos );
304 rWindow.PaintImmediately();
314 rWindow.Scroll( -nX, -nY, ScrollFlags::Children);
316 rWindow.SetMapMode(
aMap );
317 rWindow.PaintImmediately();
319 DlgEdHint aHint( DlgEdHint::WINDOWSCROLLED );
324void DlgEditor::UpdateScrollBars()
330 pHScroll->SetThumbPos( -aOrg.
X() );
333 pVScroll->SetThumbPos( -aOrg.
Y() );
337void DlgEditor::SetDialog(
const uno::Reference< container::XNameContainer >& xUnoControlDialogModel )
340 m_xUnoControlDialogModel = xUnoControlDialogModel;
343 pDlgEdForm =
new DlgEdForm(*pDlgEdModel, *
this);
344 uno::Reference< awt::XControlModel > xDlgMod( m_xUnoControlDialogModel , uno::UNO_QUERY );
345 pDlgEdForm->SetUnoControlModel(xDlgMod);
346 static_cast<DlgEdPage*
>(pDlgEdModel->GetPage(0))->SetDlgEdForm( pDlgEdForm.get() );
347 pDlgEdModel->GetPage(0)->
InsertObject( pDlgEdForm.get() );
349 pDlgEdForm->SetRectFromProps();
350 pDlgEdForm->UpdateTabIndices();
351 pDlgEdForm->StartListening();
354 if ( m_xUnoControlDialogModel.is() )
358 const OUString* pNames = aNames.getConstArray();
359 sal_Int32 nCtrls = aNames.getLength();
363 for ( sal_Int32
i = 0;
i < nCtrls; ++
i )
366 OUString
aName( pNames[
i] );
369 sal_Int16 nTabIndex = -1;
370 Any aCtrl = m_xUnoControlDialogModel->getByName(
aName );
377 aIndexToNameMap.emplace( nTabIndex,
aName );
381 for (
auto const& indexToName : aIndexToNameMap)
383 Any aCtrl = m_xUnoControlDialogModel->getByName( indexToName.second );
385 aCtrl >>= xCtrlModel;
387 pCtrlObj->SetUnoControlModel( xCtrlModel );
388 pCtrlObj->SetDlgEdForm( pDlgEdForm.get() );
389 pDlgEdForm->AddChild( pCtrlObj.get() );
390 pDlgEdModel->GetPage(0)->InsertObject( pCtrlObj.get() );
391 pCtrlObj->SetRectFromProps();
392 pCtrlObj->UpdateStep();
393 pCtrlObj->StartListening();
399 pDlgEdModel->SetChanged(
false);
402void DlgEditor::ResetDialog ()
404 DlgEdForm* pOldDlgEdForm = pDlgEdForm.get();
406 SdrPageView* pPgView = pDlgEdView->GetSdrPageView();
407 bool bWasMarked = pDlgEdView->IsObjMarked( pOldDlgEdForm );
408 pDlgEdView->UnmarkAll();
414 SetDialog( m_xUnoControlDialogModel );
416 pDlgEdView->MarkObj( pDlgEdForm.get(), pPgView );
422 if ( !m_xSupplier.is() )
427 ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
428 if ( !m_xSupplier.is() )
430 m_xSupplier = xSupplier;
440 pFunc->MouseButtonDown( rMEvt );
446 bool bRet = pFunc->MouseButtonUp( rMEvt );
448 if(
eMode == DlgEditor::INSERT )
455 pFunc->MouseMove( rMEvt );
461 return pFunc->KeyInput( rKEvt );
470 if (bFirstDraw && rWindow.IsVisible() && (rRenderContext.
GetOutputSize() !=
Size()))
475 css::uno::Reference<css::beans::XPropertySet> xPSet(pDlgEdForm->GetUnoControlModel(), css::uno::UNO_QUERY);
480 sal_Int32 nWidth = 0, nHeight = 0;
484 if (nWidth == 0 && nHeight == 0)
504 if( (aPos.
X() < aMinPos.
X()) || (aPos.
Y() < aMinPos.
Y()) )
513 pDlgEdForm->EndListening(
false);
514 pDlgEdForm->SetPropsFromRect();
515 pDlgEdForm->GetDlgEditor().SetDialogModelChanged();
516 pDlgEdForm->StartListening();
519 if (
const size_t nObjCount = pDlgEdPage->GetObjCount())
521 for (
size_t i = 0 ;
i < nObjCount ; ++
i)
525 if (!
dynamic_cast<DlgEdForm*
>(pDlgEdObj))
527 pDlgEdObj->SetRectFromProps();
537 SdrPageView* pPgView = pDlgEdView->GetSdrPageView();
547 OSL_ENSURE(pTargetPaintWindow,
"BeginDrawLayers: Got no SdrPaintWindow (!)");
552 if (pTargetPaintWindow)
572 rLayout.UpdatePropertyBrowser();
576void DlgEditor::SetMode (
Mode eNewMode )
578 if ( eNewMode !=
eMode )
586 pDlgEdModel->SetReadOnly(
true );
588 pDlgEdModel->SetReadOnly(
false );
591 if ( eNewMode ==
TEST )
602 pDlgEdView->SetCurrentObj( eActObj, SdrInventor::BasicDialog );
605void DlgEditor::CreateDefaultObject()
610 pDlgEdView->GetCurrentObjInventor(),
611 pDlgEdView->GetCurrentObjIdentifier());
618 Size aSize = rWindow.PixelToLogic(
Size( 96, 24 ) );
619 Point aPoint = pDlgEdForm->GetSnapRect().Center();
628 SdrPageView* pPageView = pDlgEdView->GetSdrPageView();
629 if (pDlgEdView->InsertObjectAtView(pDlgEdObj, *pPageView))
649 sal_Int32 nRead =
xStream->readBytes( readBytes, 1024 );
655 memcpy(
bytes.getArray() +
nPos, readBytes.getConstArray(),
static_cast<sal_uInt32
>(nRead) );
659void DlgEditor::Copy()
661 if( !pDlgEdView->AreObjectsMarked() )
665 pDlgEdView->BrkAction();
672 if ( xClipDialogModel.is() )
675 const OUString* pNames = aNames.getConstArray();
676 sal_uInt32 nCtrls = aNames.getLength();
678 for ( sal_uInt32
n = 0;
n < nCtrls;
n++ )
680 xClipDialogModel->removeByName( pNames[
n] );
685 const size_t nMark = pDlgEdView->GetMarkedObjectList().GetMarkCount();
686 for(
size_t i = 0;
i < nMark; ++
i )
688 SdrObject* pObj = pDlgEdView->GetMarkedObjectList().GetMark(
i)->GetMarkedSdrObj();
691 if (pDlgEdObj && !
dynamic_cast<DlgEdForm*
>(pDlgEdObj))
700 if ( m_xUnoControlDialogModel.is() && m_xUnoControlDialogModel->hasByName(
aName) )
702 Any aCtrl = m_xUnoControlDialogModel->getByName(
aName );
709 aNewCtrl <<= xNewCtrl;
711 if (xClipDialogModel.is())
712 xClipDialogModel->insertByName(
aName , aNewCtrl );
728 if ( !xClipboard.is() )
732 uno::Reference< beans::XPropertySet > xDialogModelPropSet( m_xUnoControlDialogModel, uno::UNO_QUERY );
733 uno::Reference< resource::XStringResourcePersistence > xStringResourcePersistence;
734 if( xDialogModelPropSet.is() )
739 aResourceResolver >>= xStringResourcePersistence;
741 catch(
const UnknownPropertyException& )
746 if( xStringResourcePersistence.is() )
751 LocalizationMgr::resetResourceForDialog( xClipDialogModel, xStringResourcePersistence );
756 xStream2->closeInput();
759 Any aNoResourceDialogModelBytesAny;
760 aNoResourceDialogModelBytesAny <<= NoResourceDialogModelBytes;
766 sal_Int32 nDialogDataLen = DialogModelBytes.getLength();
767 sal_Int32 nResDataLen = aResData.getLength();
771 sal_Int32 nTotalLen = 4 + nDialogDataLen + nResDataLen;
772 sal_Int32 nResOffset = 4 + nDialogDataLen;
774 sal_Int8* pCombinedData = aCombinedData.getArray();
777 sal_Int32
n = nResOffset;
778 for( sal_Int16
i = 0 ;
i < 4 ;
i++ )
783 memcpy( pCombinedData + 4, DialogModelBytes.getConstArray(), nDialogDataLen );
784 memcpy( pCombinedData + nResOffset, aResData.getConstArray(), nResDataLen );
788 aNoResourceDialogModelBytesAny,
800 xClipboard->setContents( pTrans , pTrans );
804void DlgEditor::Paste()
807 pDlgEdView->BrkAction();
810 pDlgEdView->UnmarkAll();
814 if ( !xClipboard.is() )
821 xTransf = xClipboard->getContents();
827 uno::Reference< beans::XPropertySet > xDialogModelPropSet( m_xUnoControlDialogModel, uno::UNO_QUERY );
828 uno::Reference< resource::XStringResourceManager > xStringResourceManager;
829 if( xDialogModelPropSet.is() )
834 aResourceResolver >>= xStringResourceManager;
836 catch(
const UnknownPropertyException& )
839 bool bLocalized =
false;
840 if( xStringResourceManager.is() )
841 bLocalized = xStringResourceManager->getLocales().hasElements();
843 if ( !xTransf->isDataFlavorSupported( m_ClipboardDataFlavors[0] ) )
849 "com.sun.star.awt.UnoControlDialogModel", xContext ), uno::UNO_QUERY );
851 bool bSourceIsLocalized =
false;
854 if( bLocalized && xTransf->isDataFlavorSupported( m_ClipboardDataFlavorsResource[1] ) )
856 bSourceIsLocalized =
true;
858 Any aCombinedDataAny = xTransf->getTransferData( m_ClipboardDataFlavorsResource[1] );
860 aCombinedDataAny >>= aCombinedData;
861 const sal_Int8* pCombinedData = aCombinedData.getConstArray();
863 sal_Int32 nTotalLen = aCombinedData.getLength();
866 sal_Int32 nResOffset = 0;
867 sal_Int32 nFactor = 1;
868 for( sal_Int16
i = 0;
i < 4;
i++ )
870 nResOffset += nFactor *
sal_uInt8( pCombinedData[
i] );
874 sal_Int32 nResDataLen = nTotalLen - nResOffset;
875 sal_Int32 nDialogDataLen = nTotalLen - nResDataLen - 4;
877 DialogModelBytes.realloc( nDialogDataLen );
878 memcpy( DialogModelBytes.getArray(), pCombinedData + 4, nDialogDataLen );
880 aResData.realloc( nResDataLen );
881 memcpy( aResData.getArray(), pCombinedData + nResOffset, nResDataLen );
885 Any aAny = xTransf->getTransferData( m_ClipboardDataFlavors[0] );
886 aAny >>= DialogModelBytes;
889 if ( xClipDialogModel.is() )
891 Reference<XInputStream> xIn = ::xmlscript::createInputStream( DialogModelBytes.getConstArray(), DialogModelBytes.getLength() );
892 ::xmlscript::importDialogModel( xIn , xClipDialogModel, xContext,
m_xDocument );
896 if ( !xClipDialogModel.is() )
900 const OUString* pNames = aNames.getConstArray();
901 sal_uInt32 nCtrls = aNames.getLength();
904 if( nCtrls > 0 && bSourceIsLocalized )
907 xStringResourcePersistence->importBinary( aResData );
909 for( sal_uInt32
n = 0;
n < nCtrls;
n++ )
911 Any aA = xClipDialogModel->getByName( pNames[
n] );
920 pCtrlObj->SetDlgEdForm(pDlgEdForm.get());
921 pDlgEdForm->AddChild(pCtrlObj.get());
922 pCtrlObj->SetUnoControlModel( xCtrlModel );
925 OUString aOUniqueName( pCtrlObj->GetUniqueName() );
936 aControlAny <<= xCtrlModel;
937 if( bSourceIsLocalized && xStringResourcePersistence.is() )
939 LocalizationMgr::copyResourcesForPastedEditorObject(
this,
940 aControlAny, aOUniqueName, xStringResourcePersistence );
944 LocalizationMgr::setControlResourceIDsForNewEditorObject
945 (
this, aControlAny, aOUniqueName );
951 aCtrlModel <<= xCtrlModel;
952 m_xUnoControlDialogModel->insertByName( aOUniqueName , aCtrlModel );
955 pDlgEdModel->GetPage(0)->InsertObject( pCtrlObj.get() );
956 pCtrlObj->SetRectFromProps();
957 pCtrlObj->UpdateStep();
958 pDlgEdForm->UpdateTabOrderAndGroups();
959 pCtrlObj->StartListening();
962 SdrPageView* pPgView = pDlgEdView->GetSdrPageView();
963 pDlgEdView->MarkObj( pCtrlObj.get(), pPgView,
false,
true);
967 Point aMarkCenter = pDlgEdView->GetMarkedObjRect().Center();
968 Point aFormCenter = pDlgEdForm->GetSnapRect().Center();
969 Point aPoint = aFormCenter - aMarkCenter;
970 Size aSize( aPoint.
X() , aPoint.
Y() );
971 pDlgEdView->MoveMarkedObj( aSize );
972 pDlgEdView->MarkListHasChanged();
975 SetDialogModelChanged();
979void DlgEditor::Delete()
981 if( !pDlgEdView->AreObjectsMarked() )
985 const size_t nMark = pDlgEdView->GetMarkedObjectList().GetMarkCount();
987 for(
size_t i = 0;
i < nMark; ++
i )
989 SdrObject* pObj = pDlgEdView->GetMarkedObjectList().GetMark(
i)->GetMarkedSdrObj();
992 if ( pDlgEdObj && !
dynamic_cast<DlgEdForm*
>(pDlgEdObj) )
996 uno::Reference< beans::XPropertySet > xPSet(pDlgEdObj->
GetUnoControlModel(), uno::UNO_QUERY);
1004 if ( xNameAcc.is() && xNameAcc->hasByName(
aName) )
1009 if( xCont->hasByName(
aName ) )
1011 Any aAny = xCont->getByName(
aName );
1012 LocalizationMgr::deleteControlResourceIDsForDeletedEditorObject(
this, aAny,
aName );
1014 xCont->removeByName(
aName );
1019 pDlgEdForm->RemoveChild( pDlgEdObj );
1024 pDlgEdForm->UpdateTabIndices();
1026 pDlgEdView->BrkAction();
1028 bool const bDlgMarked = UnmarkDialog();
1029 pDlgEdView->DeleteMarked();
1035bool DlgEditor::IsPasteAllowed()
1039 if ( xClipboard.is() )
1045 xTransf = xClipboard->getContents();
1048 return xTransf->isDataFlavorSupported(m_ClipboardDataFlavors[0]);
1054void DlgEditor::ShowProperties()
1056 rLayout.ShowPropertyBrowser();
1060void DlgEditor::UpdatePropertyBrowserDelayed()
1066bool DlgEditor::IsModified()
const
1068 return pDlgEdModel->IsChanged() || bDialogModelChanged;
1072void DlgEditor::ClearModifyFlag()
1074 pDlgEdModel->SetChanged(
false);
1075 bDialogModelChanged =
false;
1112 Point(nXLeft, nYTop),
1117 Point aPos(Print::nLeftMargin, nY);
1118 pPrinter->
DrawText( aPos, rTitle );
1127void DlgEditor::printPage( sal_Int32 nPage,
Printer* pPrinter,
const OUString& rTitle )
1130 Print( pPrinter, rTitle );
1134void DlgEditor::Print(
Printer* pPrinter,
const OUString& rTitle )
1154 double nPaperSzWidth = aPaperSz.
Width();
1155 double nPaperSzHeight = aPaperSz.
Height();
1156 double nBmpSzWidth = aBmpSz.
Width();
1157 double nBmpSzHeight = aBmpSz.
Height();
1158 double nScaleX = nPaperSzWidth / nBmpSzWidth;
1159 double nScaleY = nPaperSzHeight / nBmpSzHeight;
1162 if( nBmpSzHeight * nScaleX <= nPaperSzHeight )
1174 (aPaperSz.
Width() / 2) - (aOutputSz.
Width() / 2),
1177 aPosOffs.
AdjustX(Print::nLeftMargin );
1183 pPrinter->
SetFont( aOldFont );
1187bool DlgEditor::AdjustPageSize()
1189 bool bAdjustedPageSize =
false;
1193 sal_Int32 nFormXIn = 0, nFormYIn = 0, nFormWidthIn = 0, nFormHeightIn = 0;
1199 sal_Int32 nFormX, nFormY, nFormWidth, nFormHeight;
1200 if ( pDlgEdForm && pDlgEdForm->TransformFormToSdrCoordinates( nFormXIn, nFormYIn, nFormWidthIn, nFormHeightIn, nFormX, nFormY, nFormWidth, nFormHeight ) )
1202 Size aPageSizeDelta( 400, 300 );
1203 aPageSizeDelta = rWindow.PixelToLogic( aPageSizeDelta,
MapMode( MapUnit::Map100thMM ) );
1205 sal_Int32 nNewPageWidth = nFormX + nFormWidth + aPageSizeDelta.
Width();
1206 sal_Int32 nNewPageHeight = nFormY + nFormHeight + aPageSizeDelta.
Height();
1209 aPageSizeMin = rWindow.PixelToLogic( aPageSizeMin,
MapMode( MapUnit::Map100thMM ) );
1210 sal_Int32 nPageWidthMin = aPageSizeMin.
Width();
1211 sal_Int32 nPageHeightMin = aPageSizeMin.
Height();
1213 if ( nNewPageWidth < nPageWidthMin )
1214 nNewPageWidth = nPageWidthMin;
1216 if ( nNewPageHeight < nPageHeightMin )
1217 nNewPageHeight = nPageHeightMin;
1221 Size aPageSize = pDlgEdPage->GetSize();
1222 if ( nNewPageWidth != aPageSize.
Width() || nNewPageHeight != aPageSize.
Height() )
1224 Size aNewPageSize( nNewPageWidth, nNewPageHeight );
1225 pDlgEdPage->SetSize( aNewPageSize );
1227 bAdjustedPageSize =
true;
1233 return bAdjustedPageSize;
const StyleSettings & GetStyleSettings() const
const Size & GetSizePixel() const
Size GetOutputSize() const
const vcl::Font & GetFont() const
void DrawBitmapEx(const Point &rDestPt, const BitmapEx &rBitmapEx)
void SetFont(const vcl::Font &rNewFont)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
void DrawRect(const tools::Rectangle &rRect)
void DrawLine(const Point &rStartPt, const Point &rEndPt)
const MapMode & GetMapMode() const
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
tools::Long GetTextHeight() const
void DrawText(const Point &rStartPt, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, std::vector< tools::Rectangle > *pVector=nullptr, OUString *pDisplayText=nullptr, const SalLayoutGlyphs *pLayoutCache=nullptr)
const AllSettings & GetSettings() const
SAL_DLLPRIVATE void DrawWallpaper(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const Wallpaper &rWallpaper)
constexpr tools::Long Y() const
void setX(tools::Long nX)
void setY(tools::Long nY)
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() const
const OUString & GetControlLayerName() const
SdrLayer * NewLayer(const OUString &rName, sal_uInt16 nPos=0xFFFF)
static rtl::Reference< SdrObject > MakeNewObject(SdrModel &rSdrModel, SdrInventor nInventor, SdrObjKind nObjIdentifier, const tools::Rectangle *pSnapRect=nullptr)
virtual void InsertObject(SdrObject *pObj, size_t nPos=SAL_MAX_SIZE)
virtual void SetSnapRect(const tools::Rectangle &rRect)
void EndDrawLayers(SdrPaintWindow &rPaintWindow, bool bPaintFormLayer)
SdrPaintWindow * BeginDrawLayers(OutputDevice *pOut, const vcl::Region &rReg, bool bDisableIntersect=false)
OutputDevice & GetTargetOutputDevice()
const css::uno::Reference< css::awt::XControlModel > & GetUnoControlModel() const
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
const Color & GetLightColor() const
static css::uno::Reference< css::awt::XControlContainer > CreateControlContainer(vcl::Window *pWindow)
virtual ~DlgEdHint() override
DlgEdForm * GetDlgEdForm() const
void SetDlgEdForm(DlgEdForm *pForm)
css::uno::Reference< css::container::XNameContainer > m_xUnoControlDialogModel
DlgEditor(vcl::Window &, DialogWindowLayout &, css::uno::Reference< css::frame::XModel > const &xModel, css::uno::Reference< css::container::XNameContainer > const &xDialogModel)
std::unique_ptr< DlgEdModel > pDlgEdModel
std::unique_ptr< DlgEdView > pDlgEdView
void SetFontSize(const Size &)
void SetWeight(FontWeight)
void SetAlignment(TextAlign)
virtual css::uno::Reference< css::awt::XVclWindowPeer > GetComponentInterface(bool bCreate=true)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
Reference< XOfficeDatabaseDocument > m_xDocument
#define DBG_ASSERT(sCon, aError)
#define LINK(Instance, Class, Member)
tools::Long const nRightMargin
tools::Long const nBottomMargin
tools::Long const nTopMargin
tools::Long const nBorder
constexpr OUStringLiteral DLGED_PROP_NAME
constexpr auto DLGED_PAGE_WIDTH_MIN
IMPL_LINK_NOARG(DlgEditor, MarkTimeout, Timer *, void)
constexpr auto DLGED_PAGE_HEIGHT_MIN
constexpr OUStringLiteral aDecorationPropName
std::multimap< sal_Int16, OUString > IndexToNameMap
constexpr OUStringLiteral aResourceResolverPropName
constexpr OUStringLiteral DLGED_PROP_WIDTH
constexpr OUStringLiteral DLGED_PROP_POSITIONX
constexpr OUStringLiteral DLGED_PROP_TABINDEX
constexpr OUStringLiteral DLGED_PROP_HEIGHT
static void implCopyStreamToByteSequence(const Reference< XInputStream > &xStream, Sequence< sal_Int8 > &bytes)
static void lcl_PrintHeader(Printer *pPrinter, const OUString &rTitle)
constexpr OUStringLiteral DLGED_PROP_POSITIONY
Reference< XComponentContext > getProcessComponentContext()
std::vector< sal_uInt8 > bytes
HashMap_OWString_Interface aMap