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
b0551b1d
Kaydet (Commit)
b0551b1d
authored
May 11, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: rename SwTextNode::IsSymbol() to reduce overloading
Change-Id: I440de45908af8ee1b722ddefb54cd0ba60d1e363
üst
92af7073
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
ndtxt.hxx
sw/inc/ndtxt.hxx
+1
-1
accpara.cxx
sw/source/core/access/accpara.cxx
+2
-2
crsrsh.cxx
sw/source/core/crsr/crsrsh.cxx
+2
-2
crstrvl.cxx
sw/source/core/crsr/crstrvl.cxx
+1
-1
edlingu.cxx
sw/source/core/edit/edlingu.cxx
+1
-1
itratr.cxx
sw/source/core/text/itratr.cxx
+1
-1
txtedt.cxx
sw/source/core/txtnode/txtedt.cxx
+2
-2
No files found.
sw/inc/ndtxt.hxx
Dosyayı görüntüle @
b0551b1d
...
...
@@ -657,7 +657,7 @@ public:
sal_uInt16
nScript
=
0
)
const
;
/// in ndcopy.cxx
bool
IsSymbol
(
const
sal_Int32
nBegin
)
const
;
// In itratr.cxx.
bool
IsSymbol
At
(
sal_Int32
nBegin
)
const
;
// In itratr.cxx.
virtual
SwContentNode
*
MakeCopy
(
SwDoc
*
,
const
SwNodeIndex
&
)
const
override
;
/// Interactive hyphenation: we find TextFrame and call its CalcHyph.
...
...
sw/source/core/access/accpara.cxx
Dosyayı görüntüle @
b0551b1d
...
...
@@ -2197,7 +2197,7 @@ void SwAccessibleParagraph::_correctValues( const sal_Int32 nIndex,
{
sal_Int32
nBegin
=
nIndex
;
sal_Int32
nLen
=
1
;
if
(
pWrongList
->
InWrongWord
(
nBegin
,
nLen
)
&&
!
pTextNode
->
IsSymbol
(
nBegin
)
)
if
(
pWrongList
->
InWrongWord
(
nBegin
,
nLen
)
&&
!
pTextNode
->
IsSymbolAt
(
nBegin
)
)
{
rValue
.
Value
<<=
sal_uInt16
(
LINESTYLE_WAVE
);
}
...
...
@@ -2218,7 +2218,7 @@ void SwAccessibleParagraph::_correctValues( const sal_Int32 nIndex,
{
sal_Int32
nBegin
=
nIndex
;
sal_Int32
nLen
=
1
;
if
(
pWrongList
->
InWrongWord
(
nBegin
,
nLen
)
&&
!
pTextNode
->
IsSymbol
(
nBegin
)
)
if
(
pWrongList
->
InWrongWord
(
nBegin
,
nLen
)
&&
!
pTextNode
->
IsSymbolAt
(
nBegin
)
)
{
rValue
.
Value
<<=
sal_Int32
(
0x00ff0000
);
continue
;
...
...
sw/source/core/crsr/crsrsh.cxx
Dosyayı görüntüle @
b0551b1d
...
...
@@ -3433,7 +3433,7 @@ void SwCursorShell::GetSmartTagTerm( std::vector< OUString >& rSmartTagTypes,
sal_Int32
nBegin
=
nCurrent
;
sal_Int32
nLen
=
1
;
if
(
pSmartTagList
->
InWrongWord
(
nBegin
,
nLen
)
&&
!
pNode
->
IsSymbol
(
nBegin
)
)
if
(
pSmartTagList
->
InWrongWord
(
nBegin
,
nLen
)
&&
!
pNode
->
IsSymbolAt
(
nBegin
)
)
{
const
sal_uInt16
nIndex
=
pSmartTagList
->
GetWrongPos
(
nBegin
);
const
SwWrongList
*
pSubList
=
pSmartTagList
->
SubList
(
nIndex
);
...
...
@@ -3470,7 +3470,7 @@ void SwCursorShell::GetSmartTagRect( const Point& rPt, SwRect& rSelectRect )
sal_Int32
nBegin
=
aPos
.
nContent
.
GetIndex
();
sal_Int32
nLen
=
1
;
if
(
pSmartTagList
->
InWrongWord
(
nBegin
,
nLen
)
&&
!
pNode
->
IsSymbol
(
nBegin
)
)
if
(
pSmartTagList
->
InWrongWord
(
nBegin
,
nLen
)
&&
!
pNode
->
IsSymbolAt
(
nBegin
)
)
{
// get smarttag word
OUString
aText
(
pNode
->
GetText
().
copy
(
nBegin
,
nLen
)
);
...
...
sw/source/core/crsr/crstrvl.cxx
Dosyayı görüntüle @
b0551b1d
...
...
@@ -1199,7 +1199,7 @@ bool SwCursorShell::GetContentAtPos( const Point& rPt,
const
sal_Int32
nBegin
=
nCurrent
;
sal_Int32
nLen
=
1
;
if
(
pSmartTagList
&&
pSmartTagList
->
InWrongWord
(
nCurrent
,
nLen
)
&&
!
pTextNd
->
IsSymbol
(
nBegin
)
)
if
(
pSmartTagList
&&
pSmartTagList
->
InWrongWord
(
nCurrent
,
nLen
)
&&
!
pTextNd
->
IsSymbolAt
(
nBegin
)
)
{
const
sal_uInt16
nIndex
=
pSmartTagList
->
GetWrongPos
(
nBegin
);
const
SwWrongList
*
pSubList
=
pSmartTagList
->
SubList
(
nIndex
);
...
...
sw/source/core/edit/edlingu.cxx
Dosyayı görüntüle @
b0551b1d
...
...
@@ -898,7 +898,7 @@ uno::Reference< XSpellAlternatives >
{
sal_Int32
nBegin
=
aPos
.
nContent
.
GetIndex
();
sal_Int32
nLen
=
1
;
if
(
pWrong
->
InWrongWord
(
nBegin
,
nLen
)
&&
!
pNode
->
IsSymbol
(
nBegin
)
)
if
(
pWrong
->
InWrongWord
(
nBegin
,
nLen
)
&&
!
pNode
->
IsSymbolAt
(
nBegin
)
)
{
const
OUString
aText
(
pNode
->
GetText
().
copy
(
nBegin
,
nLen
));
OUString
aWord
=
aText
.
replaceAll
(
OUStringLiteral1
(
CH_TXTATR_BREAKWORD
),
""
)
...
...
sw/source/core/text/itratr.cxx
Dosyayı görüntüle @
b0551b1d
...
...
@@ -397,7 +397,7 @@ static bool lcl_MinMaxString( SwMinMaxArgs& rArg, SwFont* pFnt, const OUString &
return
bRet
;
}
bool
SwTextNode
::
IsSymbol
(
const
sal_Int32
nBegin
)
const
bool
SwTextNode
::
IsSymbol
At
(
const
sal_Int32
nBegin
)
const
{
SwScriptInfo
aScriptInfo
;
SwAttrIter
aIter
(
*
const_cast
<
SwTextNode
*>
(
this
),
aScriptInfo
);
...
...
sw/source/core/txtnode/txtedt.cxx
Dosyayı görüntüle @
b0551b1d
...
...
@@ -714,7 +714,7 @@ OUString SwTextNode::GetCurWord( sal_Int32 nPos ) const
// check if word was found and if it uses a symbol font, if so
// enforce returning an empty string
if
(
aBndry
.
endPos
!=
aBndry
.
startPos
&&
IsSymbol
(
aBndry
.
startPos
))
if
(
aBndry
.
endPos
!=
aBndry
.
startPos
&&
IsSymbol
At
(
aBndry
.
startPos
))
aBndry
.
endPos
=
aBndry
.
startPos
;
// can have -1 as start/end of bounds not found
...
...
@@ -1044,7 +1044,7 @@ bool SwTextNode::Spell(SwSpellArgs* pArgs)
}
if
(
pArgs
->
xSpellAlt
.
is
()
)
{
if
(
IsSymbol
(
aScanner
.
GetBegin
()
)
)
if
(
IsSymbolAt
(
aScanner
.
GetBegin
())
)
{
pArgs
->
xSpellAlt
=
nullptr
;
}
...
...
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