"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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user