1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
10 #ifndef INCLUDED_SFX2_TEMPLATEREMOTEVIEW_HXX
11 #define INCLUDED_SFX2_TEMPLATEREMOTEVIEW_HXX
13 #include <sfx2/templateabstractview.hxx>
14 #include <sfx2/templateproperties.hxx>
16 #include <com/sun/star/ucb/XCommandEnvironment.hpp>
18 class TemplateRepository
;
20 class TemplateRemoteView
: public TemplateAbstractView
24 TemplateRemoteView (vcl::Window
*pParent
, WinBits nWinStyle
, bool bDisableTransientChildren
);
26 virtual void showRootRegion () SAL_OVERRIDE
;
28 virtual void showRegion (ThumbnailViewItem
*pItem
) SAL_OVERRIDE
;
30 bool loadRepository (TemplateRepository
* pRepository
, bool bRefresh
);
32 virtual sal_uInt16
createRegion (const OUString
&rName
) SAL_OVERRIDE
;
34 virtual bool isNestedRegionAllowed () const SAL_OVERRIDE
;
36 virtual bool isImportAllowed () const SAL_OVERRIDE
;
40 com::sun::star::uno::Reference
< com::sun::star::ucb::XCommandEnvironment
> m_xCmdEnv
;
43 #endif // INCLUDED_SFX2_TEMPLATEREMOTEVIEW_HXX
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */