20#include <config_features.h>
27#include <com/sun/star/drawing/XMasterPagesSupplier.hpp>
28#include <com/sun/star/drawing/XDrawPages.hpp>
29#include <com/sun/star/lang/XInitialization.hpp>
30#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
31#include <com/sun/star/ui/dialogs/XSLTFilterDialog.hpp>
32#include <com/sun/star/frame/XDispatchProvider.hpp>
33#include <com/sun/star/util/URLTransformer.hpp>
34#include <com/sun/star/util/XURLTransformer.hpp>
35#include <com/sun/star/scanner/XScannerManager2.hpp>
36#include <com/sun/star/document/XDocumentProperties.hpp>
81#include <svx/svxids.hrc>
124#include <strings.hrc>
134#include <drawdoc.hxx>
135#include <drawview.hxx>
145#include <fuinsert.hxx>
175#include <stlsheet.hxx>
195#define MIN_ACTIONS_FOR_DIALOG 5000
211bool hasCustomPropertyField(std::vector<editeng::Section>
const & aSections, std::u16string_view rName)
219 if (pCustomPropertyField && pCustomPropertyField->
GetName() == rName)
226OUString getWeightString(
SfxItemSet const & rItemSet)
228 OUString sWeightString =
"NORMAL";
234 sWeightString =
"BOLD";
236 return sWeightString;
239class ClassificationCommon
243 uno::Reference<document::XDocumentProperties> m_xDocumentProperties;
244 uno::Reference<beans::XPropertyContainer> m_xPropertyContainer;
247 ClassificationCommon(
sd::DrawViewShell& rDrawViewShell,
const css::uno::Reference<css::document::XDocumentProperties>& rDocProps)
248 : m_rDrawViewShell(rDrawViewShell)
249 , m_xDocumentProperties(rDocProps)
250 , m_xPropertyContainer(m_xDocumentProperties->getUserDefinedProperties())
255class ClassificationCollector :
public ClassificationCommon
258 std::vector<svx::ClassificationResult> m_aResults;
260 void iterateSectionsAndCollect(std::vector<editeng::Section>
const & rSections,
EditTextObject const & rEditText)
262 sal_Int32 nCurrentParagraph = -1;
272 OUString sWeightProperty = getWeightString(rEditText.
GetParaAttribs(nCurrentParagraph));
281 if (pCustomPropertyField)
283 const OUString& aKey = pCustomPropertyField->
GetName();
284 if (m_aKeyCreator.isMarkingTextKey(aKey))
289 else if (m_aKeyCreator.isCategoryNameKey(aKey) || m_aKeyCreator.isCategoryIdentifierKey(aKey))
294 else if (m_aKeyCreator.isMarkingKey(aKey))
299 else if (m_aKeyCreator.isIntellectualPropertyPartKey(aKey))
309 ClassificationCollector(
sd::DrawViewShell & rDrawViewShell,
const css::uno::Reference<css::document::XDocumentProperties>& rDocProps)
310 : ClassificationCommon(rDrawViewShell, rDocProps)
313 std::vector<svx::ClassificationResult>
const & getResults()
const
321 EditMode eOldMode = m_rDrawViewShell.GetEditMode();
327 m_rDrawViewShell.ChangeEditMode(eOldMode,
false);
332 for (sal_uInt16 nPageIndex = 0; nPageIndex <
nCount; ++nPageIndex)
335 for (
size_t nObject = 0; nObject < pMasterPage->
GetObjCount(); ++nObject)
339 if (pRectObject && pRectObject->
GetTextKind() == SdrObjKind::Text)
342 if (pOutlinerParagraphObject)
345 std::vector<editeng::Section> aSections;
349 if (hasCustomPropertyField(aSections, m_aKeyCreator.makeCategoryNameKey()))
351 iterateSectionsAndCollect(aSections, rEditText);
361class ClassificationInserter :
public ClassificationCommon
365 void deleteExistingObjects()
367 OUString sKey = m_aKeyCreator.makeCategoryNameKey();
371 for (sal_uInt16 nPageIndex = 0; nPageIndex <
nCount; ++nPageIndex)
374 for (
size_t nObject = 0; nObject < pMasterPage->
GetObjCount(); ++nObject)
378 if (pRectObject && pRectObject->
GetTextKind() == SdrObjKind::Text)
381 if (pOutlinerParagraphObject)
384 std::vector<editeng::Section> aSections;
387 if (hasCustomPropertyField(aSections, sKey))
397 void fillTheOutliner(
Outliner* pOutliner, std::vector<svx::ClassificationResult>
const & rResults)
399 sal_Int32 nParagraph = -1;
405 switch (rResult.meType)
409 OUString sKey = m_aKeyCreator.makeNumberedTextKey();
417 OUString sKey = m_aKeyCreator.makeCategoryNameKey();
424 OUString sKey = m_aKeyCreator.makeNumberedMarkingKey();
432 OUString sKey = m_aKeyCreator.makeNumberedIntellectualPropertyPartKey();
445 if (rResult.msName ==
"BOLD")
450 SvxNumRule aDefaultNumRule(SvxNumRuleFlags::NONE, 0,
false);
464 ClassificationInserter(
sd::DrawViewShell & rDrawViewShell,
const css::uno::Reference<css::document::XDocumentProperties>& rDocProps)
465 : ClassificationCommon(rDrawViewShell, rDocProps)
469 void insert(std::vector<svx::ClassificationResult>
const & rResults)
472 EditMode eOldMode = m_rDrawViewShell.GetEditMode();
478 m_rDrawViewShell.ChangeEditMode(eOldMode,
false);
482 deleteExistingObjects();
500 Outliner* pOutliner = m_rDrawViewShell.GetDoc()->GetInternalOutliner();
504 pOutliner->
Init(eOutlinerMode);
507 pOutliner->
Init(OutlinerMode::TextObject);
510 fillTheOutliner(pOutliner, rResults);
521 for (sal_uInt16 nPageIndex = 0; nPageIndex <
nCount; ++nPageIndex)
528 *m_rDrawViewShell.GetDoc(),
546 void lcl_convertStringArguments(sal_uInt16 nSlot,
const std::unique_ptr<SfxItemSet>& pArgs)
550 if (SfxItemState::SET == pArgs->GetItemState(SID_ATTR_LINE_WIDTH_ARG,
false, &pItem))
555 int nValue = fValue * nPow;
560 if (SfxItemState::SET == pArgs->GetItemState(SID_FILL_GRADIENT_JSON,
false, &pItem))
571 if (nSlot == SID_ATTR_FILL_COLOR)
580 if (pArgs->GetItemState(SID_ATTR_COLOR_THEME_INDEX,
false, &pItem) == SfxItemState::SET)
582 auto pIntItem =
static_cast<const SfxInt16Item*
>(pItem);
585 if (pArgs->GetItemState(SID_ATTR_COLOR_LUM_MOD,
false, &pItem) == SfxItemState::SET)
587 auto pIntItem =
static_cast<const SfxInt16Item*
>(pItem);
590 if (pArgs->GetItemState(SID_ATTR_COLOR_LUM_OFF,
false, &pItem) == SfxItemState::SET)
592 auto pIntItem =
static_cast<const SfxInt16Item*
>(pItem);
596 pArgs->Put(aColorItem);
620 sal_uInt16 nSId = rReq.
GetSlot();
624 case SID_OUTLINE_TEXT_AUTOFIT:
659 case SID_ATTR_FILL_STYLE:
660 case SID_ATTR_FILL_COLOR:
661 case SID_ATTR_FILL_GRADIENT:
662 case SID_ATTR_FILL_HATCH:
663 case SID_ATTR_FILL_BITMAP:
664 case SID_ATTR_FILL_SHADOW:
665 case SID_ATTR_SHADOW_COLOR:
666 case SID_ATTR_SHADOW_TRANSPARENCE:
667 case SID_ATTR_SHADOW_BLUR:
668 case SID_ATTR_SHADOW_XDISTANCE:
669 case SID_ATTR_SHADOW_YDISTANCE:
670 case SID_ATTR_FILL_USE_SLIDE_BACKGROUND:
671 case SID_ATTR_FILL_TRANSPARENCE:
672 case SID_ATTR_FILL_FLOATTRANSPARENCE:
674 case SID_ATTR_LINE_STYLE:
675 case SID_ATTR_LINE_DASH:
676 case SID_ATTR_LINE_WIDTH:
677 case SID_ATTR_LINE_COLOR:
678 case SID_ATTR_LINEEND_STYLE:
679 case SID_ATTR_LINE_START:
680 case SID_ATTR_LINE_END:
681 case SID_ATTR_LINE_TRANSPARENCE:
682 case SID_ATTR_LINE_JOINT:
683 case SID_ATTR_LINE_CAP:
685 case SID_ATTR_TEXT_FITTOSIZE:
689 std::unique_ptr<SfxItemSet> pNewArgs = rReq.
GetArgs()->
Clone();
690 lcl_convertStringArguments(rReq.
GetSlot(), pNewArgs);
698 case SID_ATTR_FILL_SHADOW:
699 case SID_ATTR_SHADOW_COLOR:
700 case SID_ATTR_SHADOW_TRANSPARENCE:
701 case SID_ATTR_SHADOW_BLUR:
702 case SID_ATTR_SHADOW_XDISTANCE:
703 case SID_ATTR_SHADOW_YDISTANCE:
704 case SID_ATTR_FILL_STYLE:
705 case SID_ATTR_FILL_COLOR:
706 case SID_ATTR_FILL_GRADIENT:
707 case SID_ATTR_FILL_HATCH:
708 case SID_ATTR_FILL_BITMAP:
709 case SID_ATTR_FILL_USE_SLIDE_BACKGROUND:
710 case SID_ATTR_FILL_TRANSPARENCE:
711 case SID_ATTR_FILL_FLOATTRANSPARENCE:
714 case SID_ATTR_LINE_STYLE:
715 case SID_ATTR_LINE_DASH:
716 case SID_ATTR_LINE_WIDTH:
717 case SID_ATTR_LINE_COLOR:
718 case SID_ATTR_LINE_TRANSPARENCE:
719 case SID_ATTR_LINE_JOINT:
720 case SID_ATTR_LINE_CAP:
723 case SID_ATTR_TEXT_FITTOSIZE:
732 case SID_HYPHENATION:
745 OSL_FAIL(
" no value for hyphenation!");
756 case SID_INSERTPAGE_QUICK:
762 if (pNewPage !=
nullptr)
768 case SID_DUPLICATE_PAGE:
771 SdPage* pNewPage =
nullptr;
779 if(!slideSorter && pNewPage !=
nullptr)
785 case SID_INSERT_MASTER_PAGE:
788 Reference<drawing::XMasterPagesSupplier> xMasterPagesSupplier (
789 GetDoc()->getUnoModel(), UNO_QUERY);
790 if (xMasterPagesSupplier.is())
792 Reference<drawing::XDrawPages> xMasterPages (
793 xMasterPagesSupplier->getMasterPages());
794 if (xMasterPages.is())
797 xMasterPages->insertNewByIndex (
nIndex);
809 SID_OBJECT_SELECT, SfxCallMode::ASYNCHRON);
836 case SID_ASSIGN_LAYOUT:
851 case SID_RENAME_MASTER_PAGE:
865 OUString aTitle =
SdResId(STR_TITLE_RENAMESLIDE);
866 OUString aDescr =
SdResId(STR_DESC_RENAMESLIDE);
867 const OUString& aPageName = pCurrentPage->
GetName();
874 DBG_ASSERT( bResult,
"Couldn't rename slide" );
880 aNameDlg->SetText( aTitle );
884 if( aNameDlg->Execute() ==
RET_OK )
887 aNameDlg->GetName( aNewName );
888 if (aNewName != aPageName)
891 DBG_ASSERT( bResult,
"Couldn't rename slide" );
901 case SID_RENAMEPAGE_QUICK:
922 if (pArgs && pArgs->
Count () == 3)
930 SetupPage (aSize, 0, 0, 0, 0,
true,
false, pScaleAll->GetValue ());
934#if HAVE_FEATURE_SCRIPTING
941 case SID_PAGEMARGIN :
945 if (pArgs && pArgs->
Count () == 5)
953 Size aEmptySize (0, 0);
956 pUpper->GetValue (), pLower->GetValue (),
957 false,
true, pScaleAll->GetValue ());
961#if HAVE_FEATURE_SCRIPTING
968 case SID_ATTR_ZOOMSLIDER:
973 rReq.
GetArg(SID_ATTR_ZOOMSLIDER) :
nullptr;
1001 case SvxZoomType::PERCENT:
1005 case SvxZoomType::OPTIMAL:
1007 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD );
1010 case SvxZoomType::PAGEWIDTH:
1012 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD );
1015 case SvxZoomType::WHOLEPAGE:
1017 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD );
1019 case SvxZoomType::PAGEWIDTH_NOBORDER:
1020 OSL_FAIL(
"sd::DrawViewShell::FuTemporary(), SvxZoomType::PAGEWIDTH_NOBORDER not handled!" );
1034 case SID_CHANGEBEZIER:
1035 case SID_CHANGEPOLYGON:
1045 VclMessageType::Info, VclButtonsType::Ok,
1046 SdResId(STR_ACTION_NOTPOSSIBLE)));
1051 if( rReq.
GetSlot() == SID_CHANGEBEZIER )
1077 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD);
1082 case SID_CONVERT_TO_CONTOUR:
1092 VclMessageType::Info, VclButtonsType::Ok,
1093 SdResId(STR_ACTION_NOTPOSSIBLE)));
1108 case SID_CONVERT_TO_METAFILE:
1109 case SID_CONVERT_TO_BITMAP:
1119 if (
mpDrawView->IsPresObjSelected(
true,
true,
true) )
1122 VclMessageType::Info, VclButtonsType::Ok,
1123 SdResId(STR_ACTION_NOTPOSSIBLE)));
1134 case SID_CONVERT_TO_METAFILE:
1139 aGraphic =
Graphic(aMetaFile);
1142 case SID_CONVERT_TO_BITMAP:
1189 OSL_ENSURE(nMarkCount,
"DrawViewShell::FuTemporary: SID_CONVERT_TO_BITMAP with empty selection (!)");
1190 OSL_ENSURE(pPageView,
"DrawViewShell::FuTemporary: SID_CONVERT_TO_BITMAP without SdrPageView (!)");
1195 pGraphicObj->SetLogicRect(aAllMarkedRect);
1206 mpDrawView->MarkObj(pReplacementCandidate, pPageView,
true,
true);
1213 pGraphicObj->SetLayer(pReplacementCandidate->
GetLayer());
1216 mpDrawView->ReplaceObjectAtView(pReplacementCandidate, *pPageView, pGraphicObj.get());
1228 case SID_REMOVE_HYPERLINK:
1245 case SID_SET_DEFAULT:
1247 std::optional<SfxItemSet> pSet;
1251 pSet.emplace(
GetPool(), svl::Items<EE_ITEMS_START, EE_ITEMS_END> );
1263 std::vector<std::pair<std::unique_ptr<SfxItemSet>,
SdrObjUserCall*> > aAttrList;
1272 auto pNewSet = std::make_unique<SfxItemSetFixed<SDRATTR_TEXT_MINFRAMEHEIGHT, SDRATTR_TEXT_AUTOGROWHEIGHT>>(
GetDoc()->
GetPool() );
1274 aAttrList.emplace_back(std::move(pNewSet), pObj->
GetUserCall());
1296 for (sal_uInt16 nLevel = 1; nLevel < 10; nLevel++)
1299 DBG_ASSERT(pSheet,
"Template for outline object not found");
1302 pObj->StartListening(*pSheet);
1313 std::pair<std::unique_ptr<SfxItemSet>,
SdrObjUserCall*> &rAttr = aAttrList[j++];
1315 std::unique_ptr<SfxItemSet> & pNewSet(rAttr.first);
1339 case SID_DELETE_SNAPITEM:
1345 sal_uInt16 nHelpLine;
1356 case SID_DELETE_PAGE:
1357 case SID_DELETE_MASTER_PAGE:
1363 case SID_DELETE_LAYER:
1369 case SID_ORIGINAL_SIZE:
1375 case SID_DRAW_FONTWORK:
1376 case SID_DRAW_FONTWORK_VERTICAL:
1384 case SID_SAVE_GRAPHIC:
1423 case SID_EXTERNAL_EDIT:
1429 if(
auto pGraphicObj =
dynamic_cast<SdrGrafObj*
>( pObj ) )
1430 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
1432 GraphicObject aGraphicObject( pGraphicObj->GetGraphicObject() );
1434 std::make_unique<SdrExternalToolEdit>(
1444 case SID_COMPRESS_GRAPHIC:
1451 if(
auto pGraphicObj =
dynamic_cast<SdrGrafObj*
>( pObj ) )
1452 if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap )
1455 if (dialog.run() ==
RET_OK)
1459 OUString aUndoString =
mpDrawView->GetDescriptionOfMarkedObjects() +
" Compress";
1461 mpDrawView->ReplaceObjectAtView( pObj, *pPageView, pNewObject.get() );
1471 case SID_GRAPHIC_SIZE_CHECK:
1482 case SID_ATTRIBUTES_LINE:
1490 case SID_ATTRIBUTES_AREA:
1498 case SID_ATTR_TRANSFORM:
1510 case SID_MOVE_SHAPE_HANDLE:
1513 if (pArgs && pArgs->
Count () >= 3)
1524 mpDrawView->MoveShapeHandle(handleNum,
Point(newPosX, newPosY), OrdNum ? OrdNum->GetValue() : -1);
1529 case SID_CHAR_DLG_EFFECT:
1544 case FN_NUM_BULLET_ON:
1549 SfxCallMode::RECORD, { &aItem });
1553 case FN_NUM_NUMBERING_ON:
1558 SfxCallMode::RECORD, { &aItem });
1562 case SID_OUTLINE_BULLET:
1563 case FN_SVX_SET_BULLET:
1564 case FN_SVX_SET_NUMBER:
1571 case FN_INSERT_SOFT_HYPHEN:
1572 case FN_INSERT_HARDHYPHEN:
1573 case FN_INSERT_HARD_SPACE:
1574 case FN_INSERT_NNBSP:
1575 case SID_INSERT_RLM :
1576 case SID_INSERT_LRM :
1577 case SID_INSERT_WJ :
1578 case SID_INSERT_ZWSP:
1586 case SID_PRESENTATION_LAYOUT:
1593 case SID_PASTE_SPECIAL:
1601 case SID_CHANGE_PICTURE:
1602 case SID_INSERT_GRAPHIC:
1605 nSId == SID_CHANGE_PICTURE ) );
1611 case SID_INSERT_AVMEDIA:
1620 case SID_INSERT_OBJECT:
1621 case SID_INSERT_FLOATINGFRAME:
1622 case SID_INSERT_MATH:
1623 case SID_INSERT_DIAGRAM:
1624 case SID_ATTR_TABLE:
1636 case SID_CLASSIFICATION_APPLY:
1640 if (pArgs && pArgs->
GetItemState(nSId,
false, &pItem) == SfxItemState::SET)
1643 auto eType = SfxClassificationPolicyType::IntellectualProperty;
1644 if (pArgs->
GetItemState(SID_TYPE_NAME,
false, &pItem) == SfxItemState::SET)
1659 SAL_WARN(
"sd.ui",
"missing parameter for SID_CLASSIFICATION_APPLY");
1666 case SID_CLASSIFICATION_DIALOG:
1670 css::uno::Reference<css::document::XDocumentProperties> xDocProps(pObjShell->getDocProperties());
1671 auto xDialog = std::make_shared<svx::ClassificationDialog>(
GetFrameWeld(), xDocProps,
false, [](){} );
1672 ClassificationCollector aCollector(*
this, xDocProps);
1673 aCollector.collect();
1675 xDialog->setupValues(std::vector(aCollector.getResults()));
1677 if (
RET_OK == xDialog->run())
1679 ClassificationInserter aInserter(*
this, xDocProps);
1680 aInserter.insert(xDialog->getResult());
1690 case SID_COPYOBJECTS:
1695 VclMessageType::Info, VclButtonsType::Ok,
1696 SdResId(STR_ACTION_NOTPOSSIBLE)));
1713 case SID_INSERTFILE:
1723 case SID_SELECT_BACKGROUND:
1724 case SID_SAVE_BACKGROUND:
1725 case SID_ATTR_PAGE_SIZE:
1735 case SID_BEFORE_OBJ:
1736 case SID_BEHIND_OBJ:
1744 case SID_REVERSE_ORDER:
1752 case SID_ANIMATION_EFFECTS:
1759 case SID_EXECUTE_ANIMATION_EFFECT:
1767 case SID_LINEEND_POLYGON:
1774 case SID_CAPTUREPOINT:
1778 case SID_SET_SNAPITEM:
1785 case SID_MANAGE_LINKS:
1801 case SID_TEXTATTR_DLG:
1811 case SID_MEASURE_DLG:
1819 case SID_CONNECTION_DLG:
1827 case SID_CONNECTION_NEW_ROUTING:
1837 case SID_TWAIN_SELECT:
1843 const css::uno::Sequence< css::scanner::ScannerContext >
1846 if( aContexts.hasElements() )
1848 css::scanner::ScannerContext aContext( aContexts.getConstArray()[ 0 ] );
1859 xInit->initialize(
aSeq );
1875 case SID_TWAIN_TRANSFER:
1883 const css::uno::Sequence< css::scanner::ScannerContext > aContexts(
mxScannerManager->getAvailableScanners() );
1885 if( aContexts.hasElements() )
1899 VclMessageType::Info, VclButtonsType::Ok,
1903 SdResId(STR_TWAIN_NO_SOURCE_UNX)
1921 case SID_POLYGON_MORPHING:
1928 case SID_INSERTLAYER:
1937 sal_uInt16 nLayer = nLayerCnt - 2 + 1;
1938 OUString aLayerName =
SdResId(STR_LAYER) + OUString::number(nLayer);
1939 OUString aLayerTitle, aLayerDesc;
1940 bool bIsVisible =
false;
1941 bool bIsLocked =
false;
1942 bool bIsPrintable =
false;
1961 pDlg->SetHelpId(
SD_MOD()->GetSlotPool()->GetSlot( SID_INSERTLAYER )->GetCommand() );
1965 while( bLoop && pDlg->Execute() ==
RET_OK )
1967 pDlg->GetAttr( aNewAttr );
1968 aLayerName = aNewAttr.
Get(ATTR_LAYER_NAME).GetValue ();
1970 if( rLayerAdmin.
GetLayer( aLayerName )
1971 || aLayerName.isEmpty()
1976 VclMessageType::Warning, VclButtonsType::Ok,
1977 SdResId(STR_WARN_NAME_DUPLICATE)));
1992 aLayerTitle = aNewAttr.
Get(ATTR_LAYER_TITLE).GetValue();
1993 aLayerDesc = aNewAttr.
Get(ATTR_LAYER_DESC).GetValue ();
1999 else if (pArgs->
Count () != 4)
2001#if HAVE_FEATURE_SCRIPTING
2015 aLayerName = pLayerName->
GetValue ();
2016 bIsVisible = pIsVisible->GetValue ();
2017 bIsLocked = pIsLocked->GetValue ();
2018 bIsPrintable = pIsPrintable->GetValue ();
2021 OUString aPrevLayer =
mpDrawView->GetActiveLayer();
2023 sal_uInt16 nPrevLayer = 0;
2026 for ( nLayer = 0; nLayer < nLayerCnt; nLayer++ )
2028 pLayer = rLayerAdmin.
GetLayer(nLayer);
2031 if ( aPrevLayer ==
aName )
2033 nPrevLayer = std::max(nLayer, sal_uInt16(4));
2037 mpDrawView->InsertNewLayer(aLayerName, nPrevLayer + 1);
2038 pLayer = rLayerAdmin.
GetLayer(aLayerName);
2045 mpDrawView->SetLayerVisible( aLayerName, bIsVisible );
2046 mpDrawView->SetLayerLocked( aLayerName, bIsLocked);
2047 mpDrawView->SetLayerPrintable(aLayerName, bIsPrintable);
2056 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD);
2063 case SID_MODIFYLAYER:
2067 OSL_ENSURE(
false,
"No LayerTabBar (!)");
2083 OUString aLayerTitle = pLayer->
GetTitle();
2086 OUString aOldLayerName(aLayerName);
2087 OUString aOldLayerTitle(aLayerTitle);
2088 OUString aOldLayerDesc(aLayerDesc);
2090 bool bIsVisible, bIsLocked, bIsPrintable;
2091 bool bOldIsVisible = bIsVisible =
mpDrawView->IsLayerVisible(aLayerName);
2092 bool bOldIsLocked = bIsLocked =
mpDrawView->IsLayerLocked(aLayerName);
2093 bool bOldIsPrintable = bIsPrintable =
mpDrawView->IsLayerPrintable(aLayerName);
2114 pDlg->SetHelpId(
SD_MOD()->GetSlotPool()->GetSlot( SID_MODIFYLAYER )->GetCommand() );
2118 sal_uInt16 nRet = 0;
2121 nRet = pDlg->Execute();
2124 pDlg->GetAttr( aNewAttr );
2125 aLayerName = aNewAttr.
Get(ATTR_LAYER_NAME).GetValue ();
2128 if( (rLayerAdmin.
GetLayer( aLayerName ) && aLayerName != aOldLayerName)
2131 || aLayerName.isEmpty() )
2135 VclMessageType::Warning, VclButtonsType::Ok,
2136 SdResId(STR_WARN_NAME_DUPLICATE)));
2148 aLayerTitle = aNewAttr.
Get(ATTR_LAYER_TITLE).GetValue ();
2149 aLayerDesc = aNewAttr.
Get(ATTR_LAYER_DESC).GetValue ();
2162 else if (pArgs->
Count () == 4)
2169 aLayerName = pLayerName->
GetValue ();
2170 bIsVisible = pIsVisible->GetValue ();
2171 bIsLocked = pIsLocked->GetValue ();
2172 bIsPrintable = pIsPrintable->GetValue ();
2176#if HAVE_FEATURE_SCRIPTING
2205 ModifyLayer( pLayer, aLayerName, aLayerTitle, aLayerDesc, bIsVisible, bIsLocked, bIsPrintable );
2212 case SID_TOGGLELAYERVISIBILITY:
2231 case SID_RENAMELAYER:
2244 OSL_ENSURE(
false,
"No LayerTabBar (!)");
2252 case SID_EDIT_HYPERLINK :
2266 case SID_OPEN_HYPERLINK:
2272 if(
auto pURLField =
dynamic_cast< const SvxURLField *
>( pField ) )
2275 SfxStringItem aTarget( SID_TARGETNAME, pURLField->GetTargetFrame() );
2277 OUString aReferName;
2291 pViewFrm->GetDispatcher()->ExecuteList(SID_OPENDOC,
2292 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD,
2293 { &aUrl, &aTarget, &aFrm, &aReferer,
2294 &aNewView, &aBrowsing });
2303 case SID_COPY_HYPERLINK_LOCATION:
2311 uno::Reference<datatransfer::clipboard::XClipboard> xClipboard
2323 case SID_HYPERLINK_SETLINK:
2330 &pReqArgs->
Get(SID_HYPERLINK_SETLINK);
2364 case SID_HIDE_LAST_LEVEL:
2377 if (nDepth != sal_uInt16(-1) && nDepth > 0)
2389 case SID_SHOW_NEXT_LEVEL:
2393 STR_PRESOBJ_MPOUTLINE,
2394 STR_PRESOBJ_MPOUTLLAYER2,
2395 STR_PRESOBJ_MPOUTLLAYER3,
2396 STR_PRESOBJ_MPOUTLLAYER4,
2397 STR_PRESOBJ_MPOUTLLAYER5,
2398 STR_PRESOBJ_MPOUTLLAYER6,
2399 STR_PRESOBJ_MPOUTLLAYER7,
2400 STR_PRESOBJ_MPNOTESTITLE,
2401 STR_PRESOBJ_MPNOTESTEXT,
2402 STR_PRESOBJ_NOTESTEXT
2418 sal_uInt16 nNewDepth = nDepth+1;
2428 case SID_INSERT_FLD_DATE_FIX:
2429 case SID_INSERT_FLD_DATE_VAR:
2430 case SID_INSERT_FLD_TIME_FIX:
2431 case SID_INSERT_FLD_TIME_VAR:
2432 case SID_INSERT_FLD_AUTHOR:
2433 case SID_INSERT_FLD_PAGE:
2434 case SID_INSERT_FLD_PAGE_TITLE:
2435 case SID_INSERT_FLD_PAGES:
2436 case SID_INSERT_FLD_FILE:
2438 sal_uInt16 nMul = 1;
2439 std::unique_ptr<SvxFieldItem> pFieldItem;
2443 case SID_INSERT_FLD_DATE_FIX:
2448 case SID_INSERT_FLD_DATE_VAR:
2452 case SID_INSERT_FLD_TIME_FIX:
2457 case SID_INSERT_FLD_TIME_VAR:
2461 case SID_INSERT_FLD_AUTHOR:
2470 case SID_INSERT_FLD_PAGE:
2477 case SID_INSERT_FLD_PAGE_TITLE:
2484 case SID_INSERT_FLD_PAGES:
2491 case SID_INSERT_FLD_FILE:
2507 if( pOldFldItem && (
nullptr !=
dynamic_cast< const SvxURLField *
>( pOldFldItem->
GetField() ) ||
2528 pOutl->
Init( OutlinerMode::TextObject );
2553 pRectObj->SetLogicRect(aLogicRect);
2554 pRectObj->SetOutlinerParaObject( std::move(pOutlParaObject) );
2556 pOutl->
Init( nOutlMode );
2566 case SID_MODIFY_FIELD:
2583 if( pDlg->Execute() ==
RET_OK )
2587 std::unique_ptr<SvxFieldData> pField(pDlg->GetField());
2589 bool bSelectionWasModified(
false);
2597 bSelectionWasModified =
true;
2622 if(bSelectionWasModified)
2637 case SID_OPEN_XML_FILTERSETTINGS:
2641 css::uno::Reference < css::ui::dialogs::XExecutableDialog > xDialog = css::ui::dialogs::XSLTFilterDialog::create( ::comphelper::getProcessComponentContext() );
2644 catch( css::uno::RuntimeException& )
2656 if (
mpDrawView->IsPresObjSelected(
true,
true,
true ) )
2659 VclMessageType::Info, VclButtonsType::Ok,
2660 SdResId(STR_ACTION_NOTPOSSIBLE)));
2680 case SID_NAME_GROUP:
2688 OSL_ENSURE(pSelected,
"DrawViewShell::FuTemp03: nMarkCount, but no object (!)");
2696 if(
RET_OK == pDlg->Execute())
2698 pDlg->GetName(
aName);
2708 rBindings.
Invalidate( SID_NAVIGATOR_STATE,
true );
2717 case SID_OBJECT_TITLE_DESCRIPTION:
2722 OSL_ENSURE(pSelected,
"DrawViewShell::FuTemp03: nMarkCount, but no object (!)");
2723 OUString aTitle(pSelected->
GetTitle());
2731 if(
RET_OK == pDlg->Execute())
2733 pDlg->GetTitle(aTitle);
2734 pDlg->GetDescription(aDescription);
2735 pDlg->IsDecorative(isDecorative);
2743 rBindings.
Invalidate( SID_NAVIGATOR_STATE,
true );
2751 case SID_ENTER_GROUP:
2759 case SID_LEAVE_GROUP:
2767 case SID_LEAVE_ALL_GROUPS:
2775 case SID_TEXT_COMBINE:
2784 VclMessageType::Info, VclButtonsType::Ok,
2785 SdResId(STR_ACTION_NOTPOSSIBLE)));
2807 VclMessageType::Info, VclButtonsType::Ok,
2808 SdResId(STR_ACTION_NOTPOSSIBLE)));
2821 case SID_DISTRIBUTE_HLEFT:
2822 case SID_DISTRIBUTE_HCENTER:
2823 case SID_DISTRIBUTE_HDISTANCE:
2824 case SID_DISTRIBUTE_HRIGHT:
2825 case SID_DISTRIBUTE_VTOP:
2826 case SID_DISTRIBUTE_VCENTER:
2827 case SID_DISTRIBUTE_VDISTANCE:
2828 case SID_DISTRIBUTE_VBOTTOM:
2833 VclMessageType::Info, VclButtonsType::Ok,
2834 SdResId(STR_ACTION_NOTPOSSIBLE)));
2845 case SID_POLY_MERGE:
2854 VclMessageType::Info, VclButtonsType::Ok,
2855 SdResId(STR_ACTION_NOTPOSSIBLE)));
2861 mpDrawView->MergeMarkedObjects(SdrMergeMode::Merge);
2868 case SID_POLY_SUBSTRACT:
2877 VclMessageType::Info, VclButtonsType::Ok,
2878 SdResId(STR_ACTION_NOTPOSSIBLE)));
2884 mpDrawView->MergeMarkedObjects(SdrMergeMode::Subtract);
2891 case SID_POLY_INTERSECT:
2900 VclMessageType::Info, VclButtonsType::Ok,
2901 SdResId(STR_ACTION_NOTPOSSIBLE)));
2907 mpDrawView->MergeMarkedObjects(SdrMergeMode::Intersect);
2914 case SID_EQUALIZEWIDTH:
2915 case SID_EQUALIZEHEIGHT:
2921 mpDrawView->EqualizeMarkedObjects(nSId == SID_EQUALIZEWIDTH);
2944 VclMessageType::Info, VclButtonsType::Ok,
2945 SdResId(STR_ACTION_NOTPOSSIBLE)));
2970 else if (
mpDrawView->IsDismantlePossible(
true) )
2975 else if (
mpDrawView->IsImportMtfPossible() )
2983 for(
size_t nm=0; nm<nCnt; ++nm)
2990 if (pGraf !=
nullptr)
3027 case SID_CONVERT_TO_3D:
3032 VclMessageType::Info, VclButtonsType::Ok,
3033 SdResId(STR_ACTION_NOTPOSSIBLE)));
3055 case SID_FRAME_TO_TOP:
3073 case SID_FRAME_DOWN:
3081 case SID_FRAME_TO_BOTTOM:
3089 case SID_HORIZONTAL:
3090 case SID_FLIP_HORIZONTAL:
3099 case SID_FLIP_VERTICAL:
3107 case SID_OBJECT_ALIGN_LEFT:
3109 mpDrawView->AlignMarkedObjects(SdrHorAlign::Left, SdrVertAlign::NONE);
3115 case SID_OBJECT_ALIGN_CENTER:
3117 mpDrawView->AlignMarkedObjects(SdrHorAlign::Center, SdrVertAlign::NONE);
3123 case SID_OBJECT_ALIGN_RIGHT:
3125 mpDrawView->AlignMarkedObjects(SdrHorAlign::Right, SdrVertAlign::NONE);
3131 case SID_OBJECT_ALIGN_UP:
3133 mpDrawView->AlignMarkedObjects(SdrHorAlign::NONE, SdrVertAlign::Top);
3139 case SID_OBJECT_ALIGN_MIDDLE:
3141 mpDrawView->AlignMarkedObjects(SdrHorAlign::NONE, SdrVertAlign::Center);
3147 case SID_OBJECT_ALIGN_DOWN:
3149 mpDrawView->AlignMarkedObjects(SdrHorAlign::NONE, SdrVertAlign::Bottom);
3158 !
GetView()->IsFrameDragSingles() &&
GetView()->HasMarkablePoints())
3174 case SID_STYLE_APPLY:
3175 case SID_STYLE_EDIT:
3176 case SID_STYLE_DELETE:
3177 case SID_STYLE_HIDE:
3178 case SID_STYLE_SHOW:
3179 case SID_STYLE_FAMILY:
3180 case SID_STYLE_WATERCAN:
3181 case SID_STYLE_UPDATE_BY_EXAMPLE:
3182 case SID_STYLE_NEW_BY_EXAMPLE:
3187 if( pStyleSheet && pStyleSheet->
GetFamily() == SfxStyleFamily::Page)
3188 pStyleSheet =
static_cast<SdStyleSheet*
>(pStyleSheet)->GetPseudoStyleSheet();
3195 if(pStyleSheet && pStyleSheet->
GetFamily() == SfxStyleFamily::Page)
3196 pStyleSheet =
static_cast<SdStyleSheet*
>(pStyleSheet)->GetPseudoStyleSheet();
3199 if( pStyleSheet ==
nullptr )
3208 aSet.
Put(aStyleNameItem);
3211 aSet.
Put(aStyleFamilyItem);
3219 if( rReq.
GetSlot() == SID_STYLE_APPLY )
3223 else if( rReq.
GetSlot() == SID_STYLE_APPLY )
3231 sal_uInt16
nId = SvxIMapDlgChildWindow::GetChildWindowId();
3250 case SID_GRID_FRONT:
3258 case SID_HELPLINES_FRONT:
3285 case SID_COLOR_CONTROL:
3289 rReq.
GetArgs()->
Get(SID_COLOR_CONTROL).GetValue());
3299 case SID_EXTRUSION_TOGGLE:
3300 case SID_EXTRUSION_TILT_DOWN:
3301 case SID_EXTRUSION_TILT_UP:
3302 case SID_EXTRUSION_TILT_LEFT:
3303 case SID_EXTRUSION_TILT_RIGHT:
3304 case SID_EXTRUSION_3D_COLOR:
3305 case SID_EXTRUSION_DEPTH:
3306 case SID_EXTRUSION_DIRECTION:
3307 case SID_EXTRUSION_PROJECTION:
3308 case SID_EXTRUSION_LIGHTING_DIRECTION:
3309 case SID_EXTRUSION_LIGHTING_INTENSITY:
3310 case SID_EXTRUSION_SURFACE:
3311 case SID_EXTRUSION_DEPTH_FLOATER:
3312 case SID_EXTRUSION_DIRECTION_FLOATER:
3313 case SID_EXTRUSION_LIGHTING_FLOATER:
3314 case SID_EXTRUSION_SURFACE_FLOATER:
3315 case SID_EXTRUSION_DEPTH_DIALOG:
3321 case SID_FONTWORK_SHAPE:
3322 case SID_FONTWORK_SHAPE_TYPE:
3323 case SID_FONTWORK_ALIGNMENT:
3324 case SID_FONTWORK_SAME_LETTER_HEIGHTS:
3325 case SID_FONTWORK_CHARACTER_SPACING:
3326 case SID_FONTWORK_KERN_CHARACTER_PAIRS:
3327 case SID_FONTWORK_GALLERY_FLOATER:
3328 case SID_FONTWORK_CHARACTER_SPACING_FLOATER:
3329 case SID_FONTWORK_ALIGNMENT_FLOATER:
3330 case SID_FONTWORK_CHARACTER_SPACING_DIALOG:
3351 OUString panelId =
"SdNavigatorPanel";
3372 case SID_SLIDE_TRANSITIONS_PANEL:
3373 case SID_MASTER_SLIDES_PANEL:
3374 case SID_CUSTOM_ANIMATION_PANEL:
3381 if (nSId == SID_CUSTOM_ANIMATION_PANEL)
3382 panelId =
"SdCustomAnimationPanel";
3383 else if (nSId == SID_GALLERY)
3384 panelId =
"GalleryPanel";
3385 else if (nSId == SID_SLIDE_TRANSITIONS_PANEL)
3386 panelId =
"SdSlideTransitionPanel";
3387 else if (nSId == SID_MASTER_SLIDES_PANEL)
3388 panelId =
"SdAllMasterPagesPanel";
3399 case SID_ANIMATION_OBJECTS:
3403 AnimationChildWindow::GetChildWindowId(),
3408 AnimationChildWindow::GetChildWindowId() );
3431 case SID_CONVERT_TO_3D_LATHE_FAST:
3449 case SID_PRESENTATION_DLG:
3456 case SID_REMOTE_DLG:
3458#ifdef ENABLE_SDREMOTE
3466 case SID_CUSTOMSHOW_DLG:
3473 case SID_EXPAND_PAGE:
3480 case SID_SUMMARY_PAGE:
3488#if HAVE_FEATURE_AVMEDIA
3489 case SID_AVMEDIA_PLAYER:
3499 case SID_PRESENTATION_MINIMIZER:
3501 Reference<XComponentContext> xContext(::comphelper::getProcessComponentContext());
3502 Reference<util::XURLTransformer> xParser(util::URLTransformer::create(xContext));
3507 aURL.Complete =
"vnd.com.sun.star.comp.PresentationMinimizer:execute";
3508 xParser->parseStrict(
aURL);
3509 uno::Reference<frame::XDispatch>
xDispatch(xProvider->queryDispatch(
aURL, OUString(), 0));
3512 xDispatch->dispatch(
aURL, uno::Sequence< beans::PropertyValue >());
3520 case SID_DISPLAY_MASTER_BACKGROUND:
3521 case SID_DISPLAY_MASTER_OBJECTS:
3529 if (pPage !=
nullptr
3535 if (nSId == SID_DISPLAY_MASTER_BACKGROUND)
3539 aVisibleLayers.
Set(aLayerId, !aVisibleLayers.
IsSet(aLayerId));
3547 case SID_PHOTOALBUM:
3561 case SID_INSERT_QRCODE:
3562 case SID_EDIT_QRCODE:
3574 case SID_ADDITIONS_DIALOG:
3576 OUString sAdditionsTag =
"";
3580 sAdditionsTag = pStringArg->
GetValue();
3591 case SID_ATTR_GLOW_COLOR:
3592 case SID_ATTR_GLOW_RADIUS:
3593 case SID_ATTR_GLOW_TRANSPARENCY:
3594 case SID_ATTR_SOFTEDGE_RADIUS:
3595 case SID_ATTR_TEXTCOLUMNS_NUMBER:
3596 case SID_ATTR_TEXTCOLUMNS_SPACING:
3605 SAL_WARN(
"sd.ui",
"Slot without function" );
3636 sal_uInt16 nSId = rReq.
GetSlot();
3640 case SID_ATTR_CHAR_FONT:
3646 aNewAttr.
Put(*pItem);
3650 case SID_ATTR_CHAR_FONTHEIGHT:
3656 aNewAttr.
Put(*pItem);
3660 case SID_ATTR_CHAR_WEIGHT:
3666 aNewAttr.
Put(*pItem);
3670 case SID_ATTR_CHAR_POSTURE:
3676 aNewAttr.
Put(*pItem);
3680 case SID_ATTR_CHAR_UNDERLINE:
3686 aNewAttr.
Put(*pItem);
3695 case SID_ATTR_CHAR_OVERLINE:
3701 aNewAttr.
Put(*pItem);
3711 case SID_ULINE_VAL_NONE:
3717 case SID_ULINE_VAL_SINGLE:
3718 case SID_ULINE_VAL_DOUBLE:
3719 case SID_ULINE_VAL_DOTTED:
3726 case SID_ULINE_VAL_SINGLE:
3729 case SID_ULINE_VAL_DOUBLE:
3732 case SID_ULINE_VAL_DOTTED:
3738 aNewAttr.
Put(aUnderline);
3742 case SID_ATTR_CHAR_SHADOWED:
3748 aNewAttr.
Put(*pItem);
3752 case SID_ATTR_CHAR_CONTOUR:
3758 aNewAttr.
Put(*pItem);
3763 case SID_ATTR_CHAR_STRIKEOUT:
3769 aNewAttr.
Put(*pItem);
3773 case SID_ATTR_CHAR_COLOR:
3779 aNewAttr.
Put(*pItem);
3783 case SID_ATTR_CHAR_KERNING:
3789 aNewAttr.
Put(*pItem);
3793 case SID_ATTR_CHAR_CASEMAP:
3799 aNewAttr.
Put(*pItem);
3803 case SID_SET_SUB_SCRIPT:
3807 if( eEsc == SvxEscapement::Subscript )
3811 aNewAttr.
Put( aItem );
3814 case SID_SET_SUPER_SCRIPT:
3818 if( eEsc == SvxEscapement::Superscript )
3822 aNewAttr.
Put( aItem );
3825 case SID_SHRINK_FONT_SIZE:
3826 case SID_GROW_FONT_SIZE:
3837 case SID_ATTR_CHAR_BACK_COLOR:
3843 aNewAttr.
Put(*pItem);
3865 const sal_Int32 nInsertPosition)
3867 SdPage* pNewPage =
nullptr;
3883 sal_Int32 nInsertPosition (0);
3884 ::std::vector<SdPage*> aPagesToDuplicate;
3891 if (pDescriptor && pDescriptor->GetPage())
3893 aPagesToDuplicate.push_back(pDescriptor->GetPage());
3894 nInsertPosition = pDescriptor->GetPage()->GetPageNum()+2;
3900 const bool bUndo (aPagesToDuplicate.size()>1 &&
mrSlideSorter.GetView().IsUndoEnabled());
3904 ::std::vector<SdPage*> aPagesToSelect;
3905 for(::std::vector<SdPage*>::const_iterator
3906 iPage(aPagesToDuplicate.begin()),
3907 iEnd(aPagesToDuplicate.end());
3909 ++iPage, nInsertPosition+=2)
3911 aPagesToSelect.push_back(
3915 aPagesToDuplicate.clear();
3923 for (
auto const& it: aPagesToSelect)
3938 sal_uInt16 nSId = rReq.
GetSlot();
3943 case SID_TABLE_VERT_NONE:
3944 case SID_TABLE_VERT_CENTER:
3945 case SID_TABLE_VERT_BOTTOM:
3947 if (nSId == SID_TABLE_VERT_CENTER)
3949 else if (nSId == SID_TABLE_VERT_BOTTOM)
3978 case SID_TABLE_VERT_NONE:
3979 case SID_TABLE_VERT_CENTER:
3980 case SID_TABLE_VERT_BOTTOM:
3981 bool bContour =
false;
3983 if( eConState != SfxItemState::DONTCARE )
3987 if (bContour)
break;
3993 if(SfxItemState::DONTCARE != eVState)
#define CHECK_RANGE(nMin, nValue, nMax)
SlideSorter & mrSlideSorter
constexpr auto convertTwipToMm100(N n)
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
sal_uInt16 GetValue() const
sal_uInt32 GetValue() const
const OUString & GetValue() const
rtl::Reference< SdrGrafObj > GetCompressedSdrGrafObj()
virtual void GetAllSections(std::vector< editeng::Section > &rAttrs) const=0
virtual const SfxItemSet & GetParaAttribs(sal_Int32 nPara) const=0
virtual void InsertObject(SdrObject *pObj, size_t nPos=SAL_MAX_SIZE) override
static OUString ExportGraphic(weld::Window *pWin, const Graphic &rGraphic, const OUString &rGraphicName)
static short HasToSaveTransformedImage(weld::Widget *pWin)
const Graphic & GetGraphic() const
const GDIMetaFile & GetGDIMetaFile() const
const std::shared_ptr< VectorGraphicData > & getVectorGraphicData() const
const EditTextObject & GetTextObject() const
void SetSelection(const ESelection &)
void SelectFieldAtCursor()
void InsertField(const SvxFieldItem &rFld)
const SvxFieldItem * GetFieldAtSelection() const
vcl::Window * GetWindow() const
ESelection GetSelection() const
const SvxFieldData * GetFieldAtCursor() const
Outliner * GetOutliner() const
void SetAttribs(const SfxItemSet &)
EditView & GetEditView() const
void Remove(Paragraph const *pPara, sal_Int32 nParaCount)
OutlinerMode GetOutlinerMode() const
Paragraph * GetParagraph(sal_Int32 nAbsPos) const
void QuickInsertField(const SvxFieldItem &rFld, const ESelection &rSel)
std::optional< OutlinerParaObject > CreateParaObject(sal_Int32 nStartPara=0, sal_Int32 nParaCount=EE_PARA_ALL) const
sal_Int16 GetDepth(sal_Int32 nPara) const
void SetStyleSheet(sal_Int32 nPara, SfxStyleSheet *pStyle)
bool SetUpdateLayout(bool bUpdate)
void SetParaAttribs(sal_Int32 nPara, const SfxItemSet &)
Paragraph * Insert(const OUString &rText, sal_Int32 nAbsPos=EE_PARA_APPEND, sal_Int16 nDepth=0)
void Init(OutlinerMode nMode)
sal_Int32 GetParagraphCount() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() const
virtual VclPtr< VclAbstractDialog > CreateRemoteDialog(weld::Window *pWindow)=0
virtual VclPtr< VclAbstractDialog > CreateBreakDlg(weld::Window *pWindow, ::sd::DrawView *pDrView, ::sd::DrawDocShell *pShell, sal_uLong nSumActionCount, sal_uLong nObjCount)=0
virtual VclPtr< VclAbstractDialog > CreateSdPhotoAlbumDialog(weld::Window *pWindow, SdDrawDocument *pDoc)=0
virtual VclPtr< AbstractSdModifyFieldDlg > CreateSdModifyFieldDlg(weld::Window *pWindow, const SvxFieldData *pInField, const SfxItemSet &rSet)=0
virtual VclPtr< AbstractSdInsertLayerDlg > CreateSdInsertLayerDlg(weld::Window *pParent, const SfxItemSet &rInAttrs, bool bDeletable, const OUString &rStr)=0
static SD_DLLPUBLIC SdAbstractDialogFactory * Create()
SAL_DLLPRIVATE void SetOnlineSpell(bool bIn)
SAL_DLLPRIVATE SfxItemPool & GetPool()
SAL_DLLPRIVATE bool GetOnlineSpell() const
SdPage * GetSdPage(sal_uInt16 nPgNum, PageKind ePgKind) const
SdOutliner * GetInternalOutliner(bool bCreateOutliner=true)
SdPage * GetMasterSdPage(sal_uInt16 nPgNum, PageKind ePgKind)
virtual SAL_DLLPRIVATE void SetChanged(bool bFlag=true) override
SAL_DLLPRIVATE::sd::DrawDocShell * GetDocSh() const
virtual rtl::Reference< SdrObject > RemoveObject(size_t nObjNum) override
bool IsPresObj(const SdrObject *pObj)
void CreateTitleAndLayout(bool bInit=false, bool bCreate=false)
SfxStyleSheet * GetStyleSheetForPresObj(PresObjKind eObjKind) const
void notifyObjectRenamed(const SdrObject *pObj)
Notify that the object has been renamed and the animation effects has to update.
const OUString & GetName() const
GraphicAttr GetGraphicAttr(SdrGrafObjTransformsAttrs nTransformFlags=SdrGrafObjTransformsAttrs::ALL) const
bool HasGDIMetaFile() const
GDIMetaFile getMetafileFromEmbeddedVectorGraphicData() const
Graphic GetTransformedGraphic(SdrGrafObjTransformsAttrs nTransformFlags=SdrGrafObjTransformsAttrs::ALL) const
const Graphic & GetGraphic() const
GraphicType GetGraphicType() const
const GraphicObject & GetGraphicObject(bool bForceSwapIn=false) const
bool isEmbeddedVectorGraphicData() const
sal_uInt16 GetLayerCount() const
SdrLayerID GetLayerID(const OUString &rName) const
SdrLayer * GetLayer(sal_uInt16 i)
bool IsSet(SdrLayerID a) const
const OUString & GetTitle() const
const OUString & GetName() const
const OUString & GetDescription() const
void SetDescription(const OUString &rDesc)
void SetTitle(const OUString &rTitle)
size_t GetMarkCount() const
bool TakeBoundRect(SdrPageView const *pPageView, tools::Rectangle &rRect) const
SdrMark * GetMark(size_t nNum) const
SdrObject * GetMarkedSdrObj() const
SdrUndoFactory & GetSdrUndoFactory() const
const SdrLayerAdmin & GetLayerAdmin() const
virtual bool IsTextEdit() const final override
SdrObject * GetObj(size_t nNum) const
size_t GetObjCount() const
SdrObjUserCall * GetUserCall() const
virtual OUString GetTitle() const
virtual void SetTitle(const OUString &rStr)
void SetUserCall(SdrObjUserCall *pUser)
virtual void SetDescription(const OUString &rStr)
void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)
sal_uInt32 GetOrdNum() const
void NbcSetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)
virtual OUString GetDescription() const
virtual const OUString & GetName() const
virtual SdrObjKind GetObjIdentifier() const
const SfxItemSet & GetMergedItemSet() const
virtual SdrLayerID GetLayer() const
void SetMergedItem(const SfxPoolItem &rItem)
virtual void SetDecorative(bool isDecorative)
virtual void SetName(const OUString &rStr, const bool bSetChanged=true)
virtual bool IsDecorative() const
const Graphic * GetGraphic() const
bool IsLayerVisible(const OUString &rName) const
void DeleteHelpLine(sal_uInt16 nNum)
void SetLayerVisible(const OUString &rName, bool bShow)
sal_uInt16 GetPageNum() const
void TRG_SetMasterPageVisibleLayers(const SdrLayerIDSet &rNew)
const SdrLayerIDSet & TRG_GetMasterPageVisibleLayers() const
virtual OutlinerParaObject * GetOutlinerParaObject() const override
SdrObjKind GetTextKind() const
virtual std::unique_ptr< SdrUndoAction > CreateUndoAttrObject(SdrObject &rObject, bool bStyleSheet1=false, bool bSaveText=false)
void Invalidate(sal_uInt16 nId)
static SfxClassificationPolicyType getPolicyType()
static SfxClassificationPolicyType stringToPolicyType(std::u16string_view rType)
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
static bool IsWhich(sal_uInt16 nId)
virtual std::unique_ptr< SfxItemSet > Clone(bool bItems=true, SfxItemPool *pToPool=nullptr) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
const OUString & GetName() const
SfxMedium * GetMedium() const
static SAL_WARN_UNUSED_RESULT SfxObjectShell * Current()
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
const T * GetArg(sal_uInt16 nSlotId) const
weld::Window * GetFrameWeld() const
void SetArgs(const SfxAllItemSet &rArgs)
void Done(bool bRemove=false)
SfxItemPool & GetPool() const
SfxViewFrame * GetFrame() const
const SfxPoolItem * GetItem(sal_uInt16 nSlotId) const
virtual void Invalidate(sal_uInt16 nId=0)
const OUString & GetName() const
SfxStyleFamily GetFamily() const
virtual void EnterListAction(const OUString &rComment, const OUString &rRepeatComment, sal_uInt16 nId, ViewShellId nViewShellId)
virtual void AddUndoAction(std::unique_ptr< SfxUndoAction > pAction, bool bTryMerg=false)
void ToggleChildWindow(sal_uInt16)
static SAL_WARN_UNUSED_RESULT SfxViewFrame * Current()
SfxBindings & GetBindings()
void SetChildWindow(sal_uInt16 nId, bool bVisible, bool bSetFocus=true)
SfxDispatcher * GetDispatcher()
virtual SfxObjectShell * GetObjectShell() override
void ShowChildWindow(sal_uInt16, bool bVisible=true)
css::uno::Reference< css::frame::XController > GetController() const
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
constexpr tools::Long Width() const
static void FatalError(ErrCode)
OUString GetFirstName() const
OUString GetLastName() const
virtual VclPtr< AbstractSvxNameDialog > CreateSvxNameDialog(weld::Window *pParent, const OUString &rName, const OUString &rDesc)=0
virtual VclPtr< AbstractSvxObjectTitleDescDialog > CreateSvxObjectTitleDescDialog(weld::Window *pParent, const OUString &rTitle, const OUString &rDescription, bool isDecorative)=0
virtual VclPtr< AbstractSvxObjectNameDialog > CreateSvxObjectNameDialog(weld::Window *pParent, const OUString &rName)=0
static SvxAbstractDialogFactory * Create()
void SetEscapement(const SvxEscapement eNew)
const SvxFieldData * GetField() const
const FontList * GetFontList() const
SvxLinkInsertMode GetInsertMode() const
const OUString & GetName() const
const OUString & GetURL() const
const OUString & GetTargetFrame() const
FontWeight GetWeight() const
bool StartEditMode(sal_uInt16 nPageId)
sal_uInt16 GetCurPageId() const
static void RemoveURLField(EditView &pEditView)
static VclAbstractDialogFactory * Create()
virtual VclPtr< AbstractAdditionsDialog > CreateAdditionsDialog(weld::Window *pParent, const OUString &sAdditionsTag)=0
virtual VclPtr< AbstractQrCodeGenDialog > CreateQrCodeGenDialog(weld::Window *pParent, const css::uno::Reference< css::frame::XModel > xModel, bool bEditExisting)=0
const model::ComplexColor & getComplexColor() const
void setComplexColor(model::ComplexColor const &rComplexColor)
static BGradient fromJSON(std::u16string_view rJSON)
OUString const & GetName() const
void setSchemeColor(ThemeColorType eType)
void addTransformation(Transformation const &rTransform)
virtual SfxUndoManager * GetUndoManager() override
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
static void CheckLineTo(SfxRequest &rReq)
check if we have to draw a polyline
void DuplicateSelectedSlides(SfxRequest &rRequest)
void ModifyLayer(SdrLayer *pLayer, const OUString &rLayerName, const OUString &rLayerTitle, const OUString &rLayerDesc, bool bIsVisible, bool bIsLocked, bool bIsPrintable)
modifies the given layer with the given values
void SetupPage(Size const &rSize, ::tools::Long nLeft, ::tools::Long nRight, ::tools::Long nUpper, ::tools::Long nLower, bool bSize, bool bMargin, bool bScaleAll)
Change page parameter if SID_PAGESIZE or SID_PAGEMARGIN.
SD_DLLPUBLIC void ExecChar(SfxRequest &rReq)
css::uno::Reference< css::scanner::XScannerManager2 > mxScannerManager
EditMode GetEditMode() const
std::unique_ptr< DrawView > mpDrawView
void UpdateIMapDlg(SdrObject *pObj)
void FuTemporary(SfxRequest &rReq)
SfxRequests for temporary actions.
void ExecutePropPanelAttr(SfxRequest const &rReq)
css::uno::Reference< css::lang::XEventListener > mxScannerListener
std::vector< std::unique_ptr< SdrExternalToolEdit > > m_ExternalEdits
sal_uInt16 GetCurPagePos() const
VclPtr< TabControl > maTabControl
void GetStatePropPanelAttr(SfxItemSet &rSet)
void InsertURLButton(const OUString &rURL, const OUString &rText, const OUString &rTarget, const Point *pPos)
SD_DLLPUBLIC LayerTabBar * GetLayerTabControl()
Return a pointer to the tab control for layers.
virtual SdPage * GetActualPage() override
void InsertURLField(const OUString &rURL, const OUString &rText, const OUString &rTarget)
bool SwitchPage(sal_uInt16 nPage, bool bAllowChangeFocus=true)
Switch to desired page.
bool RenameSlide(sal_uInt16 nPageId, const OUString &rName)
Renames the given slide using an SvxNameDialog.
::Outliner * GetOutlinerForMasterPageOutlineTextObj(ESelection &rSel)
PageKind GetPageKind() const
virtual SdPage * CreateOrDuplicatePage(SfxRequest &rRequest, PageKind ePageKind, SdPage *pPage, const sal_Int32 nInsertPosition=-1) override
Depending on the given request create a new page or duplicate an existing one.
void ResetActualLayer()
Select new refreshed page, in case of a page order change (eg.
virtual void SetZoom(::tools::Long nZoom) override
set zoom factor
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq, bool replaceExistingImage)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static void ChangeFontSize(bool, OutlinerView *, const FontList *, ::sd::View *)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
The UI part presenting the graphic size check results, which is used by GenericCheckDialog.
OUString GetLayerName(sal_uInt16 nPageId) const
static bool IsLocalizedNameOfStandardLayer(std::u16string_view rName)
static bool IsRealNameOfStandardLayer(std::u16string_view rName)
static bool IsRunning(ViewShellBase const &rBase)
returns true if there is a running presentation for the given ViewShellBase
Local derivation of the SfxHint class that defines some hint ids that are used by the ViewShell class...
@ HINT_COMPLEX_MODEL_CHANGE_END
@ HINT_COMPLEX_MODEL_CHANGE_START
static SvxIMapDlg * GetImageMapDialog()
Return a pointer to the image map dialog that is displayed in some child window.
SD_DLLPUBLIC DrawDocShell * GetDocSh() const
const rtl::Reference< FuPoor > & GetCurrentFunction() const
SdDrawDocument * GetDoc() const
std::unique_ptr< Implementation, o3tl::default_delete< Implementation > > mpImpl
::sd::Window * GetActiveWindow() const
The active window is usually the mpContentWindow.
::sd::View * GetView() const
void DeactivateCurrentFunction(bool bPermanent=false)
const rtl::Reference< FuPoor > & GetOldFunction() const
void SetOldFunction(const rtl::Reference< FuPoor > &xFunction)
SD_DLLPUBLIC weld::Window * GetFrameWeld() const
void SetCurrentFunction(const rtl::Reference< FuPoor > &xFunction)
virtual SdPage * CreateOrDuplicatePage(SfxRequest &rRequest, PageKind ePageKind, SdPage *pPage, const sal_Int32 nInsertPosition=-1)
Depending on the given request create a new page or duplicate an existing one.
void Cancel()
this method deactivates the current function.
SD_DLLPUBLIC ViewShellBase & GetViewShellBase() const
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
bool HasCurrentFunction() const
virtual bool SetAttributes(const SfxItemSet &rSet, bool bReplaceAll=false, bool bSlide=false, bool bMaster=false)
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false) override
ends current text editing
SD_DLLPUBLIC SlideSorter & GetSlideSorter() const
Show previews for all the slides in a document and allow the user to insert or delete slides and modi...
A sub-controller that handles page selection of the slide browser.
SD_DLLPUBLIC void DeselectAllPages()
void SelectPage(int nPageIndex)
Select the specified descriptor.
static PageEnumeration CreateSelectedPagesEnumeration(const SlideSorterModel &rModel)
The returned enumeration of slides iterates over the currently selected slides of the given model.
Public class of page enumerations that delegates its calls to an implementation object that can filte...
virtual SharedPageDescriptor GetNextElement() override
Return the next element of the enumeration.
virtual bool HasMoreElements() const override
Return <TRUE> when the enumeration has more elements, i.e.
static void execute(SdrView *pSdrView, SfxRequest const &rReq, SfxBindings &rBindings)
static void execute(SdrView &rSdrView, SfxRequest const &rReq, SfxBindings &rBindings)
virtual short run() override
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)
virtual css::uno::Reference< css::awt::XWindow > GetXWindow()=0
#define DBG_ASSERT(sCon, aError)
#define DBG_UNHANDLED_EXCEPTION(...)
Reference< XDispatch > xDispatch
virtual std::shared_ptr< SfxDialogController > GetController() override
virtual SfxBindings & GetBindings() override
#define MIN_ACTIONS_FOR_DIALOG
if there are more meta objects, we show a dialog during the break up
#define EE_TEXTPOS_MAX_COUNT
constexpr TypedWhichId< SfxBoolItem > EE_PARA_HYPHENATE(EE_PARA_START+6)
constexpr TypedWhichId< SvxFieldItem > EE_FEATURE_FIELD(EE_FEATURE_NOTCONV+1)
constexpr TypedWhichId< SvxUnderlineItem > EE_CHAR_UNDERLINE(EE_CHAR_START+5)
constexpr TypedWhichId< SvxOverlineItem > EE_CHAR_OVERLINE(EE_CHAR_START+29)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT(EE_CHAR_START+4)
constexpr TypedWhichId< SvxEscapementItem > EE_CHAR_ESCAPEMENT(EE_CHAR_START+10)
constexpr TypedWhichId< SvxNumBulletItem > EE_PARA_NUMBULLET(EE_PARA_START+5)
EmbeddedObjectRef * pObject
constexpr OUStringLiteral HID_SD_NAMEDIALOG_PAGE
#define LINK(Instance, Class, Member)
Sequence< sal_Int8 > aSeq
#define SAL_WARN(area, stream)
SVXCORE_DLLPUBLIC MSO_SPT Get(const OUString &)
css::uno::Sequence< css::uno::Any > InitAnyPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
constexpr ThemeColorType convertToThemeColorType(sal_Int32 nIndex)
std::shared_ptr< PageDescriptor > SharedPageDescriptor
OUString getProperty(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer, OUString const &rName)
void insertFullTextualRepresentationAsDocumentProperty(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer, sfx::ClassificationKeyCreator const &rKeyCreator, std::vector< svx::ClassificationResult > const &rResults)
bool addOrInsertDocumentProperty(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer, OUString const &rsKey, OUString const &rsValue)
void removeAllProperties(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer)
@ INTELLECTUAL_PROPERTY_PART
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
#define ERRCODE_BASIC_WRONG_ARGS
SfxBoolItem makeSdAttrLayerLocked(bool bValue=false)
SfxBoolItem makeSdAttrLayerThisPage()
SfxStringItem makeSdAttrLayerTitle(const OUString &aStr=OUString())
SfxBoolItem makeSdAttrLayerVisible(bool bValue=true)
SfxBoolItem makeSdAttrLayerPrintable(bool bValue=true)
SfxStringItem makeSdAttrLayerName(const OUString &aStr)
SfxStringItem makeSdAttrLayerDesc(const OUString &aStr=OUString())
OUString SdResId(TranslateId aId)
SdrOnOffItem makeSdrTextAutoGrowHeightItem(bool bAuto)
SdrOnOffItem makeSdrTextAutoGrowWidthItem(bool bAuto)
std::vector< const SfxPoolItem * > maAttributes
Reference< XModel > xModel
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_TEXT_AUTOGROWWIDTH(SDRATTR_MISC_FIRST+12)
constexpr TypedWhichId< SdrTextFitToSizeTypeItem > SDRATTR_TEXT_FITTOSIZE(SDRATTR_MISC_FIRST+3)
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_TEXT_AUTOGROWHEIGHT(SDRATTR_MISC_FIRST+2)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_TEXT_MINFRAMEHEIGHT(SDRATTR_MISC_FIRST+1)
constexpr TypedWhichId< SdrTextVertAdjustItem > SDRATTR_TEXT_VERTADJUST(SDRATTR_MISC_FIRST+8)
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_TEXT_CONTOURFRAME(SDRATTR_MISC_FIRST+21)
constexpr OUStringLiteral sUNO_LayerName_background_objects
constexpr OUStringLiteral sUNO_LayerName_background