summaryrefslogtreecommitdiff
path: root/sw/qa/extras/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-02-06 17:54:01 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-02-06 18:38:07 +0100
commit62b63d9f4b99713d10021c068005f74694299302 (patch)
treec51207624d2409e6878082ac59ec892b0648b63c /sw/qa/extras/inc
parent89420ff310d2877c1f77eaafea2daaca0068669d (diff)
DOCX export: write wp14:sizeRelH and wp14:sizeRelV for Writer TextFrames
Change-Id: I16ee2682b6fa8c7b194e442d6dbe1437e7743c60
Diffstat (limited to 'sw/qa/extras/inc')
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index d6f7134aaf0d..7a6f9512bf73 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -408,6 +408,15 @@ protected:
return xShape;
}
+ /// Get TextFrame by name
+ uno::Reference<drawing::XShape> getTextFrameByName(OUString aName)
+ {
+ uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(mxComponent, uno::UNO_QUERY);
+ uno::Reference<container::XNameAccess> xNameAccess(xTextFramesSupplier->getTextFrames(), uno::UNO_QUERY);
+ uno::Reference<drawing::XShape> xShape(xNameAccess->getByName(aName), uno::UNO_QUERY);
+ return xShape;
+ }
+
void header()
{
std::cout << "File tested,Execution Time (ms)" << std::endl;