diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-17 22:06:18 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-18 09:30:15 +0100 |
commit | 0bb7f12f53b46e105ab3e8fcb281f3cc9466753f (patch) | |
tree | a0deccbc19b5baede33a957903347579c4d5ace7 /sfx2 | |
parent | 9ab9436aa84a6a7c4cc23b517be7025664595dfe (diff) |
sfx2: rename TemplateRemoteViewItem to TemplateRepository
Change-Id: I7a7479f0264f38aa0193d50acfe58b20ff57d8d0
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/templateremoteview.hxx | 4 | ||||
-rw-r--r-- | sfx2/inc/sfx2/templaterepository.hxx | 6 | ||||
-rw-r--r-- | sfx2/inc/templatedlg.hxx | 6 | ||||
-rw-r--r-- | sfx2/source/control/templateremoteview.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 8 |
5 files changed, 14 insertions, 14 deletions
diff --git a/sfx2/inc/sfx2/templateremoteview.hxx b/sfx2/inc/sfx2/templateremoteview.hxx index e8076f641a00..ad9546392172 100644 --- a/sfx2/inc/sfx2/templateremoteview.hxx +++ b/sfx2/inc/sfx2/templateremoteview.hxx @@ -15,7 +15,7 @@ #include <com/sun/star/ucb/XCommandEnvironment.hpp> -class TemplateRemoteViewItem; +class TemplateRepository; class TemplateRemoteView : public TemplateAbstractView { @@ -29,7 +29,7 @@ public: virtual void showOverlay (bool bVisible); - bool loadRepository (TemplateRemoteViewItem* pRepository, bool bRefresh); + bool loadRepository (TemplateRepository* pRepository, bool bRefresh); private: diff --git a/sfx2/inc/sfx2/templaterepository.hxx b/sfx2/inc/sfx2/templaterepository.hxx index 56f6f7525e58..0c7725c26067 100644 --- a/sfx2/inc/sfx2/templaterepository.hxx +++ b/sfx2/inc/sfx2/templaterepository.hxx @@ -12,13 +12,13 @@ #include <sfx2/templateproperties.hxx> -class TemplateRemoteViewItem +class TemplateRepository { public: - TemplateRemoteViewItem () : mnId(0) { }; + TemplateRepository () : mnId(0) { }; - virtual ~TemplateRemoteViewItem () { }; + virtual ~TemplateRepository () { }; void setURL (const rtl::OUString &rURL) { maUrl = rURL; } diff --git a/sfx2/inc/templatedlg.hxx b/sfx2/inc/templatedlg.hxx index 73c420a88706..44a665312dce 100644 --- a/sfx2/inc/templatedlg.hxx +++ b/sfx2/inc/templatedlg.hxx @@ -22,7 +22,7 @@ class SfxTemplateInfoDlg; class TemplateAbstractView; class TemplateLocalView; class TemplateRemoteView; -class TemplateRemoteViewItem; +class TemplateRepository; class TemplateSearchView; class ThumbnailView; class ThumbnailViewItem; @@ -113,7 +113,7 @@ private: // Remote repositories handling methods void loadRepositories (); - const std::vector<TemplateRemoteViewItem*>& getRepositories () const { return maRepositories; } + const std::vector<TemplateRepository*>& getRepositories () const { return maRepositories; } bool insertRepository (const OUString &rName, const OUString &rURL); @@ -146,7 +146,7 @@ private: com::sun::star::uno::Reference< com::sun::star::frame::XComponentLoader > mxDesktop; bool mbIsSynced; ///< Tells whether maRepositories is synchronized with the user config - std::vector<TemplateRemoteViewItem*> maRepositories; ///< Stores the remote repositories for templates + std::vector<TemplateRepository*> maRepositories; ///< Stores the remote repositories for templates }; #endif // TEMPLATEDLG_HXX diff --git a/sfx2/source/control/templateremoteview.cxx b/sfx2/source/control/templateremoteview.cxx index 9faf682c5d7d..ac00a0a811df 100644 --- a/sfx2/source/control/templateremoteview.cxx +++ b/sfx2/source/control/templateremoteview.cxx @@ -77,7 +77,7 @@ void TemplateRemoteView::showOverlay (bool bVisible) } } -bool TemplateRemoteView::loadRepository (TemplateRemoteViewItem* pItem, bool bRefresh) +bool TemplateRemoteView::loadRepository (TemplateRepository* pItem, bool bRefresh) { if (!pItem) return false; @@ -92,7 +92,7 @@ bool TemplateRemoteView::loadRepository (TemplateRemoteViewItem* pItem, bool bRe mpItemView->setId(pItem->mnId); mpItemView->setName(pItem->maTitle); - OUString aURL = static_cast<TemplateRemoteViewItem*>(pItem)->getURL(); + OUString aURL = pItem->getURL(); try { diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index eb2842621d02..e400d2757003 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -625,7 +625,7 @@ IMPL_LINK(SfxTemplateManagerDlg, RepositoryMenuSelectHdl, Menu*, pMenu) { sal_uInt16 nRepoId = nMenuId - MNI_REPOSITORY_BASE; - TemplateRemoteViewItem *pRepository = NULL; + TemplateRepository *pRepository = NULL; for (size_t i = 0, n = maRepositories.size(); i < n; ++i) { @@ -1211,7 +1211,7 @@ void SfxTemplateManagerDlg::createRepositoryMenu() mpRepositoryMenu->InsertItem(MNI_REPOSITORY_LOCAL,SfxResId(STR_REPOSITORY_LOCAL).toString()); - const std::vector<TemplateRemoteViewItem*> &rRepos = getRepositories(); + const std::vector<TemplateRepository*> &rRepos = getRepositories(); for (size_t i = 0, n = rRepos.size(); i < n; ++i) mpRepositoryMenu->InsertItem(MNI_REPOSITORY_BASE+rRepos[i]->mnId,rRepos[i]->maTitle); @@ -1449,7 +1449,7 @@ void SfxTemplateManagerDlg::loadRepositories() for (sal_Int32 i = 0; i < aUrls.getLength() && i < aNames.getLength(); ++i) { - TemplateRemoteViewItem *pItem = new TemplateRemoteViewItem(); + TemplateRepository *pItem = new TemplateRepository(); pItem->mnId = i+1; pItem->maTitle = aNames[i]; @@ -1467,7 +1467,7 @@ bool SfxTemplateManagerDlg::insertRepository(const OUString &rName, const OUStri return false; } - TemplateRemoteViewItem *pItem = new TemplateRemoteViewItem(); + TemplateRepository *pItem = new TemplateRepository(); pItem->mnId = maRepositories.size()+1; pItem->maTitle = rName; |