diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-06-25 22:00:01 +0530 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-06-27 07:42:22 +0000 |
commit | 77725bf4df6e9cf63469c1d7f8888ea339575b5e (patch) | |
tree | 99211e832e06313a8446cba31d7a6552d0d07a38 /include/sfx2 | |
parent | e7ca62bbd485c5f450e720c8102db2ab9561429f (diff) |
GSoC: Remove TemplateRemoteView from Template Manager
Conflicts:
include/sfx2/templatedlg.hxx
sfx2/source/doc/templatedlg.cxx
Change-Id: Ia0623707e452c79346d92b5a5ab75a4063928c20
Reviewed-on: https://gerrit.libreoffice.org/26658
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/templatedlg.hxx | 21 | ||||
-rw-r--r-- | include/sfx2/templateremoteview.hxx | 42 | ||||
-rw-r--r-- | include/sfx2/templaterepository.hxx | 46 |
3 files changed, 0 insertions, 109 deletions
diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx index 5e3bce04c336..765c959c153b 100644 --- a/include/sfx2/templatedlg.hxx +++ b/include/sfx2/templatedlg.hxx @@ -25,8 +25,6 @@ class Edit; class PopupMenu; class TemplateAbstractView; class TemplateLocalView; -class TemplateRemoteView; -class TemplateRepository; class TemplateSearchView; class ThumbnailView; class ThumbnailViewItem; @@ -77,7 +75,6 @@ protected: DECL_LINK_TYPED(TVItemStateHdl, const ThumbnailViewItem*, void); DECL_LINK_TYPED(MenuSelectHdl, Menu*, bool); - DECL_LINK_TYPED(RepositoryMenuSelectHdl, Menu*, bool); DECL_LINK_TYPED(DefaultTemplateMenuSelectHdl, Menu*, bool); DECL_LINK_TYPED(OpenRegionHdl, void*, void); @@ -101,8 +98,6 @@ protected: void OnCategoryRename(); void OnCategoryDelete(); - void createRepositoryMenu (); - void createDefaultTemplateMenu (); // Exchange view between local/online view. @@ -116,8 +111,6 @@ protected: void localMoveTo (sal_uInt16 nMenuId); - void remoteMoveTo (const sal_uInt16 nMenuId); - /** * * Move search result templates stored in the filesystem to another folder. @@ -126,15 +119,6 @@ protected: void localSearchMoveTo (sal_uInt16 nMenuId); - // Remote repositories handling methods - void loadRepositories (); - - const std::vector<TemplateRepository*>& getRepositories () const { return maRepositories; } - - bool insertRepository (const OUString &rName, const OUString &rURL); - - void syncRepositories () const; - /// Return filter according to the currently selected application filter. FILTER_APPLICATION getCurrentApplicationFilter(); @@ -152,19 +136,14 @@ protected: VclPtr<CheckBox> mpCBXHideDlg; VclPtr<ToolBox> mpActionBar; VclPtr<TemplateSearchView> mpSearchView; - VclPtr<TemplateAbstractView> mpCurView; VclPtr<TemplateLocalView> mpLocalView; - VclPtr<TemplateRemoteView> mpRemoteView; VclPtr<PopupMenu> mpActionMenu; - VclPtr<PopupMenu> mpRepositoryMenu; VclPtr<PopupMenu> mpTemplateDefaultMenu; std::set<const ThumbnailViewItem*,selection_cmp_fn> maSelTemplates; css::uno::Reference< css::frame::XModel > m_xModel; css::uno::Reference< css::frame::XDesktop2 > mxDesktop; - - std::vector<TemplateRepository*> maRepositories; ///< Stores the remote repositories for templates }; // class SfxTemplateCategoryDialog ------------------------------------------------------------------- diff --git a/include/sfx2/templateremoteview.hxx b/include/sfx2/templateremoteview.hxx deleted file mode 100644 index 067ef0ad7f64..000000000000 --- a/include/sfx2/templateremoteview.hxx +++ /dev/null @@ -1,42 +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 INCLUDED_SFX2_TEMPLATEREMOTEVIEW_HXX -#define INCLUDED_SFX2_TEMPLATEREMOTEVIEW_HXX - -#include <sfx2/templateabstractview.hxx> -#include <sfx2/templateproperties.hxx> - -#include <com/sun/star/ucb/XCommandEnvironment.hpp> - -class TemplateRepository; - -class TemplateRemoteView : public TemplateAbstractView -{ -public: - - TemplateRemoteView (vcl::Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren); - - virtual void showAllTemplates () override; - - virtual void showRegion (TemplateContainerItem *pItem) override; - - bool loadRepository (TemplateRepository* pRepository); - - virtual sal_uInt16 createRegion (const OUString &rName) override; - -private: - - css::uno::Reference< css::ucb::XCommandEnvironment > m_xCmdEnv; -}; - -#endif // INCLUDED_SFX2_TEMPLATEREMOTEVIEW_HXX - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/templaterepository.hxx b/include/sfx2/templaterepository.hxx deleted file mode 100644 index ac502f5d1eb8..000000000000 --- a/include/sfx2/templaterepository.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 INCLUDED_SFX2_TEMPLATEREPOSITORY_HXX -#define INCLUDED_SFX2_TEMPLATEREPOSITORY_HXX - -#include <sfx2/templateproperties.hxx> - -class TemplateRepository -{ -public: - - TemplateRepository () : mnId(0) { }; - - virtual ~TemplateRepository () { }; - - void setURL (const OUString &rURL) { maUrl = rURL; } - - const OUString& getURL () const { return maUrl; } - - void insertTemplate (const TemplateItemProperties &prop) { maTemplates.push_back(prop); } - - void clearTemplates () { maTemplates.clear(); } - - const std::vector<TemplateItemProperties>& getTemplates () const { return maTemplates; } - -public: - - sal_uInt16 mnId; - OUString maTitle; - -private: - - OUString maUrl; - std::vector<TemplateItemProperties> maTemplates; -}; - -#endif // INCLUDED_SFX2_TEMPLATEREPOSITORY_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |