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
2c4621c8
Kaydet (Commit)
2c4621c8
authored
Şub 26, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
editeng: sal_Bool->bool
Change-Id: I659497b79fe809865639429f2744d815f2a1f3e2
üst
fdf28427
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
83 additions
and
83 deletions
+83
-83
edtspell.cxx
editeng/source/editeng/edtspell.cxx
+3
-3
edtspell.hxx
editeng/source/editeng/edtspell.hxx
+3
-3
splwrap.cxx
editeng/source/misc/splwrap.cxx
+45
-45
splwrap.hxx
include/editeng/splwrap.hxx
+27
-27
hyp.hxx
sw/source/ui/inc/hyp.hxx
+2
-2
hyp.cxx
sw/source/ui/lingu/hyp.cxx
+3
-3
No files found.
editeng/source/editeng/edtspell.cxx
Dosyayı görüntüle @
2c4621c8
...
@@ -106,7 +106,7 @@ void EditSpellWrapper::SpellStart( SvxSpellArea eArea )
...
@@ -106,7 +106,7 @@ void EditSpellWrapper::SpellStart( SvxSpellArea eArea )
}
}
}
}
sal_B
ool
EditSpellWrapper
::
SpellContinue
()
b
ool
EditSpellWrapper
::
SpellContinue
()
{
{
SetLast
(
pEditView
->
GetImpEditEngine
()
->
ImpSpell
(
pEditView
)
);
SetLast
(
pEditView
->
GetImpEditEngine
()
->
ImpSpell
(
pEditView
)
);
return
GetLast
().
is
();
return
GetLast
().
is
();
...
@@ -118,12 +118,12 @@ void EditSpellWrapper::SpellEnd()
...
@@ -118,12 +118,12 @@ void EditSpellWrapper::SpellEnd()
SvxSpellWrapper
::
SpellEnd
();
SvxSpellWrapper
::
SpellEnd
();
}
}
sal_B
ool
EditSpellWrapper
::
HasOtherCnt
()
b
ool
EditSpellWrapper
::
HasOtherCnt
()
{
{
return
false
;
return
false
;
}
}
sal_B
ool
EditSpellWrapper
::
SpellMore
()
b
ool
EditSpellWrapper
::
SpellMore
()
{
{
EditEngine
*
pEE
=
pEditView
->
GetEditEngine
();
EditEngine
*
pEE
=
pEditView
->
GetEditEngine
();
ImpEditEngine
*
pImpEE
=
pEditView
->
GetImpEditEngine
();
ImpEditEngine
*
pImpEE
=
pEditView
->
GetImpEditEngine
();
...
...
editeng/source/editeng/edtspell.hxx
Dosyayı görüntüle @
2c4621c8
...
@@ -46,11 +46,11 @@ private:
...
@@ -46,11 +46,11 @@ private:
protected
:
protected
:
virtual
void
SpellStart
(
SvxSpellArea
eArea
);
virtual
void
SpellStart
(
SvxSpellArea
eArea
);
virtual
sal_Bool
SpellContinue
();
// Check area
virtual
bool
SpellContinue
();
// Check area
virtual
void
ReplaceAll
(
const
OUString
&
rNewText
,
sal_Int16
nLanguage
);
virtual
void
ReplaceAll
(
const
OUString
&
rNewText
,
sal_Int16
nLanguage
);
virtual
void
SpellEnd
();
virtual
void
SpellEnd
();
virtual
sal_Bool
SpellMore
();
virtual
bool
SpellMore
();
virtual
sal_Bool
HasOtherCnt
();
virtual
bool
HasOtherCnt
();
virtual
void
ScrollArea
();
virtual
void
ScrollArea
();
virtual
void
ChangeWord
(
const
OUString
&
rNewWord
,
const
sal_uInt16
nLang
);
virtual
void
ChangeWord
(
const
OUString
&
rNewWord
,
const
sal_uInt16
nLang
);
virtual
void
ChangeThesWord
(
const
OUString
&
rNewWord
);
virtual
void
ChangeThesWord
(
const
OUString
&
rNewWord
);
...
...
editeng/source/misc/splwrap.cxx
Dosyayı görüntüle @
2c4621c8
...
@@ -147,22 +147,22 @@ SvxSpellWrapper::~SvxSpellWrapper()
...
@@ -147,22 +147,22 @@ SvxSpellWrapper::~SvxSpellWrapper()
SvxSpellWrapper
::
SvxSpellWrapper
(
Window
*
pWn
,
SvxSpellWrapper
::
SvxSpellWrapper
(
Window
*
pWn
,
Reference
<
XSpellChecker1
>
&
xSpellChecker
,
Reference
<
XSpellChecker1
>
&
xSpellChecker
,
const
sal_Bool
bStart
,
const
sal_B
ool
bIsAllRight
,
const
bool
bStart
,
const
b
ool
bIsAllRight
,
const
sal_Bool
bOther
,
const
sal_B
ool
bRevAllow
)
:
const
bool
bOther
,
const
b
ool
bRevAllow
)
:
pWin
(
pWn
),
pWin
(
pWn
),
xSpell
(
xSpellChecker
),
xSpell
(
xSpellChecker
),
mpTextObj
(
NULL
),
mpTextObj
(
NULL
),
bOtherCntnt
(
bOther
),
bOtherCntnt
(
bOther
),
bDialog
(
sal_F
alse
),
bDialog
(
f
alse
),
bHyphen
(
sal_F
alse
),
bHyphen
(
f
alse
),
bAuto
(
sal_F
alse
),
bAuto
(
f
alse
),
bStartChk
(
bOther
),
bStartChk
(
bOther
),
bRevAllowed
(
bRevAllow
),
bRevAllowed
(
bRevAllow
),
bAllRight
(
bIsAllRight
)
bAllRight
(
bIsAllRight
)
{
{
Reference
<
linguistic2
::
XLinguProperties
>
xProp
(
SvxGetLinguPropertySet
()
);
Reference
<
linguistic2
::
XLinguProperties
>
xProp
(
SvxGetLinguPropertySet
()
);
sal_Bool
bWrapReverse
=
xProp
.
is
()
?
xProp
->
getIsWrapReverse
()
:
sal_False
;
bool
bWrapReverse
=
xProp
.
is
()
&&
xProp
->
getIsWrapReverse
()
;
bReverse
=
bRevAllow
&&
bWrapReverse
;
bReverse
=
bRevAllow
&&
bWrapReverse
;
bStartDone
=
bOther
||
(
!
bReverse
&&
bStart
);
bStartDone
=
bOther
||
(
!
bReverse
&&
bStart
);
bEndDone
=
bReverse
&&
bStart
&&
!
bOther
;
bEndDone
=
bReverse
&&
bStart
&&
!
bOther
;
...
@@ -172,20 +172,20 @@ SvxSpellWrapper::SvxSpellWrapper( Window* pWn,
...
@@ -172,20 +172,20 @@ SvxSpellWrapper::SvxSpellWrapper( Window* pWn,
SvxSpellWrapper
::
SvxSpellWrapper
(
Window
*
pWn
,
SvxSpellWrapper
::
SvxSpellWrapper
(
Window
*
pWn
,
Reference
<
XHyphenator
>
&
xHyphenator
,
Reference
<
XHyphenator
>
&
xHyphenator
,
const
sal_Bool
bStart
,
const
sal_B
ool
bOther
)
:
const
bool
bStart
,
const
b
ool
bOther
)
:
pWin
(
pWn
),
pWin
(
pWn
),
xHyph
(
xHyphenator
),
xHyph
(
xHyphenator
),
mpTextObj
(
NULL
),
mpTextObj
(
NULL
),
bOtherCntnt
(
bOther
),
bOtherCntnt
(
bOther
),
bDialog
(
sal_F
alse
),
bDialog
(
f
alse
),
bHyphen
(
sal_F
alse
),
bHyphen
(
f
alse
),
bAuto
(
sal_F
alse
),
bAuto
(
f
alse
),
bReverse
(
sal_F
alse
),
bReverse
(
f
alse
),
bStartDone
(
bOther
||
(
!
bReverse
&&
bStart
)
),
bStartDone
(
bOther
||
(
!
bReverse
&&
bStart
)
),
bEndDone
(
bReverse
&&
bStart
&&
!
bOther
),
bEndDone
(
bReverse
&&
bStart
&&
!
bOther
),
bStartChk
(
bOther
),
bStartChk
(
bOther
),
bRevAllowed
(
sal_F
alse
),
bRevAllowed
(
f
alse
),
bAllRight
(
sal_T
rue
)
bAllRight
(
t
rue
)
{
{
}
}
...
@@ -251,17 +251,17 @@ void SvxSpellWrapper::SpellStart( SvxSpellArea /*eSpell*/ )
...
@@ -251,17 +251,17 @@ void SvxSpellWrapper::SpellStart( SvxSpellArea /*eSpell*/ )
sal_B
ool
SvxSpellWrapper
::
HasOtherCnt
()
b
ool
SvxSpellWrapper
::
HasOtherCnt
()
{
{
return
sal_F
alse
;
// Is there a special area?
return
f
alse
;
// Is there a special area?
}
}
sal_B
ool
SvxSpellWrapper
::
SpellMore
()
b
ool
SvxSpellWrapper
::
SpellMore
()
{
{
return
sal_F
alse
;
// Should additional documents be examined?
return
f
alse
;
// Should additional documents be examined?
}
}
...
@@ -277,9 +277,9 @@ void SvxSpellWrapper::SpellEnd()
...
@@ -277,9 +277,9 @@ void SvxSpellWrapper::SpellEnd()
sal_B
ool
SvxSpellWrapper
::
SpellContinue
()
b
ool
SvxSpellWrapper
::
SpellContinue
()
{
{
return
sal_F
alse
;
return
f
alse
;
}
}
...
@@ -360,7 +360,7 @@ void SvxSpellWrapper::SpellDocument( )
...
@@ -360,7 +360,7 @@ void SvxSpellWrapper::SpellDocument( )
{
{
if
(
bOtherCntnt
)
if
(
bOtherCntnt
)
{
{
bReverse
=
sal_F
alse
;
bReverse
=
f
alse
;
SpellStart
(
SVX_SPELL_OTHER
);
SpellStart
(
SVX_SPELL_OTHER
);
}
}
else
else
...
@@ -375,7 +375,7 @@ void SvxSpellWrapper::SpellDocument( )
...
@@ -375,7 +375,7 @@ void SvxSpellWrapper::SpellDocument( )
Reference
<
XHyphenatedWord
>
xHyphWord
(
GetLast
(),
UNO_QUERY
);
Reference
<
XHyphenatedWord
>
xHyphWord
(
GetLast
(),
UNO_QUERY
);
Window
*
pOld
=
pWin
;
Window
*
pOld
=
pWin
;
bDialog
=
sal_T
rue
;
bDialog
=
t
rue
;
if
(
xHyphWord
.
is
())
if
(
xHyphWord
.
is
())
{
{
EditAbstractDialogFactory
*
pFact
=
EditAbstractDialogFactory
::
Create
();
EditAbstractDialogFactory
*
pFact
=
EditAbstractDialogFactory
::
Create
();
...
@@ -387,7 +387,7 @@ void SvxSpellWrapper::SpellDocument( )
...
@@ -387,7 +387,7 @@ void SvxSpellWrapper::SpellDocument( )
pDlg
->
Execute
();
pDlg
->
Execute
();
delete
pDlg
;
delete
pDlg
;
}
}
bDialog
=
sal_F
alse
;
bDialog
=
f
alse
;
pWin
=
pOld
;
pWin
=
pOld
;
};
};
}
}
...
@@ -396,27 +396,27 @@ void SvxSpellWrapper::SpellDocument( )
...
@@ -396,27 +396,27 @@ void SvxSpellWrapper::SpellDocument( )
// Select the next area
// Select the next area
sal_B
ool
SvxSpellWrapper
::
SpellNext
(
)
b
ool
SvxSpellWrapper
::
SpellNext
(
)
{
{
Reference
<
linguistic2
::
XLinguProperties
>
xProp
(
SvxGetLinguPropertySet
()
);
Reference
<
linguistic2
::
XLinguProperties
>
xProp
(
SvxGetLinguPropertySet
()
);
sal_Bool
bWrapReverse
=
xProp
.
is
()
?
xProp
->
getIsWrapReverse
()
:
sal_False
;
bool
bWrapReverse
=
xProp
.
is
()
&&
xProp
->
getIsWrapReverse
()
;
sal_B
ool
bActRev
=
bRevAllowed
&&
bWrapReverse
;
b
ool
bActRev
=
bRevAllowed
&&
bWrapReverse
;
// bActRev is the direction after Spell checking, bReverse is the one
// bActRev is the direction after Spell checking, bReverse is the one
// at the beginning.
// at the beginning.
if
(
bActRev
==
bReverse
)
if
(
bActRev
==
bReverse
)
{
// No change of direction, thus is the
{
// No change of direction, thus is the
if
(
bStartChk
)
// desired area ( bStartChk )
if
(
bStartChk
)
// desired area ( bStartChk )
bStartDone
=
sal_T
rue
;
// completely processed.
bStartDone
=
t
rue
;
// completely processed.
else
else
bEndDone
=
sal_T
rue
;
bEndDone
=
t
rue
;
}
}
else
if
(
bReverse
==
bStartChk
)
//For a change of direction, an area can
else
if
(
bReverse
==
bStartChk
)
//For a change of direction, an area can
{
// be processed during certain circumstances
{
// be processed during certain circumstances
if
(
bStartChk
)
// If the firdt part is spell checked in backwards
if
(
bStartChk
)
// If the firdt part is spell checked in backwards
bEndDone
=
sal_T
rue
;
// and this is reversed in the process, then
bEndDone
=
t
rue
;
// and this is reversed in the process, then
else
// then the end part is processed (and vice-versa).
else
// then the end part is processed (and vice-versa).
bStartDone
=
sal_T
rue
;
bStartDone
=
t
rue
;
}
}
bReverse
=
bActRev
;
bReverse
=
bActRev
;
...
@@ -424,39 +424,39 @@ sal_Bool SvxSpellWrapper::SpellNext( )
...
@@ -424,39 +424,39 @@ sal_Bool SvxSpellWrapper::SpellNext( )
{
{
if
(
SpellMore
()
)
// spell check another document?
if
(
SpellMore
()
)
// spell check another document?
{
{
bOtherCntnt
=
sal_F
alse
;
bOtherCntnt
=
f
alse
;
bStartDone
=
!
bReverse
;
bStartDone
=
!
bReverse
;
bEndDone
=
bReverse
;
bEndDone
=
bReverse
;
SpellStart
(
SVX_SPELL_BODY
);
SpellStart
(
SVX_SPELL_BODY
);
return
sal_T
rue
;
return
t
rue
;
}
}
return
sal_F
alse
;
return
f
alse
;
}
}
sal_Bool
bGoOn
=
sal_F
alse
;
bool
bGoOn
=
f
alse
;
if
(
bOtherCntnt
)
if
(
bOtherCntnt
)
{
{
bStartChk
=
sal_F
alse
;
bStartChk
=
f
alse
;
SpellStart
(
SVX_SPELL_BODY
);
SpellStart
(
SVX_SPELL_BODY
);
bGoOn
=
sal_T
rue
;
bGoOn
=
t
rue
;
}
}
else
if
(
bStartDone
&&
bEndDone
)
else
if
(
bStartDone
&&
bEndDone
)
{
{
sal_Bool
bIsSpellSpecial
=
xProp
.
is
()
?
xProp
->
getIsSpellSpecial
()
:
sal_False
;
bool
bIsSpellSpecial
=
xProp
.
is
()
&&
xProp
->
getIsSpellSpecial
()
;
// Body area done, ask for special area
// Body area done, ask for special area
if
(
!
IsHyphen
()
&&
bIsSpellSpecial
&&
HasOtherCnt
()
)
if
(
!
IsHyphen
()
&&
bIsSpellSpecial
&&
HasOtherCnt
()
)
{
{
SpellStart
(
SVX_SPELL_OTHER
);
SpellStart
(
SVX_SPELL_OTHER
);
bOtherCntnt
=
bGoOn
=
sal_T
rue
;
bOtherCntnt
=
bGoOn
=
t
rue
;
}
}
else
if
(
SpellMore
()
)
// check another document?
else
if
(
SpellMore
()
)
// check another document?
{
{
bOtherCntnt
=
sal_F
alse
;
bOtherCntnt
=
f
alse
;
bStartDone
=
!
bReverse
;
bStartDone
=
!
bReverse
;
bEndDone
=
bReverse
;
bEndDone
=
bReverse
;
SpellStart
(
SVX_SPELL_BODY
);
SpellStart
(
SVX_SPELL_BODY
);
return
sal_T
rue
;
return
t
rue
;
}
}
}
}
else
else
...
@@ -470,14 +470,14 @@ sal_Bool SvxSpellWrapper::SpellNext( )
...
@@ -470,14 +470,14 @@ sal_Bool SvxSpellWrapper::SpellNext( )
{
{
// sacrifice the other area if necessary ask for special area
// sacrifice the other area if necessary ask for special area
WAIT_ON
();
WAIT_ON
();
bStartDone
=
bEndDone
=
sal_T
rue
;
bStartDone
=
bEndDone
=
t
rue
;
return
SpellNext
();
return
SpellNext
();
}
}
else
else
{
{
bStartChk
=
!
bStartDone
;
bStartChk
=
!
bStartDone
;
SpellStart
(
bStartChk
?
SVX_SPELL_BODY_START
:
SVX_SPELL_BODY_END
);
SpellStart
(
bStartChk
?
SVX_SPELL_BODY_START
:
SVX_SPELL_BODY_END
);
bGoOn
=
sal_T
rue
;
bGoOn
=
t
rue
;
}
}
WAIT_ON
();
WAIT_ON
();
}
}
...
@@ -530,14 +530,14 @@ Reference< XDictionary > SvxSpellWrapper::GetAllRightDic() const
...
@@ -530,14 +530,14 @@ Reference< XDictionary > SvxSpellWrapper::GetAllRightDic() const
sal_B
ool
SvxSpellWrapper
::
FindSpellError
()
b
ool
SvxSpellWrapper
::
FindSpellError
()
{
{
ShowLanguageErrors
();
ShowLanguageErrors
();
Reference
<
XInterface
>
xRef
;
Reference
<
XInterface
>
xRef
;
WAIT_ON
();
WAIT_ON
();
sal_Bool
bSpell
=
sal_T
rue
;
bool
bSpell
=
t
rue
;
Reference
<
XDictionary
>
xAllRightDic
;
Reference
<
XDictionary
>
xAllRightDic
;
if
(
IsAllRight
())
if
(
IsAllRight
())
...
@@ -572,11 +572,11 @@ sal_Bool SvxSpellWrapper::FindSpellError()
...
@@ -572,11 +572,11 @@ sal_Bool SvxSpellWrapper::FindSpellError()
LanguageTag
(
xAlt
->
getLocale
()
).
getLanguageType
()
);
LanguageTag
(
xAlt
->
getLocale
()
).
getLanguageType
()
);
}
}
else
else
bSpell
=
sal_F
alse
;
bSpell
=
f
alse
;
}
}
}
}
else
if
(
xHyphWord
.
is
())
else
if
(
xHyphWord
.
is
())
bSpell
=
sal_F
alse
;
bSpell
=
f
alse
;
else
else
{
{
SpellEnd
();
SpellEnd
();
...
...
include/editeng/splwrap.hxx
Dosyayı görüntüle @
2c4621c8
...
@@ -56,31 +56,31 @@ private:
...
@@ -56,31 +56,31 @@ private:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XHyphenator
>
xHyph
;
::
com
::
sun
::
star
::
linguistic2
::
XHyphenator
>
xHyph
;
SdrObject
*
mpTextObj
;
SdrObject
*
mpTextObj
;
sal_Bool
bOtherCntnt
:
1
;
// set => Check special sections initially
bool
bOtherCntnt
:
1
;
// set => Check special sections initially
sal_Bool
bDialog
:
1
;
// Is pWin the Svx...Dialog?
bool
bDialog
:
1
;
// Is pWin the Svx...Dialog?
sal_Bool
bHyphen
:
1
;
// Split instead of spell checking
bool
bHyphen
:
1
;
// Split instead of spell checking
sal_Bool
bAuto
:
1
;
// AutoCorrect available?
bool
bAuto
:
1
;
// AutoCorrect available?
sal_Bool
bReverse
:
1
;
// Reverse spell check
bool
bReverse
:
1
;
// Reverse spell check
sal_Bool
bStartDone
:
1
;
// Beginning already corrected
bool
bStartDone
:
1
;
// Beginning already corrected
sal_Bool
bEndDone
:
1
;
// End part already corrected
bool
bEndDone
:
1
;
// End part already corrected
sal_Bool
bStartChk
:
1
;
// Examine the beginning
bool
bStartChk
:
1
;
// Examine the beginning
sal_Bool
bRevAllowed
:
1
;
// Reverse spell check prohibited
bool
bRevAllowed
:
1
;
// Reverse spell check prohibited
sal_Bool
bAllRight
:
1
;
// Record wrong words in the dedicated
bool
bAllRight
:
1
;
// Record wrong words in the dedicated
// dictionary and do not start the dialog.
// dictionary and do not start the dialog.
EDITENG_DLLPRIVATE
sal_B
ool
SpellNext
();
// select next area
EDITENG_DLLPRIVATE
b
ool
SpellNext
();
// select next area
sal_B
ool
FindSpellError
();
// Check for errors (over areas)
b
ool
FindSpellError
();
// Check for errors (over areas)
public
:
public
:
SvxSpellWrapper
(
Window
*
pWn
,
SvxSpellWrapper
(
Window
*
pWn
,
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XSpellChecker1
>
&
xSpellChecker
,
::
com
::
sun
::
star
::
linguistic2
::
XSpellChecker1
>
&
xSpellChecker
,
const
sal_Bool
bStart
=
sal_False
,
const
sal_Bool
bIsAllRight
=
sal_F
alse
,
const
bool
bStart
=
false
,
const
bool
bIsAllRight
=
f
alse
,
const
sal_Bool
bOther
=
sal_False
,
const
sal_Bool
bRevAllow
=
sal_T
rue
);
const
bool
bOther
=
false
,
const
bool
bRevAllow
=
t
rue
);
SvxSpellWrapper
(
Window
*
pWn
,
SvxSpellWrapper
(
Window
*
pWn
,
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XHyphenator
>
&
xHyphenator
,
::
com
::
sun
::
star
::
linguistic2
::
XHyphenator
>
&
xHyphenator
,
const
sal_Bool
bStart
=
sal_False
,
const
sal_Bool
bOther
=
sal_F
alse
);
const
bool
bStart
=
false
,
const
bool
bOther
=
f
alse
);
virtual
~
SvxSpellWrapper
();
virtual
~
SvxSpellWrapper
();
...
@@ -96,21 +96,21 @@ public:
...
@@ -96,21 +96,21 @@ public:
static
void
ShowLanguageErrors
();
static
void
ShowLanguageErrors
();
void
SpellDocument
();
// Perform Spell Checking
void
SpellDocument
();
// Perform Spell Checking
inline
sal_Bool
IsStartDone
(){
return
bStartDone
;
}
inline
bool
IsStartDone
(){
return
bStartDone
;
}
inline
sal_Bool
IsEndDone
(){
return
bEndDone
;
}
inline
bool
IsEndDone
(){
return
bEndDone
;
}
inline
sal_Bool
IsReverse
(){
return
bReverse
;
}
inline
bool
IsReverse
(){
return
bReverse
;
}
inline
sal_Bool
IsDialog
(){
return
bDialog
;
}
// SvxSpellCheckDialog OnScreen
inline
bool
IsDialog
(){
return
bDialog
;
}
// SvxSpellCheckDialog OnScreen
inline
sal_Bool
IsHyphen
(){
return
bHyphen
;
}
// Split instead of Spell check
inline
bool
IsHyphen
(){
return
bHyphen
;
}
// Split instead of Spell check
inline
void
SetHyphen
(
const
sal_Bool
bNew
=
sal_T
rue
){
bHyphen
=
bNew
;
}
inline
void
SetHyphen
(
const
bool
bNew
=
t
rue
){
bHyphen
=
bNew
;
}
inline
::
com
::
sun
::
star
::
uno
::
Reference
<
inline
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XSpellChecker1
>
::
com
::
sun
::
star
::
linguistic2
::
XSpellChecker1
>
GetXSpellChecker
()
{
return
xSpell
;
}
GetXSpellChecker
()
{
return
xSpell
;
}
inline
::
com
::
sun
::
star
::
uno
::
Reference
<
inline
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XHyphenator
>
::
com
::
sun
::
star
::
linguistic2
::
XHyphenator
>
GetXHyphenator
()
{
return
xHyph
;
}
GetXHyphenator
()
{
return
xHyph
;
}
inline
sal_Bool
IsAllRight
()
{
return
bAllRight
;
}
inline
bool
IsAllRight
()
{
return
bAllRight
;
}
inline
Window
*
GetWin
()
{
return
pWin
;
}
inline
Window
*
GetWin
()
{
return
pWin
;
}
inline
void
EnableAutoCorrect
()
{
bAuto
=
sal_T
rue
;
}
inline
void
EnableAutoCorrect
()
{
bAuto
=
t
rue
;
}
protected
:
protected
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
...
@@ -119,10 +119,10 @@ protected:
...
@@ -119,10 +119,10 @@ protected:
void
SetLast
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
void
SetLast
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
&
xNewLast
)
::
com
::
sun
::
star
::
uno
::
XInterface
>
&
xNewLast
)
{
xLast
=
xNewLast
;
}
{
xLast
=
xNewLast
;
}
virtual
sal_B
ool
SpellMore
();
// examine further documents?
virtual
b
ool
SpellMore
();
// examine further documents?
virtual
sal_B
ool
HasOtherCnt
();
// Are there any special areas?
virtual
b
ool
HasOtherCnt
();
// Are there any special areas?
virtual
void
SpellStart
(
SvxSpellArea
eSpell
);
// Preparing the area
virtual
void
SpellStart
(
SvxSpellArea
eSpell
);
// Preparing the area
virtual
sal_B
ool
SpellContinue
();
// Check Areas
virtual
b
ool
SpellContinue
();
// Check Areas
// Result available through GetLast
// Result available through GetLast
virtual
void
ReplaceAll
(
const
OUString
&
rNewText
,
sal_Int16
nLanguage
);
//Replace word from the replace list
virtual
void
ReplaceAll
(
const
OUString
&
rNewText
,
sal_Int16
nLanguage
);
//Replace word from the replace list
virtual
void
StartThesaurus
(
const
OUString
&
rWord
,
sal_uInt16
nLang
);
virtual
void
StartThesaurus
(
const
OUString
&
rWord
,
sal_uInt16
nLang
);
...
...
sw/source/ui/inc/hyp.hxx
Dosyayı görüntüle @
2c4621c8
...
@@ -40,9 +40,9 @@ private:
...
@@ -40,9 +40,9 @@ private:
protected
:
protected
:
virtual
void
SpellStart
(
SvxSpellArea
eSpell
);
virtual
void
SpellStart
(
SvxSpellArea
eSpell
);
virtual
sal_B
ool
SpellContinue
();
virtual
b
ool
SpellContinue
();
virtual
void
SpellEnd
(
);
virtual
void
SpellEnd
(
);
virtual
sal_B
ool
SpellMore
();
virtual
b
ool
SpellMore
();
virtual
void
InsertHyphen
(
const
sal_uInt16
nPos
);
// insert hyphen
virtual
void
InsertHyphen
(
const
sal_uInt16
nPos
);
// insert hyphen
public
:
public
:
...
...
sw/source/ui/lingu/hyp.cxx
Dosyayı görüntüle @
2c4621c8
...
@@ -76,7 +76,7 @@ void SwHyphWrapper::SpellStart( SvxSpellArea eSpell )
...
@@ -76,7 +76,7 @@ void SwHyphWrapper::SpellStart( SvxSpellArea eSpell )
sal_B
ool
SwHyphWrapper
::
SpellContinue
()
b
ool
SwHyphWrapper
::
SpellContinue
()
{
{
// for automatic separation, make actions visible only at the end
// for automatic separation, make actions visible only at the end
boost
::
scoped_ptr
<
SwWait
>
pWait
;
boost
::
scoped_ptr
<
SwWait
>
pWait
;
...
@@ -109,12 +109,12 @@ void SwHyphWrapper::SpellEnd()
...
@@ -109,12 +109,12 @@ void SwHyphWrapper::SpellEnd()
}
}
sal_B
ool
SwHyphWrapper
::
SpellMore
()
b
ool
SwHyphWrapper
::
SpellMore
()
{
{
PSH
->
Push
();
PSH
->
Push
();
bInfoBox
=
sal_True
;
bInfoBox
=
sal_True
;
PSH
->
Combine
();
PSH
->
Combine
();
return
sal_F
alse
;
return
f
alse
;
}
}
...
...
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