summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-07-14 11:06:50 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-07-15 08:15:18 -0430
commite81b42750c47ccda313792f6a33ce8283470106e (patch)
treeb3a5b3fc88496d8d6967db5ee164adf00c982ae9 /sfx2
parent02cf240b0823f9337295cc6a72280ed83d37777a (diff)
Store item url in TemplateOnlineViewItem.
Change-Id: Icc825963591fbdee4e75fc9865333d5ea52d6301
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/sfx2/templateonlineviewitem.hxx8
-rw-r--r--sfx2/source/control/templateonlineview.cxx1
2 files changed, 9 insertions, 0 deletions
diff --git a/sfx2/inc/sfx2/templateonlineviewitem.hxx b/sfx2/inc/sfx2/templateonlineviewitem.hxx
index aa5cdec7ca58..1d9f9cd50abc 100644
--- a/sfx2/inc/sfx2/templateonlineviewitem.hxx
+++ b/sfx2/inc/sfx2/templateonlineviewitem.hxx
@@ -19,6 +19,14 @@ public:
TemplateOnlineViewItem (ThumbnailView &rView, Window *pParent);
virtual ~TemplateOnlineViewItem ();
+
+ void setURL (const rtl::OUString &rURL) { maUrl = rURL; }
+
+ const rtl::OUString& getURL () const { return maUrl; }
+
+private:
+
+ rtl::OUString maUrl;
};
#endif // __SFX2_TEMPLATEONLINEVIEWITEM_HXX__
diff --git a/sfx2/source/control/templateonlineview.cxx b/sfx2/source/control/templateonlineview.cxx
index 8ccc56b387b0..bb6c5d847a42 100644
--- a/sfx2/source/control/templateonlineview.cxx
+++ b/sfx2/source/control/templateonlineview.cxx
@@ -52,6 +52,7 @@ void TemplateOnlineView::Populate()
pItem->mnId = i+1;
pItem->maTitle = maNames[i];
+ pItem->setURL(maUrls[i]);
mItemList.push_back(pItem);
}