merge the formfield patch from ooo-build
[ooovba.git] / configmgr / source / api2 / updateimpl.hxx
blob77b510f424864a40bd67c4d230f5202c794155b3
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: updateimpl.hxx,v $
10 * $Revision: 1.5 $
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_BASEUPDATEIMPL_HXX_
32 #define CONFIGMGR_API_BASEUPDATEIMPL_HXX_
34 #include <com/sun/star/container/XNameContainer.hpp>
35 #include <com/sun/star/beans/XPropertyWithState.hpp>
36 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
38 namespace configmgr
40 namespace css = ::com::sun::star;
41 namespace uno = ::com::sun::star::uno;
43 /* implementations of the interfaces supported by a (parent) node
44 within the configuration tree.
45 (updating operation)
47 namespace configapi
49 class NodeSetAccess;
50 class NodeTreeSetAccess;
51 class NodeValueSetAccess;
52 class NodeGroupAccess;
54 // XNameReplace
55 //---------------------------------------------------------------------
56 void implReplaceByName(NodeGroupAccess& rNode, const rtl::OUString& rName, const uno::Any& rElement )
57 throw(css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, uno::RuntimeException);
59 void implReplaceByName(NodeTreeSetAccess& rNode, const rtl::OUString& rName, const uno::Any& rElement )
60 throw(css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, uno::RuntimeException);
62 void implReplaceByName(NodeValueSetAccess& rNode, const rtl::OUString& rName, const uno::Any& rElement )
63 throw(css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, uno::RuntimeException);
65 // XNameContainer
66 //---------------------------------------------------------------------
67 void implInsertByName(NodeTreeSetAccess& rNode, const rtl::OUString& rName, const uno::Any& rElement)
68 throw(css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, uno::RuntimeException);
70 void implInsertByName(NodeValueSetAccess& rNode, const rtl::OUString& rName, const uno::Any& rElement)
71 throw(css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, uno::RuntimeException);
73 void implRemoveByName(NodeTreeSetAccess& rNode, const rtl::OUString& rName )
74 throw(css::container::NoSuchElementException, css::lang::WrappedTargetException, uno::RuntimeException);
76 void implRemoveByName(NodeValueSetAccess& rNode, const rtl::OUString& rName )
77 throw(css::container::NoSuchElementException, css::lang::WrappedTargetException, uno::RuntimeException);
79 // XPropertyWithState - updating operation only
80 //---------------------------------------------------------------------
81 void implSetToDefaultAsProperty(NodeSetAccess& rNode)
82 throw (css::lang::WrappedTargetException, uno::RuntimeException);
84 // XSingleServiceFactory
85 //---------------------------------------------------------------------
86 uno::Reference< uno::XInterface > implCreateElement(NodeTreeSetAccess& rNode )
87 throw(uno::Exception, uno::RuntimeException);
89 uno::Reference< uno::XInterface > implCreateElement(NodeTreeSetAccess& rNode, const uno::Sequence< uno::Any >& aArguments )
90 throw(uno::Exception, uno::RuntimeException);
92 //---------------------------------------------------------------------
96 #endif // CONFIGMGR_API_BASEUPDATEIMPL_HXX_