diff options
author | Andreas Martens <ama@openoffice.org> | 2000-11-30 10:38:54 +0000 |
---|---|---|
committer | Andreas Martens <ama@openoffice.org> | 2000-11-30 10:38:54 +0000 |
commit | ab1424a5a09c6be3152ba65884749a5c6ccb5303 (patch) | |
tree | 736b02c2b29d1622f9fbc5cc6aba3c52fa0e1b94 | |
parent | b2cfbcab5e04301c0468569bf0c92b632ee7e77a (diff) |
Opt: Using the locale cache of pBreakIt
-rw-r--r-- | sw/source/core/text/inftxt.cxx | 9 | ||||
-rw-r--r-- | sw/source/core/text/txthyph.cxx | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index 8900bb944f60..c02238981946 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: inftxt.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: os $ $Date: 2000-11-29 17:25:38 $ + * last change: $Author: ama $ $Date: 2000-11-30 11:37:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -93,6 +93,9 @@ #ifndef _UNO_LINGU_HXX #include <svx/unolingu.hxx> #endif +#ifndef _BREAKIT_HXX +#include <breakit.hxx> +#endif #ifndef _SVX_FORBIDDENRULEITEM_HXX #include <svx/forbiddenruleitem.hxx> #endif @@ -868,7 +871,7 @@ sal_Bool SwTxtFormatInfo::IsHyphenate() const if (bInterHyph && xHyph.is()) SvxSpellWrapper::CheckHyphLang( xHyph, eTmp ); - if( !xHyph.is() || !xHyph->hasLocale( SvxCreateLocale(eTmp) ) ) + if( !xHyph.is() || !xHyph->hasLocale( pBreakIt->GetLocale(eTmp) ) ) return sal_False; return sal_True; } diff --git a/sw/source/core/text/txthyph.cxx b/sw/source/core/text/txthyph.cxx index 0968ddd2eb4e..0d1d13e0d1bf 100644 --- a/sw/source/core/text/txthyph.cxx +++ b/sw/source/core/text/txthyph.cxx @@ -2,9 +2,9 @@ * * $RCSfile: txthyph.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: jp $ $Date: 2000-11-20 16:27:07 $ + * last change: $Author: ama $ $Date: 2000-11-30 11:38:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -571,7 +571,7 @@ sal_Bool SwTxtPortion::IsHyphenate( SwTxtFormatInfo &rInf, SwTxtGuess &rGuess ) //! subtract 1 since the UNO-interface is 0 based Reference< XHyphenatedWord > xHW = xHyph->queryAlternativeSpelling( OUString(aTxt), - SvxCreateLocale( rInf.GetFont()->GetLanguage() ), + pBreakIt->GetLocale( rInf.GetFont()->GetLanguage() ), nHyphenationPos, Sequence< PropertyValue >() ); if (xHW.is() && xHW->isAlternativeSpelling()) |