From 5667dbd3e36869a08a93e7d18e610764b210caa6 Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Mon, 17 Dec 2012 21:53:25 +0100 Subject: sfx2: renamed templateremoteviewitem.hxx to templaterepository.hxx Change-Id: I5fb96df9ae95b42eb4e2485068488e8c81929563 --- sfx2/Package_inc.mk | 2 +- sfx2/inc/sfx2/templateremoteviewitem.hxx | 46 ------------------------------ sfx2/inc/sfx2/templaterepository.hxx | 46 ++++++++++++++++++++++++++++++ sfx2/source/control/templateremoteview.cxx | 2 +- sfx2/source/doc/templatedlg.cxx | 2 +- 5 files changed, 49 insertions(+), 49 deletions(-) delete mode 100644 sfx2/inc/sfx2/templateremoteviewitem.hxx create mode 100644 sfx2/inc/sfx2/templaterepository.hxx (limited to 'sfx2') diff --git a/sfx2/Package_inc.mk b/sfx2/Package_inc.mk index 3292506364fb..39aafac66153 100644 --- a/sfx2/Package_inc.mk +++ b/sfx2/Package_inc.mk @@ -125,7 +125,7 @@ $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templateview.hxx,sfx2/templa $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templatelocalview.hxx,sfx2/templatelocalview.hxx)) $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templatelocalviewitem.hxx,sfx2/templatelocalviewitem.hxx)) $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templateremoteview.hxx,sfx2/templateremoteview.hxx)) -$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templateremoteviewitem.hxx,sfx2/templateremoteviewitem.hxx)) +$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templaterepository.hxx,sfx2/templaterepository.hxx)) $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/thumbnailview.hxx,sfx2/thumbnailview.hxx)) $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/thumbnailviewitem.hxx,sfx2/thumbnailviewitem.hxx)) $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/titledockwin.hxx,sfx2/titledockwin.hxx)) diff --git a/sfx2/inc/sfx2/templateremoteviewitem.hxx b/sfx2/inc/sfx2/templateremoteviewitem.hxx deleted file mode 100644 index 83d47bc1f9de..000000000000 --- a/sfx2/inc/sfx2/templateremoteviewitem.hxx +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- 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_TEMPLATEREMOTEVIEWITEM_HXX__ -#define __SFX2_TEMPLATEREMOTEVIEWITEM_HXX__ - -#include - -class TemplateRemoteViewItem -{ -public: - - TemplateRemoteViewItem () : mnId(0) { }; - - virtual ~TemplateRemoteViewItem () { }; - - void setURL (const rtl::OUString &rURL) { maUrl = rURL; } - - const rtl::OUString& getURL () const { return maUrl; } - - void insertTemplate (const TemplateItemProperties &prop) { maTemplates.push_back(prop); } - - void clearTemplates () { maTemplates.clear(); } - - const std::vector& getTemplates () const { return maTemplates; } - -public: - - sal_uInt16 mnId; - rtl::OUString maTitle; - -private: - - rtl::OUString maUrl; - std::vector maTemplates; -}; - -#endif // __SFX2_TEMPLATEREMOTEVIEWITEM_HXX__ - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/inc/sfx2/templaterepository.hxx b/sfx2/inc/sfx2/templaterepository.hxx new file mode 100644 index 000000000000..56f6f7525e58 --- /dev/null +++ b/sfx2/inc/sfx2/templaterepository.hxx @@ -0,0 +1,46 @@ +/* -*- 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_TEMPLATEREPOSITORY_HXX__ +#define __SFX2_TEMPLATEREPOSITORY_HXX__ + +#include + +class TemplateRemoteViewItem +{ +public: + + TemplateRemoteViewItem () : mnId(0) { }; + + virtual ~TemplateRemoteViewItem () { }; + + void setURL (const rtl::OUString &rURL) { maUrl = rURL; } + + const rtl::OUString& getURL () const { return maUrl; } + + void insertTemplate (const TemplateItemProperties &prop) { maTemplates.push_back(prop); } + + void clearTemplates () { maTemplates.clear(); } + + const std::vector& getTemplates () const { return maTemplates; } + +public: + + sal_uInt16 mnId; + rtl::OUString maTitle; + +private: + + rtl::OUString maUrl; + std::vector maTemplates; +}; + +#endif // __SFX2_TEMPLATEREPOSITORY_HXX__ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/control/templateremoteview.cxx b/sfx2/source/control/templateremoteview.cxx index 9e84c3feb9a0..9faf682c5d7d 100644 --- a/sfx2/source/control/templateremoteview.cxx +++ b/sfx2/source/control/templateremoteview.cxx @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 1e1ebd7ee68c..eb2842621d02 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include -- cgit