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
6f602461
Kaydet (Commit)
6f602461
authored
Agu 15, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SvxSpellArea to scoped enum
Change-Id: I91d3caabb667e7d4ff23e603026e072074058712
üst
5b9480b5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
37 deletions
+37
-37
edtspell.cxx
editeng/source/editeng/edtspell.cxx
+3
-3
textconv.cxx
editeng/source/editeng/textconv.cxx
+7
-7
splwrap.cxx
editeng/source/misc/splwrap.cxx
+7
-7
svxenum.hxx
include/editeng/svxenum.hxx
+5
-5
hhcwrp.cxx
sw/source/uibase/lingu/hhcwrp.cxx
+6
-6
hyp.cxx
sw/source/uibase/lingu/hyp.cxx
+1
-1
viewling.cxx
sw/source/uibase/uiview/viewling.cxx
+8
-8
No files found.
editeng/source/editeng/edtspell.cxx
Dosyayı görüntüle @
6f602461
...
...
@@ -57,7 +57,7 @@ void EditSpellWrapper::SpellStart( SvxSpellArea eArea )
ImpEditEngine
*
pImpEE
=
pEditView
->
GetImpEditEngine
();
SpellInfo
*
pSpellInfo
=
pImpEE
->
GetSpellInfo
();
if
(
eArea
==
S
VX_SPELL_BODY_START
)
if
(
eArea
==
S
vxSpellArea
::
BodyStart
)
{
// Is called when
// a) Spell-Forward has arrived at the end and should restart at the top
...
...
@@ -76,7 +76,7 @@ void EditSpellWrapper::SpellStart( SvxSpellArea eArea )
pEE
->
GetEditDoc
().
GetStartPaM
()
);
}
}
else
if
(
eArea
==
S
VX_SPELL_BODY_END
)
else
if
(
eArea
==
S
vxSpellArea
::
BodyEnd
)
{
// Is called when
// a) Spell-Forward is launched
...
...
@@ -95,7 +95,7 @@ void EditSpellWrapper::SpellStart( SvxSpellArea eArea )
pEE
->
GetEditDoc
().
GetEndPaM
()
);
}
}
else
if
(
eArea
==
S
VX_SPELL_BODY
)
else
if
(
eArea
==
S
vxSpellArea
::
Body
)
{
;
// Is handled by the App through SpellNextDocument
}
...
...
editeng/source/editeng/textconv.cxx
Dosyayı görüntüle @
6f602461
...
...
@@ -87,7 +87,7 @@ bool TextConvWrapper::ConvNext_impl()
{
m_bStartDone
=
true
;
m_bEndDone
=
false
;
ConvStart_impl
(
S
VX_SPELL_BODY
);
ConvStart_impl
(
S
vxSpellArea
::
Body
);
return
true
;
}
return
false
;
...
...
@@ -100,14 +100,14 @@ bool TextConvWrapper::ConvNext_impl()
{
m_bStartDone
=
true
;
m_bEndDone
=
false
;
ConvStart_impl
(
S
VX_SPELL_BODY
);
ConvStart_impl
(
S
vxSpellArea
::
Body
);
return
true
;
}
}
else
if
(
!
m_aConvSel
.
HasRange
())
{
m_bStartChk
=
!
m_bStartDone
;
ConvStart_impl
(
m_bStartChk
?
S
VX_SPELL_BODY_START
:
SVX_SPELL_BODY_END
);
ConvStart_impl
(
m_bStartChk
?
S
vxSpellArea
::
BodyStart
:
SvxSpellArea
::
BodyEnd
);
return
true
;
}
...
...
@@ -160,7 +160,7 @@ void TextConvWrapper::ConvStart_impl( SvxSpellArea eArea )
ImpEditEngine
*
pImpEE
=
m_pEditView
->
GetImpEditEngine
();
ConvInfo
*
pConvInfo
=
pImpEE
->
GetConvInfo
();
if
(
eArea
==
S
VX_SPELL_BODY_START
)
if
(
eArea
==
S
vxSpellArea
::
BodyStart
)
{
// Is called when Spell-forward has reached the end, and to start over
if
(
m_bEndDone
)
...
...
@@ -178,7 +178,7 @@ void TextConvWrapper::ConvStart_impl( SvxSpellArea eArea )
pEE
->
GetEditDoc
().
GetStartPaM
()
);
}
}
else
if
(
eArea
==
S
VX_SPELL_BODY_END
)
else
if
(
eArea
==
S
vxSpellArea
::
BodyEnd
)
{
// Is called when Spell-forward starts
pConvInfo
->
bConvToEnd
=
true
;
...
...
@@ -196,7 +196,7 @@ void TextConvWrapper::ConvStart_impl( SvxSpellArea eArea )
pEE
->
GetEditDoc
().
GetEndPaM
()
);
}
}
else
if
(
eArea
==
S
VX_SPELL_BODY
)
else
if
(
eArea
==
S
vxSpellArea
::
Body
)
{
// called by ConvNext_impl...
pConvInfo
->
aConvContinue
=
pConvInfo
->
aConvStart
;
...
...
@@ -542,7 +542,7 @@ void TextConvWrapper::ChangeText_impl( const OUString &rNewText, bool bKeepAttri
void
TextConvWrapper
::
Convert
()
{
m_bStartChk
=
false
;
ConvStart_impl
(
S
VX_SPELL_BODY_END
);
ConvStart_impl
(
S
vxSpellArea
::
BodyEnd
);
ConvertDocument
();
}
...
...
editeng/source/misc/splwrap.cxx
Dosyayı görüntüle @
6f602461
...
...
@@ -275,12 +275,12 @@ void SvxSpellWrapper::SpellDocument( )
if
(
bOtherCntnt
)
{
bReverse
=
false
;
SpellStart
(
S
VX_SPELL_OTHER
);
SpellStart
(
S
vxSpellArea
::
Other
);
}
else
{
bStartChk
=
bReverse
;
SpellStart
(
bReverse
?
S
VX_SPELL_BODY_START
:
SVX_SPELL_BODY_END
);
SpellStart
(
bReverse
?
S
vxSpellArea
::
BodyStart
:
SvxSpellArea
::
BodyEnd
);
}
if
(
FindSpellError
()
)
...
...
@@ -340,7 +340,7 @@ bool SvxSpellWrapper::SpellNext( )
bOtherCntnt
=
false
;
bStartDone
=
!
bReverse
;
bEndDone
=
bReverse
;
SpellStart
(
S
VX_SPELL_BODY
);
SpellStart
(
S
vxSpellArea
::
Body
);
return
true
;
}
return
false
;
...
...
@@ -351,7 +351,7 @@ bool SvxSpellWrapper::SpellNext( )
if
(
bOtherCntnt
)
{
bStartChk
=
false
;
SpellStart
(
S
VX_SPELL_BODY
);
SpellStart
(
S
vxSpellArea
::
Body
);
bGoOn
=
true
;
}
else
if
(
bStartDone
&&
bEndDone
)
...
...
@@ -360,7 +360,7 @@ bool SvxSpellWrapper::SpellNext( )
// Body area done, ask for special area
if
(
!
IsHyphen
()
&&
bIsSpellSpecial
&&
HasOtherCnt
()
)
{
SpellStart
(
S
VX_SPELL_OTHER
);
SpellStart
(
S
vxSpellArea
::
Other
);
bOtherCntnt
=
bGoOn
=
true
;
}
else
if
(
SpellMore
()
)
// check another document?
...
...
@@ -368,7 +368,7 @@ bool SvxSpellWrapper::SpellNext( )
bOtherCntnt
=
false
;
bStartDone
=
!
bReverse
;
bEndDone
=
bReverse
;
SpellStart
(
S
VX_SPELL_BODY
);
SpellStart
(
S
vxSpellArea
::
Body
);
return
true
;
}
}
...
...
@@ -389,7 +389,7 @@ bool SvxSpellWrapper::SpellNext( )
else
{
bStartChk
=
!
bStartDone
;
SpellStart
(
bStartChk
?
S
VX_SPELL_BODY_START
:
SVX_SPELL_BODY_END
);
SpellStart
(
bStartChk
?
S
vxSpellArea
::
BodyStart
:
SvxSpellArea
::
BodyEnd
);
bGoOn
=
true
;
}
WAIT_ON
();
...
...
include/editeng/svxenum.hxx
Dosyayı görüntüle @
6f602461
...
...
@@ -162,12 +162,12 @@ enum SvxDrawBezierEnum
SVX_BEZIER_ELIMINATE_POINTS
};
enum
SvxSpellArea
enum
class
SvxSpellArea
{
SVX_SPELL_BODY
=
0
,
SVX_SPELL_BODY_END
,
SVX_SPELL_BODY_START
,
SVX_SPELL_OTHER
Body
=
0
,
BodyEnd
,
BodyStart
,
Other
};
enum
SvxFrameAnchor
...
...
sw/source/uibase/lingu/hhcwrp.cxx
Dosyayı görüntüle @
6f602461
...
...
@@ -600,11 +600,11 @@ void SwHHCWrapper::Convert()
}
if
(
m_bIsOtherContent
)
ConvStart_impl
(
m_pConvArgs
,
S
VX_SPELL_OTHER
);
ConvStart_impl
(
m_pConvArgs
,
S
vxSpellArea
::
Other
);
else
{
m_bStartChk
=
false
;
ConvStart_impl
(
m_pConvArgs
,
S
VX_SPELL_BODY_END
);
ConvStart_impl
(
m_pConvArgs
,
S
vxSpellArea
::
BodyEnd
);
}
ConvertDocument
();
...
...
@@ -632,7 +632,7 @@ bool SwHHCWrapper::ConvNext_impl( )
if
(
m_bIsOtherContent
)
{
m_bStartChk
=
false
;
ConvStart_impl
(
m_pConvArgs
,
S
VX_SPELL_BODY
);
ConvStart_impl
(
m_pConvArgs
,
S
vxSpellArea
::
Body
);
bGoOn
=
true
;
}
else
if
(
m_bStartDone
&&
m_bEndDone
)
...
...
@@ -640,14 +640,14 @@ bool SwHHCWrapper::ConvNext_impl( )
// body region done, ask about special region
if
(
HasOtherCnt_impl
()
)
{
ConvStart_impl
(
m_pConvArgs
,
S
VX_SPELL_OTHER
);
ConvStart_impl
(
m_pConvArgs
,
S
vxSpellArea
::
Other
);
m_bIsOtherContent
=
bGoOn
=
true
;
}
}
else
{
m_bStartChk
=
!
m_bStartDone
;
ConvStart_impl
(
m_pConvArgs
,
m_bStartChk
?
S
VX_SPELL_BODY_START
:
SVX_SPELL_BODY_END
);
ConvStart_impl
(
m_pConvArgs
,
m_bStartChk
?
S
vxSpellArea
::
BodyStart
:
SvxSpellArea
::
BodyEnd
);
bGoOn
=
true
;
}
return
bGoOn
;
...
...
@@ -686,7 +686,7 @@ bool SwHHCWrapper::HasOtherCnt_impl()
void
SwHHCWrapper
::
ConvStart_impl
(
SwConversionArgs
/* [out] */
*
pConversionArgs
,
SvxSpellArea
eArea
)
{
SetDrawObj
(
S
VX_SPELL_OTHER
==
eArea
);
SetDrawObj
(
S
vxSpellArea
::
Other
==
eArea
);
m_pView
->
SpellStart
(
eArea
,
m_bStartDone
,
m_bEndDone
,
/* [out] */
pConversionArgs
);
}
...
...
sw/source/uibase/lingu/hyp.cxx
Dosyayı görüntüle @
6f602461
...
...
@@ -59,7 +59,7 @@ SwHyphWrapper::SwHyphWrapper( SwView* pVw,
void
SwHyphWrapper
::
SpellStart
(
SvxSpellArea
eSpell
)
{
if
(
S
VX_SPELL_OTHER
==
eSpell
&&
nPageCount
)
if
(
S
vxSpellArea
::
Other
==
eSpell
&&
nPageCount
)
{
::
EndProgress
(
pView
->
GetDocShell
()
);
nPageCount
=
0
;
...
...
sw/source/uibase/uiview/viewling.cxx
Dosyayı görüntüle @
6f602461
...
...
@@ -278,13 +278,13 @@ void SwView::SpellStart( SvxSpellArea eWhich,
SwDocPositions
eCurr
=
DOCPOS_CURR
;
switch
(
eWhich
)
{
case
S
VX_SPELL_BODY
:
case
S
vxSpellArea
:
:
Body
:
if
(
bIsWrapReverse
)
eCurr
=
DOCPOS_END
;
else
eCurr
=
DOCPOS_START
;
break
;
case
S
VX_SPELL_BODY_END
:
case
S
vxSpellArea
:
:
BodyEnd
:
if
(
bIsWrapReverse
)
{
if
(
bStartDone
)
...
...
@@ -294,7 +294,7 @@ void SwView::SpellStart( SvxSpellArea eWhich,
else
if
(
bStartDone
)
eCurr
=
DOCPOS_START
;
break
;
case
S
VX_SPELL_BODY_START
:
case
S
vxSpellArea
:
:
BodyStart
:
if
(
!
bIsWrapReverse
)
{
if
(
bEndDone
)
...
...
@@ -304,7 +304,7 @@ void SwView::SpellStart( SvxSpellArea eWhich,
else
if
(
bEndDone
)
eCurr
=
DOCPOS_END
;
break
;
case
S
VX_SPELL_OTHER
:
case
S
vxSpellArea
:
:
Other
:
if
(
bIsWrapReverse
)
{
eStart
=
DOCPOS_OTHERSTART
;
...
...
@@ -397,16 +397,16 @@ void SwView::HyphStart( SvxSpellArea eWhich )
{
switch
(
eWhich
)
{
case
S
VX_SPELL_BODY
:
case
S
vxSpellArea
:
:
Body
:
m_pWrtShell
->
HyphStart
(
DOCPOS_START
,
DOCPOS_END
);
break
;
case
S
VX_SPELL_BODY_END
:
case
S
vxSpellArea
:
:
BodyEnd
:
m_pWrtShell
->
HyphStart
(
DOCPOS_CURR
,
DOCPOS_END
);
break
;
case
S
VX_SPELL_BODY_START
:
case
S
vxSpellArea
:
:
BodyStart
:
m_pWrtShell
->
HyphStart
(
DOCPOS_START
,
DOCPOS_CURR
);
break
;
case
S
VX_SPELL_OTHER
:
case
S
vxSpellArea
:
:
Other
:
m_pWrtShell
->
HyphStart
(
DOCPOS_OTHERSTART
,
DOCPOS_OTHEREND
);
break
;
default
:
...
...
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