25#include <osl/diagnose.h>
34#include <drawview.hxx>
51 SdPage* pPageToRename =
nullptr;
59 SdPage* pUndoPage = pPageToRename;
67 std::make_unique<ModifyPageUndoAction>(
69 aVisibleLayers.
IsSet( nBackground ),
70 aVisibleLayers.
IsSet( nBgObj )));
73 pPageToRename->
SetName( rName );
89 bool bSuccess = (rName == pPageToRename->
GetName());
103 rBindings.
Invalidate(SID_NAVIGATOR_STATE,
true);
110 if (pSlideSorterViewShell !=
nullptr)
112 pSlideSorterViewShell->
GetSlideSorter().GetController().PageNameHasChanged(
123 rDialog.GetName( aNewName );
125 SdPage* pCurrentPage = GetDoc()->GetSdPage( maTabControl->GetCurPagePos(), GetPageKind() );
127 return pCurrentPage && ( aNewName == pCurrentPage->
GetName() || GetDocSh()->IsNewPageNameValid( aNewName ) );
132 const OUString& rLayerName,
133 const OUString& rLayerTitle,
134 const OUString& rLayerDesc,
141 OSL_ENSURE(
false,
"No LayerTabBar (!)");
149 sal_uInt16 nCurPage = 0;
164 mpDrawView->SetLayerVisible( rLayerName, bIsVisible );
165 mpDrawView->SetLayerLocked( rLayerName, bIsLocked);
166 mpDrawView->SetLayerPrintable(rLayerName, bIsPrintable);
178 nBits = TabBarPageBits::Blue;
182 nBits |= TabBarPageBits::Italic;
186 nBits |= TabBarPageBits::Underline;
195 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD);
199 if (pFormShell !=
nullptr)
200 pFormShell->Invalidate();
SdPage * GetSdPage(sal_uInt16 nPgNum, PageKind ePgKind) const
SAL_DLLPRIVATE void RenameLayoutTemplate(const OUString &rOldLayoutName, const OUString &rNewName)
SdPage * GetMasterSdPage(sal_uInt16 nPgNum, PageKind ePgKind)
virtual SAL_DLLPRIVATE void SetChanged(bool bFlag=true) override
SAL_DLLPRIVATE::sd::DrawDocShell * GetDocSh() const
virtual OUString GetLayoutName() const override
const OUString & GetName() const
void SetName(const OUString &rName)
Set the name of the page and broadcast a model change.
AutoLayout GetAutoLayout() const
SdrLayerID GetLayerID(const OUString &rName) const
bool IsSet(SdrLayerID a) const
const OUString & GetName() const
void SetDescription(const OUString &rDesc)
void SetTitle(const OUString &rTitle)
void SetName(const OUString &rNewName)
const SdrLayerAdmin & GetLayerAdmin() const
const SdrLayerIDSet & TRG_GetMasterPageVisibleLayers() 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)
virtual void AddUndoAction(std::unique_ptr< SfxUndoAction > pAction, bool bTryMerg=false)
SfxBindings & GetBindings()
SfxDispatcher * GetDispatcher()
void SetPageBits(sal_uInt16 nPageId, TabBarPageBits nBits)
sal_uInt16 GetPageCount() const
sal_uInt16 GetPageId(sal_uInt16 nPos) const
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
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
EditMode GetEditMode() const
std::unique_ptr< DrawView > mpDrawView
VclPtr< TabControl > maTabControl
SD_DLLPUBLIC LayerTabBar * GetLayerTabControl()
Return a pointer to the tab control for layers.
bool RenameSlide(sal_uInt16 nPageId, const OUString &rName)
Renames the given slide using an SvxNameDialog.
PageKind GetPageKind() const
virtual void SetPageText(sal_uInt16 nPageId, const OUString &rText) override
std::shared_ptr< FormShellManager > const & GetFormShellManager() const
SdDrawDocument * GetDoc() const
SD_DLLPUBLIC ViewShellBase & GetViewShellBase() const
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
SD_DLLPUBLIC SlideSorter & GetSlideSorter() const
static SD_DLLPUBLIC SlideSorterViewShell * GetSlideSorter(ViewShellBase &rBase)
Return a slide sorter that is currently displayed in one of the panes that belong to the given ViewSh...
IMPL_LINK(SdCharHeightPropertyBox, implMenuSelectHdl, const OUString &, rIdent, void)
constexpr OUStringLiteral sUNO_LayerName_background_objects
constexpr OUStringLiteral sUNO_LayerName_background