diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-13 13:34:29 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-13 15:46:56 +0100 |
commit | 5a508c2fc7441ee1f01b580493b32fc377c12503 (patch) | |
tree | 7a985130efdc79fb778b37ad422bbf4b8e9eca6f /sfx2/inc | |
parent | 3f1797cb5d3140fbf1c27c506146af048dfa4b3f (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.hxx | 2 | ||||
-rw-r--r-- | sfx2/inc/sfx2/templateremoteview.hxx | 7 | ||||
-rw-r--r-- | sfx2/inc/sfx2/templateview.hxx | 22 | ||||
-rw-r--r-- | sfx2/inc/templatedlg.hxx | 2 |
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 (); |