XPropertyTable.cxx (f6e50924) | XPropertyTable.cxx (70d3707a) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 683 unchanged lines hidden (view full) --- 692uno::Reference< uno::XInterface > SAL_CALL SvxUnoXBitmapTable_createInstance( XPropertyList* pTable ) throw() 693{ 694 return (OWeakObject*)new SvxUnoXBitmapTable( pTable ); 695} 696 697// SvxUnoXPropertyTable 698uno::Any SvxUnoXBitmapTable::getAny( const XPropertyEntry* pEntry ) const throw() 699{ | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 683 unchanged lines hidden (view full) --- 692uno::Reference< uno::XInterface > SAL_CALL SvxUnoXBitmapTable_createInstance( XPropertyList* pTable ) throw() 693{ 694 return (OWeakObject*)new SvxUnoXBitmapTable( pTable ); 695} 696 697// SvxUnoXPropertyTable 698uno::Any SvxUnoXBitmapTable::getAny( const XPropertyEntry* pEntry ) const throw() 699{ |
700 OUString aURL( RTL_CONSTASCII_USTRINGPARAM(UNO_NAME_GRAPHOBJ_URLPREFIX)); 701 aURL += OUString::createFromAscii( ((XBitmapEntry*)pEntry)->GetXBitmap().GetGraphicObject().GetUniqueID().GetBuffer() ); | 700 OUString aURL( RTL_CONSTASCII_USTRINGPARAM(UNO_NAME_GRAPHOBJ_URLPREFIX)); 701 const GraphicObject& rGraphicObject(((XBitmapEntry*)pEntry)->GetGraphicObject()); 702 aURL += OUString::createFromAscii(rGraphicObject.GetUniqueID().GetBuffer()); |
702 703 uno::Any aAny; 704 aAny <<= aURL; 705 return aAny; 706} 707 708XPropertyEntry* SvxUnoXBitmapTable::getEntry( const OUString& rName, const uno::Any& rAny ) const throw() 709{ 710 OUString aURL; 711 if(!(rAny >>= aURL)) 712 return NULL; 713 | 703 704 uno::Any aAny; 705 aAny <<= aURL; 706 return aAny; 707} 708 709XPropertyEntry* SvxUnoXBitmapTable::getEntry( const OUString& rName, const uno::Any& rAny ) const throw() 710{ 711 OUString aURL; 712 if(!(rAny >>= aURL)) 713 return NULL; 714 |
714 GraphicObject aGrafObj( GraphicObject::CreateGraphicObjectFromURL( aURL ) ); 715 XOBitmap aBMP( aGrafObj ); 716 717 const String aName( rName ); 718 return new XBitmapEntry( aBMP, aName ); | 715 const GraphicObject aGrafObj(GraphicObject::CreateGraphicObjectFromURL(aURL)); 716 const String aName(rName); 717 718 return new XBitmapEntry(aGrafObj, aName); |
719} 720 721// XElementAccess 722uno::Type SAL_CALL SvxUnoXBitmapTable::getElementType() 723 throw( uno::RuntimeException ) 724{ 725 return ::getCppuType((const OUString*)0); 726} --- 13 unchanged lines hidden --- | 719} 720 721// XElementAccess 722uno::Type SAL_CALL SvxUnoXBitmapTable::getElementType() 723 throw( uno::RuntimeException ) 724{ 725 return ::getCppuType((const OUString*)0); 726} --- 13 unchanged lines hidden --- |