diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-14 18:16:22 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-15 08:15:21 -0430 |
commit | 4cfb62a8a1e128f32a19d06d46cbd5eda124e9b8 (patch) | |
tree | 0b804370a274ecd4865ff2015f0c46e08fcdefe0 /sfx2 | |
parent | 65fa0fbb7e3d47afacf95e61e68548f5d50bf8a2 (diff) |
Create abstract class for template repositories.
Change-Id: Ie92c2241c468522439bccd7d9c18a2dbf9c27c38
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/Library_sfx.mk | 1 | ||||
-rw-r--r-- | sfx2/Package_inc.mk | 1 | ||||
-rw-r--r-- | sfx2/inc/sfx2/templateabstractview.hxx | 28 | ||||
-rw-r--r-- | sfx2/source/control/templateabstractview.cxx | 26 |
4 files changed, 56 insertions, 0 deletions
diff --git a/sfx2/Library_sfx.mk b/sfx2/Library_sfx.mk index 26ac64c42286..a7689dcdf314 100644 --- a/sfx2/Library_sfx.mk +++ b/sfx2/Library_sfx.mk @@ -133,6 +133,7 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\ sfx2/source/control/shell \ sfx2/source/control/sorgitm \ sfx2/source/control/statcach \ + sfx2/source/control/templateabstractview \ sfx2/source/control/templateview \ sfx2/source/control/templateviewitem \ sfx2/source/control/templatefolderview \ diff --git a/sfx2/Package_inc.mk b/sfx2/Package_inc.mk index 9c0cb5b12b97..c3bfff6b5e58 100644 --- a/sfx2/Package_inc.mk +++ b/sfx2/Package_inc.mk @@ -118,6 +118,7 @@ $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/taskpane.hxx,sfx2/taskpane.h $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/tbxctrl.hxx,sfx2/tbxctrl.hxx)) $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templdlg.hxx,sfx2/templdlg.hxx)) $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templatelocnames.hrc,sfx2/templatelocnames.hrc)) +$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templateabstractview.hxx,sfx2/templateabstractview.hxx)) $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templateview.hxx,sfx2/templateview.hxx)) $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templatefolderview.hxx,sfx2/templatefolderview.hxx)) $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templatefolderviewitem.hxx,sfx2/templatefolderviewitem.hxx)) diff --git a/sfx2/inc/sfx2/templateabstractview.hxx b/sfx2/inc/sfx2/templateabstractview.hxx new file mode 100644 index 000000000000..1985cd320f0a --- /dev/null +++ b/sfx2/inc/sfx2/templateabstractview.hxx @@ -0,0 +1,28 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef __SFX2_TEMPLATEABSTRACTVIEW_HXX__ +#define __SFX2_TEMPLATEABSTRACTVIEW_HXX__ + +#include <sfx2/thumbnailview.hxx> + +class SFX2_DLLPUBLIC TemplateAbstractView : public ThumbnailView +{ +public: + + TemplateAbstractView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren); + + TemplateAbstractView ( Window* pParent, const ResId& rResId, bool bDisableTransientChildren = false ); + + virtual ~TemplateAbstractView (); +}; + +#endif // __SFX2_TEMPLATEABSTRACTVIEW_HXX__ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/control/templateabstractview.cxx b/sfx2/source/control/templateabstractview.cxx new file mode 100644 index 000000000000..5fda14f9a4bc --- /dev/null +++ b/sfx2/source/control/templateabstractview.cxx @@ -0,0 +1,26 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include <sfx2/templateabstractview.hxx> + +TemplateAbstractView::TemplateAbstractView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren) + : ThumbnailView(pParent,nWinStyle,bDisableTransientChildren) +{ +} + +TemplateAbstractView::TemplateAbstractView(Window *pParent, const ResId &rResId, bool bDisableTransientChildren) + : ThumbnailView(pParent,rResId,bDisableTransientChildren) +{ +} + +TemplateAbstractView::~TemplateAbstractView () +{ +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |