"using namespace com::sun::star" -> css in header file

See Stephan Bergmann's comment the following change (thanks!):
https://gerrit.libreoffice.org/c/core/+/143598

Change-Id: I409b823439979c64cadcb582d8fb4dec4ff412b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143664
Tested-by: Jenkins
Reviewed-by: Kevin Suo <suokunlong@126.com>
This commit is contained in:
Kevin Suo
2022-12-06 03:42:27 +00:00
parent c08e5db055
commit c9e961e680
2 changed files with 3 additions and 5 deletions
@@ -32,8 +32,6 @@
#include <list>
using namespace com::sun::star;
namespace pdfi
{
class XmlEmitter;
@@ -313,7 +311,7 @@ namespace pdfi
{ return std::make_shared<DocumentElement>(); }
};
bool isComplex(const uno::Reference<i18n::XBreakIterator>& rBreakIterator, TextElement* const pTextElem);
bool isComplex(const css::uno::Reference<css::i18n::XBreakIterator>& rBreakIterator, TextElement* const pTextElem);
}
#endif
@@ -431,12 +431,12 @@ void DocumentElement::visitedBy( ElementTreeVisitor& rV
rVisitor.visit(*this, rParentIt);
}
bool isComplex(const uno::Reference<i18n::XBreakIterator>& rBreakIterator, TextElement* const pTextElem) {
bool isComplex(const css::uno::Reference<css::i18n::XBreakIterator>& rBreakIterator, TextElement* const pTextElem) {
OUString str(pTextElem->Text.toString());
for(int i=0; i< str.getLength(); i++)
{
sal_Int16 nType = rBreakIterator->getScriptType(str, i);
if (nType == i18n::ScriptType::COMPLEX)
if (nType == css::i18n::ScriptType::COMPLEX)
{
return true;
}