Kaydet (Commit) a8b6fc3b authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.5.220); FILE MERGED

2006/04/24 09:54:28 os 1.5.220.1: warnings removed
üst 61ec41c6
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: xmlcnitm.cxx,v $ * $RCSfile: xmlcnitm.cxx,v $
* *
* $Revision: 1.5 $ * $Revision: 1.6 $
* *
* last change: $Author: rt $ $Date: 2005-09-08 23:42:11 $ * last change: $Author: hr $ $Date: 2006-06-19 16:16:47 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -58,8 +58,8 @@ using namespace ::com::sun::star::xml; ...@@ -58,8 +58,8 @@ using namespace ::com::sun::star::xml;
TYPEINIT1(SvXMLAttrContainerItem, SfxPoolItem); TYPEINIT1(SvXMLAttrContainerItem, SfxPoolItem);
SvXMLAttrContainerItem::SvXMLAttrContainerItem( USHORT nWhich ) : SvXMLAttrContainerItem::SvXMLAttrContainerItem( USHORT _nWhich ) :
SfxPoolItem( nWhich ) SfxPoolItem( _nWhich )
{ {
pImpl = new SvXMLAttrContainerData; pImpl = new SvXMLAttrContainerData;
} }
...@@ -83,7 +83,7 @@ int SvXMLAttrContainerItem::operator==( const SfxPoolItem& rItem ) const ...@@ -83,7 +83,7 @@ int SvXMLAttrContainerItem::operator==( const SfxPoolItem& rItem ) const
return *pImpl == *((const SvXMLAttrContainerItem&)rItem).pImpl; return *pImpl == *((const SvXMLAttrContainerItem&)rItem).pImpl;
} }
int SvXMLAttrContainerItem::Compare( const SfxPoolItem &rWith ) const int SvXMLAttrContainerItem::Compare( const SfxPoolItem &/*rWith*/ ) const
{ {
DBG_ASSERT( !this, "not yet implemented" ); DBG_ASSERT( !this, "not yet implemented" );
...@@ -91,22 +91,22 @@ int SvXMLAttrContainerItem::Compare( const SfxPoolItem &rWith ) const ...@@ -91,22 +91,22 @@ int SvXMLAttrContainerItem::Compare( const SfxPoolItem &rWith ) const
} }
SfxItemPresentation SvXMLAttrContainerItem::GetPresentation( SfxItemPresentation SvXMLAttrContainerItem::GetPresentation(
SfxItemPresentation ePresentation, SfxItemPresentation /*ePresentation*/,
SfxMapUnit eCoreMetric, SfxMapUnit /*eCoreMetric*/,
SfxMapUnit ePresentationMetric, SfxMapUnit /*ePresentationMetric*/,
XubString &rText, XubString &/*rText*/,
const IntlWrapper *pIntlWrapper ) const const IntlWrapper */*pIntlWrapper*/ ) const
{ {
return SFX_ITEM_PRESENTATION_NONE; return SFX_ITEM_PRESENTATION_NONE;
} }
USHORT SvXMLAttrContainerItem::GetVersion( USHORT nFileFormatVersion ) const USHORT SvXMLAttrContainerItem::GetVersion( USHORT /*nFileFormatVersion*/ ) const
{ {
// This item should never be stored // This item should never be stored
return USHRT_MAX; return USHRT_MAX;
} }
BOOL SvXMLAttrContainerItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId ) const BOOL SvXMLAttrContainerItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE /*nMemberId*/ ) const
{ {
Reference<XNameContainer> xContainer = Reference<XNameContainer> xContainer =
new SvUnoAttributeContainer( new SvXMLAttrContainerData( *pImpl ) ); new SvUnoAttributeContainer( new SvXMLAttrContainerData( *pImpl ) );
...@@ -114,7 +114,7 @@ BOOL SvXMLAttrContainerItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE n ...@@ -114,7 +114,7 @@ BOOL SvXMLAttrContainerItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE n
rVal.setValue( &xContainer, ::getCppuType((Reference<XNameContainer>*)0) ); rVal.setValue( &xContainer, ::getCppuType((Reference<XNameContainer>*)0) );
return TRUE; return TRUE;
} }
BOOL SvXMLAttrContainerItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId ) BOOL SvXMLAttrContainerItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE /*nMemberId*/ )
{ {
Reference<XInterface> xRef; Reference<XInterface> xRef;
SvUnoAttributeContainer* pContainer = NULL; SvUnoAttributeContainer* pContainer = NULL;
...@@ -124,7 +124,7 @@ BOOL SvXMLAttrContainerItem::PutValue( const com::sun::star::uno::Any& rVal, BYT ...@@ -124,7 +124,7 @@ BOOL SvXMLAttrContainerItem::PutValue( const com::sun::star::uno::Any& rVal, BYT
xRef = *(Reference<XInterface>*)rVal.getValue(); xRef = *(Reference<XInterface>*)rVal.getValue();
Reference<XUnoTunnel> xTunnel(xRef, UNO_QUERY); Reference<XUnoTunnel> xTunnel(xRef, UNO_QUERY);
if( xTunnel.is() ) if( xTunnel.is() )
pContainer = (SvUnoAttributeContainer*)xTunnel->getSomething(SvUnoAttributeContainer::getUnoTunnelId()); pContainer = (SvUnoAttributeContainer*)(ULONG)xTunnel->getSomething(SvUnoAttributeContainer::getUnoTunnelId());
} }
if( pContainer ) if( pContainer )
...@@ -159,7 +159,7 @@ BOOL SvXMLAttrContainerItem::PutValue( const com::sun::star::uno::Any& rVal, BYT ...@@ -159,7 +159,7 @@ BOOL SvXMLAttrContainerItem::PutValue( const com::sun::star::uno::Any& rVal, BYT
pData = (AttributeData*)aAny.getValue(); pData = (AttributeData*)aAny.getValue();
USHORT pos = aName.indexOf( sal_Unicode(':') ); USHORT pos = aName.indexOf( sal_Unicode(':') );
if( pos != -1 ) if( pos != USHRT_MAX )
{ {
const OUString aPrefix( aName.copy( 0, pos )); const OUString aPrefix( aName.copy( 0, pos ));
const OUString aLName( aName.copy( pos+1 )); const OUString aLName( aName.copy( pos+1 ));
......
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