Kaydet (Commit) c1eb286b authored tarafından Hans-Joachim Lankenau's avatar Hans-Joachim Lankenau

INTEGRATION: CWS dr18 (1.92.56); FILE MERGED

2004/06/01 13:02:16 dr 1.92.56.3: RESYNC: (1.92-1.95); FILE MERGED
2004/05/26 15:49:47 dr 1.92.56.2: #i27542# new functions to access Escher BOOL properties directly
2004/05/26 15:20:01 dr 1.92.56.1: #i27542# new functions to access Escher BOOL properties directly
üst 42ef5356
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: msdffimp.cxx,v $ * $RCSfile: msdffimp.cxx,v $
* *
* $Revision: 1.98 $ * $Revision: 1.99 $
* *
* last change: $Author: kz $ $Date: 2004-06-28 16:19:47 $ * last change: $Author: hjs $ $Date: 2004-06-28 17:38:07 $
* *
* 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
...@@ -680,6 +680,15 @@ UINT32 DffPropSet::GetPropertyValue( UINT32 nId, UINT32 nDefault ) const ...@@ -680,6 +680,15 @@ UINT32 DffPropSet::GetPropertyValue( UINT32 nId, UINT32 nDefault ) const
return ( mpFlags[ nId ].bSet ) ? mpContents[ nId ] : nDefault; return ( mpFlags[ nId ].bSet ) ? mpContents[ nId ] : nDefault;
}; };
bool DffPropSet::GetPropertyBool( UINT32 nId, bool bDefault ) const
{
UINT32 nBaseId = nId | 31; // base ID to get the UINT32 property value
UINT32 nMask = 1 << (nBaseId - nId); // bit mask of the boolean property
UINT32 nPropValue = GetPropertyValue( nBaseId, bDefault ? nMask : 0 );
return (nPropValue & nMask) != 0;
}
void DffPropSet::SetPropertyValue( UINT32 nId, UINT32 nValue ) const void DffPropSet::SetPropertyValue( UINT32 nId, UINT32 nValue ) const
{ {
if ( !mpFlags[ nId ].bSet ) if ( !mpFlags[ nId ].bSet )
...@@ -6103,6 +6112,7 @@ BOOL SvxMSDffManager::GetBLIPDirect(SvStream& rBLIPStream, Graphic& rData) const ...@@ -6103,6 +6112,7 @@ BOOL SvxMSDffManager::GetBLIPDirect(SvStream& rBLIPStream, Graphic& rData) const
pGrStream = pOut; pGrStream = pOut;
} }
//#define DBG_EXTRACTGRAPHICS
#ifdef DBG_EXTRACTGRAPHICS #ifdef DBG_EXTRACTGRAPHICS
static sal_Int32 nCount; static sal_Int32 nCount;
......
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