Bump for 3.6-28
[LibreOffice.git] / ucb / source / ucp / file / filcmd.hxx
blob2a9ed8b163d81a6b0b33c27f3e9a337ebe4a070c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef _FILCMD_HXX_
29 #define _FILCMD_HXX_
31 #include <rtl/ustring.hxx>
32 #include <cppuhelper/weak.hxx>
33 #include <com/sun/star/uno/XInterface.hpp>
34 #include <com/sun/star/ucb/XCommandInfo.hpp>
35 #include <com/sun/star/ucb/XContentProvider.hpp>
38 namespace fileaccess {
41 // forward
42 class shell;
45 class XCommandInfo_impl
46 : public cppu::OWeakObject,
47 public com::sun::star::ucb::XCommandInfo
49 public:
51 XCommandInfo_impl( shell* pMyShell );
53 virtual ~XCommandInfo_impl();
55 // XInterface
56 virtual com::sun::star::uno::Any SAL_CALL
57 queryInterface(
58 const com::sun::star::uno::Type& aType )
59 throw( com::sun::star::uno::RuntimeException);
61 virtual void SAL_CALL
62 acquire(
63 void )
64 throw();
66 virtual void SAL_CALL
67 release(
68 void )
69 throw();
71 // XCommandInfo
73 virtual com::sun::star::uno::Sequence< com::sun::star::ucb::CommandInfo > SAL_CALL
74 getCommands(
75 void )
76 throw( com::sun::star::uno::RuntimeException);
78 virtual com::sun::star::ucb::CommandInfo SAL_CALL
79 getCommandInfoByName(
80 const rtl::OUString& Name )
81 throw( com::sun::star::ucb::UnsupportedCommandException,
82 com::sun::star::uno::RuntimeException);
84 virtual com::sun::star::ucb::CommandInfo SAL_CALL
85 getCommandInfoByHandle(
86 sal_Int32 Handle )
87 throw( com::sun::star::ucb::UnsupportedCommandException,
88 com::sun::star::uno::RuntimeException );
90 virtual sal_Bool SAL_CALL
91 hasCommandByName(
92 const rtl::OUString& Name )
93 throw( com::sun::star::uno::RuntimeException );
95 virtual sal_Bool SAL_CALL
96 hasCommandByHandle(
97 sal_Int32 Handle )
98 throw( com::sun::star::uno::RuntimeException );
101 private:
103 shell* m_pMyShell;
104 com::sun::star::uno::Reference< com::sun::star::ucb::XContentProvider > m_xProvider;
109 #endif
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */