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
d10f615c
Kaydet (Commit)
d10f615c
authored
May 23, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide: SwDrawTextInfo conversion in itratr.cxx
Change-Id: Ibce3ce21e3ddeb762d082b641a4f5d49099b1a6d
üst
416b5ba0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
itratr.cxx
sw/source/core/text/itratr.cxx
+8
-8
No files found.
sw/source/core/text/itratr.cxx
Dosyayı görüntüle @
d10f615c
...
@@ -771,7 +771,7 @@ static bool lcl_MinMaxString( SwMinMaxArgs& rArg, SwFont* pFnt, const OUString &
...
@@ -771,7 +771,7 @@ static bool lcl_MinMaxString( SwMinMaxArgs& rArg, SwFont* pFnt, const OUString &
if
(
nStop
>
nEnd
)
if
(
nStop
>
nEnd
)
nStop
=
nEnd
;
nStop
=
nEnd
;
SwDrawTextInfo
aDrawInf
(
rArg
.
pSh
,
*
rArg
.
pOut
,
nullptr
,
rText
,
nIdx
,
nStop
-
nIdx
);
SwDrawTextInfo
aDrawInf
(
rArg
.
pSh
,
*
rArg
.
pOut
,
rText
,
nIdx
,
nStop
-
nIdx
);
long
nCurrentWidth
=
pFnt
->
GetTextSize_
(
aDrawInf
).
Width
();
long
nCurrentWidth
=
pFnt
->
GetTextSize_
(
aDrawInf
).
Width
();
rArg
.
nRowWidth
+=
nCurrentWidth
;
rArg
.
nRowWidth
+=
nCurrentWidth
;
if
(
bClear
)
if
(
bClear
)
...
@@ -1046,7 +1046,7 @@ void SwTextNode::GetMinMaxSize( sal_uLong nIndex, sal_uLong& rMin, sal_uLong &rM
...
@@ -1046,7 +1046,7 @@ void SwTextNode::GetMinMaxSize( sal_uLong nIndex, sal_uLong& rMin, sal_uLong &rM
{
{
OUString
sTmp
(
cChar
);
OUString
sTmp
(
cChar
);
SwDrawTextInfo
aDrawInf
(
getIDocumentLayoutAccess
().
GetCurrentViewShell
(),
SwDrawTextInfo
aDrawInf
(
getIDocumentLayoutAccess
().
GetCurrentViewShell
(),
*
pOut
,
nullptr
,
sTmp
,
0
,
1
,
0
,
false
);
*
pOut
,
sTmp
,
0
,
1
,
0
,
false
);
nCurrentWidth
=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
nCurrentWidth
=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
aArg
.
nWordWidth
+=
nCurrentWidth
;
aArg
.
nWordWidth
+=
nCurrentWidth
;
aArg
.
nRowWidth
+=
nCurrentWidth
;
aArg
.
nRowWidth
+=
nCurrentWidth
;
...
@@ -1269,7 +1269,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
...
@@ -1269,7 +1269,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
// calculate text widths up to cChar
// calculate text widths up to cChar
if
(
nStop
>
nIdx
)
if
(
nStop
>
nIdx
)
{
{
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
nullptr
,
GetText
(),
nIdx
,
nStop
-
nIdx
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
GetText
(),
nIdx
,
nStop
-
nIdx
);
nProWidth
+=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
nProWidth
+=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
}
}
...
@@ -1286,7 +1286,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
...
@@ -1286,7 +1286,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
{
{
// tab receives width of one space
// tab receives width of one space
OUString
sTmp
(
CH_BLANK
);
OUString
sTmp
(
CH_BLANK
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
nullptr
,
sTmp
,
0
,
1
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
sTmp
,
0
,
1
);
nProWidth
+=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
nProWidth
+=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
nIdx
++
;
nIdx
++
;
}
}
...
@@ -1295,7 +1295,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
...
@@ -1295,7 +1295,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
else
if
(
cChar
==
CHAR_HARDBLANK
||
cChar
==
CHAR_HARDHYPHEN
)
else
if
(
cChar
==
CHAR_HARDBLANK
||
cChar
==
CHAR_HARDHYPHEN
)
{
{
OUString
sTmp
(
cChar
);
OUString
sTmp
(
cChar
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
nullptr
,
sTmp
,
0
,
1
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
sTmp
,
0
,
1
);
nProWidth
+=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
nProWidth
+=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
nIdx
++
;
nIdx
++
;
}
}
...
@@ -1306,7 +1306,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
...
@@ -1306,7 +1306,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
case
RES_TXTATR_FTN
:
case
RES_TXTATR_FTN
:
{
{
const
OUString
aText
=
pHint
->
GetFootnote
().
GetNumStr
();
const
OUString
aText
=
pHint
->
GetFootnote
().
GetNumStr
();
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
nullptr
,
aText
,
0
,
aText
.
getLength
()
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
aText
,
0
,
aText
.
getLength
()
);
nProWidth
+=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
nProWidth
+=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
break
;
break
;
...
@@ -1317,7 +1317,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
...
@@ -1317,7 +1317,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
{
{
SwField
*
pField
=
const_cast
<
SwField
*>
(
pHint
->
GetFormatField
().
GetField
());
SwField
*
pField
=
const_cast
<
SwField
*>
(
pHint
->
GetFormatField
().
GetField
());
OUString
const
aText
=
pField
->
ExpandField
(
true
);
OUString
const
aText
=
pField
->
ExpandField
(
true
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
nullptr
,
aText
,
0
,
aText
.
getLength
()
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
aText
,
0
,
aText
.
getLength
()
);
nProWidth
+=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
nProWidth
+=
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Width
();
break
;
break
;
...
@@ -1364,7 +1364,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
...
@@ -1364,7 +1364,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
aIter
.
SeekAndChgAttrIter
(
nStt
,
pOut
);
aIter
.
SeekAndChgAttrIter
(
nStt
,
pOut
);
pOut
->
SetMapMode
(
aOldMap
);
pOut
->
SetMapMode
(
aOldMap
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
nullptr
,
GetText
(),
nStt
,
1
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
GetText
(),
nStt
,
1
);
return
static_cast
<
sal_uInt16
>
(
nWidth
?
((
100
*
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Height
())
/
nWidth
)
:
0
);
return
static_cast
<
sal_uInt16
>
(
nWidth
?
((
100
*
aIter
.
GetFnt
()
->
GetTextSize_
(
aDrawInf
).
Height
())
/
nWidth
)
:
0
);
}
}
...
...
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