OSL_ENSURE( o_rNamespace == "config", "SettingsImport::split: unexpected namespace!" ); // our recovery file is kind of hand-made, so there shouldn't be anything else than "config". // If there is, then just ignore it ...
}
::rtl::Reference< SettingsImport > OfficeSettingsImport::nextState( const OUString& i_rElementName )
{ // separate the namespace part from the element name
OUString sNamespace;
OUString sLocalName;
split( i_rElementName, sNamespace, sLocalName );
if ( sLocalName == "config-item-set" ) returnnew ConfigItemSetImport( m_rSettings );
SAL_WARN( "dbaccess", "unknown (or unsupported at this place) element name '"
<< i_rElementName
<< "', ignoring"); returnnew IgnoringSettingsImport;
}
::rtl::Reference< SettingsImport > ConfigItemSetImport::nextState( const OUString& i_rElementName )
{ // separate the namespace part from the element name
OUString sNamespace;
OUString sLocalName;
split( i_rElementName, sNamespace, sLocalName );
if ( sLocalName == "config-item-set" ) returnnew ConfigItemSetImport( m_aChildSettings ); if ( sLocalName == "config-item" ) returnnew ConfigItemImport( m_aChildSettings );
SAL_WARN( "dbaccess", "unknown element name '"
<< i_rElementName << "', ignoring"); returnnew IgnoringSettingsImport;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.