summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-06-24 12:08:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-24 17:47:28 +0200
commit0e498d7862e07b9f665b796e1386737f1bdb9b29 (patch)
treea095886d9964e33ee64321e2f815c810369f02ab /include
parent322b1250117f86cf7280caae751478ffefd02e3a (diff)
Move DumpAsPropertyTree code to cxx file
Change-Id: Ib450c860aa11f0e8be933de4c6e216ca9c0d0b5a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97018 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/layout.hxx21
1 files changed, 1 insertions, 20 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx
index 1081415fc4cf..9caa0c86a0e4 100644
--- a/include/vcl/layout.hxx
+++ b/include/vcl/layout.hxx
@@ -807,26 +807,7 @@ public:
m_xTransferHelper = rHelper;
m_nDragAction = eDNDConstants;
}
- boost::property_tree::ptree DumpAsPropertyTree() override
- {
- boost::property_tree::ptree aTree(Control::DumpAsPropertyTree());
- aTree.put("type", "drawingarea");
- ScopedVclPtrInstance<VirtualDevice> pDevice;
- pDevice->SetOutputSize( GetSizePixel() );
- tools::Rectangle aRect(Point(0,0), GetSizePixel());
- Paint(*pDevice, aRect);
- BitmapEx aImage = pDevice->GetBitmapEx( Point(0,0), GetSizePixel() );
- SvMemoryStream aOStm(65535, 65535);
-
- if(GraphicConverter::Export(aOStm, aImage, ConvertDataFormat::PNG) == ERRCODE_NONE)
- {
- css::uno::Sequence<sal_Int8> aSeq( static_cast<sal_Int8 const *>(aOStm.GetData()), aOStm.Tell());
- OUStringBuffer aBuffer("data:image/png;base64,");
- ::comphelper::Base64::encode(aBuffer, aSeq);
- aTree.put("image", aBuffer.makeStringAndClear());
- }
- return aTree;
- }
+ boost::property_tree::ptree DumpAsPropertyTree() override;
};
//Get first window of a pTopLevel window as