unobtabl.cxx (f6e50924) | unobtabl.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 --- 61 unchanged lines hidden (view full) --- 70 71bool SvxUnoBitmapTable::isValid( const NameOrIndex* pItem ) const 72{ 73 if( SvxUnoNameItemTable::isValid( pItem ) ) 74 { 75 const XFillBitmapItem* pBitmapItem = dynamic_cast< const XFillBitmapItem* >( pItem ); 76 if( pBitmapItem ) 77 { | 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 --- 61 unchanged lines hidden (view full) --- 70 71bool SvxUnoBitmapTable::isValid( const NameOrIndex* pItem ) const 72{ 73 if( SvxUnoNameItemTable::isValid( pItem ) ) 74 { 75 const XFillBitmapItem* pBitmapItem = dynamic_cast< const XFillBitmapItem* >( pItem ); 76 if( pBitmapItem ) 77 { |
78 const GraphicObject& rGraphic = pBitmapItem->GetBitmapValue().GetGraphicObject(); 79 return rGraphic.GetSizeBytes() > 0; | 78 const Graphic& rGraphic = pBitmapItem->GetGraphicObject().GetGraphic(); 79 80 return rGraphic.GetSizeBytes() > 0; |
80 } 81 } 82 83 return false; 84} 85 86OUString SAL_CALL SvxUnoBitmapTable::getImplementationName() throw( uno::RuntimeException ) 87{ --- 31 unchanged lines hidden --- | 81 } 82 } 83 84 return false; 85} 86 87OUString SAL_CALL SvxUnoBitmapTable::getImplementationName() throw( uno::RuntimeException ) 88{ --- 31 unchanged lines hidden --- |