Kaydet (Commit) d7d6fd23 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS swqcore02 (1.18.106); FILE MERGED

2004/11/24 16:00:29 dvo 1.18.106.1: #i30054# prevent name-collision of styles and automatic-styles in storage format
üst d36aada5
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: xmlaustp.cxx,v $ * $RCSfile: xmlaustp.cxx,v $
* *
* $Revision: 1.18 $ * $Revision: 1.19 $
* *
* last change: $Author: rt $ $Date: 2004-07-13 08:26:02 $ * last change: $Author: obo $ $Date: 2005-01-05 11:36:42 $
* *
* 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
...@@ -380,6 +380,28 @@ void SvXMLAutoStylePoolP::RegisterName( sal_Int32 nFamily, ...@@ -380,6 +380,28 @@ void SvXMLAutoStylePoolP::RegisterName( sal_Int32 nFamily,
pImpl->RegisterName( nFamily, rName ); pImpl->RegisterName( nFamily, rName );
} }
void SvXMLAutoStylePoolP::GetRegisteredNames(
uno::Sequence<sal_Int32>& rFamilies,
uno::Sequence<OUString>& rNames )
{
pImpl->GetRegisteredNames( rFamilies, rNames );
}
void SvXMLAutoStylePoolP::RegisterNames(
uno::Sequence<sal_Int32>& aFamilies,
uno::Sequence<OUString>& aNames )
{
DBG_ASSERT( aFamilies.getLength() == aNames.getLength(),
"aFamilies != aNames" );
// iterate over sequence(s) and call RegisterName(..) for each pair
const sal_Int32* pFamilies = aFamilies.getConstArray();
const OUString* pNames = aNames.getConstArray();
sal_Int32 nCount = min( aFamilies.getLength(), aNames.getLength() );
for( sal_Int32 n = 0; n < nCount; n++ )
RegisterName( pFamilies[n], pNames[n] );
}
OUString SvXMLAutoStylePoolP::Add( sal_Int32 nFamily, OUString SvXMLAutoStylePoolP::Add( sal_Int32 nFamily,
const vector< XMLPropertyState >& rProperties ) const vector< XMLPropertyState >& rProperties )
{ {
......
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