LibreOffice Module sc (master) 1
drawsh.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#include <svx/svxdlg.hxx>
21#include <svx/dialogs.hrc>
22#include <sc.hrc>
23
24#include <editeng/eeitem.hxx>
25#include <svx/fontwork.hxx>
26#include <svx/svdpage.hxx>
27#include <sfx2/app.hxx>
28#include <sfx2/objface.hxx>
29#include <sfx2/objsh.hxx>
30#include <sfx2/request.hxx>
31#include <sfx2/dispatch.hxx>
32#include <sfx2/viewfrm.hxx>
33#include <svl/whiter.hxx>
34
35#include <drawsh.hxx>
36#include <drwlayer.hxx>
37#include <strings.hrc>
38#include <viewdata.hxx>
39#include <document.hxx>
40#include <drawview.hxx>
41#include <scresid.hxx>
42#include <svx/svdobj.hxx>
43#include <tabvwsh.hxx>
44#include <gridwin.hxx>
45#include <sfx2/bindings.hxx>
46
47#define ShellClass_ScDrawShell
48#include <scslots.hxx>
49
50#include <userdat.hxx>
51#include <svl/macitem.hxx>
52#include <sfx2/evntconf.hxx>
53#include <sfx2/viewsh.hxx>
54#include <com/sun/star/util/XModifiable.hpp>
55#include <memory>
56#include <svx/xlnwtit.hxx>
57#include <svx/chrtitem.hxx>
58#include <svx/xlnclit.hxx>
59#include <svx/xflclit.hxx>
60#include <svx/xflgrit.hxx>
62#include <comphelper/lok.hxx>
63#include <vcl/unohelp2.hxx>
64
65using namespace css;
66
68
69namespace
70{
71 void lcl_convertStringArguments(SfxItemSet& rArgs)
72 {
73 if (const SvxDoubleItem* pWidthItem = rArgs.GetItemIfSet(SID_ATTR_LINE_WIDTH_ARG, false))
74 {
75 double fValue = pWidthItem->GetValue();
76 // FIXME: different units...
77 int nPow = 100;
78 int nValue = fValue * nPow;
79
81 rArgs.Put(aItem);
82 }
83 if (const SfxStringItem* pJSON = rArgs.GetItemIfSet(SID_FILL_GRADIENT_JSON, false))
84 {
85 XGradient aGradient = XGradient::fromJSON(pJSON->GetValue());
86 XFillGradientItem aItem(aGradient);
87 rArgs.Put(aItem);
88 }
89 }
90}
91
93{
95 SfxVisibilityFlags::Standard | SfxVisibilityFlags::Server,
96 ToolbarId::Draw_Objectbar);
97
99
100 GetStaticInterface()->RegisterChildWindow(SvxFontWorkChildWindow::GetChildWindowId());
101}
102
103// disable the unwanted Accelerators
104
106{
107 SfxWhichIter aIter(rSet);
108 sal_uInt16 nWhich = aIter.FirstWhich();
109
110 while (nWhich)
111 {
112 rSet.DisableItem( nWhich );
113 nWhich = aIter.NextWhich();
114 }
115}
116
118{
119 const SfxObjectShell* pShell = GetObjectShell();
120 if ( pShell )
121 {
122 css::uno::Reference< css::util::XModifiable > xModif( pShell->GetModel(), css::uno::UNO_QUERY );
123 if ( xModif.is() )
124 xModif->setModified( true );
125 }
126}
127
128static void lcl_invalidateTransformAttr(const ScTabViewShell* pViewShell)
129{
130 SfxBindings& rBindings=pViewShell->GetViewFrame().GetBindings();
131 rBindings.Invalidate(SID_ATTR_TRANSFORM_WIDTH);
132 rBindings.Invalidate(SID_ATTR_TRANSFORM_HEIGHT);
133 rBindings.Invalidate(SID_ATTR_TRANSFORM_POS_X);
134 rBindings.Invalidate(SID_ATTR_TRANSFORM_POS_Y);
135 rBindings.Invalidate(SID_ATTR_TRANSFORM_ANGLE);
136 rBindings.Invalidate(SID_ATTR_TRANSFORM_ROT_X);
137 rBindings.Invalidate(SID_ATTR_TRANSFORM_ROT_Y);
138 rBindings.Invalidate(SID_ATTR_TRANSFORM_AUTOWIDTH);
139 rBindings.Invalidate(SID_ATTR_TRANSFORM_AUTOHEIGHT);
140}
141
143{
144 sal_uInt16 nSlot = rReq.GetSlot();
148
149 const SdrMarkList& rMarkList = pView->GetMarkedObjectList();
150 const size_t nMarkCount = rMarkList.GetMarkCount();
151 SdrObject* pSingleSelectedObj = nullptr;
152 if ( nMarkCount > 0 )
153 pSingleSelectedObj = rMarkList.GetMark( 0 )->GetMarkedSdrObj();
154
155 switch ( nSlot )
156 {
157 case SID_ASSIGNMACRO:
158 {
159 if ( pSingleSelectedObj )
160 ExecuteMacroAssign(pSingleSelectedObj, pWin ? pWin->GetFrameWeld() : nullptr);
161 }
162 break;
163
164 case SID_TEXT_STANDARD: // delete hard text attributes
165 {
167 pView->SetAttributes(aEmptyAttr, true);
168 }
169 break;
170 case SID_MOVE_SHAPE_HANDLE:
171 {
172 const SfxItemSet *pArgs = rReq.GetArgs ();
173 if (pArgs && pArgs->Count () >= 3)
174 {
175 const SfxUInt32Item* handleNumItem = rReq.GetArg<SfxUInt32Item>(FN_PARAM_1);
176 const SfxUInt32Item* newPosXTwips = rReq.GetArg<SfxUInt32Item>(FN_PARAM_2);
177 const SfxUInt32Item* newPosYTwips = rReq.GetArg<SfxUInt32Item>(FN_PARAM_3);
178 const SfxInt32Item* OrdNum = rReq.GetArg<SfxInt32Item>(FN_PARAM_4);
179
180 const sal_uLong handleNum = handleNumItem->GetValue();
181 const sal_uLong newPosX = convertTwipToMm100(newPosXTwips->GetValue());
182 const sal_uLong newPosY = convertTwipToMm100(newPosYTwips->GetValue());
183
185 pView->MoveShapeHandle(handleNum, Point(bNegateX ? -static_cast<tools::Long>(newPosX) : newPosX, newPosY), OrdNum ? OrdNum->GetValue() : -1);
186 }
187 }
188 break;
189
190 case SID_ATTR_LINE_STYLE:
191 case SID_ATTR_LINEEND_STYLE:
192 case SID_ATTR_LINE_START:
193 case SID_ATTR_LINE_END:
194 case SID_ATTR_LINE_DASH:
195 case SID_ATTR_LINE_WIDTH:
196 case SID_ATTR_LINE_COLOR:
197 case SID_ATTR_LINE_TRANSPARENCE:
198 case SID_ATTR_LINE_JOINT:
199 case SID_ATTR_LINE_CAP:
200 case SID_ATTR_FILL_STYLE:
201 case SID_ATTR_FILL_COLOR:
202 case SID_ATTR_FILL_GRADIENT:
203 case SID_ATTR_FILL_HATCH:
204 case SID_ATTR_FILL_BITMAP:
205 case SID_ATTR_FILL_TRANSPARENCE:
206 case SID_ATTR_FILL_FLOATTRANSPARENCE:
207
208 // #i25616#
209 case SID_ATTR_FILL_SHADOW:
210 case SID_ATTR_SHADOW_TRANSPARENCE:
211 case SID_ATTR_SHADOW_COLOR:
212 case SID_ATTR_SHADOW_XDISTANCE:
213 case SID_ATTR_SHADOW_YDISTANCE:
214 {
215 // if toolbar is vertical :
216 if ( !rReq.GetArgs() )
217 {
218 switch ( nSlot )
219 {
220 case SID_ATTR_LINE_STYLE:
221 case SID_ATTR_LINE_DASH:
222 case SID_ATTR_LINE_WIDTH:
223 case SID_ATTR_LINE_COLOR:
224 case SID_ATTR_LINE_TRANSPARENCE:
225 case SID_ATTR_LINE_JOINT:
226 case SID_ATTR_LINE_CAP:
227 ExecuteLineDlg( rReq );
228 break;
229
230 case SID_ATTR_FILL_STYLE:
231 case SID_ATTR_FILL_COLOR:
232 case SID_ATTR_FILL_GRADIENT:
233 case SID_ATTR_FILL_HATCH:
234 case SID_ATTR_FILL_BITMAP:
235 case SID_ATTR_FILL_TRANSPARENCE:
236 case SID_ATTR_FILL_FLOATTRANSPARENCE:
237
238 // #i25616#
239 case SID_ATTR_FILL_SHADOW:
240 case SID_ATTR_SHADOW_TRANSPARENCE:
241 case SID_ATTR_SHADOW_COLOR:
242 case SID_ATTR_SHADOW_XDISTANCE:
243 case SID_ATTR_SHADOW_YDISTANCE:
244 ExecuteAreaDlg( rReq );
245 break;
246
247 default:
248 break;
249 }
250
251 return;
252
253 }
254
255 if( pView->AreObjectsMarked() )
256 {
257 SfxItemSet aNewArgs = rReq.GetArgs()->CloneAsValue();
258 lcl_convertStringArguments(aNewArgs);
259 pView->SetAttrToMarked( aNewArgs, false );
260 }
261 else
262 pView->SetDefaultAttr( *rReq.GetArgs(), false);
263 pView->InvalidateAttribs();
264 }
265 break;
266
267 case SID_ATTRIBUTES_LINE:
268 ExecuteLineDlg( rReq );
269 break;
270
271 case SID_ATTRIBUTES_AREA:
272 ExecuteAreaDlg( rReq );
273 break;
274
275 case SID_MEASURE_DLG:
276 ExecuteMeasureDlg( rReq );
277 break;
278
279 case SID_DRAWTEXT_ATTR_DLG:
280 ExecuteTextAttrDlg( rReq );
281 break;
282
283 case SID_EDIT_HYPERLINK:
284 if ( pSingleSelectedObj )
285 rViewData.GetDispatcher().Execute( SID_HYPERLINK_DIALOG );
286 break;
287
288 case SID_REMOVE_HYPERLINK:
289 if ( pSingleSelectedObj )
290 {
291 pSingleSelectedObj->setHyperlink(OUString());
292 setModified();
293 }
294 break;
295
296 case SID_OPEN_HYPERLINK:
297 case SID_COPY_HYPERLINK_LOCATION:
298 if ( nMarkCount == 1 )
299 {
300 SdrObject* pObj = rMarkList.GetMark( 0 )->GetMarkedSdrObj();
301 if ( pObj->IsGroupObject() )
302 {
303 SdrPageView* pPV = nullptr;
304 SdrObject* pHit = pView->PickObj(pWin->PixelToLogic(rViewData.GetMousePosPixel()), pView->getHitTolLog(), pPV, SdrSearchOptions::DEEP);
305 if (pHit)
306 pObj = pHit;
307 }
308
309 if (!pObj->getHyperlink().isEmpty())
310 {
311 if (nSlot == SID_OPEN_HYPERLINK)
312 {
313 ScGlobal::OpenURL(pObj->getHyperlink(), OUString(), true);
314 }
315 else if (nSlot == SID_COPY_HYPERLINK_LOCATION)
316 {
317 uno::Reference<datatransfer::clipboard::XClipboard> xClipboard
320 }
321 }
322 }
323 break;
324
325 case SID_ATTR_TRANSFORM:
326 {
327 if ( pView->AreObjectsMarked() )
328 {
329 const SfxItemSet* pArgs = rReq.GetArgs();
330
331 if( !pArgs )
332 {
333 if( rMarkList.GetMark(0) != nullptr )
334 {
335 SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
336 std::shared_ptr<SfxRequest> pRequest = std::make_shared<SfxRequest>(rReq);
337
338 if( pObj->GetObjIdentifier() == SdrObjKind::Caption )
339 {
340 // Caption Itemset
341 SfxItemSet aNewAttr(pDoc->GetItemPool());
342 pView->GetAttributes(aNewAttr);
343 // Size and Position Itemset
344 SfxItemSet aNewGeoAttr(pView->GetGeoAttrFromMarked());
345
347 VclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateCaptionDialog(pWin ? pWin->GetFrameWeld() : nullptr, pView));
348
349 const WhichRangesContainer& pRange = pDlg->GetInputRanges( *aNewAttr.GetPool() );
350 SfxItemSet aCombSet( *aNewAttr.GetPool(), pRange );
351 aCombSet.Put( aNewAttr );
352 aCombSet.Put( aNewGeoAttr );
353 pDlg->SetInputSet( &aCombSet );
354
355 pDlg->StartExecuteAsync([pDlg, pRequest, pView, this](
356 sal_Int32 nResult){
357 if (nResult == RET_OK)
358 {
359 pRequest->Done(*(pDlg->GetOutputItemSet()));
360 pView->SetAttributes(*pDlg->GetOutputItemSet());
361 pView->SetGeoAttrToMarked(*pDlg->GetOutputItemSet());
362 }
363
365 pDlg->disposeOnce();
366 });
367 }
368 else
369 {
370 SfxItemSet aNewAttr(pView->GetGeoAttrFromMarked());
372 VclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateSvxTransformTabDialog(pWin ? pWin->GetFrameWeld() : nullptr, &aNewAttr, pView));
373
374 pDlg->StartExecuteAsync([pDlg, pRequest, pView, this](
375 sal_Int32 nResult){
376 if (nResult == RET_OK)
377 {
378 pRequest->Done(*(pDlg->GetOutputItemSet()));
379 pView->SetGeoAttrToMarked(*pDlg->GetOutputItemSet());
380 }
381
383 pDlg->disposeOnce();
384 });
385 }
386 }
387
388 }
389 else
390 pView->SetGeoAttrToMarked( *pArgs );
391 }
392
394 }
395 break;
396
397 case SID_ATTR_GLOW_COLOR:
398 case SID_ATTR_GLOW_RADIUS:
399 case SID_ATTR_GLOW_TRANSPARENCY:
400 case SID_ATTR_SOFTEDGE_RADIUS:
401 case SID_ATTR_TEXTCOLUMNS_NUMBER:
402 case SID_ATTR_TEXTCOLUMNS_SPACING:
403 if (const SfxItemSet* pNewArgs = rReq.GetArgs())
404 pView->SetAttrToMarked(*pNewArgs, false);
405 rReq.Done();
406 break;
407
408 default:
409 break;
410 }
411}
412
414{
415 SvxMacroItem aItem ( SfxGetpApp()->GetPool().GetWhich( SID_ATTR_MACROITEM ) );
416 ScMacroInfo* pInfo = ScDrawLayer::GetMacroInfo( pObj, true );
417 if ( !pInfo->GetMacro().isEmpty() )
418 {
420 const OUString& sMacro = pInfo->GetMacro();
421 aTab.Insert(SvMacroItemId::OnClick, SvxMacro(sMacro, OUString()));
422 aItem.SetMacroTable( aTab );
423 }
424
425 // create empty itemset for macro-dlg
427 aItemSet.Put ( aItem );
428
429 SfxEventNamesItem aNamesItem(SID_EVENTCONFIG);
430 aNamesItem.AddEvent( ScResId(RID_SCSTR_ONCLICK), OUString(), SvMacroItemId::OnClick );
431 aItemSet.Put( aNamesItem );
432
433 css::uno::Reference < css::frame::XFrame > xFrame;
434 if (GetViewShell())
436
438 ScopedVclPtr<SfxAbstractDialog> pMacroDlg(pFact->CreateEventConfigDialog( pWin, aItemSet, xFrame ));
439 if ( pMacroDlg->Execute() != RET_OK )
440 return;
441
442 const SfxItemSet* pOutSet = pMacroDlg->GetOutputItemSet();
443 const SvxMacroItem* pItem = pOutSet->GetItemIfSet( SID_ATTR_MACROITEM, false );
444 if( !pItem )
445 return;
446
447 OUString sMacro;
448 const SvxMacro* pMacro = pItem->GetMacroTable().Get( SvMacroItemId::OnClick );
449 if ( pMacro )
450 sMacro = pMacro->GetMacName();
451
452 if ( pObj->IsGroupObject() )
453 {
454 SdrObjList* pOL = pObj->GetSubList();
455 const size_t nObj = pOL->GetObjCount();
456 for ( size_t index=0; index<nObj; ++index )
457 {
458 pInfo = ScDrawLayer::GetMacroInfo( pOL->GetObj(index), true );
459 pInfo->SetMacro( sMacro );
460 }
461 }
462 else
463 pInfo->SetMacro( sMacro );
464 setModified();
465}
466
468{
470 bool bHasMarked = pView->AreObjectsMarked();
471 const SdrObject* pObj = nullptr;
472 const SdrMarkList& rMarkList = pView->GetMarkedObjectList();
473
474 std::shared_ptr<SfxRequest> pRequest = std::make_shared<SfxRequest>(rReq);
475
476 if( rMarkList.GetMarkCount() == 1 )
477 pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
478
479 SfxItemSet aNewAttr( pView->GetDefaultAttr() );
480 if( bHasMarked )
481 pView->MergeAttrFromMarked( aNewAttr, false );
482
485 &aNewAttr,
487 pObj,
488 bHasMarked));
489
490 pDlg->StartExecuteAsync([=](sal_Int32 nResult){
491 if ( nResult == RET_OK )
492 {
493 if( bHasMarked )
494 pView->SetAttrToMarked( *pDlg->GetOutputItemSet(), false );
495 else
496 pView->SetDefaultAttr( *pDlg->GetOutputItemSet(), false );
497
498 pView->InvalidateAttribs();
499 pRequest->Done();
500 }
501 pDlg->disposeOnce();
502 });
503}
504
506{
508 bool bHasMarked = pView->AreObjectsMarked();
509
510 std::shared_ptr<SfxRequest> pRequest = std::make_shared<SfxRequest>(rReq);
511
512 SfxItemSet aNewAttr( pView->GetDefaultAttr() );
513 if( bHasMarked )
514 pView->MergeAttrFromMarked( aNewAttr, false );
515
519 pWin, &aNewAttr,
520 rViewData.GetDocument().GetDrawLayer(), true, false));
521
522 pDlg->StartExecuteAsync([=](sal_Int32 nResult){
523 if ( nResult == RET_OK )
524 {
525 if( bHasMarked )
526 pView->SetAttrToMarked( *pDlg->GetOutputItemSet(), false );
527 else
528 pView->SetDefaultAttr( *pDlg->GetOutputItemSet(), false );
529
530 pView->InvalidateAttribs();
531 pRequest->Done();
532 }
533 pDlg->disposeOnce();
534 });
535}
536
538{
540 bool bHasMarked = pView->AreObjectsMarked();
541 SfxItemSet aNewAttr ( pView->GetDefaultAttr() );
542
543 if( bHasMarked )
544 pView->MergeAttrFromMarked( aNewAttr, false );
545
548 ScopedVclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateTextTabDialog(pWin, &aNewAttr, pView));
549
550 sal_uInt16 nResult = pDlg->Execute();
551
552 if ( RET_OK == nResult )
553 {
554 if ( bHasMarked )
555 pView->SetAttributes( *pDlg->GetOutputItemSet() );
556 else
557 pView->SetDefaultAttr( *pDlg->GetOutputItemSet(), false );
558
559 pView->InvalidateAttribs();
560 rReq.Done();
561 }
562}
563
565{
567 bool bHasMarked = pView->AreObjectsMarked();
568 SfxItemSet aNewAttr ( pView->GetDefaultAttr() );
569
570 if( bHasMarked )
571 pView->MergeAttrFromMarked( aNewAttr, false );
572
575 ScopedVclPtr<SfxAbstractDialog> pDlg(pFact->CreateSfxDialog(pWin, aNewAttr, pView, RID_SVXPAGE_MEASURE));
576
577 sal_uInt16 nResult = pDlg->Execute();
578
579 if ( RET_OK == nResult )
580 {
581 if ( bHasMarked )
582 pView->SetAttrToMarked( *pDlg->GetOutputItemSet(), false );
583 else
584 pView->SetDefaultAttr( *pDlg->GetOutputItemSet(), false );
585
586 pView->InvalidateAttribs();
587 rReq.Done();
588 }
589}
590
591/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr auto convertTwipToMm100(N n)
SfxApplication * SfxGetpApp()
#define GetWhich(nSlot)
sal_uInt32 GetValue() const
SC_DLLPUBLIC ScDrawLayer * GetDrawLayer()
Definition: document.hxx:1083
SC_DLLPUBLIC bool IsLayoutRTL(SCTAB nTab) const
Definition: document.cxx:998
static ScMacroInfo * GetMacroInfo(SdrObject *pObj, bool bCreate=false)
Definition: drwlayer.cxx:2659
void ExecuteLineDlg(const SfxRequest &rReq)
Definition: drawsh.cxx:467
void ExecDrawAttr(SfxRequest &rReq)
Definition: drawsh.cxx:142
void ExecuteAreaDlg(const SfxRequest &rReq)
Definition: drawsh.cxx:505
void ExecuteTextAttrDlg(SfxRequest &rReq)
Definition: drawsh.cxx:537
void ExecuteMacroAssign(SdrObject *pObj, weld::Window *pWin)
Definition: drawsh.cxx:413
static void InitInterface_Impl()
SfxInterface initializer.
Definition: drawsh.cxx:92
ScViewData & rViewData
Definition: drawsh.hxx:41
void ExecuteMeasureDlg(SfxRequest &rReq)
Definition: drawsh.cxx:564
void setModified()
Definition: drawsh.cxx:117
static void StateDisableItems(SfxItemSet &rSet)
Definition: drawsh.cxx:105
void InvalidateAttribs()
Definition: drawview.cxx:153
static void OpenURL(const OUString &rURL, const OUString &rTarget, bool bIgnoreSettings=false)
Open the specified URL.
Definition: global.cxx:808
const OUString & GetMacro() const
Definition: userdat.hxx:82
void SetMacro(const OUString &rMacro)
Definition: userdat.hxx:81
SfxDispatcher & GetDispatcher()
Definition: viewdata.cxx:3135
Point GetMousePosPixel()
Definition: viewdata.cxx:4013
SCTAB GetTabNo() const
Definition: viewdata.hxx:395
ScDocument & GetDocument() const
Definition: viewdata.hxx:380
ScGridWindow * GetActiveWin()
Definition: viewdata.cxx:3157
ScTabViewShell * GetViewShell() const
Definition: viewdata.hxx:357
weld::Window * GetDialogParent()
Definition: viewdata.cxx:3151
ScDrawView * GetScDrawView()
Definition: viewdata.cxx:3169
void SetAttrToMarked(const SfxItemSet &rAttr, bool bReplaceAll)
void SetGeoAttrToMarked(const SfxItemSet &rAttr, bool addPageMargin=false)
void MergeAttrFromMarked(SfxItemSet &rAttr, bool bOnlyHardAttr) const
SfxItemSet GetGeoAttrFromMarked() const
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
bool AreObjectsMarked() const
SdrObject * PickObj(const Point &rPnt, short nTol, SdrPageView *&rpPV, SdrSearchOptions nOptions, SdrObject **ppRootObj, bool *pbHitPassDirect=nullptr) const
SdrObject * GetMarkedSdrObj() const
const SfxItemPool & GetItemPool() const
SdrObject * GetObj(size_t nNum) const
size_t GetObjCount() const
const OUString & getHyperlink() const
virtual SdrObjList * GetSubList() const
bool IsGroupObject() const
virtual SdrObjKind GetObjIdentifier() const
void setHyperlink(const OUString &sHyperlink)
const SfxItemSet & GetDefaultAttr() const
void SetDefaultAttr(const SfxItemSet &rAttr, bool bReplaceAll)
sal_uInt16 getHitTolLog() const
bool SetAttributes(const SfxItemSet &rSet, bool bReplaceAll=false)
bool MoveShapeHandle(const sal_uInt32 handleNum, const Point &aEndPoint, const sal_Int32 aObjectOrdNum=-1)
void GetAttributes(SfxItemSet &rTargetSet, bool bOnlyHardAttr=false) const
void Invalidate(sal_uInt16 nId)
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
void AddEvent(const OUString &, const OUString &, SvMacroItemId)
const css::uno::Reference< css::frame::XFrame > & GetFrameInterface() const
void RegisterPopupMenu(const OUString &)
void RegisterChildWindow(sal_uInt16, bool bContext=false)
void RegisterObjectBar(sal_uInt16, SfxVisibilityFlags nFlags, ToolbarId eId)
SfxItemPool * GetPool() const
sal_uInt16 Count() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SfxItemSet CloneAsValue(bool bItems=true, SfxItemPool *pToPool=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void DisableItem(sal_uInt16 nWhich)
css::uno::Reference< css::frame::XModel3 > GetModel() const
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
const T * GetArg(sal_uInt16 nSlotId) const
void Done(bool bRemove=false)
SfxItemPool & GetPool() const
virtual SfxObjectShell * GetObjectShell()
static SfxInterface * GetStaticInterface()
SfxViewShell * GetViewShell() const
SfxBindings & GetBindings()
SfxFrame & GetFrame() const
SfxViewFrame & GetViewFrame() const
vcl::Window * GetWindow() const
sal_uInt16 FirstWhich()
sal_uInt16 NextWhich()
virtual VclPtr< AbstractSvxAreaTabDialog > CreateSvxAreaTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, SdrModel *pModel, bool bShadow, bool bSlideBackground)=0
virtual VclPtr< SfxAbstractTabDialog > CreateTextTabDialog(weld::Window *pParent, const SfxItemSet *pAttrSet, SdrView *pView)=0
virtual VclPtr< SfxAbstractDialog > CreateEventConfigDialog(weld::Widget *pParent, const SfxItemSet &rAttr, const css::uno::Reference< css::frame::XFrame > &rFrame)=0
virtual VclPtr< AbstractSvxTransformTabDialog > CreateSvxTransformTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, const SdrView *pView, SvxAnchorIds nAnchorTypes=SvxAnchorIds::NONE)=0
virtual VclPtr< SfxAbstractDialog > CreateSfxDialog(weld::Window *pParent, const SfxItemSet &rAttr, const SdrView *pView, sal_uInt32 nResId)=0
virtual VclPtr< AbstractSvxCaptionDialog > CreateCaptionDialog(weld::Window *pParent, const SdrView *pView, SvxAnchorIds nAnchorTypes=SvxAnchorIds::NONE)=0
virtual VclPtr< SfxAbstractTabDialog > CreateSvxLineTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, SdrModel *pModel, const SdrObject *pObj, bool bHasObj)=0
static SvxAbstractDialogFactory * Create()
const SvxMacroTableDtor & GetMacroTable() const
void SetMacroTable(const SvxMacroTableDtor &rTbl)
SvxMacro & Insert(SvMacroItemId nEvent, const SvxMacro &rMacro)
const SvxMacro * Get(SvMacroItemId nEvent) const
const OUString & GetMacName() const
static XGradient fromJSON(std::u16string_view rJSON)
Point PixelToLogic(const Point &rDevicePt) const
weld::Window * GetFrameWeld() const
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard()
static void CopyStringTo(const OUString &rContent, const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rxClipboard, const vcl::ILibreOfficeKitNotifier *pNotifier=nullptr)
static void lcl_invalidateTransformAttr(const ScTabViewShell *pViewShell)
Definition: drawsh.cxx:128
sal_Int16 nValue
index
long Long
#define SFX_OBJECTBAR_OBJECT
OUString ScResId(TranslateId aId)
Definition: scdll.cxx:90
static SfxItemSet & rSet
#define SFX_IMPL_INTERFACE(Class, SuperClass)
sal_uIntPtr sal_uLong
Reference< XFrame > xFrame
RET_OK