Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : */
9 :
10 : #ifndef INCLUDED_SFX2_SOURCE_INC_TEMPLATESEARCHVIEW_HXX
11 : #define INCLUDED_SFX2_SOURCE_INC_TEMPLATESEARCHVIEW_HXX
12 :
13 : #include <sfx2/thumbnailview.hxx>
14 :
15 0 : class TemplateSearchView : public ThumbnailView
16 : {
17 : public:
18 :
19 : TemplateSearchView ( vcl::Window* pParent, WinBits nWinStyle = WB_TABSTOP | WB_VSCROLL);
20 :
21 : void setOpenTemplateHdl (const Link<> &rLink);
22 :
23 : void AppendItem(sal_uInt16 nAssocItemId, sal_uInt16 nRegionId, sal_uInt16 nIdx,
24 : const OUString &rTitle, const OUString &rSubtitle,
25 : const OUString &rPath, const BitmapEx &rImage );
26 :
27 : protected:
28 : virtual void OnItemDblClicked(ThumbnailViewItem *pItem) SAL_OVERRIDE;
29 :
30 : protected:
31 : Link<> maOpenTemplateHdl;
32 : };
33 :
34 : #endif // INCLUDED_SFX2_SOURCE_INC_TEMPLATESEARCHVIEW_HXX
35 :
36 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|