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
c06ef2b5
Kaydet (Commit)
c06ef2b5
authored
Tem 07, 2013
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove unused SwDoGetCapitalBreak::pExtraPos
Change-Id: I6b64d25c3bddc73ba168ed0c7b6a0f12d0042fad
üst
6fa07d2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
21 deletions
+13
-21
swfont.hxx
sw/source/core/inc/swfont.hxx
+1
-1
fntcache.cxx
sw/source/core/txtnode/fntcache.cxx
+4
-1
fntcap.cxx
sw/source/core/txtnode/fntcap.cxx
+8
-19
No files found.
sw/source/core/inc/swfont.hxx
Dosyayı görüntüle @
c06ef2b5
...
@@ -317,7 +317,7 @@ public:
...
@@ -317,7 +317,7 @@ public:
xub_StrLen
GetCapitalBreak
(
ViewShell
*
pSh
,
const
OutputDevice
*
pOut
,
xub_StrLen
GetCapitalBreak
(
ViewShell
*
pSh
,
const
OutputDevice
*
pOut
,
const
SwScriptInfo
*
pScript
,
const
XubString
&
rTxt
,
const
SwScriptInfo
*
pScript
,
const
XubString
&
rTxt
,
long
nTextWidth
,
xub_StrLen
*
pExtra
,
const
xub_StrLen
nIdx
,
long
nTextWidth
,
const
xub_StrLen
nIdx
,
const
xub_StrLen
nLen
);
const
xub_StrLen
nLen
);
xub_StrLen
GetCapitalCrsrOfst
(
SwDrawTextInfo
&
rInf
)
xub_StrLen
GetCapitalCrsrOfst
(
SwDrawTextInfo
&
rInf
)
...
...
sw/source/core/txtnode/fntcache.cxx
Dosyayı görüntüle @
c06ef2b5
...
@@ -2427,8 +2427,11 @@ xub_StrLen SwFont::GetTxtBreak( SwDrawTextInfo& rInf, long nTextWidth )
...
@@ -2427,8 +2427,11 @@ xub_StrLen SwFont::GetTxtBreak( SwDrawTextInfo& rInf, long nTextWidth )
}
}
if
(
aSub
[
nActual
].
IsCapital
()
&&
nLn
)
if
(
aSub
[
nActual
].
IsCapital
()
&&
nLn
)
{
nTxtBreak
=
GetCapitalBreak
(
rInf
.
GetShell
(),
rInf
.
GetpOut
(),
nTxtBreak
=
GetCapitalBreak
(
rInf
.
GetShell
(),
rInf
.
GetpOut
(),
rInf
.
GetScriptInfo
(),
rInf
.
GetText
(),
nTextWidth
,
0
,
rInf
.
GetIdx
(),
nLn
);
rInf
.
GetScriptInfo
(),
rInf
.
GetText
(),
nTextWidth
,
rInf
.
GetIdx
(),
nLn
);
}
else
else
{
{
nKern
=
CheckKerning
();
nKern
=
CheckKerning
();
...
...
sw/source/core/txtnode/fntcap.cxx
Dosyayı görüntüle @
c06ef2b5
...
@@ -181,13 +181,13 @@ Size SwSubFont::GetCapitalSize( SwDrawTextInfo& rInf )
...
@@ -181,13 +181,13 @@ Size SwSubFont::GetCapitalSize( SwDrawTextInfo& rInf )
class
SwDoGetCapitalBreak
:
public
SwDoCapitals
class
SwDoGetCapitalBreak
:
public
SwDoCapitals
{
{
protected
:
protected
:
xub_StrLen
*
pExtraPos
;
long
nTxtWidth
;
long
nTxtWidth
;
xub_StrLen
nBreak
;
xub_StrLen
nBreak
;
public
:
public
:
SwDoGetCapitalBreak
(
SwDrawTextInfo
&
rInfo
,
long
nWidth
,
xub_StrLen
*
pExtra
)
SwDoGetCapitalBreak
(
SwDrawTextInfo
&
rInfo
,
long
const
nWidth
)
:
SwDoCapitals
(
rInfo
),
pExtraPos
(
pExtra
),
nTxtWidth
(
nWidth
),
:
SwDoCapitals
(
rInfo
)
nBreak
(
STRING_LEN
)
,
nTxtWidth
(
nWidth
)
,
nBreak
(
STRING_LEN
)
{
}
{
}
virtual
~
SwDoGetCapitalBreak
()
{}
virtual
~
SwDoGetCapitalBreak
()
{}
virtual
void
Init
(
SwFntObj
*
pUpperFont
,
SwFntObj
*
pLowerFont
);
virtual
void
Init
(
SwFntObj
*
pUpperFont
,
SwFntObj
*
pLowerFont
);
...
@@ -211,18 +211,7 @@ void SwDoGetCapitalBreak::Do()
...
@@ -211,18 +211,7 @@ void SwDoGetCapitalBreak::Do()
OUString
sText
(
rInf
.
GetText
());
// only needed until rInf.GetText() returns OUString
OUString
sText
(
rInf
.
GetText
());
// only needed until rInf.GetText() returns OUString
sal_Int32
nIdx2
=
rInf
.
GetIdx
();
// ditto
sal_Int32
nIdx2
=
rInf
.
GetIdx
();
// ditto
sal_Int32
nLen2
=
rInf
.
GetLen
();
// ditto
sal_Int32
nLen2
=
rInf
.
GetLen
();
// ditto
if
(
pExtraPos
)
nBreak
=
GetOut
().
GetTextBreak
(
sText
,
nTxtWidth
,
{
sal_Int32
nExtraPos
=
*
pExtraPos
;
// ditto
nBreak
=
GetOut
().
GetTextBreak
(
sText
,
nTxtWidth
,
static_cast
<
sal_Unicode
>
(
'-'
),
nExtraPos
,
nIdx2
,
nLen2
,
rInf
.
GetKern
()
);
if
(
nExtraPos
>
nEnd
)
nExtraPos
=
nEnd
;
*
pExtraPos
=
(
nExtraPos
==
-
1
)
?
STRING_LEN
:
nExtraPos
;
}
else
nBreak
=
GetOut
().
GetTextBreak
(
sText
,
nTxtWidth
,
nIdx2
,
nLen2
,
rInf
.
GetKern
()
);
nIdx2
,
nLen2
,
rInf
.
GetKern
()
);
rInf
.
SetText
(
sText
);
// ditto
rInf
.
SetText
(
sText
);
// ditto
...
@@ -255,8 +244,8 @@ void SwDoGetCapitalBreak::Do()
...
@@ -255,8 +244,8 @@ void SwDoGetCapitalBreak::Do()
*************************************************************************/
*************************************************************************/
xub_StrLen
SwFont
::
GetCapitalBreak
(
ViewShell
*
pSh
,
const
OutputDevice
*
pOut
,
xub_StrLen
SwFont
::
GetCapitalBreak
(
ViewShell
*
pSh
,
const
OutputDevice
*
pOut
,
const
SwScriptInfo
*
pScript
,
const
XubString
&
rTxt
,
long
nTextWidth
,
const
SwScriptInfo
*
pScript
,
const
XubString
&
rTxt
,
long
const
nTextWidth
,
xub_StrLen
*
pExtra
,
const
xub_StrLen
nIdx
,
const
xub_StrLen
nLen
)
const
xub_StrLen
nIdx
,
const
xub_StrLen
nLen
)
{
{
// Start:
// Start:
Point
aPos
(
0
,
0
);
Point
aPos
(
0
,
0
);
...
@@ -272,7 +261,7 @@ xub_StrLen SwFont::GetCapitalBreak( ViewShell* pSh, const OutputDevice* pOut,
...
@@ -272,7 +261,7 @@ xub_StrLen SwFont::GetCapitalBreak( ViewShell* pSh, const OutputDevice* pOut,
aInfo
.
SetKanaComp
(
pScript
?
0
:
100
);
aInfo
.
SetKanaComp
(
pScript
?
0
:
100
);
aInfo
.
SetFont
(
this
);
aInfo
.
SetFont
(
this
);
SwDoGetCapitalBreak
aDo
(
aInfo
,
nTextWidth
,
pExtra
);
SwDoGetCapitalBreak
aDo
(
aInfo
,
nTextWidth
);
DoOnCapitals
(
aDo
);
DoOnCapitals
(
aDo
);
return
aDo
.
GetBreak
();
return
aDo
.
GetBreak
();
}
}
...
...
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