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
4cffdb68
Kaydet (Commit)
4cffdb68
authored
Haz 22, 2012
tarafından
Ivan Timofeev
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
reuse existing code
Change-Id: I10f3d9958679b485cf75d514a38093cbe51d540e
üst
99a05de8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
52 deletions
+4
-52
EnhancedPDFExportHelper.cxx
sw/source/core/text/EnhancedPDFExportHelper.cxx
+4
-52
No files found.
sw/source/core/text/EnhancedPDFExportHelper.cxx
Dosyayı görüntüle @
4cffdb68
...
@@ -2149,58 +2149,10 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
...
@@ -2149,58 +2149,10 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
*/
*/
sal_Int32
SwEnhancedPDFExportHelper
::
CalcOutputPageNum
(
const
SwRect
&
rRect
)
const
sal_Int32
SwEnhancedPDFExportHelper
::
CalcOutputPageNum
(
const
SwRect
&
rRect
)
const
{
{
// Document page number.
std
::
vector
<
sal_Int32
>
aPageNums
=
CalcOutputPageNums
(
rRect
);
sal_Int32
nPageNumOfRect
=
mrSh
.
GetPageNumAndSetOffsetForPDF
(
mrOut
,
rRect
);
if
(
!
aPageNums
.
empty
()
)
if
(
nPageNumOfRect
<
0
)
return
aPageNums
[
0
];
return
-
1
;
return
-
1
;
// What will be the page number of page nPageNumOfRect in the output pdf?
sal_Int32
nRet
=
-
1
;
if
(
mpRangeEnum
)
{
if
(
mbSkipEmptyPages
)
// Map the page number to the range without empty pages.
nPageNumOfRect
=
maPageNumberMap
[
nPageNumOfRect
];
if
(
mpRangeEnum
->
hasValue
(
nPageNumOfRect
)
)
{
sal_Int32
nOutputPageNum
=
0
;
StringRangeEnumerator
::
Iterator
aIter
=
mpRangeEnum
->
begin
();
StringRangeEnumerator
::
Iterator
aEnd
=
mpRangeEnum
->
end
();
for
(
;
aIter
!=
aEnd
;
++
aIter
)
{
if
(
*
aIter
==
nPageNumOfRect
)
{
nRet
=
nOutputPageNum
;
break
;
}
++
nOutputPageNum
;
}
}
}
else
{
if
(
mbSkipEmptyPages
)
{
sal_Int32
nOutputPageNum
=
0
;
for
(
size_t
i
=
0
;
i
<
maPageNumberMap
.
size
();
++
i
)
{
if
(
maPageNumberMap
[
i
]
>=
0
)
// is not empty?
{
if
(
i
==
static_cast
<
size_t
>
(
nPageNumOfRect
)
)
{
nRet
=
nOutputPageNum
;
break
;
}
++
nOutputPageNum
;
}
}
}
else
nRet
=
nPageNumOfRect
;
}
return
nRet
;
}
}
/*
/*
...
...
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