diff options
author | Rishabh Kumar <kris.kr296@gmail.com> | 2016-06-16 15:54:53 +0530 |
---|---|---|
committer | Rishabh Kumar <kris.kr296@yahoo.in> | 2016-06-16 17:46:22 +0000 |
commit | d9aa7006c0880bc16adb8de140b46cd47a7c8248 (patch) | |
tree | 12de5ca8d71b14947b668b8ee7d9811597735272 /svx | |
parent | 5bf3ae663a2189e37959235cda8c6a4051e10a1a (diff) |
[GSoC] Member function to identify Pattern
Change-Id: I72ca21204248bfe279445f01ab247f19ec958fb1
Reviewed-on: https://gerrit.libreoffice.org/26361
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Rishabh Kumar <kris.kr296@yahoo.in>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/xoutdev/xattrbmp.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx index 3e8dbf75ab6b..1d7572ea9d64 100644 --- a/svx/source/xoutdev/xattrbmp.cxx +++ b/svx/source/xoutdev/xattrbmp.cxx @@ -357,6 +357,12 @@ void XFillBitmapItem::SetGraphicObject(const GraphicObject& rGraphicObject) maGraphicObject = rGraphicObject; } +bool XFillBitmapItem::isPattern() const +{ + BitmapColor aBack, aFront; + return isHistorical8x8(GetGraphicObject().GetGraphic().GetBitmap(), aBack, aFront); +} + sal_uInt16 XFillBitmapItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const { return 2; |