summaryrefslogtreecommitdiff
path: root/include/sfx2/templatelocalview.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-17 17:36:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-10-22 20:35:41 +0200
commit2a635ba02b51a2523feef71fb28643cad540f942 (patch)
tree719a23ccfdbadbed17633b13d78f0ec7f29baee1 /include/sfx2/templatelocalview.hxx
parent4347d505e7d1c90809dd356334fcdc7936c84f73 (diff)
drop newly unused TemplateLocalView
Change-Id: I8c7fb0fe21df55056eba4a0672cff1689f0f4aea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104535 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2/templatelocalview.hxx')
-rw-r--r--include/sfx2/templatelocalview.hxx72
1 files changed, 0 insertions, 72 deletions
diff --git a/include/sfx2/templatelocalview.hxx b/include/sfx2/templatelocalview.hxx
index 997a67823a44..5ce620bed4a2 100644
--- a/include/sfx2/templatelocalview.hxx
+++ b/include/sfx2/templatelocalview.hxx
@@ -63,78 +63,6 @@ private:
FILTER_APPLICATION mApp;
};
-
-class TemplateLocalView : public ThumbnailView
-{
- typedef bool (*selection_cmp_fn)(const ThumbnailViewItem*,const ThumbnailViewItem*);
-
-public:
-
- TemplateLocalView ( vcl::Window* pParent );
-
- virtual ~TemplateLocalView () override;
- virtual void dispose() override;
-
- // Fill view with new item list
- void insertItems (const std::vector<TemplateItemProperties> &rTemplates, bool isRegionSelected = true, bool bShowCategoryInTooltip = false);
-
- // Fill view with template folders thumbnails
- void Populate ();
-
- virtual void reload ();
-
- virtual void showAllTemplates ();
-
- void showRegion (TemplateContainerItem const *pItem);
-
- DECL_LINK(ContextMenuSelectHdl, Menu*, bool);
-
- virtual bool renameItem(ThumbnailViewItem* pItem, const OUString& sNewTitle) override;
-
- virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
-
- virtual void RequestHelp( const HelpEvent& rHEvt ) override;
-
- virtual void Command( const CommandEvent& rCEvt ) override;
-
- virtual void KeyInput( const KeyEvent& rKEvt ) override;
-
- void setCreateContextMenuHdl(const Link<ThumbnailViewItem*,void> &rLink);
-
- void setOpenTemplateHdl(const Link<ThumbnailViewItem*,void> &rLink);
-
- void setEditTemplateHdl(const Link<ThumbnailViewItem*,void> &rLink);
-
- static BitmapEx scaleImg (const BitmapEx &rImg, tools::Long width, tools::Long height);
-
- static BitmapEx getDefaultThumbnail( const OUString& rPath );
-
- static BitmapEx fetchThumbnail (const OUString &msURL, tools::Long width, tools::Long height);
-
- static bool IsDefaultTemplate(const OUString& rPath);
-
-protected:
- virtual void OnItemDblClicked(ThumbnailViewItem *pItem) override;
-
-protected:
- sal_uInt16 mnCurRegionId;
-
- TemplateViewItem *maSelectedItem;
-
- tools::Long mnThumbnailWidth;
- tools::Long mnThumbnailHeight;
-
- Point maPosition; //store the point of click event
-
- Link<ThumbnailViewItem*,void> maCreateContextMenuHdl;
- Link<ThumbnailViewItem*,void> maOpenTemplateHdl;
- Link<ThumbnailViewItem*,void> maEditTemplateHdl;
-
- std::unique_ptr<SfxDocumentTemplates> mpDocTemplates;
- std::vector<std::unique_ptr<TemplateContainerItem> > maRegions;
- std::vector<TemplateItemProperties > maAllTemplates;
-};
-
class SfxTemplateLocalView : public SfxThumbnailView
{
typedef bool (*selection_cmp_fn)(const ThumbnailViewItem*,const ThumbnailViewItem*);