summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/inc
diff options
context:
space:
mode:
authorKevin Suo <suokunlong@126.com>2022-12-02 22:53:27 +0800
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-12-04 14:54:34 +0000
commit842e3b988aca27d7c9f71ce1efc6653271cc3430 (patch)
tree7cedec29ec2a5d6422422f58204f2f28af8a7290 /sdext/source/pdfimport/inc
parent23abfa53368b1fdad054db0c902a645b411ee736 (diff)
tdf#152083 related: make the isComplex check block as a separate function
This is used to check whether a TextElement is rtl. We will need this in WriterXmlOptimizer::optimizeTextElements() as well, in a separate commit. Change-Id: Iee2ff5990450421153bb7c5afe9526c555f2d0ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143598 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source/pdfimport/inc')
-rw-r--r--sdext/source/pdfimport/inc/genericelements.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/inc/genericelements.hxx b/sdext/source/pdfimport/inc/genericelements.hxx
index 1fec2e6f4042..37b448d2b613 100644
--- a/sdext/source/pdfimport/inc/genericelements.hxx
+++ b/sdext/source/pdfimport/inc/genericelements.hxx
@@ -25,12 +25,15 @@
#include <com/sun/star/task/XStatusIndicator.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
+#include <com/sun/star/i18n/BreakIterator.hpp>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
#include <list>
+using namespace com::sun::star;
+
namespace pdfi
{
class XmlEmitter;
@@ -309,6 +312,8 @@ namespace pdfi
static std::shared_ptr<DocumentElement> createDocumentElement()
{ return std::make_shared<DocumentElement>(); }
};
+
+ bool isComplex(const uno::Reference<i18n::XBreakIterator>& rBreakIterator, TextElement* const pTextElem);
}
#endif