diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-31 14:35:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-01 07:38:08 +0200 |
commit | cb66ea3604ea441ddd03df706bb30e6063fb9a52 (patch) | |
tree | 6bda45549881a9456da3141f832f63378d7b4b35 /include/linguistic | |
parent | 95d7ebd22dd20da5a7a26000494b553944fc23ee (diff) |
linguistic: sal_Bool->bool
Change-Id: Ie2366b25a1f81a5b25142e8b9a727bcc2f585c14
Diffstat (limited to 'include/linguistic')
-rw-r--r-- | include/linguistic/hyphdta.hxx | 8 | ||||
-rw-r--r-- | include/linguistic/lngprophelp.hxx | 48 | ||||
-rw-r--r-- | include/linguistic/misc.hxx | 24 | ||||
-rw-r--r-- | include/linguistic/spelldta.hxx | 4 |
4 files changed, 42 insertions, 42 deletions
diff --git a/include/linguistic/hyphdta.hxx b/include/linguistic/hyphdta.hxx index 71aece26b929..820a3e3d421c 100644 --- a/include/linguistic/hyphdta.hxx +++ b/include/linguistic/hyphdta.hxx @@ -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 &); diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx index 05e8d9d87e76..e0fb2aac1a87 100644 --- a/include/linguistic/lngprophelp.hxx +++ b/include/linguistic/lngprophelp.hxx @@ -68,12 +68,12 @@ class PropertyChgHelper : int nEvtFlags; // flags for event types allowed to be launched // default values - sal_Bool bIsIgnoreControlCharacters; - sal_Bool bIsUseDictionaryList; + bool bIsIgnoreControlCharacters; + bool bIsUseDictionaryList; // return values, will be set to default value or current temporary value - sal_Bool bResIsIgnoreControlCharacters; - sal_Bool bResIsUseDictionaryList; + bool bResIsIgnoreControlCharacters; + bool bResIsUseDictionaryList; // disallow use of copy-constructor and assignment-operator @@ -92,7 +92,7 @@ protected: void AddPropNames( const char *pNewNames[], sal_Int32 nCount ); - virtual sal_Bool propertyChange_Impl( + virtual bool 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_Bool IsIgnoreControlCharacters() const { return bResIsIgnoreControlCharacters; } - sal_Bool IsUseDictionaryList() const { return bResIsUseDictionaryList; } + bool IsIgnoreControlCharacters() const { return bResIsIgnoreControlCharacters; } + bool 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_Bool propertyChange_Impl( + virtual bool 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_Bool IsSpellUpperCase() const; - sal_Bool IsSpellWithDigits() const; - sal_Bool IsSpellCapitalization() const; - sal_Bool addLinguServiceEventListener( + void SetTmpPropVals( const com::sun::star::beans::PropertyValues &rPropVals ); + bool IsSpellUpperCase() const; + bool IsSpellWithDigits() const; + bool IsSpellCapitalization() const; + bool addLinguServiceEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XLinguServiceEventListener >& rxListener ) throw(::com::sun::star::uno::RuntimeException); - sal_Bool removeLinguServiceEventListener( + bool 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_Bool propertyChange_Impl( + virtual bool propertyChange_Impl( const ::com::sun::star::beans::PropertyChangeEvent& rEvt ) SAL_OVERRIDE; public: diff --git a/include/linguistic/misc.hxx b/include/linguistic/misc.hxx index 277d298d1c4d..84f4360a62ab 100644 --- a/include/linguistic/misc.hxx +++ b/include/linguistic/misc.hxx @@ -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_Bool *pbExist = 0 ); +bool IsReadOnly( const OUString &rURL, bool *pbExist = 0 ); // checks if a file with the given URL exists -sal_Bool FileExists( const OUString &rURL ); +bool 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_Bool IsUpper( const OUString &rText, sal_Int32 nPos, sal_Int32 nLen, sal_Int16 nLanguage ); +LNG_DLLPUBLIC bool IsUpper( const OUString &rText, sal_Int32 nPos, sal_Int32 nLen, sal_Int16 nLanguage ); -inline sal_Bool IsUpper( const OUString &rText, sal_Int16 nLanguage ) { return IsUpper( rText, 0, rText.getLength(), nLanguage ); } +inline bool 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_Bool HasDigits( const OUString &rText ); -LNG_DLLPUBLIC sal_Bool IsNumeric( const OUString &rText ); +LNG_DLLPUBLIC bool HasDigits( const OUString &rText ); +LNG_DLLPUBLIC bool 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_Bool IsUseDicList( const ::com::sun::star::beans::PropertyValues &rProperties, +bool IsUseDicList( const ::com::sun::star::beans::PropertyValues &rProperties, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > &rxPropSet ); -sal_Bool IsIgnoreControlChars( const ::com::sun::star::beans::PropertyValues &rProperties, +bool 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_Bool bSearchSpellEntry ); + bool bSearchPosDics, bool bSearchSpellEntry ); LNG_DLLPUBLIC sal_uInt8 AddEntryToDic( ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XDictionary > &rxDic, - const OUString &rWord, sal_Bool bIsNeg, + const OUString &rWord, bool bIsNeg, const OUString &rRplcTxt, sal_Int16 nRplcLang, - sal_Bool bStripDot = sal_True ); + bool bStripDot = true ); -LNG_DLLPUBLIC sal_Bool SaveDictionaries( const ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSearchableDictionaryList > &xDicList ); +LNG_DLLPUBLIC bool 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 diff --git a/include/linguistic/spelldta.hxx b/include/linguistic/spelldta.hxx index 3aa5d1e18793..9bdfe8334516 100644 --- a/include/linguistic/spelldta.hxx +++ b/include/linguistic/spelldta.hxx @@ -42,7 +42,7 @@ namespace linguistic MergeProposalSeqs( ::com::sun::star::uno::Sequence< OUString > &rAlt1, ::com::sun::star::uno::Sequence< OUString > &rAlt2, - sal_Bool bAllowDuplicates ); + bool 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_Bool SeqHasEntry( +bool SeqHasEntry( const ::com::sun::star::uno::Sequence< OUString > &rSeq, const OUString &rTxt); |