diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-08-27 16:44:12 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-08-27 18:26:39 +0200 |
commit | d9f1c11dfa5a1c8ea579f4a2085c8c8b0e3a31aa (patch) | |
tree | 06e6a636052fb4d3abd3f2faa055425b63dcbfdf /sw/qa/extras/README | |
parent | c2f6428e32227c6f53e618c65a7df3648487df49 (diff) |
Reduce copy&paste by adding SwModelTestBase::getShape()
Change-Id: I3b73405c546427bb5676db30e297af36c18043e6
Diffstat (limited to 'sw/qa/extras/README')
-rw-r--r-- | sw/qa/extras/README | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/qa/extras/README b/sw/qa/extras/README index 09a9b6dfad3f..e933843f852b 100644 --- a/sw/qa/extras/README +++ b/sw/qa/extras/README @@ -216,11 +216,7 @@ graphic = image.Graphic C++: -uno::Reference<text::XTextDocument> textDocument(mxComponent, uno::UNO_QUERY); -uno::Reference<drawing::XDrawPageSupplier> drawPageSupplier(textDocument, uno::UNO_QUERY); -uno::Reference<drawing::XDrawPage> drawPage = drawPageSupplier->getDrawPage(); -uno::Reference<drawing::XShape> image; -drawPage->getByIndex(0) >>= image; +uno::Reference<drawing::XShape> image = getShape(1); uno::Reference<graphic::XGraphic> graphic = getProperty< uno::Reference< graphic::XGraphic > >( image, "Graphic" ); |