summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorJörg Barfurth <jb@openoffice.org>2001-11-09 10:52:15 +0000
committerJörg Barfurth <jb@openoffice.org>2001-11-09 10:52:15 +0000
commit1765216aea62c55deaa16f738e0abd0c590b5170 (patch)
tree002702cc4542a01e23063944af75fae374928a39 /configmgr
parentd4167105098ddc7c882b73a067329a949ad320ba (diff)
#86080# Cleanup of exception handling for XxxProvider interfaces
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/inc/configdefaultprovider.hxx12
-rw-r--r--configmgr/source/inc/defaultprovider.hxx8
-rw-r--r--configmgr/source/inc/treeprovider.hxx25
3 files changed, 26 insertions, 19 deletions
diff --git a/configmgr/source/inc/configdefaultprovider.hxx b/configmgr/source/inc/configdefaultprovider.hxx
index 2f66fc445574..fd79de375b92 100644
--- a/configmgr/source/inc/configdefaultprovider.hxx
+++ b/configmgr/source/inc/configdefaultprovider.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: configdefaultprovider.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: jb $ $Date: 2001-09-28 12:44:15 $
+ * last change: $Author: jb $ $Date: 2001-11-09 11:52:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,6 +62,10 @@
#ifndef CONFIGMGR_CONFIG_DEFAULTPROVIDER_HXX_
#define CONFIGMGR_CONFIG_DEFAULTPROVIDER_HXX_
+#ifndef CONFIGMGR_UTILITY_HXX_
+#include "utility.hxx"
+#endif
+
#ifndef _COM_SUN_STAR_UNO_EXCEPTION_HPP_
#include <com/sun/star/uno/Exception.hpp>
#endif
@@ -121,10 +125,10 @@ namespace configmgr
bool isValid() const { return !! m_aProxy.is(); }
/// tries to load default data into the specified tree
- bool fetchDefaultData(Tree const& _aTree) const SAL_THROW((uno::Exception));
+ bool fetchDefaultData(Tree const& _aTree) const CFG_UNO_THROW_ALL();
/// tries to load a default instance of the specified node
- std::auto_ptr<ISubtree> getDefaultTree(Tree const& _aTree, NodeRef const& _aNode) const SAL_THROW((uno::Exception));
+ std::auto_ptr<ISubtree> getDefaultTree(Tree const& _aTree, NodeRef const& _aNode) const CFG_UNO_THROW_ALL();
};
diff --git a/configmgr/source/inc/defaultprovider.hxx b/configmgr/source/inc/defaultprovider.hxx
index 4da77e792380..f54b07bb2254 100644
--- a/configmgr/source/inc/defaultprovider.hxx
+++ b/configmgr/source/inc/defaultprovider.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: defaultprovider.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: jb $ $Date: 2001-09-28 12:44:15 $
+ * last change: $Author: jb $ $Date: 2001-11-09 11:52:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -119,7 +119,7 @@ namespace configmgr
*/
virtual std::auto_ptr<ISubtree> requestDefaultData(configuration::AbsolutePath const& aSubtreePath,
const vos::ORef < OOptions >& _xOptions,
- sal_Int16 nMinLevels) throw (uno::Exception) = 0;
+ sal_Int16 nMinLevels) CFG_UNO_THROW_ALL( ) = 0;
};
//==========================================================================
@@ -140,7 +140,7 @@ namespace configmgr
*/
virtual sal_Bool fetchDefaultData(configuration::AbsolutePath const& aSubtreePath,
const vos::ORef < OOptions >& _xOptions,
- sal_Int16 nMinLevels) throw (uno::Exception) = 0;
+ sal_Int16 nMinLevels) CFG_UNO_THROW_ALL( ) = 0;
};
diff --git a/configmgr/source/inc/treeprovider.hxx b/configmgr/source/inc/treeprovider.hxx
index 94e2cefb91e6..990ea037e3db 100644
--- a/configmgr/source/inc/treeprovider.hxx
+++ b/configmgr/source/inc/treeprovider.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: treeprovider.hxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: jb $ $Date: 2001-07-05 17:05:46 $
+ * last change: $Author: jb $ $Date: 2001-11-09 11:52:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,6 +78,9 @@
#ifndef CONFIGMGR_MISC_OPTIONS_HXX_
#include <options.hxx>
#endif
+#ifndef CONFIGMGR_UTILITY_HXX_
+#include "utility.hxx"
+#endif
#ifndef _COM_SUN_STAR_UNO_EXCEPTION_HPP_
#include <com/sun/star/uno/Exception.hpp>
@@ -125,10 +128,10 @@ namespace configmgr
/// load the tree named by a path using certain options and requiring a specific loading depth - return it yielding ownership
virtual std::auto_ptr<ISubtree> loadSubtree(AbsolutePath const& aSubtreePath,
const vos::ORef < OOptions >& _xOptions,
- sal_Int16 nMinLevels = ALL_LEVELS) throw (uno::Exception) = 0;
+ sal_Int16 nMinLevels = ALL_LEVELS) CFG_UNO_THROW_ALL( ) = 0;
/// update the stored data according to a changes list
- virtual void updateTree(TreeChangeList& aChanges) throw (uno::Exception) = 0;
+ virtual void updateTree(TreeChangeList& aChanges) CFG_UNO_THROW_ALL( ) = 0;
};
@@ -151,30 +154,30 @@ namespace configmgr
*/
virtual ISubtree * requestSubtree(AbsolutePath const& aSubtreePath,
const vos::ORef < OOptions >& _xOptions,
- sal_Int16 nMinLevels = ALL_LEVELS) throw (uno::Exception) = 0;
+ sal_Int16 nMinLevels = ALL_LEVELS) CFG_UNO_THROW_ALL( ) = 0;
/** request that the tree named by a path is added to the collection of managed trees
respecting certain options and requiring a specific loading depth.
*/
virtual void fetchSubtree(AbsolutePath const& aSubtreePath,
const vos::ORef < OOptions >& _xOptions,
- sal_Int16 nMinLevels = ALL_LEVELS) throw() = 0;
+ sal_Int16 nMinLevels = ALL_LEVELS) CFG_NOTHROW() = 0;
/// update the managed data according to a changes list - update the changes list accordingly with old values
- virtual void updateTree(TreeChangeList& aChanges) throw (uno::Exception) = 0;
+ virtual void updateTree(TreeChangeList& aChanges) CFG_UNO_THROW_ALL( ) = 0;
// notification
- virtual void notifyUpdate(TreeChangeList const& aChanges ) throw (uno::RuntimeException) = 0;
+ virtual void notifyUpdate(TreeChangeList const& aChanges ) CFG_UNO_THROW_RTE( ) = 0;
// bookkeeping support
virtual void releaseSubtree(AbsolutePath const& aSubtreePath,
- const vos::ORef < OOptions >& _xOptions ) throw () = 0;
+ const vos::ORef < OOptions >& _xOptions ) CFG_NOTHROW() = 0;
/** data for the given options may not be used any more
<p>all clients of such data must be disposed</p>
<p>If the locale is not set, the whole user has become invalid</p>
*/
- virtual void disposeData(const vos::ORef < OOptions >& _xOptions) throw () = 0;
+ virtual void disposeData(const vos::ORef < OOptions >& _xOptions) CFG_NOTHROW() = 0;
};
@@ -191,7 +194,7 @@ namespace configmgr
virtual ::std::auto_ptr<INode> requestTemplateInstance(
Name const& aName, Name const& aModule,
const vos::ORef < OOptions >& _xOptions
- ) throw (uno::Exception) = 0;
+ ) CFG_UNO_THROW_ALL( ) = 0;
};