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
a208d965
Kaydet (Commit)
a208d965
authored
Haz 21, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: include the height of SwNumberPortions in layout dump
Change-Id: I7c7d78c212683e47f726fc91d59c9c495b78641e
üst
c3f2401d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
5 deletions
+15
-5
accportions.cxx
sw/source/core/access/accportions.cxx
+1
-1
accportions.hxx
sw/source/core/access/accportions.hxx
+1
-1
SwPortionHandler.hxx
sw/source/core/inc/SwPortionHandler.hxx
+2
-1
porfld.cxx
sw/source/core/text/porfld.cxx
+4
-1
xmldump.cxx
sw/source/core/text/xmldump.cxx
+7
-1
No files found.
sw/source/core/access/accportions.cxx
Dosyayı görüntüle @
a208d965
...
...
@@ -142,7 +142,7 @@ void SwAccessiblePortionData::Text(sal_uInt16 nLength, sal_uInt16 nType)
}
void
SwAccessiblePortionData
::
Special
(
sal_uInt16
nLength
,
const
String
&
rText
,
sal_uInt16
nType
)
sal_uInt16
nLength
,
const
String
&
rText
,
sal_uInt16
nType
,
sal_Int32
/*nHeight*/
)
{
OSL_ENSURE
(
nModelPosition
>=
0
,
"illegal position"
);
OSL_ENSURE
(
(
nModelPosition
+
nLength
)
<=
pTxtNode
->
GetTxt
().
Len
(),
...
...
sw/source/core/access/accportions.hxx
Dosyayı görüntüle @
a208d965
...
...
@@ -95,7 +95,7 @@ public:
// SwPortionHandler methods
virtual
void
Text
(
sal_uInt16
nLength
,
sal_uInt16
nType
);
virtual
void
Special
(
sal_uInt16
nLength
,
const
String
&
rText
,
sal_uInt16
nType
);
virtual
void
Special
(
sal_uInt16
nLength
,
const
String
&
rText
,
sal_uInt16
nType
,
sal_Int32
nHeight
=
0
);
virtual
void
LineBreak
();
virtual
void
Skip
(
sal_uInt16
nLength
);
virtual
void
Finish
();
...
...
sw/source/core/inc/SwPortionHandler.hxx
Dosyayı görüntüle @
a208d965
...
...
@@ -66,7 +66,8 @@ public:
virtual
void
Special
(
sal_uInt16
nLength
,
/// length of this portion in the model string
const
String
&
rText
,
/// text which is painted on-screen
sal_uInt16
nType
/// type of this portion
sal_uInt16
nType
,
/// type of this portion
sal_Int32
nHeight
=
0
/// font height of the painted text
)
=
0
;
/** line break. This method is called whenever a line break in the
...
...
sw/source/core/text/porfld.cxx
Dosyayı görüntüle @
a208d965
...
...
@@ -471,7 +471,10 @@ sal_Bool SwFldPortion::GetExpTxt( const SwTxtSizeInfo &rInf, XubString &rTxt ) c
void
SwFldPortion
::
HandlePortion
(
SwPortionHandler
&
rPH
)
const
{
rPH
.
Special
(
GetLen
(),
aExpand
,
GetWhichPor
()
);
sal_Int32
nH
=
0
;
if
(
pFnt
)
nH
=
pFnt
->
GetSize
(
pFnt
->
GetActual
()).
Height
();
rPH
.
Special
(
GetLen
(),
aExpand
,
GetWhichPor
(),
nH
);
}
/*************************************************************************
...
...
sw/source/core/text/xmldump.cxx
Dosyayı görüntüle @
a208d965
...
...
@@ -153,10 +153,13 @@ class XmlPortionDumper:public SwPortionHandler
text which is painted on-screen
@param nType
type of this portion
@param nHeight
font size of the painted text
*/
virtual
void
Special
(
sal_uInt16
nLength
,
const
String
&
rText
,
sal_uInt16
nType
)
sal_uInt16
nType
,
sal_Int32
nHeight
=
0
)
{
xmlTextWriterStartElement
(
writer
,
BAD_CAST
(
"Special"
)
);
xmlTextWriterWriteFormatAttribute
(
writer
,
...
...
@@ -171,6 +174,9 @@ class XmlPortionDumper:public SwPortionHandler
xmlTextWriterWriteFormatAttribute
(
writer
,
BAD_CAST
(
"rText"
),
"%s"
,
sText8
.
getStr
(
)
);
if
(
nHeight
>
0
)
xmlTextWriterWriteFormatAttribute
(
writer
,
BAD_CAST
(
"nHeight"
),
"%i"
,
(
int
)
nHeight
);
xmlTextWriterEndElement
(
writer
);
ofs
+=
nLength
;
}
...
...
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