summaryrefslogtreecommitdiff
path: root/sfx2/inc
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-12-13 13:34:29 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-12-13 15:45:54 +0100
commit7bacb834d36b06030378c64997cc20e852b195f1 (patch)
tree2312012d1129da634e71288b975543191dc6b65d /sfx2/inc
parente4e8f246452da4a81ffd92664c9731e0e195b032 (diff)
Template Manager: add path controls to overlay and removed name editing
Change-Id: I0d27edff4ba6c25fd9dc85c80ac5e3287fbd4207
Diffstat (limited to 'sfx2/inc')
-rw-r--r--sfx2/inc/sfx2/templatelocalview.hxx2
-rw-r--r--sfx2/inc/sfx2/templateremoteview.hxx7
-rw-r--r--sfx2/inc/sfx2/templateview.hxx22
-rw-r--r--sfx2/inc/templatedlg.hxx2
4 files changed, 6 insertions, 27 deletions
diff --git a/sfx2/inc/sfx2/templatelocalview.hxx b/sfx2/inc/sfx2/templatelocalview.hxx
index 9a101f271e99..dac7fedf8634 100644
--- a/sfx2/inc/sfx2/templatelocalview.hxx
+++ b/sfx2/inc/sfx2/templatelocalview.hxx
@@ -77,8 +77,6 @@ private:
virtual void OnItemDblClicked (ThumbnailViewItem *pRegionItem);
- DECL_LINK(ChangeNameHdl, TemplateView*);
-
private:
bool mbFilteredResults; // Flag keep track if overlay has been filtered so folders can get filtered too afterwards
diff --git a/sfx2/inc/sfx2/templateremoteview.hxx b/sfx2/inc/sfx2/templateremoteview.hxx
index bbea147415b5..1d7e49d15002 100644
--- a/sfx2/inc/sfx2/templateremoteview.hxx
+++ b/sfx2/inc/sfx2/templateremoteview.hxx
@@ -34,8 +34,6 @@ public:
virtual void showOverlay (bool bVisible);
- void setOverlayChangeNameHdl (const Link &rLink);
-
bool loadRepository (const sal_uInt16 nRepositoryId, bool bRefresh);
const std::vector<TemplateRemoteViewItem*>& getRepositories () const { return maRepositories; }
@@ -48,12 +46,7 @@ public:
private:
- DECL_LINK(ChangeNameHdl, TemplateView*);
-
-private:
-
bool mbIsSynced;
- Link maChangeNameHdl;
std::vector<TemplateRemoteViewItem*> maRepositories;
com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xCmdEnv;
};
diff --git a/sfx2/inc/sfx2/templateview.hxx b/sfx2/inc/sfx2/templateview.hxx
index 881c68dc3514..6e81ea491186 100644
--- a/sfx2/inc/sfx2/templateview.hxx
+++ b/sfx2/inc/sfx2/templateview.hxx
@@ -12,7 +12,8 @@
#include <sfx2/templateproperties.hxx>
#include <sfx2/thumbnailview.hxx>
-#include <vcl/image.hxx>
+#include <vcl/button.hxx>
+#include <vcl/fixed.hxx>
class Edit;
class TemplateViewItem;
@@ -33,37 +34,26 @@ public:
const OUString& getName () const { return maName; }
- virtual void Paint (const Rectangle &rRect);
-
void InsertItems (const std::vector<TemplateItemProperties> &rTemplates);
void setDblClickHdl (const Link &rLink) { maDblClickHdl = rLink; }
- void setChangeNameHdl (const Link &rLink) { maChangeNameHdl = rLink; }
-
- void setCloseHdl (const Link &rLink) { maCloseHdl = rLink; }
+ void setCloseHdl (const Link &rLink) { maAllButton.SetClickHdl(rLink); }
protected:
virtual void Resize ();
- virtual void MouseButtonDown (const MouseEvent &rMEvt);
-
virtual void OnItemDblClicked (ThumbnailViewItem *pItem);
- DECL_LINK (ChangeNameHdl, void*);
-
private:
- Image maCloseImg;
- bool mbRenderTitle;
+ Control maButtons;
+ PushButton maAllButton;
+ FixedText maFTName;
sal_uInt16 mnId;
OUString maName;
Link maDblClickHdl;
- Link maChangeNameHdl;
- Link maCloseHdl;
-
- Edit *mpEditName;
};
#endif // TEMPLATEVIEW_HXX
diff --git a/sfx2/inc/templatedlg.hxx b/sfx2/inc/templatedlg.hxx
index bbdcbda66d22..f24c8e44b301 100644
--- a/sfx2/inc/templatedlg.hxx
+++ b/sfx2/inc/templatedlg.hxx
@@ -71,8 +71,6 @@ private:
DECL_LINK(SearchUpdateHdl, void*);
- DECL_LINK(RepositoryChangeNameHdl, void*);
-
void OnTemplateImport ();
void OnTemplateSearch ();
void OnTemplateEdit ();