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
31eb55e5
Kaydet (Commit)
31eb55e5
authored
Eki 02, 2013
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Do print empty lines or beyond end of text
Change-Id: I706faba95ca6b3034b2293f3dcc15b9f124014be
üst
06941b06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
srcview.cxx
sw/source/ui/uiview/srcview.cxx
+9
-3
No files found.
sw/source/ui/uiview/srcview.cxx
Dosyayı görüntüle @
31eb55e5
...
@@ -721,7 +721,8 @@ sal_Int32 SwSrcView::PrintSource(
...
@@ -721,7 +721,8 @@ sal_Int32 SwSrcView::PrintSource(
// nLinepPage is not true, if lines have to be wrapped...
// nLinepPage is not true, if lines have to be wrapped...
sal_uInt16
nLinespPage
=
(
sal_uInt16
)
(
aPaperSz
.
Height
()
/
nLineHeight
);
sal_uInt16
nLinespPage
=
(
sal_uInt16
)
(
aPaperSz
.
Height
()
/
nLineHeight
);
sal_uInt16
nCharspLine
=
(
sal_uInt16
)
(
aPaperSz
.
Width
()
/
pOutDev
->
GetTextWidth
(
OUString
(
'X'
)));
const
sal_Int32
nCharspLine
=
static_cast
<
sal_Int32
>
(
aPaperSz
.
Width
()
/
pOutDev
->
GetTextWidth
(
"X"
));
sal_uInt16
nParas
=
static_cast
<
sal_uInt16
>
(
pTextEngine
->
GetParagraphCount
()
);
sal_uInt16
nParas
=
static_cast
<
sal_uInt16
>
(
pTextEngine
->
GetParagraphCount
()
);
sal_uInt16
nPages
=
(
sal_uInt16
)
(
nParas
/
nLinespPage
+
1
);
sal_uInt16
nPages
=
(
sal_uInt16
)
(
nParas
/
nLinespPage
+
1
);
...
@@ -735,7 +736,8 @@ sal_Int32 SwSrcView::PrintSource(
...
@@ -735,7 +736,8 @@ sal_Int32 SwSrcView::PrintSource(
for
(
sal_uInt16
nPara
=
0
;
nPara
<
nParas
;
++
nPara
)
for
(
sal_uInt16
nPara
=
0
;
nPara
<
nParas
;
++
nPara
)
{
{
const
OUString
aLine
(
lcl_ConvertTabsToSpaces
(
pTextEngine
->
GetText
(
nPara
))
);
const
OUString
aLine
(
lcl_ConvertTabsToSpaces
(
pTextEngine
->
GetText
(
nPara
))
);
sal_Int32
nLines
=
aLine
.
getLength
()
/
nCharspLine
+
1
;
const
sal_Int32
nLineLen
=
aLine
.
getLength
();
const
sal_Int32
nLines
=
(
nLineLen
+
nCharspLine
-
1
)
/
nCharspLine
;
for
(
sal_Int32
nLine
=
0
;
nLine
<
nLines
;
++
nLine
)
for
(
sal_Int32
nLine
=
0
;
nLine
<
nLines
;
++
nLine
)
{
{
aPos
.
Y
()
+=
nLineHeight
;
aPos
.
Y
()
+=
nLineHeight
;
...
@@ -747,7 +749,11 @@ sal_Int32 SwSrcView::PrintSource(
...
@@ -747,7 +749,11 @@ sal_Int32 SwSrcView::PrintSource(
aPos
=
aStartPos
;
aPos
=
aStartPos
;
}
}
if
(
!
bCalcNumPagesOnly
&&
nPage
==
nCurPage
)
if
(
!
bCalcNumPagesOnly
&&
nPage
==
nCurPage
)
pOutDev
->
DrawText
(
aPos
,
aLine
.
copy
(
nLine
*
nCharspLine
,
nCharspLine
)
);
{
const
sal_Int32
nStart
=
nLine
*
nCharspLine
;
const
sal_Int32
nLen
=
std
::
min
(
nLineLen
-
nStart
,
nCharspLine
);
pOutDev
->
DrawText
(
aPos
,
aLine
.
copy
(
nStart
,
nLen
)
);
}
}
}
aPos
.
Y
()
+=
nParaSpace
;
aPos
.
Y
()
+=
nParaSpace
;
}
}
...
...
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