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
dd18372f
Kaydet (Commit)
dd18372f
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: I9ce007261555008a438b90b36a888a8d4cb4f140
üst
07aade88
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
41 deletions
+44
-41
inftxt.hxx
sw/source/core/text/inftxt.hxx
+1
-1
porfld.cxx
sw/source/core/text/porfld.cxx
+1
-1
porftn.hxx
sw/source/core/text/porftn.hxx
+9
-9
porhyph.hxx
sw/source/core/text/porhyph.hxx
+12
-11
porlay.hxx
sw/source/core/text/porlay.hxx
+2
-2
txtftn.cxx
sw/source/core/text/txtftn.cxx
+12
-10
txthyph.cxx
sw/source/core/text/txthyph.cxx
+7
-7
No files found.
sw/source/core/text/inftxt.hxx
Dosyayı görüntüle @
dd18372f
...
@@ -700,7 +700,7 @@ public:
...
@@ -700,7 +700,7 @@ public:
// Calls HyphenateWord() of Hyphenator
// Calls HyphenateWord() of Hyphenator
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XHyphenatedWord
>
::
com
::
sun
::
star
::
linguistic2
::
XHyphenatedWord
>
HyphWord
(
const
String
&
rTxt
,
const
sal_uInt16
nMinTrail
);
HyphWord
(
const
OU
String
&
rTxt
,
const
sal_uInt16
nMinTrail
);
const
com
::
sun
::
star
::
beans
::
PropertyValues
&
const
com
::
sun
::
star
::
beans
::
PropertyValues
&
GetHyphValues
()
const
;
GetHyphValues
()
const
;
...
...
sw/source/core/text/porfld.cxx
Dosyayı görüntüle @
dd18372f
...
@@ -372,7 +372,7 @@ sal_Bool SwFldPortion::Format( SwTxtFormatInfo &rInf )
...
@@ -372,7 +372,7 @@ sal_Bool SwFldPortion::Format( SwTxtFormatInfo &rInf )
sal_Int32
nNextOfst
=
aExpand
.
getLength
()
-
nRest
;
sal_Int32
nNextOfst
=
aExpand
.
getLength
()
-
nRest
;
if
(
IsQuoVadisPortion
()
)
if
(
IsQuoVadisPortion
()
)
nNextOfst
=
nNextOfst
+
((
SwQuoVadisPortion
*
)
this
)
->
GetContTxt
().
Len
();
nNextOfst
=
nNextOfst
+
((
SwQuoVadisPortion
*
)
this
)
->
GetContTxt
().
getLength
();
XubString
aNew
(
aExpand
,
nNextOfst
,
STRING_LEN
);
XubString
aNew
(
aExpand
,
nNextOfst
,
STRING_LEN
);
aExpand
=
aExpand
.
copy
(
0
,
nNextOfst
);
aExpand
=
aExpand
.
copy
(
0
,
nNextOfst
);
...
...
sw/source/core/text/porftn.hxx
Dosyayı görüntüle @
dd18372f
...
@@ -36,9 +36,9 @@ class SwFtnPortion : public SwFldPortion
...
@@ -36,9 +36,9 @@ class SwFtnPortion : public SwFldPortion
bool
mbPreferredScriptTypeSet
;
bool
mbPreferredScriptTypeSet
;
sal_uInt8
mnPreferredScriptType
;
sal_uInt8
mnPreferredScriptType
;
public
:
public
:
SwFtnPortion
(
const
Xub
String
&
rExpand
,
SwTxtFtn
*
pFtn
,
SwFtnPortion
(
const
OU
String
&
rExpand
,
SwTxtFtn
*
pFtn
,
KSHORT
nOrig
=
KSHRT_MAX
);
KSHORT
nOrig
=
KSHRT_MAX
);
inline
KSHORT
&
Orig
()
{
return
nOrigHeight
;
}
KSHORT
&
Orig
()
{
return
nOrigHeight
;
}
virtual
void
Paint
(
const
SwTxtPaintInfo
&
rInf
)
const
;
virtual
void
Paint
(
const
SwTxtPaintInfo
&
rInf
)
const
;
virtual
sal_Bool
GetExpTxt
(
const
SwTxtSizeInfo
&
rInf
,
OUString
&
rTxt
)
const
;
virtual
sal_Bool
GetExpTxt
(
const
SwTxtSizeInfo
&
rInf
,
OUString
&
rTxt
)
const
;
...
@@ -59,7 +59,7 @@ public:
...
@@ -59,7 +59,7 @@ public:
class
SwFtnNumPortion
:
public
SwNumberPortion
class
SwFtnNumPortion
:
public
SwNumberPortion
{
{
public
:
public
:
inline
SwFtnNumPortion
(
const
Xub
String
&
rExpand
,
SwFont
*
pFntL
)
SwFtnNumPortion
(
const
OU
String
&
rExpand
,
SwFont
*
pFntL
)
:
SwNumberPortion
(
rExpand
,
pFntL
,
sal_True
,
sal_False
,
0
,
false
)
:
SwNumberPortion
(
rExpand
,
pFntL
,
sal_True
,
sal_False
,
0
,
false
)
{
SetWhichPor
(
POR_FTNNUM
);
}
{
SetWhichPor
(
POR_FTNNUM
);
}
...
@@ -72,16 +72,16 @@ public:
...
@@ -72,16 +72,16 @@ public:
class
SwQuoVadisPortion
:
public
SwFldPortion
class
SwQuoVadisPortion
:
public
SwFldPortion
{
{
Xub
String
aErgo
;
OU
String
aErgo
;
public
:
public
:
SwQuoVadisPortion
(
const
XubString
&
rExp
,
const
Xub
String
&
rStr
);
SwQuoVadisPortion
(
const
OUString
&
rExp
,
const
OU
String
&
rStr
);
virtual
sal_Bool
Format
(
SwTxtFormatInfo
&
rInf
);
virtual
sal_Bool
Format
(
SwTxtFormatInfo
&
rInf
);
virtual
void
Paint
(
const
SwTxtPaintInfo
&
rInf
)
const
;
virtual
void
Paint
(
const
SwTxtPaintInfo
&
rInf
)
const
;
virtual
sal_Bool
GetExpTxt
(
const
SwTxtSizeInfo
&
rInf
,
OUString
&
rTxt
)
const
;
virtual
sal_Bool
GetExpTxt
(
const
SwTxtSizeInfo
&
rInf
,
OUString
&
rTxt
)
const
;
inline
void
SetNumber
(
const
Xub
String
&
rStr
)
{
aErgo
=
rStr
;
}
void
SetNumber
(
const
OU
String
&
rStr
)
{
aErgo
=
rStr
;
}
inline
const
OUString
GetQuoTxt
()
const
{
return
aExpand
;
}
const
OUString
GetQuoTxt
()
const
{
return
aExpand
;
}
inline
const
Xub
String
&
GetContTxt
()
const
{
return
aErgo
;
}
const
OU
String
&
GetContTxt
()
const
{
return
aErgo
;
}
// Field cloner for SplitGlue
// Field cloner for SplitGlue
virtual
SwFldPortion
*
Clone
(
const
OUString
&
rExpand
)
const
;
virtual
SwFldPortion
*
Clone
(
const
OUString
&
rExpand
)
const
;
...
@@ -99,7 +99,7 @@ public:
...
@@ -99,7 +99,7 @@ public:
class
SwErgoSumPortion
:
public
SwFldPortion
class
SwErgoSumPortion
:
public
SwFldPortion
{
{
public
:
public
:
SwErgoSumPortion
(
const
XubString
&
rExp
,
const
Xub
String
&
rStr
);
SwErgoSumPortion
(
const
OUString
&
rExp
,
const
OU
String
&
rStr
);
virtual
xub_StrLen
GetCrsrOfst
(
const
KSHORT
nOfst
)
const
;
virtual
xub_StrLen
GetCrsrOfst
(
const
KSHORT
nOfst
)
const
;
virtual
sal_Bool
Format
(
SwTxtFormatInfo
&
rInf
);
virtual
sal_Bool
Format
(
SwTxtFormatInfo
&
rInf
);
...
...
sw/source/core/text/porhyph.hxx
Dosyayı görüntüle @
dd18372f
...
@@ -28,7 +28,10 @@
...
@@ -28,7 +28,10 @@
class
SwHyphPortion
:
public
SwExpandPortion
class
SwHyphPortion
:
public
SwExpandPortion
{
{
public
:
public
:
inline
SwHyphPortion
(
)
{
SetWhichPor
(
POR_HYPH
);
}
SwHyphPortion
()
{
SetWhichPor
(
POR_HYPH
);
}
virtual
sal_Bool
GetExpTxt
(
const
SwTxtSizeInfo
&
rInf
,
OUString
&
rTxt
)
const
;
virtual
sal_Bool
GetExpTxt
(
const
SwTxtSizeInfo
&
rInf
,
OUString
&
rTxt
)
const
;
virtual
sal_Bool
Format
(
SwTxtFormatInfo
&
rInf
);
virtual
sal_Bool
Format
(
SwTxtFormatInfo
&
rInf
);
...
@@ -44,9 +47,14 @@ public:
...
@@ -44,9 +47,14 @@ public:
class
SwHyphStrPortion
:
public
SwHyphPortion
class
SwHyphStrPortion
:
public
SwHyphPortion
{
{
Xub
String
aExpand
;
OU
String
aExpand
;
public
:
public
:
inline
SwHyphStrPortion
(
const
XubString
&
rStr
);
SwHyphStrPortion
(
const
OUString
&
rStr
)
:
aExpand
(
rStr
+
"-"
)
{
SetWhichPor
(
POR_HYPHSTR
);
}
virtual
sal_Bool
GetExpTxt
(
const
SwTxtSizeInfo
&
rInf
,
OUString
&
rTxt
)
const
;
virtual
sal_Bool
GetExpTxt
(
const
SwTxtSizeInfo
&
rInf
,
OUString
&
rTxt
)
const
;
// Accessibility: pass information about this portion to the PortionHandler
// Accessibility: pass information about this portion to the PortionHandler
...
@@ -90,18 +98,11 @@ public:
...
@@ -90,18 +98,11 @@ public:
class
SwSoftHyphStrPortion
:
public
SwHyphStrPortion
class
SwSoftHyphStrPortion
:
public
SwHyphStrPortion
{
{
public
:
public
:
SwSoftHyphStrPortion
(
const
Xub
String
&
rStr
);
SwSoftHyphStrPortion
(
const
OU
String
&
rStr
);
virtual
void
Paint
(
const
SwTxtPaintInfo
&
rInf
)
const
;
virtual
void
Paint
(
const
SwTxtPaintInfo
&
rInf
)
const
;
OUTPUT_OPERATOR
OUTPUT_OPERATOR
};
};
inline
SwHyphStrPortion
::
SwHyphStrPortion
(
const
XubString
&
rStr
)
:
aExpand
(
rStr
)
{
aExpand
+=
'-'
;
SetWhichPor
(
POR_HYPHSTR
);
}
CLASSIO
(
SwHyphPortion
)
CLASSIO
(
SwHyphPortion
)
CLASSIO
(
SwHyphStrPortion
)
CLASSIO
(
SwHyphStrPortion
)
CLASSIO
(
SwSoftHyphPortion
)
CLASSIO
(
SwSoftHyphPortion
)
...
...
sw/source/core/text/porlay.hxx
Dosyayı görüntüle @
dd18372f
...
@@ -305,7 +305,7 @@ public:
...
@@ -305,7 +305,7 @@ public:
xub_StrLen
GetParLen
()
const
;
xub_StrLen
GetParLen
()
const
;
// For Prepare()
// For Prepare()
sal_Bool
UpdateQuoVadis
(
const
Xub
String
&
rQuo
);
sal_Bool
UpdateQuoVadis
(
const
OU
String
&
rQuo
);
// Flags
// Flags
inline
void
SetFly
(
const
sal_Bool
bNew
=
sal_True
)
{
bFlys
=
bNew
;
}
inline
void
SetFly
(
const
sal_Bool
bNew
=
sal_True
)
{
bFlys
=
bNew
;
}
...
@@ -349,7 +349,7 @@ public:
...
@@ -349,7 +349,7 @@ public:
SvStream
&
WriteSwg
(
SvStream
&
rStream
);
//$ ostream
SvStream
&
WriteSwg
(
SvStream
&
rStream
);
//$ ostream
// Set nErgo in the QuoVadisPortion
// Set nErgo in the QuoVadisPortion
void
SetErgoSumNum
(
const
Xub
String
&
rErgo
);
void
SetErgoSumNum
(
const
OU
String
&
rErgo
);
const
SwDropPortion
*
FindDropPortion
()
const
;
const
SwDropPortion
*
FindDropPortion
()
const
;
...
...
sw/source/core/text/txtftn.cxx
Dosyayı görüntüle @
dd18372f
...
@@ -999,7 +999,7 @@ SwNumberPortion *SwTxtFormatter::NewFtnNumPortion( SwTxtFormatInfo &rInf ) const
...
@@ -999,7 +999,7 @@ SwNumberPortion *SwTxtFormatter::NewFtnNumPortion( SwTxtFormatInfo &rInf ) const
SwFmtFtn
&
rFtn
=
(
SwFmtFtn
&
)
pFtn
->
GetFtn
();
SwFmtFtn
&
rFtn
=
(
SwFmtFtn
&
)
pFtn
->
GetFtn
();
SwDoc
*
pDoc
=
pFrm
->
GetNode
()
->
GetDoc
();
SwDoc
*
pDoc
=
pFrm
->
GetNode
()
->
GetDoc
();
Xub
String
aFtnTxt
(
rFtn
.
GetViewNumStr
(
*
pDoc
,
sal_True
));
OU
String
aFtnTxt
(
rFtn
.
GetViewNumStr
(
*
pDoc
,
sal_True
));
const
SwEndNoteInfo
*
pInfo
;
const
SwEndNoteInfo
*
pInfo
;
if
(
rFtn
.
IsEndNote
()
)
if
(
rFtn
.
IsEndNote
()
)
...
@@ -1039,7 +1039,7 @@ SwNumberPortion *SwTxtFormatter::NewFtnNumPortion( SwTxtFormatInfo &rInf ) const
...
@@ -1039,7 +1039,7 @@ SwNumberPortion *SwTxtFormatter::NewFtnNumPortion( SwTxtFormatInfo &rInf ) const
* SwTxtFormatter::NewErgoSumPortion()
* SwTxtFormatter::NewErgoSumPortion()
*************************************************************************/
*************************************************************************/
Xub
String
lcl_GetPageNumber
(
const
SwPageFrm
*
pPage
)
OU
String
lcl_GetPageNumber
(
const
SwPageFrm
*
pPage
)
{
{
OSL_ENSURE
(
pPage
,
"GetPageNumber: Homeless TxtFrm"
);
OSL_ENSURE
(
pPage
,
"GetPageNumber: Homeless TxtFrm"
);
MSHORT
nVirtNum
=
pPage
->
GetVirtPageNum
();
MSHORT
nVirtNum
=
pPage
->
GetVirtPageNum
();
...
@@ -1065,7 +1065,7 @@ SwErgoSumPortion *SwTxtFormatter::NewErgoSumPortion( SwTxtFormatInfo &rInf ) con
...
@@ -1065,7 +1065,7 @@ SwErgoSumPortion *SwTxtFormatter::NewErgoSumPortion( SwTxtFormatInfo &rInf ) con
const
SwPageFrm
*
pQuoPage
=
pQuoFrm
->
FindPageFrm
();
const
SwPageFrm
*
pQuoPage
=
pQuoFrm
->
FindPageFrm
();
if
(
pPage
==
pQuoFrm
->
FindPageFrm
()
)
if
(
pPage
==
pQuoFrm
->
FindPageFrm
()
)
return
0
;
// Wenn der QuoVadis auf der selben (spaltigen) Seite steht
return
0
;
// Wenn der QuoVadis auf der selben (spaltigen) Seite steht
const
Xub
String
aPage
=
lcl_GetPageNumber
(
pPage
);
const
OU
String
aPage
=
lcl_GetPageNumber
(
pPage
);
SwParaPortion
*
pPara
=
pQuoFrm
->
GetPara
();
SwParaPortion
*
pPara
=
pQuoFrm
->
GetPara
();
if
(
pPara
)
if
(
pPara
)
pPara
->
SetErgoSumNum
(
aPage
);
pPara
->
SetErgoSumNum
(
aPage
);
...
@@ -1142,7 +1142,7 @@ xub_StrLen SwTxtFormatter::FormatQuoVadis( const xub_StrLen nOffset )
...
@@ -1142,7 +1142,7 @@ xub_StrLen SwTxtFormatter::FormatQuoVadis( const xub_StrLen nOffset )
const
KSHORT
nOldRealWidth
=
rInf
.
RealWidth
();
const
KSHORT
nOldRealWidth
=
rInf
.
RealWidth
();
rInf
.
RealWidth
(
nOldRealWidth
-
nLastLeft
);
rInf
.
RealWidth
(
nOldRealWidth
-
nLastLeft
);
Xub
String
aErgo
=
lcl_GetPageNumber
(
pErgoFrm
->
FindPageFrm
()
);
OU
String
aErgo
=
lcl_GetPageNumber
(
pErgoFrm
->
FindPageFrm
()
);
SwQuoVadisPortion
*
pQuo
=
new
SwQuoVadisPortion
(
rFtnInfo
.
aQuoVadis
,
aErgo
);
SwQuoVadisPortion
*
pQuo
=
new
SwQuoVadisPortion
(
rFtnInfo
.
aQuoVadis
,
aErgo
);
pQuo
->
SetAscent
(
rInf
.
GetAscent
()
);
pQuo
->
SetAscent
(
rInf
.
GetAscent
()
);
pQuo
->
Height
(
rInf
.
GetTxtHeight
()
);
pQuo
->
Height
(
rInf
.
GetTxtHeight
()
);
...
@@ -1401,7 +1401,7 @@ SwFtnSave::~SwFtnSave()
...
@@ -1401,7 +1401,7 @@ SwFtnSave::~SwFtnSave()
* SwFtnPortion::SwFtnPortion()
* SwFtnPortion::SwFtnPortion()
*************************************************************************/
*************************************************************************/
SwFtnPortion
::
SwFtnPortion
(
const
Xub
String
&
rExpand
,
SwFtnPortion
::
SwFtnPortion
(
const
OU
String
&
rExpand
,
SwTxtFtn
*
pFootn
,
KSHORT
nReal
)
SwTxtFtn
*
pFootn
,
KSHORT
nReal
)
:
SwFldPortion
(
rExpand
,
0
)
:
SwFldPortion
(
rExpand
,
0
)
,
pFtn
(
pFootn
)
,
pFtn
(
pFootn
)
...
@@ -1484,9 +1484,11 @@ void SwFtnPortion::SetPreferredScriptType( sal_uInt8 nPreferredScriptType )
...
@@ -1484,9 +1484,11 @@ void SwFtnPortion::SetPreferredScriptType( sal_uInt8 nPreferredScriptType )
*************************************************************************/
*************************************************************************/
SwFldPortion
*
SwQuoVadisPortion
::
Clone
(
const
OUString
&
rExpand
)
const
SwFldPortion
*
SwQuoVadisPortion
::
Clone
(
const
OUString
&
rExpand
)
const
{
return
new
SwQuoVadisPortion
(
rExpand
,
aErgo
);
}
{
return
new
SwQuoVadisPortion
(
rExpand
,
aErgo
);
}
SwQuoVadisPortion
::
SwQuoVadisPortion
(
const
XubString
&
rExp
,
const
Xub
String
&
rStr
)
SwQuoVadisPortion
::
SwQuoVadisPortion
(
const
OUString
&
rExp
,
const
OU
String
&
rStr
)
:
SwFldPortion
(
rExp
),
aErgo
(
rStr
)
:
SwFldPortion
(
rExp
),
aErgo
(
rStr
)
{
{
SetLen
(
0
);
SetLen
(
0
);
...
@@ -1575,7 +1577,7 @@ SwFldPortion *SwErgoSumPortion::Clone( const OUString &rExpand ) const
...
@@ -1575,7 +1577,7 @@ SwFldPortion *SwErgoSumPortion::Clone( const OUString &rExpand ) const
return
new
SwErgoSumPortion
(
rExpand
,
OUString
()
);
return
new
SwErgoSumPortion
(
rExpand
,
OUString
()
);
}
}
SwErgoSumPortion
::
SwErgoSumPortion
(
const
XubString
&
rExp
,
const
XubString
&
rStr
)
SwErgoSumPortion
::
SwErgoSumPortion
(
const
OUString
&
rExp
,
const
OUString
&
rStr
)
:
SwFldPortion
(
rExp
)
:
SwFldPortion
(
rExp
)
{
{
SetLen
(
0
);
SetLen
(
0
);
...
@@ -1618,7 +1620,7 @@ sal_Bool SwErgoSumPortion::Format( SwTxtFormatInfo &rInf )
...
@@ -1618,7 +1620,7 @@ sal_Bool SwErgoSumPortion::Format( SwTxtFormatInfo &rInf )
* SwParaPortion::SetErgoSumNum()
* SwParaPortion::SetErgoSumNum()
*************************************************************************/
*************************************************************************/
void
SwParaPortion
::
SetErgoSumNum
(
const
Xub
String
&
rErgo
)
void
SwParaPortion
::
SetErgoSumNum
(
const
OU
String
&
rErgo
)
{
{
SwLineLayout
*
pLay
=
this
;
SwLineLayout
*
pLay
=
this
;
while
(
pLay
->
GetNext
()
)
while
(
pLay
->
GetNext
()
)
...
@@ -1643,7 +1645,7 @@ void SwParaPortion::SetErgoSumNum( const XubString& rErgo )
...
@@ -1643,7 +1645,7 @@ void SwParaPortion::SetErgoSumNum( const XubString& rErgo )
* Wird im SwTxtFrm::Prepare() gerufen
* Wird im SwTxtFrm::Prepare() gerufen
*************************************************************************/
*************************************************************************/
sal_Bool
SwParaPortion
::
UpdateQuoVadis
(
const
Xub
String
&
rQuo
)
sal_Bool
SwParaPortion
::
UpdateQuoVadis
(
const
OU
String
&
rQuo
)
{
{
SwLineLayout
*
pLay
=
this
;
SwLineLayout
*
pLay
=
this
;
while
(
pLay
->
GetNext
()
)
while
(
pLay
->
GetNext
()
)
...
...
sw/source/core/text/txthyph.cxx
Dosyayı görüntüle @
dd18372f
...
@@ -41,9 +41,9 @@ using namespace ::com::sun::star::i18n;
...
@@ -41,9 +41,9 @@ using namespace ::com::sun::star::i18n;
*************************************************************************/
*************************************************************************/
Reference
<
XHyphenatedWord
>
SwTxtFormatInfo
::
HyphWord
(
Reference
<
XHyphenatedWord
>
SwTxtFormatInfo
::
HyphWord
(
const
Xub
String
&
rTxt
,
const
MSHORT
nMinTrail
)
const
OU
String
&
rTxt
,
const
MSHORT
nMinTrail
)
{
{
if
(
rTxt
.
Len
()
<
4
||
m_pFnt
->
IsSymbol
(
m_pVsh
)
)
if
(
rTxt
.
getLength
()
<
4
||
m_pFnt
->
IsSymbol
(
m_pVsh
)
)
return
0
;
return
0
;
Reference
<
XHyphenator
>
xHyph
=
::
GetHyphenator
();
Reference
<
XHyphenator
>
xHyph
=
::
GetHyphenator
();
Reference
<
XHyphenatedWord
>
xHyphWord
;
Reference
<
XHyphenatedWord
>
xHyphWord
;
...
@@ -51,7 +51,7 @@ Reference< XHyphenatedWord > SwTxtFormatInfo::HyphWord(
...
@@ -51,7 +51,7 @@ Reference< XHyphenatedWord > SwTxtFormatInfo::HyphWord(
if
(
xHyph
.
is
()
)
if
(
xHyph
.
is
()
)
xHyphWord
=
xHyph
->
hyphenate
(
OUString
(
rTxt
),
xHyphWord
=
xHyph
->
hyphenate
(
OUString
(
rTxt
),
g_pBreakIt
->
GetLocale
(
m_pFnt
->
GetLanguage
()
),
g_pBreakIt
->
GetLocale
(
m_pFnt
->
GetLanguage
()
),
rTxt
.
Len
()
-
nMinTrail
,
GetHyphValues
()
);
rTxt
.
getLength
()
-
nMinTrail
,
GetHyphValues
()
);
return
xHyphWord
;
return
xHyphWord
;
}
}
...
@@ -237,7 +237,7 @@ sal_Bool SwTxtFormatter::Hyphenate( SwInterHyphInfo &rHyphInf )
...
@@ -237,7 +237,7 @@ sal_Bool SwTxtFormatter::Hyphenate( SwInterHyphInfo &rHyphInf )
bRet
=
0
!=
nLen
;
bRet
=
0
!=
nLen
;
if
(
bRet
)
if
(
bRet
)
{
{
Xub
String
aSelTxt
(
rInf
.
GetTxt
().
copy
(
nWrdStart
,
nLen
)
);
OU
String
aSelTxt
(
rInf
.
GetTxt
().
copy
(
nWrdStart
,
nLen
)
);
{
{
MSHORT
nMinTrail
=
0
;
MSHORT
nMinTrail
=
0
;
...
@@ -293,7 +293,7 @@ sal_Bool SwTxtPortion::CreateHyphen( SwTxtFormatInfo &rInf, SwTxtGuess &rGuess )
...
@@ -293,7 +293,7 @@ sal_Bool SwTxtPortion::CreateHyphen( SwTxtFormatInfo &rInf, SwTxtGuess &rGuess )
aAltSpell
=
SvxGetAltSpelling
(
xHyphWord
);
aAltSpell
=
SvxGetAltSpelling
(
xHyphWord
);
OSL_ENSURE
(
aAltSpell
.
bIsAltSpelling
,
"no alternatve spelling"
);
OSL_ENSURE
(
aAltSpell
.
bIsAltSpelling
,
"no alternatve spelling"
);
XubString
aAltTxt
=
aAltSpell
.
aReplacement
;
OUString
aAltTxt
=
aAltSpell
.
aReplacement
;
nPorEnd
=
aAltSpell
.
nChangedPos
+
rGuess
.
BreakStart
()
-
rGuess
.
FieldDiff
();
nPorEnd
=
aAltSpell
.
nChangedPos
+
rGuess
.
BreakStart
()
-
rGuess
.
FieldDiff
();
xub_StrLen
nTmpLen
=
0
;
xub_StrLen
nTmpLen
=
0
;
...
@@ -308,7 +308,7 @@ sal_Bool SwTxtPortion::CreateHyphen( SwTxtFormatInfo &rInf, SwTxtGuess &rGuess )
...
@@ -308,7 +308,7 @@ sal_Bool SwTxtPortion::CreateHyphen( SwTxtFormatInfo &rInf, SwTxtGuess &rGuess )
}
}
// length of pHyphPor is adjusted
// length of pHyphPor is adjusted
pHyphPor
->
SetLen
(
aAltTxt
.
Len
()
+
1
);
pHyphPor
->
SetLen
(
aAltTxt
.
getLength
()
+
1
);
(
SwPosSize
&
)(
*
pHyphPor
)
=
pHyphPor
->
GetTxtSize
(
rInf
);
(
SwPosSize
&
)(
*
pHyphPor
)
=
pHyphPor
->
GetTxtSize
(
rInf
);
pHyphPor
->
SetLen
(
aAltSpell
.
nChangedLength
+
nTmpLen
);
pHyphPor
->
SetLen
(
aAltSpell
.
nChangedLength
+
nTmpLen
);
}
}
...
@@ -635,7 +635,7 @@ void SwSoftHyphStrPortion::Paint( const SwTxtPaintInfo &rInf ) const
...
@@ -635,7 +635,7 @@ void SwSoftHyphStrPortion::Paint( const SwTxtPaintInfo &rInf ) const
SwHyphStrPortion
::
Paint
(
rInf
);
SwHyphStrPortion
::
Paint
(
rInf
);
}
}
SwSoftHyphStrPortion
::
SwSoftHyphStrPortion
(
const
Xub
String
&
rStr
)
SwSoftHyphStrPortion
::
SwSoftHyphStrPortion
(
const
OU
String
&
rStr
)
:
SwHyphStrPortion
(
rStr
)
:
SwHyphStrPortion
(
rStr
)
{
{
SetLen
(
1
);
SetLen
(
1
);
...
...
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