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_TEMPLATEREMOTEVIEW_HXX
11 : #define INCLUDED_SFX2_TEMPLATEREMOTEVIEW_HXX
12 :
13 : #include <sfx2/templateabstractview.hxx>
14 : #include <sfx2/templateproperties.hxx>
15 :
16 : #include <com/sun/star/ucb/XCommandEnvironment.hpp>
17 :
18 : class TemplateRepository;
19 :
20 0 : class TemplateRemoteView : public TemplateAbstractView
21 : {
22 : public:
23 :
24 : TemplateRemoteView (vcl::Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren);
25 :
26 : virtual void showRootRegion () SAL_OVERRIDE;
27 :
28 : virtual void showRegion (ThumbnailViewItem *pItem) SAL_OVERRIDE;
29 :
30 : bool loadRepository (TemplateRepository* pRepository, bool bRefresh);
31 :
32 : virtual sal_uInt16 createRegion (const OUString &rName) SAL_OVERRIDE;
33 :
34 : virtual bool isNestedRegionAllowed () const SAL_OVERRIDE;
35 :
36 : virtual bool isImportAllowed () const SAL_OVERRIDE;
37 :
38 : private:
39 :
40 : com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xCmdEnv;
41 : };
42 :
43 : #endif // INCLUDED_SFX2_TEMPLATEREMOTEVIEW_HXX
44 :
45 :
46 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|