Stop leaking all ScPostIt instances.
[LibreOffice.git] / ucb / source / ucp / file / filprp.hxx
blobfca4ce9a5921c948738cb7466ab7462045ed4d6f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _FILPRP_HXX_
20 #define _FILPRP_HXX_
22 #include <ucbhelper/macros.hxx>
23 #include <cppuhelper/weak.hxx>
24 #include <com/sun/star/beans/XPropertySetInfo.hpp>
25 #include <com/sun/star/ucb/XContentProvider.hpp>
26 #include <com/sun/star/lang/XTypeProvider.hpp>
29 namespace fileaccess {
31 class shell;
33 class XPropertySetInfo_impl
34 : public cppu::OWeakObject,
35 public com::sun::star::lang::XTypeProvider,
36 public com::sun::star::beans::XPropertySetInfo
38 public:
39 XPropertySetInfo_impl( shell* pMyShell,const OUString& aUnqPath );
40 XPropertySetInfo_impl( shell* pMyShell,const com::sun::star::uno::Sequence< com::sun::star::beans::Property >& seq );
42 virtual ~XPropertySetInfo_impl();
44 // XInterface
45 virtual com::sun::star::uno::Any SAL_CALL
46 queryInterface(
47 const com::sun::star::uno::Type& aType )
48 throw( com::sun::star::uno::RuntimeException);
50 virtual void SAL_CALL
51 acquire(
52 void )
53 throw();
55 virtual void SAL_CALL
56 release(
57 void )
58 throw();
61 // XTypeProvider
63 XTYPEPROVIDER_DECL()
65 virtual com::sun::star::uno::Sequence< com::sun::star::beans::Property > SAL_CALL
66 getProperties(
67 void )
68 throw( com::sun::star::uno::RuntimeException );
70 virtual com::sun::star::beans::Property SAL_CALL
71 getPropertyByName(
72 const OUString& aName )
73 throw( com::sun::star::beans::UnknownPropertyException,
74 com::sun::star::uno::RuntimeException);
76 virtual sal_Bool SAL_CALL
77 hasPropertyByName( const OUString& Name )
78 throw( com::sun::star::uno::RuntimeException );
80 private:
81 shell* m_pMyShell;
82 com::sun::star::uno::Reference< com::sun::star::ucb::XContentProvider > m_xProvider;
83 sal_Int32 m_count;
84 com::sun::star::uno::Sequence< com::sun::star::beans::Property > m_seq;
88 #endif
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */