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
cb66ea36
Kaydet (Commit)
cb66ea36
authored
Mar 31, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
linguistic: sal_Bool->bool
Change-Id: Ie2366b25a1f81a5b25142e8b9a727bcc2f585c14
üst
95d7ebd2
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
123 additions
and
123 deletions
+123
-123
SpellDialog.cxx
cui/source/dialogs/SpellDialog.cxx
+3
-3
optdict.cxx
cui/source/options/optdict.cxx
+1
-1
hyphdta.hxx
include/linguistic/hyphdta.hxx
+4
-4
lngprophelp.hxx
include/linguistic/lngprophelp.hxx
+24
-24
misc.hxx
include/linguistic/misc.hxx
+12
-12
spelldta.hxx
include/linguistic/spelldta.hxx
+2
-2
convdic.cxx
linguistic/source/convdic.cxx
+1
-1
lngprophelp.cxx
linguistic/source/lngprophelp.cxx
+32
-32
misc.cxx
linguistic/source/misc.cxx
+31
-31
misc2.cxx
linguistic/source/misc2.cxx
+2
-2
spelldsp.cxx
linguistic/source/spelldsp.cxx
+3
-3
spelldta.cxx
linguistic/source/spelldta.cxx
+6
-6
olmenu.cxx
sw/source/core/uibase/lingu/olmenu.cxx
+2
-2
No files found.
cui/source/dialogs/SpellDialog.cxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -586,7 +586,7 @@ IMPL_LINK_NOARG(SpellDialog, ChangeAllHdl)
SvxPrepareAutoCorrect
(
aOldWord
,
aString
);
Reference
<
XDictionary
>
aXDictionary
(
SvxGetChangeAllList
(),
UNO_QUERY
);
sal_uInt8
nAdded
=
linguistic
::
AddEntryToDic
(
aXDictionary
,
aOldWord
,
sal_T
rue
,
aOldWord
,
t
rue
,
aString
,
eLang
);
if
(
nAdded
==
DIC_ERR_NONE
)
...
...
@@ -635,7 +635,7 @@ IMPL_LINK( SpellDialog, IgnoreAllHdl, Button *, pButton )
{
OUString
sErrorText
(
m_pSentenceED
->
GetErrorText
());
sal_uInt8
nAdded
=
linguistic
::
AddEntryToDic
(
aXDictionary
,
sErrorText
,
sal_F
alse
,
sErrorText
,
f
alse
,
OUString
(),
LANGUAGE_NONE
);
if
(
nAdded
==
DIC_ERR_NONE
)
{
...
...
@@ -917,7 +917,7 @@ int SpellDialog::AddToDictionaryExecute( sal_uInt16 nItemId, PopupMenu *pMenu )
sal_Int16
nAddRes
=
DIC_ERR_UNKNOWN
;
if
(
xDic
.
is
())
{
nAddRes
=
linguistic
::
AddEntryToDic
(
xDic
,
aNewWord
,
sal_F
alse
,
OUString
(),
LANGUAGE_NONE
);
nAddRes
=
linguistic
::
AddEntryToDic
(
xDic
,
aNewWord
,
f
alse
,
OUString
(),
LANGUAGE_NONE
);
// save modified user-dictionary if it is persistent
uno
::
Reference
<
frame
::
XStorable
>
xSavDic
(
xDic
,
uno
::
UNO_QUERY
);
if
(
xSavDic
.
is
())
...
...
cui/source/options/optdict.cxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -621,7 +621,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
nAddRes
=
linguistic
::
AddEntryToDic
(
xDic
,
aNewWord
,
bIsNegEntry
,
aRplcText
,
LanguageTag
(
xDic
->
getLocale
()
).
getLanguageType
(),
sal_F
alse
);
aRplcText
,
LanguageTag
(
xDic
->
getLocale
()
).
getLanguageType
(),
f
alse
);
}
}
if
(
DIC_ERR_NONE
!=
nAddRes
)
...
...
include/linguistic/hyphdta.hxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -36,10 +36,10 @@ class HyphenatedWord :
{
OUString
aWord
;
OUString
aHyphenatedWord
;
sal_Int16
nHyphPos
;
sal_Int16
nHyphenationPos
;
sal_Int16
nLanguage
;
sal_Bool
bIsAltSpelling
;
sal_Int16
nHyphPos
;
sal_Int16
nHyphenationPos
;
sal_Int16
nLanguage
;
bool
bIsAltSpelling
;
// disallow copy-constructor and assignment-operator for now
HyphenatedWord
(
const
HyphenatedWord
&
);
...
...
include/linguistic/lngprophelp.hxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -68,12 +68,12 @@ class PropertyChgHelper :
int
nEvtFlags
;
// flags for event types allowed to be launched
// default values
sal_B
ool
bIsIgnoreControlCharacters
;
sal_B
ool
bIsUseDictionaryList
;
b
ool
bIsIgnoreControlCharacters
;
b
ool
bIsUseDictionaryList
;
// return values, will be set to default value or current temporary value
sal_B
ool
bResIsIgnoreControlCharacters
;
sal_B
ool
bResIsUseDictionaryList
;
b
ool
bResIsIgnoreControlCharacters
;
b
ool
bResIsUseDictionaryList
;
// disallow use of copy-constructor and assignment-operator
...
...
@@ -92,7 +92,7 @@ protected:
void
AddPropNames
(
const
char
*
pNewNames
[],
sal_Int32
nCount
);
virtual
sal_B
ool
propertyChange_Impl
(
virtual
b
ool
propertyChange_Impl
(
const
::
com
::
sun
::
star
::
beans
::
PropertyChangeEvent
&
rEvt
);
public
:
...
...
@@ -143,8 +143,8 @@ public:
::
com
::
sun
::
star
::
uno
::
XInterface
>
&
GetEvtObj
()
const
{
return
xMyEvtObj
;
}
sal_B
ool
IsIgnoreControlCharacters
()
const
{
return
bResIsIgnoreControlCharacters
;
}
sal_B
ool
IsUseDictionaryList
()
const
{
return
bResIsUseDictionaryList
;
}
b
ool
IsIgnoreControlCharacters
()
const
{
return
bResIsIgnoreControlCharacters
;
}
b
ool
IsUseDictionaryList
()
const
{
return
bResIsUseDictionaryList
;
}
};
...
...
@@ -195,15 +195,15 @@ class LNG_DLLPUBLIC PropertyHelper_Spell :
public
PropertyChgHelper
{
// default values
sal_Bool
bIsSpellUpperCase
;
sal_Bool
bIsSpellWithDigits
;
sal_Bool
bIsSpellCapitalization
;
bool
bIsSpellUpperCase
;
bool
bIsSpellWithDigits
;
bool
bIsSpellCapitalization
;
// return values, will be set to default value or current temporary value
sal_Int16
nResMaxNumberOfSuggestions
;
// special value that is not part of the property set and thus needs to be handled differently
sal_Bool
bResIsSpellUpperCase
;
sal_Bool
bResIsSpellWithDigits
;
sal_Bool
bResIsSpellCapitalization
;
bool
bResIsSpellUpperCase
;
bool
bResIsSpellWithDigits
;
bool
bResIsSpellCapitalization
;
// disallow use of copy-constructor and assignment-operator
...
...
@@ -214,7 +214,7 @@ protected:
// PropertyChgHelper
virtual
void
SetDefaultValues
()
SAL_OVERRIDE
;
virtual
void
GetCurrentValues
()
SAL_OVERRIDE
;
virtual
sal_B
ool
propertyChange_Impl
(
virtual
b
ool
propertyChange_Impl
(
const
::
com
::
sun
::
star
::
beans
::
PropertyChangeEvent
&
rEvt
)
SAL_OVERRIDE
;
public
:
...
...
@@ -235,9 +235,9 @@ public:
virtual
sal_Int16
GetDefaultNumberOfSuggestions
()
const
;
sal_Int16
GetMaxNumberOfSuggestions
()
const
{
return
nResMaxNumberOfSuggestions
;
}
sal_Bool
IsSpellUpperCase
()
const
{
return
bResIsSpellUpperCase
;
}
sal_Bool
IsSpellWithDigits
()
const
{
return
bResIsSpellWithDigits
;
}
sal_Bool
IsSpellCapitalization
()
const
{
return
bResIsSpellCapitalization
;
}
bool
IsSpellUpperCase
()
const
{
return
bResIsSpellUpperCase
;
}
bool
IsSpellWithDigits
()
const
{
return
bResIsSpellWithDigits
;
}
bool
IsSpellCapitalization
()
const
{
return
bResIsSpellCapitalization
;
}
};
...
...
@@ -260,15 +260,15 @@ public:
void
AddAsPropListener
();
void
RemoveAsPropListener
();
void
SetTmpPropVals
(
const
com
::
sun
::
star
::
beans
::
PropertyValues
&
rPropVals
);
sal_B
ool
IsSpellUpperCase
()
const
;
sal_B
ool
IsSpellWithDigits
()
const
;
sal_B
ool
IsSpellCapitalization
()
const
;
sal_B
ool
addLinguServiceEventListener
(
void
SetTmpPropVals
(
const
com
::
sun
::
star
::
beans
::
PropertyValues
&
rPropVals
);
b
ool
IsSpellUpperCase
()
const
;
b
ool
IsSpellWithDigits
()
const
;
b
ool
IsSpellCapitalization
()
const
;
b
ool
addLinguServiceEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XLinguServiceEventListener
>&
rxListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
sal_B
ool
removeLinguServiceEventListener
(
b
ool
removeLinguServiceEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XLinguServiceEventListener
>&
rxListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
...
...
@@ -296,7 +296,7 @@ protected:
// PropertyChgHelper
virtual
void
SetDefaultValues
()
SAL_OVERRIDE
;
virtual
void
GetCurrentValues
()
SAL_OVERRIDE
;
virtual
sal_B
ool
propertyChange_Impl
(
virtual
b
ool
propertyChange_Impl
(
const
::
com
::
sun
::
star
::
beans
::
PropertyChangeEvent
&
rEvt
)
SAL_OVERRIDE
;
public
:
...
...
include/linguistic/misc.hxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -120,10 +120,10 @@ LNG_DLLPUBLIC bool LinguIsUnspecified( const OUString & rBcp47 );
// checks if file pointed to by rURL is readonly
// and may also check return if such a file exists or not
sal_Bool
IsReadOnly
(
const
OUString
&
rURL
,
sal_B
ool
*
pbExist
=
0
);
bool
IsReadOnly
(
const
OUString
&
rURL
,
b
ool
*
pbExist
=
0
);
// checks if a file with the given URL exists
sal_B
ool
FileExists
(
const
OUString
&
rURL
);
b
ool
FileExists
(
const
OUString
&
rURL
);
OUString
GetDictionaryWriteablePath
();
...
...
@@ -142,14 +142,14 @@ LNG_DLLPUBLIC sal_Int32 GetPosInWordToCheck( const OUString &rTxt, sal_Int32 nPo
::
com
::
sun
::
star
::
linguistic2
::
XHyphenatedWord
>
&
rxHyphWord
);
LNG_DLLPUBLIC
sal_B
ool
IsUpper
(
const
OUString
&
rText
,
sal_Int32
nPos
,
sal_Int32
nLen
,
sal_Int16
nLanguage
);
LNG_DLLPUBLIC
b
ool
IsUpper
(
const
OUString
&
rText
,
sal_Int32
nPos
,
sal_Int32
nLen
,
sal_Int16
nLanguage
);
inline
sal_B
ool
IsUpper
(
const
OUString
&
rText
,
sal_Int16
nLanguage
)
{
return
IsUpper
(
rText
,
0
,
rText
.
getLength
(),
nLanguage
);
}
inline
b
ool
IsUpper
(
const
OUString
&
rText
,
sal_Int16
nLanguage
)
{
return
IsUpper
(
rText
,
0
,
rText
.
getLength
(),
nLanguage
);
}
LNG_DLLPUBLIC
CapType
SAL_CALL
capitalType
(
const
OUString
&
,
CharClass
*
);
OUString
ToLower
(
const
OUString
&
rText
,
sal_Int16
nLanguage
);
LNG_DLLPUBLIC
sal_B
ool
HasDigits
(
const
OUString
&
rText
);
LNG_DLLPUBLIC
sal_B
ool
IsNumeric
(
const
OUString
&
rText
);
LNG_DLLPUBLIC
b
ool
HasDigits
(
const
OUString
&
rText
);
LNG_DLLPUBLIC
b
ool
IsNumeric
(
const
OUString
&
rText
);
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
GetOneInstanceService
(
const
char
*
pServiceName
);
...
...
@@ -158,11 +158,11 @@ LNG_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::X
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XDictionary
>
GetIgnoreAllList
();
sal_B
ool
IsUseDicList
(
const
::
com
::
sun
::
star
::
beans
::
PropertyValues
&
rProperties
,
b
ool
IsUseDicList
(
const
::
com
::
sun
::
star
::
beans
::
PropertyValues
&
rProperties
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
&
rxPropSet
);
sal_B
ool
IsIgnoreControlChars
(
const
::
com
::
sun
::
star
::
beans
::
PropertyValues
&
rProperties
,
b
ool
IsIgnoreControlChars
(
const
::
com
::
sun
::
star
::
beans
::
PropertyValues
&
rProperties
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
&
rxPropSet
);
...
...
@@ -171,15 +171,15 @@ sal_Bool IsIgnoreControlChars( const ::com::sun::star::beans::PropertyValues &rP
SearchDicList
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XSearchableDictionaryList
>&
rDicList
,
const
OUString
&
rWord
,
sal_Int16
nLanguage
,
sal_Bool
bSearchPosDics
,
sal_B
ool
bSearchSpellEntry
);
bool
bSearchPosDics
,
b
ool
bSearchSpellEntry
);
LNG_DLLPUBLIC
sal_uInt8
AddEntryToDic
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XDictionary
>
&
rxDic
,
const
OUString
&
rWord
,
sal_B
ool
bIsNeg
,
const
OUString
&
rWord
,
b
ool
bIsNeg
,
const
OUString
&
rRplcTxt
,
sal_Int16
nRplcLang
,
sal_Bool
bStripDot
=
sal_T
rue
);
bool
bStripDot
=
t
rue
);
LNG_DLLPUBLIC
sal_B
ool
SaveDictionaries
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XSearchableDictionaryList
>
&
xDicList
);
LNG_DLLPUBLIC
b
ool
SaveDictionaries
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XSearchableDictionaryList
>
&
xDicList
);
// AppExitLstnr:
// virtual base class that calls it AtExit function when the application
...
...
include/linguistic/spelldta.hxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -42,7 +42,7 @@ namespace linguistic
MergeProposalSeqs
(
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
&
rAlt1
,
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
&
rAlt2
,
sal_B
ool
bAllowDuplicates
);
b
ool
bAllowDuplicates
);
void
SeqRemoveNegEntries
(
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
&
rSeq
,
...
...
@@ -50,7 +50,7 @@ void SeqRemoveNegEntries(
::
com
::
sun
::
star
::
linguistic2
::
XSearchableDictionaryList
>
&
rxDicList
,
sal_Int16
nLanguage
);
sal_B
ool
SeqHasEntry
(
b
ool
SeqHasEntry
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
&
rSeq
,
const
OUString
&
rTxt
);
...
...
linguistic/source/convdic.cxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -189,7 +189,7 @@ ConvDic::ConvDic(
if
(
!
rMainURL
.
isEmpty
()
)
{
sal_Bool
bExists
=
sal_F
alse
;
bool
bExists
=
f
alse
;
bIsReadonly
=
IsReadOnly
(
rMainURL
,
&
bExists
);
if
(
!
bExists
)
// new empty dictionary
...
...
linguistic/source/lngprophelp.cxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -114,8 +114,8 @@ void PropertyChgHelper::AddPropNames( const char *pNewNames[], sal_Int32 nCount
void
PropertyChgHelper
::
SetDefaultValues
()
{
bResIsIgnoreControlCharacters
=
bIsIgnoreControlCharacters
=
sal_T
rue
;
bResIsUseDictionaryList
=
bIsUseDictionaryList
=
sal_T
rue
;
bResIsIgnoreControlCharacters
=
bIsIgnoreControlCharacters
=
t
rue
;
bResIsUseDictionaryList
=
bIsUseDictionaryList
=
t
rue
;
}
...
...
@@ -127,7 +127,7 @@ void PropertyChgHelper::GetCurrentValues()
const
OUString
*
pPropName
=
GetPropNames
().
getConstArray
();
for
(
sal_Int32
i
=
0
;
i
<
nLen
;
++
i
)
{
sal_B
ool
*
pbVal
=
NULL
,
b
ool
*
pbVal
=
NULL
,
*
pbResVal
=
NULL
;
if
(
pPropName
[
i
]
==
UPN_IS_IGNORE_CONTROL_CHARACTERS
)
...
...
@@ -164,7 +164,7 @@ void PropertyChgHelper::SetTmpPropVals( const PropertyValues &rPropVals )
const
PropertyValue
*
pVal
=
rPropVals
.
getConstArray
();
for
(
sal_Int32
i
=
0
;
i
<
nLen
;
++
i
)
{
sal_B
ool
*
pbResVal
=
NULL
;
b
ool
*
pbResVal
=
NULL
;
switch
(
pVal
[
i
].
Handle
)
{
case
UPH_IS_IGNORE_CONTROL_CHARACTERS
:
...
...
@@ -181,18 +181,18 @@ void PropertyChgHelper::SetTmpPropVals( const PropertyValues &rPropVals )
}
sal_B
ool
PropertyChgHelper
::
propertyChange_Impl
(
const
PropertyChangeEvent
&
rEvt
)
b
ool
PropertyChgHelper
::
propertyChange_Impl
(
const
PropertyChangeEvent
&
rEvt
)
{
sal_Bool
bRes
=
sal_F
alse
;
bool
bRes
=
f
alse
;
if
(
GetPropSet
().
is
()
&&
rEvt
.
Source
==
GetPropSet
())
{
sal_Int16
nLngSvcFlags
=
(
nEvtFlags
&
AE_HYPHENATOR
)
?
LinguServiceEventFlags
::
HYPHENATE_AGAIN
:
0
;
sal_Bool
bSCWA
=
sal_F
alse
,
// SPELL_CORRECT_WORDS_AGAIN ?
bSWWA
=
sal_F
alse
;
// SPELL_WRONG_WORDS_AGAIN ?
bool
bSCWA
=
f
alse
,
// SPELL_CORRECT_WORDS_AGAIN ?
bSWWA
=
f
alse
;
// SPELL_WRONG_WORDS_AGAIN ?
sal_B
ool
*
pbVal
=
NULL
;
b
ool
*
pbVal
=
NULL
;
switch
(
rEvt
.
PropertyHandle
)
{
case
UPH_IS_IGNORE_CONTROL_CHARACTERS
:
...
...
@@ -204,12 +204,12 @@ sal_Bool PropertyChgHelper::propertyChange_Impl( const PropertyChangeEvent& rEvt
case
UPH_IS_USE_DICTIONARY_LIST
:
{
pbVal
=
&
bIsUseDictionaryList
;
bSCWA
=
bSWWA
=
sal_T
rue
;
bSCWA
=
bSWWA
=
t
rue
;
break
;
}
default
:
{
bRes
=
sal_F
alse
;
bRes
=
f
alse
;
}
}
if
(
pbVal
)
...
...
@@ -218,7 +218,7 @@ sal_Bool PropertyChgHelper::propertyChange_Impl( const PropertyChangeEvent& rEvt
bRes
=
0
!=
pbVal
;
// sth changed?
if
(
bRes
)
{
sal_Bool
bSpellEvts
=
(
nEvtFlags
&
AE_SPELLCHECKER
)
?
sal_True
:
sal_False
;
bool
bSpellEvts
=
(
nEvtFlags
&
AE_SPELLCHECKER
)
;
if
(
bSCWA
&&
bSpellEvts
)
nLngSvcFlags
|=
LinguServiceEventFlags
::
SPELL_CORRECT_WORDS_AGAIN
;
if
(
bSWWA
&&
bSpellEvts
)
...
...
@@ -390,9 +390,9 @@ void PropertyHelper_Spell::SetDefaultValues()
{
PropertyChgHelper
::
SetDefaultValues
();
bResIsSpellUpperCase
=
bIsSpellUpperCase
=
sal_F
alse
;
bResIsSpellWithDigits
=
bIsSpellWithDigits
=
sal_F
alse
;
bResIsSpellCapitalization
=
bIsSpellCapitalization
=
sal_T
rue
;
bResIsSpellUpperCase
=
bIsSpellUpperCase
=
f
alse
;
bResIsSpellWithDigits
=
bIsSpellWithDigits
=
f
alse
;
bResIsSpellCapitalization
=
bIsSpellCapitalization
=
t
rue
;
}
...
...
@@ -406,7 +406,7 @@ void PropertyHelper_Spell::GetCurrentValues()
const
OUString
*
pPropName
=
GetPropNames
().
getConstArray
();
for
(
sal_Int32
i
=
0
;
i
<
nLen
;
++
i
)
{
sal_B
ool
*
pbVal
=
NULL
,
b
ool
*
pbVal
=
NULL
,
*
pbResVal
=
NULL
;
if
(
pPropName
[
i
]
==
UPN_IS_SPELL_UPPER_CASE
)
...
...
@@ -435,36 +435,36 @@ void PropertyHelper_Spell::GetCurrentValues()
}
sal_B
ool
PropertyHelper_Spell
::
propertyChange_Impl
(
const
PropertyChangeEvent
&
rEvt
)
b
ool
PropertyHelper_Spell
::
propertyChange_Impl
(
const
PropertyChangeEvent
&
rEvt
)
{
sal_B
ool
bRes
=
PropertyChgHelper
::
propertyChange_Impl
(
rEvt
);
b
ool
bRes
=
PropertyChgHelper
::
propertyChange_Impl
(
rEvt
);
if
(
!
bRes
&&
GetPropSet
().
is
()
&&
rEvt
.
Source
==
GetPropSet
())
{
sal_Bool
bSCWA
=
sal_F
alse
,
// SPELL_CORRECT_WORDS_AGAIN ?
bSWWA
=
sal_F
alse
;
// SPELL_WRONG_WORDS_AGAIN ?
bool
bSCWA
=
f
alse
,
// SPELL_CORRECT_WORDS_AGAIN ?
bSWWA
=
f
alse
;
// SPELL_WRONG_WORDS_AGAIN ?
sal_B
ool
*
pbVal
=
NULL
;
b
ool
*
pbVal
=
NULL
;
switch
(
rEvt
.
PropertyHandle
)
{
case
UPH_IS_SPELL_UPPER_CASE
:
{
pbVal
=
&
bIsSpellUpperCase
;
bSCWA
=
sal_False
==
*
pbVal
;
// sal_False->sal_True change?
bSCWA
=
!
*
pbVal
;
// sal_False->sal_True change?
bSWWA
=
!
bSCWA
;
// sal_True->sal_False change?
break
;
}
case
UPH_IS_SPELL_WITH_DIGITS
:
{
pbVal
=
&
bIsSpellWithDigits
;
bSCWA
=
sal_False
==
*
pbVal
;
// sal_False->sal_True change?
bSCWA
=
!
*
pbVal
;
// sal_False->sal_True change?
bSWWA
=
!
bSCWA
;
// sal_True->sal_False change?
break
;
}
case
UPH_IS_SPELL_CAPITALIZATION
:
{
pbVal
=
&
bIsSpellCapitalization
;
bSCWA
=
sal_False
==
*
pbVal
;
// sal_False->sal_True change?
bSCWA
=
!
*
pbVal
;
// sal_False->sal_True change?
bSWWA
=
!
bSCWA
;
// sal_True->sal_False change?
break
;
}
...
...
@@ -526,7 +526,7 @@ void PropertyHelper_Spell::SetTmpPropVals( const PropertyValues &rPropVals )
}
else
{
sal_B
ool
*
pbResVal
=
NULL
;
b
ool
*
pbResVal
=
NULL
;
switch
(
pVal
[
i
].
Handle
)
{
case
UPH_IS_SPELL_UPPER_CASE
:
pbResVal
=
&
bResIsSpellUpperCase
;
break
;
...
...
@@ -621,9 +621,9 @@ void PropertyHelper_Hyphen::GetCurrentValues()
}
sal_B
ool
PropertyHelper_Hyphen
::
propertyChange_Impl
(
const
PropertyChangeEvent
&
rEvt
)
b
ool
PropertyHelper_Hyphen
::
propertyChange_Impl
(
const
PropertyChangeEvent
&
rEvt
)
{
sal_B
ool
bRes
=
PropertyChgHelper
::
propertyChange_Impl
(
rEvt
);
b
ool
bRes
=
PropertyChgHelper
::
propertyChange_Impl
(
rEvt
);
if
(
!
bRes
&&
GetPropSet
().
is
()
&&
rEvt
.
Source
==
GetPropSet
())
{
...
...
@@ -817,22 +817,22 @@ void PropertyHelper_Spelling::SetTmpPropVals( const com::sun::star::beans::Prope
pInst
->
SetTmpPropVals
(
rPropVals
);
}
sal_B
ool
PropertyHelper_Spelling
::
IsSpellUpperCase
()
const
b
ool
PropertyHelper_Spelling
::
IsSpellUpperCase
()
const
{
return
pInst
->
IsSpellUpperCase
();
}
sal_B
ool
PropertyHelper_Spelling
::
IsSpellWithDigits
()
const
b
ool
PropertyHelper_Spelling
::
IsSpellWithDigits
()
const
{
return
pInst
->
IsSpellWithDigits
();
}
sal_B
ool
PropertyHelper_Spelling
::
IsSpellCapitalization
()
const
b
ool
PropertyHelper_Spelling
::
IsSpellCapitalization
()
const
{
return
pInst
->
IsSpellCapitalization
();
}
sal_B
ool
PropertyHelper_Spelling
::
addLinguServiceEventListener
(
b
ool
PropertyHelper_Spelling
::
addLinguServiceEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XLinguServiceEventListener
>&
rxListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
...
...
@@ -840,7 +840,7 @@ sal_Bool PropertyHelper_Spelling::addLinguServiceEventListener(
return
pInst
->
addLinguServiceEventListener
(
rxListener
);
}
sal_B
ool
PropertyHelper_Spelling
::
removeLinguServiceEventListener
(
b
ool
PropertyHelper_Spelling
::
removeLinguServiceEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
linguistic2
::
XLinguServiceEventListener
>&
rxListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
...
...
linguistic/source/misc.cxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -203,10 +203,10 @@ sal_Int32 LevDistance( const OUString &rTxt1, const OUString &rTxt2 )
return
nDist
;
}
sal_B
ool
IsUseDicList
(
const
PropertyValues
&
rProperties
,
b
ool
IsUseDicList
(
const
PropertyValues
&
rProperties
,
const
uno
::
Reference
<
XPropertySet
>
&
rxProp
)
{
sal_Bool
bRes
=
sal_T
rue
;
bool
bRes
=
t
rue
;
sal_Int32
nLen
=
rProperties
.
getLength
();
const
PropertyValue
*
pVal
=
rProperties
.
getConstArray
();
...
...
@@ -230,10 +230,10 @@ sal_Bool IsUseDicList( const PropertyValues &rProperties,
return
bRes
;
}
sal_B
ool
IsIgnoreControlChars
(
const
PropertyValues
&
rProperties
,
b
ool
IsIgnoreControlChars
(
const
PropertyValues
&
rProperties
,
const
uno
::
Reference
<
XPropertySet
>
&
rxProp
)
{
sal_Bool
bRes
=
sal_T
rue
;
bool
bRes
=
t
rue
;
sal_Int32
nLen
=
rProperties
.
getLength
();
const
PropertyValue
*
pVal
=
rProperties
.
getConstArray
();
...
...
@@ -257,9 +257,9 @@ sal_Bool IsIgnoreControlChars( const PropertyValues &rProperties,
return
bRes
;
}
static
sal_B
ool
lcl_HasHyphInfo
(
const
uno
::
Reference
<
XDictionaryEntry
>
&
xEntry
)
static
b
ool
lcl_HasHyphInfo
(
const
uno
::
Reference
<
XDictionaryEntry
>
&
xEntry
)
{
sal_Bool
bRes
=
sal_F
alse
;
bool
bRes
=
f
alse
;
if
(
xEntry
.
is
())
{
// there has to be (at least one) '=' or '[' denoting a hyphenation position
...
...
@@ -275,7 +275,7 @@ static sal_Bool lcl_HasHyphInfo( const uno::Reference<XDictionaryEntry> &xEntry
uno
::
Reference
<
XDictionaryEntry
>
SearchDicList
(
const
uno
::
Reference
<
XSearchableDictionaryList
>
&
xDicList
,
const
OUString
&
rWord
,
sal_Int16
nLanguage
,
sal_Bool
bSearchPosDics
,
sal_B
ool
bSearchSpellEntry
)
bool
bSearchPosDics
,
b
ool
bSearchSpellEntry
)
{
MutexGuard
aGuard
(
GetLinguMutex
()
);
...
...
@@ -320,12 +320,12 @@ uno::Reference< XDictionaryEntry > SearchDicList(
return
xEntry
;
}
sal_B
ool
SaveDictionaries
(
const
uno
::
Reference
<
XSearchableDictionaryList
>
&
xDicList
)
b
ool
SaveDictionaries
(
const
uno
::
Reference
<
XSearchableDictionaryList
>
&
xDicList
)
{
if
(
!
xDicList
.
is
())
return
sal_T
rue
;
return
t
rue
;
sal_Bool
bRet
=
sal_T
rue
;
bool
bRet
=
t
rue
;
Sequence
<
uno
::
Reference
<
XDictionary
>
>
aDics
(
xDicList
->
getDictionaries
()
);
const
uno
::
Reference
<
XDictionary
>
*
pDic
=
aDics
.
getConstArray
();
...
...
@@ -343,7 +343,7 @@ sal_Bool SaveDictionaries( const uno::Reference< XSearchableDictionaryList > &xD
}
catch
(
uno
::
Exception
&
)
{
bRet
=
sal_F
alse
;
bRet
=
f
alse
;
}
}
...
...
@@ -352,9 +352,9 @@ sal_Bool SaveDictionaries( const uno::Reference< XSearchableDictionaryList > &xD
sal_uInt8
AddEntryToDic
(
uno
::
Reference
<
XDictionary
>
&
rxDic
,
const
OUString
&
rWord
,
sal_B
ool
bIsNeg
,
const
OUString
&
rWord
,
b
ool
bIsNeg
,
const
OUString
&
rRplcTxt
,
sal_Int16
/* nRplcLang */
,
sal_B
ool
bStripDot
)
b
ool
bStripDot
)
{
if
(
!
rxDic
.
is
())
return
DIC_ERR_NOT_EXISTS
;
...
...
@@ -370,7 +370,7 @@ sal_uInt8 AddEntryToDic(
aTmp
=
aTmp
.
copy
(
0
,
nLen
-
1
);
}
}
sal_B
ool
bAddOk
=
rxDic
->
add
(
aTmp
,
bIsNeg
,
rRplcTxt
);
b
ool
bAddOk
=
rxDic
->
add
(
aTmp
,
bIsNeg
,
rRplcTxt
);
sal_uInt8
nRes
=
DIC_ERR_NONE
;
if
(
!
bAddOk
)
...
...
@@ -406,10 +406,10 @@ uno::Sequence< sal_Int16 >
return
aLangs
;
}
sal_Bool
IsReadOnly
(
const
OUString
&
rURL
,
sal_B
ool
*
pbExist
)
bool
IsReadOnly
(
const
OUString
&
rURL
,
b
ool
*
pbExist
)
{
sal_Bool
bRes
=
sal_F
alse
;
sal_Bool
bExists
=
sal_F
alse
;
bool
bRes
=
f
alse
;
bool
bExists
=
f
alse
;
if
(
!
rURL
.
isEmpty
())
{
...
...
@@ -427,7 +427,7 @@ sal_Bool IsReadOnly( const OUString &rURL, sal_Bool *pbExist )
}
catch
(
Exception
&
)
{
bRes
=
sal_T
rue
;
bRes
=
t
rue
;
}
}
...
...
@@ -436,10 +436,10 @@ sal_Bool IsReadOnly( const OUString &rURL, sal_Bool *pbExist )
return
bRes
;
}
static
sal_B
ool
GetAltSpelling
(
sal_Int16
&
rnChgPos
,
sal_Int16
&
rnChgLen
,
OUString
&
rRplc
,
static
b
ool
GetAltSpelling
(
sal_Int16
&
rnChgPos
,
sal_Int16
&
rnChgLen
,
OUString
&
rRplc
,
uno
::
Reference
<
XHyphenatedWord
>
&
rxHyphWord
)
{
sal_B
ool
bRes
=
rxHyphWord
->
isAlternativeSpelling
();
b
ool
bRes
=
rxHyphWord
->
isAlternativeSpelling
();
if
(
bRes
)
{
OUString
aWord
(
rxHyphWord
->
getWord
()
),
...
...
@@ -495,7 +495,7 @@ static sal_Int16 GetOrigWordPos( const OUString &rOrigWord, sal_Int16 nPos )
while
(
nPos
>=
0
&&
i
++
<
nLen
)
{
sal_Unicode
cChar
=
rOrigWord
[
i
];
sal_B
ool
bSkip
=
IsHyphen
(
cChar
)
||
IsControlChar
(
cChar
);
b
ool
bSkip
=
IsHyphen
(
cChar
)
||
IsControlChar
(
cChar
);
if
(
!
bSkip
)
--
nPos
;
}
...
...
@@ -512,7 +512,7 @@ sal_Int32 GetPosInWordToCheck( const OUString &rTxt, sal_Int32 nPos )
for
(
sal_Int32
i
=
0
;
i
<
nPos
;
++
i
)
{
sal_Unicode
cChar
=
rTxt
[
i
];
sal_B
ool
bSkip
=
IsHyphen
(
cChar
)
||
IsControlChar
(
cChar
);
b
ool
bSkip
=
IsHyphen
(
cChar
)
||
IsControlChar
(
cChar
);
if
(
!
bSkip
)
++
nRes
;
}
...
...
@@ -530,7 +530,7 @@ uno::Reference< XHyphenatedWord > RebuildHyphensAndControlChars(
sal_Int16
nChgPos
=
0
,
nChgLen
=
0
;
OUString
aRplc
;
sal_B
ool
bAltSpelling
=
GetAltSpelling
(
nChgPos
,
nChgLen
,
aRplc
,
rxHyphWord
);
b
ool
bAltSpelling
=
GetAltSpelling
(
nChgPos
,
nChgLen
,
aRplc
,
rxHyphWord
);
#if OSL_DEBUG_LEVEL > 1
OUString
aWord
(
rxHyphWord
->
getWord
()
);
#endif
...
...
@@ -597,7 +597,7 @@ osl::Mutex & lcl_GetCharClassMutex()
return
aMutex
;
}
sal_B
ool
IsUpper
(
const
OUString
&
rText
,
sal_Int32
nPos
,
sal_Int32
nLen
,
sal_Int16
nLanguage
)
b
ool
IsUpper
(
const
OUString
&
rText
,
sal_Int32
nPos
,
sal_Int32
nLen
,
sal_Int16
nLanguage
)
{
MutexGuard
aGuard
(
lcl_GetCharClassMutex
()
);
...
...
@@ -682,7 +682,7 @@ static const sal_uInt32 the_aDigitZeroes [] =
0x0001D7CE
//1D7FF ; Decimal # Nd [50] MATHEMATICAL BOLD DIGIT ZERO..MATHEMATICAL MONOSPACE DIGIT NINE
};
sal_B
ool
HasDigits
(
const
OUString
&
rText
)
b
ool
HasDigits
(
const
OUString
&
rText
)
{
static
const
int
nNumDigitZeroes
=
sizeof
(
the_aDigitZeroes
)
/
sizeof
(
the_aDigitZeroes
[
0
]);
const
sal_Int32
nLen
=
rText
.
getLength
();
...
...
@@ -697,25 +697,25 @@ sal_Bool HasDigits( const OUString &rText )
if
(
nDigitZero
>
nCodePoint
)
break
;
if
(
/*nDigitZero <= nCodePoint &&*/
nCodePoint
<=
nDigitZero
+
9
)
return
sal_T
rue
;
return
t
rue
;
}
}
return
sal_F
alse
;
return
f
alse
;
}
sal_B
ool
IsNumeric
(
const
OUString
&
rText
)
b
ool
IsNumeric
(
const
OUString
&
rText
)
{
sal_Bool
bRes
=
sal_F
alse
;
bool
bRes
=
f
alse
;
if
(
!
rText
.
isEmpty
())
{
sal_Int32
nLen
=
rText
.
getLength
();
bRes
=
sal_T
rue
;
bRes
=
t
rue
;
for
(
sal_Int32
i
=
0
;
i
<
nLen
;
++
i
)
{
sal_Unicode
cChar
=
rText
[
i
];
if
(
!
((
sal_Unicode
)
'0'
<=
cChar
&&
cChar
<=
(
sal_Unicode
)
'9'
)
)
{
bRes
=
sal_F
alse
;
bRes
=
f
alse
;
break
;
}
}
...
...
linguistic/source/misc2.cxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -40,9 +40,9 @@ namespace linguistic
{
sal_B
ool
FileExists
(
const
OUString
&
rMainURL
)
b
ool
FileExists
(
const
OUString
&
rMainURL
)
{
sal_Bool
bExists
=
sal_F
alse
;
bool
bExists
=
f
alse
;
if
(
!
rMainURL
.
isEmpty
())
{
try
...
...
linguistic/source/spelldsp.cxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -262,13 +262,13 @@ static Reference< XDictionaryEntry > lcl_GetRulingDictionaryEntry(
{
Reference
<
XSearchableDictionaryList
>
xDList
(
GetDictionaryList
()
);
Reference
<
XDictionaryEntry
>
xNegEntry
(
SearchDicList
(
xDList
,
rWord
,
nLanguage
,
sal_False
,
sal_T
rue
)
);
rWord
,
nLanguage
,
false
,
t
rue
)
);
if
(
xNegEntry
.
is
())
xRes
=
xNegEntry
;
else
{
Reference
<
XDictionaryEntry
>
xPosEntry
(
SearchDicList
(
xDList
,
rWord
,
nLanguage
,
sal_True
,
sal_T
rue
)
);
rWord
,
nLanguage
,
true
,
t
rue
)
);
if
(
xPosEntry
.
is
())
xRes
=
xPosEntry
;
}
...
...
@@ -660,7 +660,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
// replacement text must not be in negative dictionary itself
if
(
!
aAddRplcTxt
.
isEmpty
()
&&
!
SearchDicList
(
xDList
,
aAddRplcTxt
,
nLanguage
,
sal_False
,
sal_T
rue
).
is
())
!
SearchDicList
(
xDList
,
aAddRplcTxt
,
nLanguage
,
false
,
t
rue
).
is
())
{
aProposalList
.
Prepend
(
aAddRplcTxt
);
}
...
...
linguistic/source/spelldta.cxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -44,17 +44,17 @@ namespace linguistic
#define MAX_PROPOSALS 40
sal_B
ool
SeqHasEntry
(
b
ool
SeqHasEntry
(
const
Sequence
<
OUString
>
&
rSeq
,
const
OUString
&
rTxt
)
{
sal_Bool
bRes
=
sal_F
alse
;
bool
bRes
=
f
alse
;
sal_Int32
nLen
=
rSeq
.
getLength
();
const
OUString
*
pEntry
=
rSeq
.
getConstArray
();
for
(
sal_Int32
i
=
0
;
i
<
nLen
&&
!
bRes
;
++
i
)
{
if
(
rTxt
==
pEntry
[
i
])
bRes
=
sal_T
rue
;
bRes
=
t
rue
;
}
return
bRes
;
}
...
...
@@ -117,7 +117,7 @@ void SeqRemoveNegEntries( Sequence< OUString > &rSeq,
for
(
sal_Int32
i
=
0
;
i
<
nLen
;
++
i
)
{
Reference
<
XDictionaryEntry
>
xNegEntry
(
SearchDicList
(
rxDicList
,
pEntries
[
i
],
nLanguage
,
sal_False
,
sal_T
rue
)
);
pEntries
[
i
],
nLanguage
,
false
,
t
rue
)
);
if
(
xNegEntry
.
is
())
{
pEntries
[
i
]
=
aEmpty
;
...
...
@@ -128,7 +128,7 @@ void SeqRemoveNegEntries( Sequence< OUString > &rSeq,
{
Sequence
<
OUString
>
aNew
;
// merge sequence without duplicates and empty strings in new empty sequence
aNew
=
MergeProposalSeqs
(
aNew
,
rSeq
,
sal_F
alse
);
aNew
=
MergeProposalSeqs
(
aNew
,
rSeq
,
f
alse
);
rSeq
=
aNew
;
}
}
...
...
@@ -137,7 +137,7 @@ void SeqRemoveNegEntries( Sequence< OUString > &rSeq,
Sequence
<
OUString
>
MergeProposalSeqs
(
Sequence
<
OUString
>
&
rAlt1
,
Sequence
<
OUString
>
&
rAlt2
,
sal_B
ool
bAllowDuplicates
)
b
ool
bAllowDuplicates
)
{
Sequence
<
OUString
>
aMerged
;
...
...
sw/source/core/uibase/lingu/olmenu.cxx
Dosyayı görüntüle @
cb66ea36
...
...
@@ -754,7 +754,7 @@ void SwSpellPopup::Execute( sal_uInt16 nId )
}
}
else
{
linguistic
::
AddEntryToDic
(
xDictionary
,
m_xSpellAlt
->
getWord
(),
sal_F
alse
,
OUString
(),
LANGUAGE_NONE
);
m_xSpellAlt
->
getWord
(),
f
alse
,
OUString
(),
LANGUAGE_NONE
);
}
}
else
if
((
MN_DICTIONARIES_START
<=
nId
&&
nId
<=
MN_DICTIONARIES_END
)
||
nId
==
MN_ADD_TO_DIC_SINGLE
)
...
...
@@ -777,7 +777,7 @@ void SwSpellPopup::Execute( sal_uInt16 nId )
if
(
xDic
.
is
())
{
sal_Int16
nAddRes
=
linguistic
::
AddEntryToDic
(
xDic
,
aWord
,
sal_F
alse
,
OUString
(),
LANGUAGE_NONE
);
sal_Int16
nAddRes
=
linguistic
::
AddEntryToDic
(
xDic
,
aWord
,
f
alse
,
OUString
(),
LANGUAGE_NONE
);
// save modified user-dictionary if it is persistent
uno
::
Reference
<
frame
::
XStorable
>
xSavDic
(
xDic
,
uno
::
UNO_QUERY
);
if
(
xSavDic
.
is
())
...
...
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