summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-07-14 16:56:37 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-07-15 08:15:20 -0430
commit6876faeee8d8ecf66ef33bfe1f436117a71753e8 (patch)
tree9cf8a368d129c7725729cdae9a823ab12539cb94 /sfx2
parent836822522a2e9f009c0870cbbcd48d45bbd3c622 (diff)
Set online overlay dimensions the same as parent and set bg as white.
Change-Id: I40e84c1c10369a48544ccc1fcc9bb1821c8b3e23
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/sfx2/templateonlineview.hxx1
-rw-r--r--sfx2/source/control/templateonlineview.cxx8
2 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/inc/sfx2/templateonlineview.hxx b/sfx2/inc/sfx2/templateonlineview.hxx
index 69b44251fbea..a71e465ee38d 100644
--- a/sfx2/inc/sfx2/templateonlineview.hxx
+++ b/sfx2/inc/sfx2/templateonlineview.hxx
@@ -36,7 +36,6 @@ private:
private:
TemplateView *mpItemView;
-
com::sun::star::uno::Sequence< rtl::OUString > maUrls;
com::sun::star::uno::Sequence< rtl::OUString > maNames;
com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xCmdEnv;
diff --git a/sfx2/source/control/templateonlineview.cxx b/sfx2/source/control/templateonlineview.cxx
index fb46bc0616e3..2f336e465636 100644
--- a/sfx2/source/control/templateonlineview.cxx
+++ b/sfx2/source/control/templateonlineview.cxx
@@ -13,15 +13,21 @@
#include <officecfg/Office/Common.hxx>
#include <sfx2/templateonlineviewitem.hxx>
#include <sfx2/templateview.hxx>
+#include <sfx2/templateviewitem.hxx>
#include <ucbhelper/content.hxx>
#include <ucbhelper/commandenvironment.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/task/XInteractionHandler.hpp>
+#include <com/sun/star/sdbc/XResultSet.hpp>
+#include <com/sun/star/sdbc/XRow.hpp>
+#include <com/sun/star/ucb/XContentAccess.hpp>
+#include <com/sun/star/ucb/XDynamicResultSet.hpp>
using namespace com::sun::star;
using namespace com::sun::star::lang;
using namespace com::sun::star::task;
+using namespace com::sun::star::sdbc;
using namespace com::sun::star::ucb;
using namespace com::sun::star::uno;
@@ -29,7 +35,7 @@ TemplateOnlineView::TemplateOnlineView (Window *pParent, WinBits nWinStyle, bool
: ThumbnailView(pParent,nWinStyle,bDisableTransientChildren),
mpItemView(new TemplateView(this,NULL))
{
- mpItemView->SetPosPixel(Point(0,0));
+ mpItemView->SetColor(Color(COL_WHITE));
Reference< XMultiServiceFactory > xFactory = comphelper::getProcessServiceFactory();
Reference< XInteractionHandler > xGlobalInteractionHandler = Reference< XInteractionHandler >(