1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: groupupdate.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef CONFIGMGR_API_GROUPUPDATE_HXX_
32 #define CONFIGMGR_API_GROUPUPDATE_HXX_
34 #include "groupaccess.hxx"
35 #include <com/sun/star/container/XNameReplace.hpp>
37 //........................................................................
40 //........................................................................
41 namespace configapi
{ class NodeGroupAccess
; }
43 //==========================================================================
45 //==========================================================================
47 /** base class for configuration nodes which are dynamic sets of complex types (trees)
50 : public BasicGroupAccess
51 , public css::container::XNameReplace
55 virtual ~BasicGroup() {}
58 // Base class Interface methods
60 uno::Any SAL_CALL
queryInterface( uno::Type
const& rType
) throw (uno::RuntimeException
);
62 // XTypeProvider joining
63 uno::Sequence
< uno::Type
> SAL_CALL
getTypes( ) throw (uno::RuntimeException
);
64 uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId( ) throw (uno::RuntimeException
) = 0;
66 // XElementAccess forwarding
67 virtual uno::Type SAL_CALL
getElementType( ) throw(uno::RuntimeException
)
68 { return BasicGroupAccess::getElementType(); }
70 virtual sal_Bool SAL_CALL
hasElements( ) throw(uno::RuntimeException
)
71 { return BasicGroupAccess::hasElements(); }
73 // XNameAccess forwarding
74 virtual uno::Any SAL_CALL
getByName( const rtl::OUString
& aName
)
75 throw(css::container::NoSuchElementException
, css::lang::WrappedTargetException
, uno::RuntimeException
)
76 { return BasicGroupAccess::getByName(aName
); }
78 virtual uno::Sequence
< rtl::OUString
> SAL_CALL
getElementNames( ) throw( uno::RuntimeException
)
79 { return BasicGroupAccess::getElementNames(); }
81 virtual sal_Bool SAL_CALL
hasByName( const rtl::OUString
& aName
) throw(uno::RuntimeException
)
82 { return BasicGroupAccess::hasByName(aName
); }
84 // New Interface methods
87 replaceByName( const rtl::OUString
& rName
, const uno::Any
& rElement
)
88 throw(css::lang::IllegalArgumentException
, css::container::NoSuchElementException
, css::lang::WrappedTargetException
, uno::RuntimeException
);
91 configapi::NodeGroupAccess
& getGroupNode();
92 virtual configapi::NodeGroupAccess
* maybeGetUpdateAccess() = 0;
95 //........................................................................
96 } // namespace configmgr
97 //........................................................................
99 #endif // CONFIGMGR_API_GROUPUPDATE_HXX_