64 SdPage* pFirstMasterPage =
nullptr;
72 if (rBookmarks.empty())
76 if (pDocShell ==
nullptr)
80 if (pDocument ==
nullptr)
83 for (
const OUString&
sName : rBookmarks)
91 sName, bIsMasterPage);
96 pFirstMasterPage =
nullptr;
99 else if (pFirstMasterPage ==
nullptr)
103 pFirstMasterPage =
static_cast<SdPage*
>(
111 return pFirstMasterPage;
116 SdPage const * pMasterPage)
118 if (pMasterPage ==
nullptr)
123 if (pPageView ==
nullptr)
127 if (pPage ==
nullptr)
136 if (pDataDocShell ==
nullptr)
140 if (pSourceDocument ==
nullptr)
146 sal_Int32
nLength = sLayoutSuffix.getLength();
148 if (sLayoutName.endsWith(sLayoutSuffix))
149 sLayoutName = sLayoutName.copy(0, sLayoutName.getLength() -
nLength);
168 for( sal_uInt16 nPage = 0; nPage < nPgCnt; nPage++ )
173 nInsertPos = nPage * 2 + 3;
181 sal_uInt16 nInsertPosition)
185 sal_uInt16 nInsertPgCnt = 0;
186 bool bMergeMasterPages = !rTransferable.
HasSourceDoc( &rDoc );
189 const std::vector<OUString> *pBookmarkList =
nullptr;
197 nInsertPgCnt =
static_cast<sal_uInt16
>(pBookmarkList->size());
210 if (nInsertPgCnt > 0)
214 const bool bWait = pWin && pWin->
IsWait();
220 pBookmarkList ? *pBookmarkList : std::vector<OUString>(),
225 (&rTransferable ==
SD_MOD()->pTransferDrag),
SAL_DLLPRIVATE bool InsertBookmarkAsPage(const std::vector< OUString > &rBookmarkList, std::vector< OUString > *pExchangeList, bool bLink, bool bReplace, sal_uInt16 nPgPos, bool bNoDialogs, ::sd::DrawDocShell *pBookmarkDocSh, bool bCopy, bool bMergeMasterPages, bool bPreservePageNames)
Insert pages into this document.
SdPage * GetSdPage(sal_uInt16 nPgNum, PageKind ePgKind) const
SAL_DLLPRIVATE sal_uInt16 GetPageByName(std::u16string_view rPgName, bool &rbIsMasterPage) const
Return the first page that has the given name.
void SetMasterPage(sal_uInt16 nSdPageNum, std::u16string_view rLayoutName, SdDrawDocument *pSourceDoc, bool bMaster, bool bCheckMasters)
sal_uInt16 GetSdPageCount(PageKind ePgKind) const
virtual OUString GetLayoutName() const override
const SfxObjectShellRef & GetDocShell() const
bool HasPageBookmarks() const
::sd::DrawDocShell * GetPageDocShell() const
const std::vector< OUString > & GetPageBookmarks() const
bool HasSourceDoc(const SdDrawDocument *pDoc) const
const SdrPage * GetMasterPage(sal_uInt16 nPgNum) const
SdrPage * GetPage() const
sal_uInt16 GetPageNum() const
SdrPageView * GetSdrPageView() const
SdDrawDocument * GetDoc()
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
EditMode GetEditMode() const
sal_uInt16 InsertSlides(const SdTransferable &rTransferable, sal_uInt16 nInsertPosition)
Insert the slides in the given transferable behind the last selected slide or, when the selection is ...
virtual sal_uInt16 DetermineInsertPosition()
Return an index of a page after which the pages of the transferable are to be inserted into the targe...
static SdPage * GetFirstMasterPage(const SdTransferable &rTransferable)
Return the first master page of the given transferable.
void AssignMasterPage(const SdTransferable &rTransferable, SdPage const *pMasterPage)
Assign the (first) master page of the given transferable to the (...) slide.
ViewClipboard(::sd::View &rView)
void HandlePageDrop(const SdTransferable &rTransferable)
Handle the drop of a drag-and-drop action where the transferable contains a set of pages.
::sd::Window * GetActiveWindow() const
The active window is usually the mpContentWindow.
ViewShell * GetViewShell() const
SdDrawDocument & GetDoc() const
An SdWindow contains the actual working area of ViewShell.
constexpr OUStringLiteral SD_LT_SEPARATOR
constexpr OUStringLiteral STR_LAYOUT_OUTLINE