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
41d229b2
Kaydet (Commit)
41d229b2
authored
Eyl 04, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
XubString->OUString
Change-Id: I72b2678c79401320c355c7b6635a6180b01202f1
üst
a97e46f0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
17 deletions
+9
-17
frmcrsr.cxx
sw/source/core/text/frmcrsr.cxx
+1
-3
guess.cxx
sw/source/core/text/guess.cxx
+3
-5
porlin.hxx
sw/source/core/text/porlin.hxx
+0
-1
porrst.cxx
sw/source/core/text/porrst.cxx
+1
-2
fntcap.cxx
sw/source/core/txtnode/fntcap.cxx
+1
-3
ndtxt.cxx
sw/source/core/txtnode/ndtxt.cxx
+3
-3
No files found.
sw/source/core/text/frmcrsr.cxx
Dosyayı görüntüle @
41d229b2
...
...
@@ -1518,9 +1518,7 @@ void SwTxtFrm::FillCrsrPos( SwFillData& rFill ) const
SwTwips
nSpace
=
0
;
if
(
FILL_TAB
!=
rFill
.
Mode
()
)
{
static
sal_Char
const
sDoubleSpace
[]
=
" "
;
const
XubString
aTmp
(
sDoubleSpace
,
RTL_TEXTENCODING_MS_1252
);
const
OUString
aTmp
(
" "
);
SwDrawTextInfo
aDrawInf
(
pSh
,
*
pOut
,
0
,
aTmp
,
0
,
2
);
nSpace
=
pFnt
->
_GetTxtSize
(
aDrawInf
).
Width
()
/
2
;
}
...
...
sw/source/core/text/guess.cxx
Dosyayı görüntüle @
41d229b2
...
...
@@ -537,25 +537,23 @@ bool SwTxtGuess::AlternativeSpelling( const SwTxtFormatInfo &rInf,
const
xub_StrLen
nPos
)
{
// get word boundaries
xub_StrLen
nWordLen
;
Boundary
aBound
=
g_pBreakIt
->
GetBreakIter
()
->
getWordBoundary
(
rInf
.
GetTxt
(),
nPos
,
g_pBreakIt
->
GetLocale
(
rInf
.
GetFont
()
->
GetLanguage
()
),
WordType
::
DICTIONARY_WORD
,
sal_True
);
nBreakStart
=
(
xub_StrLen
)
aBound
.
startPos
;
nWordLen
=
static_cast
<
xub_StrLen
>
(
aBound
.
endPos
-
nBreakStart
)
;
sal_Int32
nWordLen
=
aBound
.
endPos
-
nBreakStart
;
// if everything else fails, we want to cut at nPos
nCutPos
=
nPos
;
Xub
String
aTxt
(
rInf
.
GetTxt
().
copy
(
nBreakStart
,
nWordLen
)
);
OU
String
aTxt
(
rInf
.
GetTxt
().
copy
(
nBreakStart
,
nWordLen
)
);
// check, if word has alternative spelling
Reference
<
XHyphenator
>
xHyph
(
::
GetHyphenator
()
);
OSL_ENSURE
(
xHyph
.
is
(),
"Hyphenator is missing"
);
//! subtract 1 since the UNO-interface is 0 based
xHyphWord
=
xHyph
->
queryAlternativeSpelling
(
OUString
(
aTxt
)
,
xHyphWord
=
xHyph
->
queryAlternativeSpelling
(
aTxt
,
g_pBreakIt
->
GetLocale
(
rInf
.
GetFont
()
->
GetLanguage
()
),
nPos
-
nBreakStart
,
rInf
.
GetHyphValues
()
);
return
xHyphWord
.
is
()
&&
xHyphWord
->
isAlternativeSpelling
();
...
...
sw/source/core/text/porlin.hxx
Dosyayı görüntüle @
41d229b2
...
...
@@ -25,7 +25,6 @@
#include <libxml/xmlwriter.h>
#endif
class
XubString
;
class
SwTxtSizeInfo
;
class
SwTxtPaintInfo
;
class
SwTxtFormatInfo
;
...
...
sw/source/core/text/porrst.cxx
Dosyayı görüntüle @
41d229b2
...
...
@@ -164,8 +164,7 @@ void SwKernPortion::Paint( const SwTxtPaintInfo &rInf ) const
if
(
rInf
.
GetFont
()
->
IsPaintBlank
()
)
{
static
sal_Char
const
sDoubleSpace
[]
=
" "
;
XubString
aTxtDouble
(
sDoubleSpace
,
RTL_TEXTENCODING_MS_1252
);
OUString
aTxtDouble
(
" "
);
//
SwRect
aClipRect
;
rInf
.
CalcRect
(
*
this
,
&
aClipRect
,
0
);
...
...
sw/source/core/txtnode/fntcap.cxx
Dosyayı görüntüle @
41d229b2
...
...
@@ -317,8 +317,6 @@ void SwDoDrawCapital::Do()
void
SwDoDrawCapital
::
DrawSpace
(
Point
&
rPos
)
{
static
sal_Char
const
sDoubleSpace
[]
=
" "
;
long
nDiff
=
rInf
.
GetPos
().
X
()
-
rPos
.
X
();
Point
aPos
(
rPos
);
...
...
@@ -343,7 +341,7 @@ void SwDoDrawCapital::DrawSpace( Point &rPos )
{
rInf
.
ApplyAutoColor
();
GetOut
().
DrawStretchText
(
aPos
,
nDiff
,
XubString
(
sDoubleSpace
,
RTL_TEXTENCODING_MS_1252
),
0
,
2
);
OUString
(
" "
),
0
,
2
);
}
rPos
.
X
()
=
rInf
.
GetPos
().
X
()
+
rInf
.
GetWidth
();
}
...
...
sw/source/core/txtnode/ndtxt.cxx
Dosyayı görüntüle @
41d229b2
...
...
@@ -3067,15 +3067,15 @@ sal_Bool SwTxtNode::GetExpandTxt( SwTxtNode& rDestNd, const SwIndex* pDestIdx,
{
case
RES_TXTATR_FIELD
:
{
Xub
String
const
aExpand
(
OU
String
const
aExpand
(
static_cast
<
SwTxtFld
const
*>
(
pHt
)
->
GetFld
().
GetFld
()
->
ExpandField
(
true
));
if
(
aExpand
.
Len
()
)
if
(
!
aExpand
.
isEmpty
()
)
{
++
aDestIdx
;
// dahinter einfuegen;
OUString
const
ins
(
rDestNd
.
InsertText
(
aExpand
,
aDestIdx
));
SAL_INFO_IF
(
ins
.
getLength
()
!=
aExpand
.
Len
(),
SAL_INFO_IF
(
ins
.
getLength
()
!=
aExpand
.
getLength
(),
"sw.core"
,
"GetExpandTxt lossage"
);
aDestIdx
=
nInsPos
+
nAttrStartIdx
;
nInsPos
=
nInsPos
+
ins
.
getLength
();
...
...
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