editeng: sal_Bool->bool

Change-Id: Ie2c8bf805461d61de2dfa2658160fd612959932c
This commit is contained in:
Noel Grandin
2014-02-21 11:57:56 +02:00
parent 63a4219e69
commit db0222881b
5 changed files with 6 additions and 6 deletions

View File

@@ -1787,7 +1787,7 @@ void ImpEditEngine::ImpBreakLine( ParaPortion* pParaPortion, EditLine* pLine, Te
i18n::LineBreakHyphenationOptions aHyphOptions( xHyph, Sequence< PropertyValue >(), 1 ); i18n::LineBreakHyphenationOptions aHyphOptions( xHyph, Sequence< PropertyValue >(), 1 );
i18n::LineBreakUserOptions aUserOptions; i18n::LineBreakUserOptions aUserOptions;
const i18n::ForbiddenCharacters* pForbidden = GetForbiddenCharsTable()->GetForbiddenCharacters( LanguageTag::convertToLanguageType( aLocale ), sal_True ); const i18n::ForbiddenCharacters* pForbidden = GetForbiddenCharsTable()->GetForbiddenCharacters( LanguageTag::convertToLanguageType( aLocale ), true );
aUserOptions.forbiddenBeginCharacters = pForbidden->beginLine; aUserOptions.forbiddenBeginCharacters = pForbidden->beginLine;
aUserOptions.forbiddenEndCharacters = pForbidden->endLine; aUserOptions.forbiddenEndCharacters = pForbidden->endLine;
aUserOptions.applyForbiddenRules = ((const SfxBoolItem&)pNode->GetContentAttribs().GetItem( EE_PARA_FORBIDDENRULES )).GetValue(); aUserOptions.applyForbiddenRules = ((const SfxBoolItem&)pNode->GetContentAttribs().GetItem( EE_PARA_FORBIDDENRULES )).GetValue();

View File

@@ -30,7 +30,7 @@ SvxForbiddenCharactersTable::SvxForbiddenCharactersTable( const ::com::sun::star
m_xContext = rxContext; m_xContext = rxContext;
} }
const com::sun::star::i18n::ForbiddenCharacters* SvxForbiddenCharactersTable::GetForbiddenCharacters( sal_uInt16 nLanguage, sal_Bool bGetDefault ) const com::sun::star::i18n::ForbiddenCharacters* SvxForbiddenCharactersTable::GetForbiddenCharacters( sal_uInt16 nLanguage, bool bGetDefault )
{ {
com::sun::star::i18n::ForbiddenCharacters* pForbiddenCharacters = NULL; com::sun::star::i18n::ForbiddenCharacters* pForbiddenCharacters = NULL;
Map::iterator it = maMap.find( nLanguage ); Map::iterator it = maMap.find( nLanguage );

View File

@@ -53,7 +53,7 @@ ForbiddenCharacters SvxUnoForbiddenCharsTable::getForbiddenCharacters( const Loc
throw RuntimeException(); throw RuntimeException();
const LanguageType eLang = LanguageTag::convertToLanguageType( rLocale ); const LanguageType eLang = LanguageTag::convertToLanguageType( rLocale );
const ForbiddenCharacters* pForbidden = mxForbiddenChars->GetForbiddenCharacters( eLang, sal_False ); const ForbiddenCharacters* pForbidden = mxForbiddenChars->GetForbiddenCharacters( eLang, false );
if(!pForbidden) if(!pForbidden)
throw NoSuchElementException(); throw NoSuchElementException();
@@ -69,7 +69,7 @@ sal_Bool SvxUnoForbiddenCharsTable::hasForbiddenCharacters( const Locale& rLocal
return sal_False; return sal_False;
const LanguageType eLang = LanguageTag::convertToLanguageType( rLocale ); const LanguageType eLang = LanguageTag::convertToLanguageType( rLocale );
const ForbiddenCharacters* pForbidden = mxForbiddenChars->GetForbiddenCharacters( eLang, sal_False ); const ForbiddenCharacters* pForbidden = mxForbiddenChars->GetForbiddenCharacters( eLang, false );
return NULL != pForbidden; return NULL != pForbidden;
} }

View File

@@ -46,7 +46,7 @@ public:
~SvxForbiddenCharactersTable() {} ~SvxForbiddenCharactersTable() {}
Map& GetMap() { return maMap; } Map& GetMap() { return maMap; }
const com::sun::star::i18n::ForbiddenCharacters* GetForbiddenCharacters( sal_uInt16 nLanguage, sal_Bool bGetDefault ); const com::sun::star::i18n::ForbiddenCharacters* GetForbiddenCharacters( sal_uInt16 nLanguage, bool bGetDefault );
void SetForbiddenCharacters( sal_uInt16 nLanguage , const com::sun::star::i18n::ForbiddenCharacters& ); void SetForbiddenCharacters( sal_uInt16 nLanguage , const com::sun::star::i18n::ForbiddenCharacters& );
void ClearForbiddenCharacters( sal_uInt16 nLanguage ); void ClearForbiddenCharacters( sal_uInt16 nLanguage );
}; };

View File

@@ -410,7 +410,7 @@ const i18n::ForbiddenCharacters*
{ {
const i18n::ForbiddenCharacters* pRet = 0; const i18n::ForbiddenCharacters* pRet = 0;
if( mxForbiddenCharsTable.is() ) if( mxForbiddenCharsTable.is() )
pRet = mxForbiddenCharsTable->GetForbiddenCharacters( nLang, sal_False ); pRet = mxForbiddenCharsTable->GetForbiddenCharacters( nLang, false );
if( bLocaleData && !pRet && g_pBreakIt ) if( bLocaleData && !pRet && g_pBreakIt )
pRet = &g_pBreakIt->GetForbidden( (LanguageType)nLang ); pRet = &g_pBreakIt->GetForbidden( (LanguageType)nLang );
return pRet; return pRet;