Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f46debee
Kaydet (Commit)
f46debee
authored
Mar 27, 2012
tarafından
Rafael Dominguez
Kaydeden (comit)
Luboš Luňák
Nis 13, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Overload lcl_IterateBookmarkPages to use vector instead of List.
üst
ad50ae4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
+73
-0
drawdoc3.cxx
sd/source/core/drawdoc3.cxx
+73
-0
No files found.
sd/source/core/drawdoc3.cxx
Dosyayı görüntüle @
f46debee
...
...
@@ -195,6 +195,79 @@ void lcl_IterateBookmarkPages( SdDrawDocument &rDoc, SdDrawDocument* pBookmarkDo
}
}
/*************************************************************************
|*
|* Fuegt ein Bookmark als Seite ein
|*
\************************************************************************/
void
lcl_IterateBookmarkPages
(
SdDrawDocument
&
rDoc
,
SdDrawDocument
*
pBookmarkDoc
,
std
::
vector
<
rtl
::
OUString
>
&
rBookmarkList
,
sal_uInt16
nBMSdPageCount
,
InsertBookmarkAsPage_FindDuplicateLayouts
&
rPageIterator
)
{
//
// Refactored copy'n'pasted layout name collection from InsertBookmarkAsPage
//
int
nPos
,
nEndPos
;
if
(
rBookmarkList
.
empty
()
)
{
// no list? whole source document
nEndPos
=
nBMSdPageCount
;
}
else
{
// bookmark list? number of entries
nEndPos
=
rBookmarkList
.
size
();
}
SdPage
*
pBMPage
;
// iterate over number of pages to insert
for
(
nPos
=
0
;
nPos
<
nEndPos
;
++
nPos
)
{
// the master page associated to the nPos'th page to insert
SdPage
*
pBMMPage
=
NULL
;
if
(
rBookmarkList
.
empty
()
)
{
// simply take master page of nPos'th page in source document
pBMMPage
=
(
SdPage
*
)(
&
(
pBookmarkDoc
->
GetSdPage
((
sal_uInt16
)
nPos
,
PK_STANDARD
)
->
TRG_GetMasterPage
()));
}
else
{
// fetch nPos'th entry from bookmark list, and determine master page
String
aBMPgName
(
rBookmarkList
[
nPos
]);
sal_Bool
bIsMasterPage
;
sal_uInt16
nBMPage
=
pBookmarkDoc
->
GetPageByName
(
aBMPgName
,
bIsMasterPage
);
if
(
nBMPage
!=
SDRPAGE_NOTFOUND
)
{
pBMPage
=
(
SdPage
*
)
pBookmarkDoc
->
GetPage
(
nBMPage
);
}
else
{
pBMPage
=
NULL
;
}
// enforce that bookmarked page is a standard page and not already a master page
if
(
pBMPage
&&
pBMPage
->
GetPageKind
()
==
PK_STANDARD
&&
!
pBMPage
->
IsMasterPage
())
{
const
sal_uInt16
nBMSdPage
=
(
nBMPage
-
1
)
/
2
;
pBMMPage
=
(
SdPage
*
)
(
&
(
pBookmarkDoc
->
GetSdPage
(
nBMSdPage
,
PK_STANDARD
)
->
TRG_GetMasterPage
()));
}
}
// successfully determined valid (bookmarked) page?
if
(
pBMMPage
)
{
// yes, call functor
rPageIterator
(
rDoc
,
pBMMPage
);
}
}
}
/*************************************************************************
|*
|* Oeffnet ein Bookmark-Dokument
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment