Kaydet (Commit) 58a404ca authored tarafından Rafael Dominguez's avatar Rafael Dominguez

Inherit from TemplateAbstractClass instead of ThumbnailView.

Change-Id: If48b413fc4a409fbbce7a0b8c7de99c6b9ce91ad
üst 4cfb62a8
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
#include <set> #include <set>
#include <sfx2/templateabstractview.hxx>
#include <sfx2/templateproperties.hxx> #include <sfx2/templateproperties.hxx>
#include <sfx2/thumbnailview.hxx>
class SfxDocumentTemplates; class SfxDocumentTemplates;
class TemplateFolderViewItem; class TemplateFolderViewItem;
...@@ -28,7 +28,7 @@ enum FILTER_APPLICATION ...@@ -28,7 +28,7 @@ enum FILTER_APPLICATION
FILTER_APP_DRAW FILTER_APP_DRAW
}; };
class SFX2_DLLPUBLIC TemplateFolderView : public ThumbnailView class SFX2_DLLPUBLIC TemplateFolderView : public TemplateAbstractView
{ {
public: public:
......
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
#ifndef __SFX2_TEMPLATEONLINEVIEW_HXX__ #ifndef __SFX2_TEMPLATEONLINEVIEW_HXX__
#define __SFX2_TEMPLATEONLINEVIEW_HXX__ #define __SFX2_TEMPLATEONLINEVIEW_HXX__
#include <sfx2/thumbnailview.hxx> #include <sfx2/templateabstractview.hxx>
#include <com/sun/star/ucb/XCommandEnvironment.hpp> #include <com/sun/star/ucb/XCommandEnvironment.hpp>
class TemplateView; class TemplateView;
class TemplateOnlineView : public ThumbnailView class TemplateOnlineView : public TemplateAbstractView
{ {
public: public:
......
...@@ -270,7 +270,7 @@ private: ...@@ -270,7 +270,7 @@ private:
}; };
TemplateFolderView::TemplateFolderView ( Window* pParent, const ResId& rResId, bool bDisableTransientChildren) TemplateFolderView::TemplateFolderView ( Window* pParent, const ResId& rResId, bool bDisableTransientChildren)
: ThumbnailView(pParent,rResId,bDisableTransientChildren), : TemplateAbstractView(pParent,rResId,bDisableTransientChildren),
mbFilteredResults(false), mbFilteredResults(false),
meFilterOption(FILTER_APP_NONE), meFilterOption(FILTER_APP_NONE),
mpDocTemplates(new SfxDocumentTemplates), mpDocTemplates(new SfxDocumentTemplates),
......
...@@ -47,7 +47,7 @@ enum ...@@ -47,7 +47,7 @@ enum
}; };
TemplateOnlineView::TemplateOnlineView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren) TemplateOnlineView::TemplateOnlineView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren)
: ThumbnailView(pParent,nWinStyle,bDisableTransientChildren), : TemplateAbstractView(pParent,nWinStyle,bDisableTransientChildren),
mpItemView(new TemplateView(this,NULL)) mpItemView(new TemplateView(this,NULL))
{ {
mpItemView->SetColor(Color(COL_WHITE)); mpItemView->SetColor(Color(COL_WHITE));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment