summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-08-21 18:00:39 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-08-23 21:44:05 -0430
commit9c94045bd2802a3f7e8c286b4082a55fe43a666d (patch)
tree5211a34f8ab9207b1fb8a0ee8348af514fbb71dc /sfx2
parent33b1750f4ae8a9bc26f29440726c24f551041d94 (diff)
Rename class from TemplateOnlineView to TemplateRemoteView.
Change-Id: I3d1cc00274c4f758cb4e8e6a09cea9cb63b0a733
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/Library_sfx.mk6
-rw-r--r--sfx2/Package_inc.mk4
-rw-r--r--sfx2/inc/sfx2/templateremoteview.hxx (renamed from sfx2/inc/sfx2/templateonlineview.hxx)18
-rw-r--r--sfx2/inc/sfx2/templateremoteviewitem.hxx (renamed from sfx2/inc/sfx2/templateonlineviewitem.hxx)12
-rw-r--r--sfx2/inc/templatedlg.hxx4
-rw-r--r--sfx2/source/control/templateremoteview.cxx (renamed from sfx2/source/control/templateonlineview.cxx)38
-rw-r--r--sfx2/source/control/templateremoteviewitem.cxx (renamed from sfx2/source/control/templateonlineviewitem.cxx)6
-rw-r--r--sfx2/source/doc/templatedlg.cxx8
8 files changed, 48 insertions, 48 deletions
diff --git a/sfx2/Library_sfx.mk b/sfx2/Library_sfx.mk
index 5bc8903b2196..3ed3a02ce483 100644
--- a/sfx2/Library_sfx.mk
+++ b/sfx2/Library_sfx.mk
@@ -138,8 +138,8 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\
sfx2/source/control/templateviewitem \
sfx2/source/control/templatelocalview \
sfx2/source/control/templatelocalviewitem \
- sfx2/source/control/templateonlineview \
- sfx2/source/control/templateonlineviewitem \
+ sfx2/source/control/templateremoteview \
+ sfx2/source/control/templateremoteviewitem \
sfx2/source/control/templatesearchview \
sfx2/source/control/thumbnailviewitem \
sfx2/source/control/thumbnailviewacc \
@@ -303,6 +303,6 @@ endif
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sfx)) :| \
- $(call gb_AllLangResTarget_get_target,sfx)
+ $(call gb_AllLangResTarget_get_target,sfx)
# vim: set noet sw=4 ts=4:
diff --git a/sfx2/Package_inc.mk b/sfx2/Package_inc.mk
index 31f190dcf2ce..4156354412aa 100644
--- a/sfx2/Package_inc.mk
+++ b/sfx2/Package_inc.mk
@@ -123,8 +123,8 @@ $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templateinfodlg.hxx,sfx2/tem
$(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/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/templateonlineview.hxx,sfx2/templateonlineview.hxx))
-$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templateonlineviewitem.hxx,sfx2/templateonlineviewitem.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/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/templateonlineview.hxx b/sfx2/inc/sfx2/templateremoteview.hxx
index d64f94762ebe..bbea147415b5 100644
--- a/sfx2/inc/sfx2/templateonlineview.hxx
+++ b/sfx2/inc/sfx2/templateremoteview.hxx
@@ -7,23 +7,23 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef __SFX2_TEMPLATEONLINEVIEW_HXX__
-#define __SFX2_TEMPLATEONLINEVIEW_HXX__
+#ifndef __SFX2_TEMPLATEREMOTEVIEW_HXX__
+#define __SFX2_TEMPLATEREMOTEVIEW_HXX__
#include <sfx2/templateabstractview.hxx>
#include <sfx2/templateproperties.hxx>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
-class TemplateOnlineViewItem;
+class TemplateRemoteViewItem;
-class TemplateOnlineView : public TemplateAbstractView
+class TemplateRemoteView : public TemplateAbstractView
{
public:
- TemplateOnlineView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren);
+ TemplateRemoteView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren);
- virtual ~TemplateOnlineView ();
+ virtual ~TemplateRemoteView ();
// Load repositories from user settings.
virtual void Populate ();
@@ -38,7 +38,7 @@ public:
bool loadRepository (const sal_uInt16 nRepositoryId, bool bRefresh);
- const std::vector<TemplateOnlineViewItem*>& getRepositories () const { return maRepositories; }
+ const std::vector<TemplateRemoteViewItem*>& getRepositories () const { return maRepositories; }
bool insertRepository (const OUString &rName, const OUString &rURL);
@@ -54,11 +54,11 @@ private:
bool mbIsSynced;
Link maChangeNameHdl;
- std::vector<TemplateOnlineViewItem*> maRepositories;
+ std::vector<TemplateRemoteViewItem*> maRepositories;
com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xCmdEnv;
};
-#endif // __SFX2_TEMPLATEONLINEVIEW_HXX__
+#endif // __SFX2_TEMPLATEREMOTEVIEW_HXX__
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/inc/sfx2/templateonlineviewitem.hxx b/sfx2/inc/sfx2/templateremoteviewitem.hxx
index 07996b382946..396b9652e4ee 100644
--- a/sfx2/inc/sfx2/templateonlineviewitem.hxx
+++ b/sfx2/inc/sfx2/templateremoteviewitem.hxx
@@ -7,19 +7,19 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef __SFX2_TEMPLATEONLINEVIEWITEM_HXX__
-#define __SFX2_TEMPLATEONLINEVIEWITEM_HXX__
+#ifndef __SFX2_TEMPLATEREMOTEVIEWITEM_HXX__
+#define __SFX2_TEMPLATEREMOTEVIEWITEM_HXX__
#include <sfx2/thumbnailviewitem.hxx>
#include <sfx2/templateproperties.hxx>
-class TemplateOnlineViewItem : public ThumbnailViewItem
+class TemplateRemoteViewItem : public ThumbnailViewItem
{
public:
- TemplateOnlineViewItem (ThumbnailView &rView, Window *pParent);
+ TemplateRemoteViewItem (ThumbnailView &rView, Window *pParent);
- virtual ~TemplateOnlineViewItem ();
+ virtual ~TemplateRemoteViewItem ();
void setURL (const rtl::OUString &rURL) { maUrl = rURL; }
@@ -37,6 +37,6 @@ private:
std::vector<TemplateItemProperties> maTemplates;
};
-#endif // __SFX2_TEMPLATEONLINEVIEWITEM_HXX__
+#endif // __SFX2_TEMPLATEREMOTEVIEWITEM_HXX__
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/inc/templatedlg.hxx b/sfx2/inc/templatedlg.hxx
index 7d6940cf9428..5ba2a8741d4b 100644
--- a/sfx2/inc/templatedlg.hxx
+++ b/sfx2/inc/templatedlg.hxx
@@ -20,7 +20,7 @@ class PopupMenu;
class SfxTemplateInfoDlg;
class TemplateAbstractView;
class TemplateLocalView;
-class TemplateOnlineView;
+class TemplateRemoteView;
class TemplateSearchView;
class ThumbnailView;
class ThumbnailViewItem;
@@ -132,7 +132,7 @@ private:
TemplateSearchView *mpSearchView;
TemplateAbstractView *mpCurView;
TemplateLocalView *maView;
- TemplateOnlineView *mpOnlineView;
+ TemplateRemoteView *mpOnlineView;
PopupMenu *mpActionMenu;
PopupMenu *mpRepositoryMenu;
PopupMenu *mpTemplateDefaultMenu;
diff --git a/sfx2/source/control/templateonlineview.cxx b/sfx2/source/control/templateremoteview.cxx
index c608a115e5d7..a5282da5e535 100644
--- a/sfx2/source/control/templateonlineview.cxx
+++ b/sfx2/source/control/templateremoteview.cxx
@@ -7,11 +7,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#include <sfx2/templateonlineview.hxx>
+#include <sfx2/templateremoteview.hxx>
#include <comphelper/processfactory.hxx>
#include <officecfg/Office/Common.hxx>
-#include <sfx2/templateonlineviewitem.hxx>
+#include <sfx2/templateremoteviewitem.hxx>
#include <sfx2/templateview.hxx>
#include <sfx2/templateviewitem.hxx>
#include <svtools/imagemgr.hxx>
@@ -45,12 +45,12 @@ enum
ROW_IS_REMOVEABLE
};
-TemplateOnlineView::TemplateOnlineView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren)
+TemplateRemoteView::TemplateRemoteView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren)
: TemplateAbstractView(pParent,nWinStyle,bDisableTransientChildren)
, mbIsSynced(true)
{
mpItemView->SetColor(Color(COL_WHITE));
- mpItemView->setChangeNameHdl(LINK(this,TemplateOnlineView,ChangeNameHdl));
+ mpItemView->setChangeNameHdl(LINK(this,TemplateRemoteView,ChangeNameHdl));
Reference< XMultiServiceFactory > xFactory = comphelper::getProcessServiceFactory();
Reference< XInteractionHandler > xGlobalInteractionHandler = Reference< XInteractionHandler >(
@@ -59,13 +59,13 @@ TemplateOnlineView::TemplateOnlineView (Window *pParent, WinBits nWinStyle, bool
m_xCmdEnv = new ucbhelper::CommandEnvironment( xGlobalInteractionHandler, Reference< XProgressHandler >() );
}
-TemplateOnlineView::~TemplateOnlineView ()
+TemplateRemoteView::~TemplateRemoteView ()
{
for (size_t i = 0, n = maRepositories.size(); i < n; ++i)
delete maRepositories[i];
}
-void TemplateOnlineView::Populate()
+void TemplateRemoteView::Populate()
{
uno::Reference < uno::XComponentContext > m_context(comphelper::getProcessComponentContext());
@@ -78,7 +78,7 @@ void TemplateOnlineView::Populate()
for (sal_Int32 i = 0; i < aUrls.getLength() && i < aNames.getLength(); ++i)
{
- TemplateOnlineViewItem *pItem = new TemplateOnlineViewItem(*this,this);
+ TemplateRemoteViewItem *pItem = new TemplateRemoteViewItem(*this,this);
pItem->mnId = i+1;
pItem->maTitle = aNames[i];
@@ -88,18 +88,18 @@ void TemplateOnlineView::Populate()
}
}
-void TemplateOnlineView::reload ()
+void TemplateRemoteView::reload ()
{
loadRepository(mpItemView->getId(),true);
}
-void TemplateOnlineView::filterTemplatesByApp(const FILTER_APPLICATION &eApp)
+void TemplateRemoteView::filterTemplatesByApp(const FILTER_APPLICATION &eApp)
{
if (mpItemView->IsVisible())
mpItemView->filterItems(ViewFilter_Application(eApp));
}
-void TemplateOnlineView::showOverlay (bool bVisible)
+void TemplateRemoteView::showOverlay (bool bVisible)
{
mpItemView->Show(bVisible);
@@ -112,14 +112,14 @@ void TemplateOnlineView::showOverlay (bool bVisible)
}
}
-void TemplateOnlineView::setOverlayChangeNameHdl(const Link &rLink)
+void TemplateRemoteView::setOverlayChangeNameHdl(const Link &rLink)
{
maChangeNameHdl = rLink;
}
-bool TemplateOnlineView::loadRepository (const sal_uInt16 nRepositoryId, bool bRefresh)
+bool TemplateRemoteView::loadRepository (const sal_uInt16 nRepositoryId, bool bRefresh)
{
- TemplateOnlineViewItem *pItem = NULL;
+ TemplateRemoteViewItem *pItem = NULL;
for (size_t i = 0, n = maRepositories.size(); i < n; ++i)
{
@@ -143,7 +143,7 @@ bool TemplateOnlineView::loadRepository (const sal_uInt16 nRepositoryId, bool bR
mpItemView->setId(nRepositoryId);
mpItemView->setName(pItem->maTitle);
- rtl::OUString aURL = static_cast<TemplateOnlineViewItem*>(pItem)->getURL();
+ rtl::OUString aURL = static_cast<TemplateRemoteViewItem*>(pItem)->getURL();
try
{
@@ -253,7 +253,7 @@ bool TemplateOnlineView::loadRepository (const sal_uInt16 nRepositoryId, bool bR
return true;
}
-bool TemplateOnlineView::insertRepository(const OUString &rName, const OUString &rURL)
+bool TemplateRemoteView::insertRepository(const OUString &rName, const OUString &rURL)
{
for (size_t i = 0, n = maRepositories.size(); i < n; ++i)
{
@@ -261,7 +261,7 @@ bool TemplateOnlineView::insertRepository(const OUString &rName, const OUString
return false;
}
- TemplateOnlineViewItem *pItem = new TemplateOnlineViewItem(*this,this);
+ TemplateRemoteViewItem *pItem = new TemplateRemoteViewItem(*this,this);
pItem->mnId = maRepositories.size()+1;
pItem->maTitle = rName;
@@ -273,7 +273,7 @@ bool TemplateOnlineView::insertRepository(const OUString &rName, const OUString
return true;
}
-bool TemplateOnlineView::deleteRepository(const sal_uInt16 nRepositoryId)
+bool TemplateRemoteView::deleteRepository(const sal_uInt16 nRepositoryId)
{
bool bRet = false;
@@ -293,7 +293,7 @@ bool TemplateOnlineView::deleteRepository(const sal_uInt16 nRepositoryId)
return bRet;
}
-void TemplateOnlineView::syncRepositories() const
+void TemplateRemoteView::syncRepositories() const
{
if (!mbIsSynced)
{
@@ -316,7 +316,7 @@ void TemplateOnlineView::syncRepositories() const
}
}
-IMPL_LINK (TemplateOnlineView, ChangeNameHdl, TemplateView*, pView)
+IMPL_LINK (TemplateRemoteView, ChangeNameHdl, TemplateView*, pView)
{
bool bRet = false;
diff --git a/sfx2/source/control/templateonlineviewitem.cxx b/sfx2/source/control/templateremoteviewitem.cxx
index e874a3dfed41..cb6de5e7c029 100644
--- a/sfx2/source/control/templateonlineviewitem.cxx
+++ b/sfx2/source/control/templateremoteviewitem.cxx
@@ -7,14 +7,14 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#include <sfx2/templateonlineviewitem.hxx>
+#include <sfx2/templateremoteviewitem.hxx>
-TemplateOnlineViewItem::TemplateOnlineViewItem (ThumbnailView &rView, Window *pParent)
+TemplateRemoteViewItem::TemplateRemoteViewItem (ThumbnailView &rView, Window *pParent)
: ThumbnailViewItem(rView,pParent)
{
}
-TemplateOnlineViewItem::~TemplateOnlineViewItem()
+TemplateRemoteViewItem::~TemplateRemoteViewItem()
{
}
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index fa37e3dd70bf..a41d4eb03358 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -23,8 +23,8 @@
#include <sfx2/templateinfodlg.hxx>
#include <sfx2/templatelocalview.hxx>
#include <sfx2/templatelocalviewitem.hxx>
-#include <sfx2/templateonlineview.hxx>
-#include <sfx2/templateonlineviewitem.hxx>
+#include <sfx2/templateremoteview.hxx>
+#include <sfx2/templateremoteviewitem.hxx>
#include <sfx2/templateviewitem.hxx>
#include <sfx2/thumbnailviewitem.hxx>
#include <sot/storage.hxx>
@@ -113,7 +113,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
mpTemplateBar( new ToolBox(this, SfxResId(TBX_ACTION_TEMPLATES))),
mpSearchView(new TemplateSearchView(this)),
maView(new TemplateLocalView(this,SfxResId(TEMPLATE_VIEW))),
- mpOnlineView(new TemplateOnlineView(this, WB_VSCROLL,false)),
+ mpOnlineView(new TemplateRemoteView(this, WB_VSCROLL,false)),
mbIsSaveMode(false),
mxDesktop(comphelper::getProcessServiceFactory()->createInstance( "com.sun.star.frame.Desktop" ),uno::UNO_QUERY )
{
@@ -1246,7 +1246,7 @@ void SfxTemplateManagerDlg::createRepositoryMenu()
mpRepositoryMenu->InsertItem(MNI_REPOSITORY_LOCAL,SfxResId(STR_REPOSITORY_LOCAL).toString());
- const std::vector<TemplateOnlineViewItem*> &rRepos = mpOnlineView->getRepositories();
+ const std::vector<TemplateRemoteViewItem*> &rRepos = mpOnlineView->getRepositories();
for (size_t i = 0, n = rRepos.size(); i < n; ++i)
mpRepositoryMenu->InsertItem(MNI_REPOSITORY_BASE+rRepos[i]->mnId,rRepos[i]->maTitle);