Kaydet (Commit) 2c3e3405 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS configapi01 (1.2.26); FILE MERGED

2003/04/15 10:25:27 jb 1.2.26.3: #i11893# backend\updatedata.cxx
2003/04/11 13:42:05 jb 1.2.26.2: #1077715# Repair broken exception specifications
2003/04/10 15:47:05 jb 1.2.26.1: #1077715# Move configuration backend API out of drafts; adjust to API changes
üst c1f31bb9
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: layerdefaultremover.cxx,v $ * $RCSfile: layerdefaultremover.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: ssmith $ $Date: 2002-11-11 13:18:02 $ * last change: $Author: rt $ $Date: 2003-04-17 13:15:44 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -96,7 +96,7 @@ namespace configmgr ...@@ -96,7 +96,7 @@ namespace configmgr
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::startLayer( ) void SAL_CALL LayerDefaultRemover::startLayer( )
throw (backenduno::MalformedDataException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
clearPendingProperty(); clearPendingProperty();
m_xResultHandler->startLayer(); m_xResultHandler->startLayer();
...@@ -104,7 +104,7 @@ namespace configmgr ...@@ -104,7 +104,7 @@ namespace configmgr
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::endLayer( ) void SAL_CALL LayerDefaultRemover::endLayer( )
throw (backenduno::MalformedDataException, lang::IllegalAccessException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
if (hasPendingProperty()) if (hasPendingProperty())
{ {
...@@ -122,8 +122,8 @@ namespace configmgr ...@@ -122,8 +122,8 @@ namespace configmgr
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::overrideNode( const OUString& aName, sal_Int16 aAttributes ) void SAL_CALL LayerDefaultRemover::overrideNode( const OUString& aName, sal_Int16 aAttributes, sal_Bool bClear )
throw (backenduno::MalformedDataException, container::NoSuchElementException, lang::IllegalAccessException, lang::IllegalArgumentException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
if (hasPendingProperty()) if (hasPendingProperty())
{ {
...@@ -131,20 +131,20 @@ namespace configmgr ...@@ -131,20 +131,20 @@ namespace configmgr
"LayerDefaultRemover: Illegal property started operation"; "LayerDefaultRemover: Illegal property started operation";
raiseMalformedDataException(pMsg); raiseMalformedDataException(pMsg);
} }
if (aAttributes == 0) if (aAttributes == 0 && !bClear)
{ {
m_aNodeStack.push_back(aName); m_aNodeStack.push_back(aName);
} }
else else
{ {
playBackNodeStack(); playBackNodeStack();
m_xResultHandler->overrideNode(aName,aAttributes); m_xResultHandler->overrideNode(aName,aAttributes,bClear);
} }
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::addOrReplaceNode( const OUString& aName, sal_Int16 aAttributes ) void SAL_CALL LayerDefaultRemover::addOrReplaceNode( const OUString& aName, sal_Int16 aAttributes )
throw (backenduno::MalformedDataException, container::NoSuchElementException, lang::IllegalAccessException, lang::IllegalArgumentException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
playBackNodeStack(); playBackNodeStack();
m_xResultHandler->addOrReplaceNode(aName, aAttributes); m_xResultHandler->addOrReplaceNode(aName, aAttributes);
...@@ -152,7 +152,7 @@ namespace configmgr ...@@ -152,7 +152,7 @@ namespace configmgr
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::addOrReplaceNodeFromTemplate( const OUString& aName, const backenduno::TemplateIdentifier& aTemplate, sal_Int16 aAttributes ) void SAL_CALL LayerDefaultRemover::addOrReplaceNodeFromTemplate( const OUString& aName, const backenduno::TemplateIdentifier& aTemplate, sal_Int16 aAttributes )
throw (backenduno::MalformedDataException, container::NoSuchElementException, beans::IllegalTypeException, lang::IllegalAccessException, lang::IllegalArgumentException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
playBackNodeStack(); playBackNodeStack();
m_xResultHandler->addOrReplaceNodeFromTemplate(aName,aTemplate,aAttributes); m_xResultHandler->addOrReplaceNodeFromTemplate(aName,aTemplate,aAttributes);
...@@ -160,7 +160,7 @@ namespace configmgr ...@@ -160,7 +160,7 @@ namespace configmgr
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::endNode( ) void SAL_CALL LayerDefaultRemover::endNode( )
throw (backenduno::MalformedDataException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
if (hasPendingProperty()) if (hasPendingProperty())
{ {
...@@ -180,7 +180,7 @@ namespace configmgr ...@@ -180,7 +180,7 @@ namespace configmgr
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::dropNode( const OUString& aName ) void SAL_CALL LayerDefaultRemover::dropNode( const OUString& aName )
throw (backenduno::MalformedDataException, container::NoSuchElementException, lang::IllegalAccessException, lang::IllegalArgumentException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
playBackNodeStack(); playBackNodeStack();
m_xResultHandler->dropNode(aName); m_xResultHandler->dropNode(aName);
...@@ -188,7 +188,7 @@ namespace configmgr ...@@ -188,7 +188,7 @@ namespace configmgr
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::addProperty( const OUString& aName, sal_Int16 aAttributes, const uno::Type& aType ) void SAL_CALL LayerDefaultRemover::addProperty( const OUString& aName, sal_Int16 aAttributes, const uno::Type& aType )
throw (backenduno::MalformedDataException, beans::PropertyExistException, beans::IllegalTypeException, lang::IllegalArgumentException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
playBackNodeStack(); playBackNodeStack();
m_xResultHandler->addProperty (aName,aAttributes,aType); m_xResultHandler->addProperty (aName,aAttributes,aType);
...@@ -196,15 +196,15 @@ namespace configmgr ...@@ -196,15 +196,15 @@ namespace configmgr
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::addPropertyWithValue( const OUString& aName, sal_Int16 aAttributes, const uno::Any& aValue ) void SAL_CALL LayerDefaultRemover::addPropertyWithValue( const OUString& aName, sal_Int16 aAttributes, const uno::Any& aValue )
throw (backenduno::MalformedDataException, beans::PropertyExistException, beans::IllegalTypeException, lang::IllegalArgumentException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
playBackNodeStack(); playBackNodeStack();
m_xResultHandler->addPropertyWithValue(aName,aAttributes,aValue); m_xResultHandler->addPropertyWithValue(aName,aAttributes,aValue);
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::overrideProperty( const OUString& aName, sal_Int16 aAttributes, const uno::Type& aType ) void SAL_CALL LayerDefaultRemover::overrideProperty( const OUString& aName, sal_Int16 aAttributes, const uno::Type& aType, sal_Bool bClear )
throw (backenduno::MalformedDataException, beans::UnknownPropertyException, beans::IllegalTypeException, lang::IllegalAccessException, lang::IllegalArgumentException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
if (hasPendingProperty()) if (hasPendingProperty())
{ {
...@@ -212,11 +212,11 @@ namespace configmgr ...@@ -212,11 +212,11 @@ namespace configmgr
"LayerDefaultRemover: Illegal property started operation"; "LayerDefaultRemover: Illegal property started operation";
raiseMalformedDataException(pMsg); raiseMalformedDataException(pMsg);
} }
if (aAttributes != 0) if (aAttributes != 0 || bClear)
{ {
m_aPropName.Name=OUString(); m_aPropName.Name=OUString();
playBackNodeStack(); playBackNodeStack();
m_xResultHandler->overrideProperty(aName,aAttributes,aType); m_xResultHandler->overrideProperty(aName,aAttributes,aType,bClear);
} }
else else
{ {
...@@ -227,7 +227,7 @@ namespace configmgr ...@@ -227,7 +227,7 @@ namespace configmgr
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::endProperty( ) void SAL_CALL LayerDefaultRemover::endProperty( )
throw (backenduno::MalformedDataException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
if (hasPendingProperty()) if (hasPendingProperty())
{ {
...@@ -239,7 +239,7 @@ namespace configmgr ...@@ -239,7 +239,7 @@ namespace configmgr
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::setPropertyValue( const uno::Any& aValue ) void SAL_CALL LayerDefaultRemover::setPropertyValue( const uno::Any& aValue )
throw (backenduno::MalformedDataException, beans::IllegalTypeException, lang::IllegalArgumentException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
playBackNodeStack(true); playBackNodeStack(true);
m_xResultHandler->setPropertyValue(aValue); m_xResultHandler->setPropertyValue(aValue);
...@@ -247,7 +247,7 @@ namespace configmgr ...@@ -247,7 +247,7 @@ namespace configmgr
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void SAL_CALL LayerDefaultRemover::setPropertyValueForLocale( const uno::Any& aValue, const OUString& aLocale ) void SAL_CALL LayerDefaultRemover::setPropertyValueForLocale( const uno::Any& aValue, const OUString& aLocale )
throw (backenduno::MalformedDataException, beans::IllegalTypeException, lang::IllegalArgumentException, uno::RuntimeException) throw (MalformedDataException, lang::WrappedTargetException, uno::RuntimeException)
{ {
playBackNodeStack(true); playBackNodeStack(true);
m_xResultHandler->setPropertyValueForLocale(aValue,aLocale); m_xResultHandler->setPropertyValueForLocale(aValue,aLocale);
...@@ -273,7 +273,7 @@ namespace configmgr ...@@ -273,7 +273,7 @@ namespace configmgr
for (NodeStack::iterator aIter = m_aNodeStack.begin(); for (NodeStack::iterator aIter = m_aNodeStack.begin();
aIter != m_aNodeStack.end(); aIter++) aIter != m_aNodeStack.end(); aIter++)
{ {
m_xResultHandler->overrideNode(*aIter, 0); m_xResultHandler->overrideNode(*aIter, 0,false);
} }
m_aNodeStack.clear(); m_aNodeStack.clear();
} }
...@@ -281,7 +281,7 @@ namespace configmgr ...@@ -281,7 +281,7 @@ namespace configmgr
{ {
if (hasPendingProperty()) if (hasPendingProperty())
{ {
m_xResultHandler->overrideProperty(m_aPropName.Name,0,m_aPropName.Type); m_xResultHandler->overrideProperty(m_aPropName.Name,0,m_aPropName.Type,false);
clearPendingProperty(); clearPendingProperty();
} }
} }
...@@ -293,7 +293,7 @@ namespace configmgr ...@@ -293,7 +293,7 @@ namespace configmgr
OSL_ASSERT(pMsg); OSL_ASSERT(pMsg);
OUString sMsg = OUString::createFromAscii(pMsg); OUString sMsg = OUString::createFromAscii(pMsg);
throw backenduno::MalformedDataException( sMsg, *this ); throw backenduno::MalformedDataException( sMsg, *this, uno::Any() );
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment