summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2013-05-07 13:53:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-06-19 10:10:05 +0100
commit5c346ec8521b0f137273e5055fc19eee37a20169 (patch)
tree4b28c5d79c78ddcf8509ca04224996df80740567 /include
parent0b9bf62d3ddfe3fd1ed9ec4cc8eddf23793ee932 (diff)
Resolves: #i122231# Buffered content for gallery themes
better graphical preparation (currently BMP_SCALE_BESTQUALITY, but can be changed in a single place now if wanted) (cherry picked from commit d32f1d358dcd2574d8ae6cd19da01b7311ef5926) Conflicts: svx/inc/svx/galtheme.hxx svx/source/gallery2/galctrl.cxx svx/source/gallery2/galtheme.cxx Change-Id: I80879ca472c784f764126676046c1388e1167652
Diffstat (limited to 'include')
-rw-r--r--include/svx/galtheme.hxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/svx/galtheme.hxx b/include/svx/galtheme.hxx
index 8eccc86c5927..25f939a8085f 100644
--- a/include/svx/galtheme.hxx
+++ b/include/svx/galtheme.hxx
@@ -45,7 +45,13 @@ struct GalleryObject
INetURLObject aURL;
sal_uInt32 nOffset;
SgaObjKind eObjKind;
- sal_Bool bDummy;
+ bool mbDelete;
+
+ //UI visualization buffering
+ BitmapEx maPreviewBitmapEx;
+ Size maPreparedSize;
+ String maTitle;
+ String maPath;
};
typedef ::std::vector< GalleryObject* > GalleryObjectList;
@@ -219,6 +225,10 @@ public:
SvStream& WriteData( SvStream& rOut ) const;
SvStream& ReadData( SvStream& rIn );
static SVX_DLLPUBLIC void InsertAllThemes( ListBox& rListBox );
+
+ // for buffering PreviewBitmaps and strings for object and path
+ void GetPreviewBitmapExAndStrings(sal_uIntPtr nPos, BitmapEx& rBitmapEx, Size& rSize, String& rTitle, String& rPath) const;
+ void SetPreviewBitmapExAndStrings(sal_uIntPtr nPos, const BitmapEx& rBitmapEx, const Size& rSize, const String& rTitle, const String& rPath);
};
SvStream& operator<<( SvStream& rOut, const GalleryTheme& rTheme );