Kaydet (Commit) 6f90ab5a authored tarafından Mathias Bauer's avatar Mathias Bauer

#98399#: different flags for ImageRotation and ImageReflection

üst a3d8ae1f
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: globals.hxx,v $ * $RCSfile: globals.hxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: mba $ $Date: 2002-04-17 12:53:06 $ * last change: $Author: mba $ $Date: 2002-08-23 11:13:19 $
* *
* 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
...@@ -144,6 +144,7 @@ struct SvGlobalHashNames ...@@ -144,6 +144,7 @@ struct SvGlobalHashNames
SvStringHashEntryRef MM_SbxObject; SvStringHashEntryRef MM_SbxObject;
SvStringHashEntryRef MM_Container; SvStringHashEntryRef MM_Container;
SvStringHashEntryRef MM_ImageRotation; SvStringHashEntryRef MM_ImageRotation;
SvStringHashEntryRef MM_ImageReflection;
SvStringHashEntryRef MM_IsCollection; SvStringHashEntryRef MM_IsCollection;
SvStringHashEntryRef MM_ReadOnlyDoc; SvStringHashEntryRef MM_ReadOnlyDoc;
SvStringHashEntryRef MM_ConfigName; SvStringHashEntryRef MM_ConfigName;
...@@ -254,6 +255,7 @@ HASH_INLINE(FastCall) ...@@ -254,6 +255,7 @@ HASH_INLINE(FastCall)
HASH_INLINE(SbxObject) HASH_INLINE(SbxObject)
HASH_INLINE(Container) HASH_INLINE(Container)
HASH_INLINE(ImageRotation) HASH_INLINE(ImageRotation)
HASH_INLINE(ImageReflection)
HASH_INLINE(IsCollection) HASH_INLINE(IsCollection)
HASH_INLINE(ReadOnlyDoc) HASH_INLINE(ReadOnlyDoc)
HASH_INLINE(ConfigName) HASH_INLINE(ConfigName)
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: slot.hxx,v $ * $RCSfile: slot.hxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: mba $ $Date: 2002-04-17 12:53:06 $ * last change: $Author: mba $ $Date: 2002-08-23 11:13:20 $
* *
* 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
...@@ -104,6 +104,7 @@ class SvMetaSlot : public SvMetaAttribute ...@@ -104,6 +104,7 @@ class SvMetaSlot : public SvMetaAttribute
SvBOOL aFastCall; SvBOOL aFastCall;
SvBOOL aContainer; SvBOOL aContainer;
SvBOOL aImageRotation; SvBOOL aImageRotation;
SvBOOL aImageReflection;
SvIdentifier aPseudoPrefix; SvIdentifier aPseudoPrefix;
SvString aDisableFlags; SvString aDisableFlags;
SvMetaSlot* pLinkedSlot; SvMetaSlot* pLinkedSlot;
...@@ -210,6 +211,8 @@ protected: ...@@ -210,6 +211,8 @@ protected:
{ aContainer = bSet; } { aContainer = bSet; }
void SetImageRotation( BOOL bSet ) void SetImageRotation( BOOL bSet )
{ aImageRotation = bSet; } { aImageRotation = bSet; }
void SetImageReflection( BOOL bSet )
{ aImageReflection = bSet; }
public: public:
SV_DECL_META_FACTORY1( SvMetaSlot, SvMetaReference, 11 ) SV_DECL_META_FACTORY1( SvMetaSlot, SvMetaReference, 11 )
...@@ -258,6 +261,7 @@ public: ...@@ -258,6 +261,7 @@ public:
BOOL GetFastCall() const; BOOL GetFastCall() const;
BOOL GetContainer() const; BOOL GetContainer() const;
BOOL GetImageRotation() const; BOOL GetImageRotation() const;
BOOL GetImageReflection() const;
SvMetaSlot* GetLinkedSlot() const SvMetaSlot* GetLinkedSlot() const
{ return pLinkedSlot; } { return pLinkedSlot; }
SvMetaSlot* GetNextSlot() const SvMetaSlot* GetNextSlot() const
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: slot.cxx,v $ * $RCSfile: slot.cxx,v $
* *
* $Revision: 1.8 $ * $Revision: 1.9 $
* *
* last change: $Author: rt $ $Date: 2002-06-14 12:22:12 $ * last change: $Author: mba $ $Date: 2002-08-23 11:13:21 $
* *
* 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
...@@ -219,6 +219,7 @@ void SvMetaSlot::Load( SvPersistStream & rStm ) ...@@ -219,6 +219,7 @@ void SvMetaSlot::Load( SvPersistStream & rStm )
TEST_READ TEST_READ
if( nMask & 0x0001 ) rStm >> aUnoName; if( nMask & 0x0001 ) rStm >> aUnoName;
if( nMask & 0x0002 ) rStm >> aImageReflection;
} }
void SvMetaSlot::Save( SvPersistStream & rStm ) void SvMetaSlot::Save( SvPersistStream & rStm )
...@@ -335,11 +336,14 @@ void SvMetaSlot::Save( SvPersistStream & rStm ) ...@@ -335,11 +336,14 @@ void SvMetaSlot::Save( SvPersistStream & rStm )
if( nMask & 0x8000 ) rStm << aImageRotation; if( nMask & 0x8000 ) rStm << aImageRotation;
nMask = 0; nMask = 0;
if( aUnoName.IsSet() ) nMask |= 0x0001; if( aUnoName.IsSet() ) nMask |= 0x0001;
if( aImageReflection.IsSet() ) nMask |= 0x0002;
rStm << nMask; rStm << nMask;
TEST_WRITE TEST_WRITE
if( nMask & 0x0001 ) rStm << aUnoName; if( nMask & 0x0001 ) rStm << aUnoName;
TEST_WRITE
if( nMask & 0x0002 ) rStm << aImageReflection;
} }
/************************************************************************* /*************************************************************************
...@@ -572,6 +576,12 @@ BOOL SvMetaSlot::GetImageRotation() const ...@@ -572,6 +576,12 @@ BOOL SvMetaSlot::GetImageRotation() const
return ((SvMetaSlot *)GetRef())->GetImageRotation(); return ((SvMetaSlot *)GetRef())->GetImageRotation();
} }
BOOL SvMetaSlot::GetImageReflection() const
{
if( aImageReflection.IsSet() || !GetRef() ) return aImageReflection;
return ((SvMetaSlot *)GetRef())->GetImageReflection();
}
const ByteString& SvMetaSlot::GetUnoName() const const ByteString& SvMetaSlot::GetUnoName() const
{ {
if( aUnoName.IsSet() || !GetRef() ) return aUnoName; if( aUnoName.IsSet() || !GetRef() ) return aUnoName;
...@@ -686,6 +696,7 @@ void SvMetaSlot::ReadAttributesSvIdl( SvIdlDataBase & rBase, ...@@ -686,6 +696,7 @@ void SvMetaSlot::ReadAttributesSvIdl( SvIdlDataBase & rBase,
bOk |= aFastCall.ReadSvIdl( SvHash_FastCall(), rInStm ); bOk |= aFastCall.ReadSvIdl( SvHash_FastCall(), rInStm );
bOk |= aContainer.ReadSvIdl( SvHash_Container(), rInStm ); bOk |= aContainer.ReadSvIdl( SvHash_Container(), rInStm );
bOk |= aImageRotation.ReadSvIdl( SvHash_ImageRotation(), rInStm ); bOk |= aImageRotation.ReadSvIdl( SvHash_ImageRotation(), rInStm );
bOk |= aImageReflection.ReadSvIdl( SvHash_ImageReflection(), rInStm );
bOk |= aUnoName.ReadSvIdl( SvHash_UnoName(), rInStm ); bOk |= aUnoName.ReadSvIdl( SvHash_UnoName(), rInStm );
if( !bOk ) if( !bOk )
...@@ -912,6 +923,12 @@ void SvMetaSlot::WriteAttributesSvIdl( SvIdlDataBase & rBase, ...@@ -912,6 +923,12 @@ void SvMetaSlot::WriteAttributesSvIdl( SvIdlDataBase & rBase,
aDel = ", "; aDel = ", ";
} }
if( aImageReflection )
{
( aOut += aDel ) += aImageReflection.GetSvIdlString( SvHash_ImageReflection() );
aDel = ", ";
}
if( aOut.Len() ) if( aOut.Len() )
{ {
WriteTab( rOutStm, nTab ); WriteTab( rOutStm, nTab );
...@@ -1453,6 +1470,8 @@ void SvMetaSlot::WriteSlot( const ByteString & rShellName, USHORT nCount, ...@@ -1453,6 +1470,8 @@ void SvMetaSlot::WriteSlot( const ByteString & rShellName, USHORT nCount,
rOutStm << MakeSlotName( SvHash_ReadOnlyDoc() ).GetBuffer() << '|'; rOutStm << MakeSlotName( SvHash_ReadOnlyDoc() ).GetBuffer() << '|';
if( GetImageRotation() ) if( GetImageRotation() )
rOutStm << MakeSlotName( SvHash_ImageRotation() ).GetBuffer() << '|'; rOutStm << MakeSlotName( SvHash_ImageRotation() ).GetBuffer() << '|';
if( GetImageReflection() )
rOutStm << MakeSlotName( SvHash_ImageReflection() ).GetBuffer() << '|';
rOutStm << '0'; rOutStm << '0';
...@@ -1887,6 +1906,9 @@ void SvMetaSlot::CompareSlotAttributes( SvMetaSlot* pSlot ) ...@@ -1887,6 +1906,9 @@ void SvMetaSlot::CompareSlotAttributes( SvMetaSlot* pSlot )
if ( GetImageRotation() != pSlot->GetImageRotation() ) if ( GetImageRotation() != pSlot->GetImageRotation() )
aStr += " ImageRotation\n"; aStr += " ImageRotation\n";
if ( GetImageReflection() != pSlot->GetImageReflection() )
aStr += " ImageReflection\n";
if ( !GetPseudoPrefix().Equals( pSlot->GetPseudoPrefix() ) ) if ( !GetPseudoPrefix().Equals( pSlot->GetPseudoPrefix() ) )
aStr += " PseudoPrefix\n"; aStr += " PseudoPrefix\n";
...@@ -1944,6 +1966,7 @@ void SvMetaSlot::WriteCSV( SvIdlDataBase& rBase, SvStream& rStrm ) ...@@ -1944,6 +1966,7 @@ void SvMetaSlot::WriteCSV( SvIdlDataBase& rBase, SvStream& rStrm )
WriteBool( GetHasDialog(), rStrm ); WriteBool( GetHasDialog(), rStrm );
WriteBool( GetReadOnlyDoc(), rStrm ); WriteBool( GetReadOnlyDoc(), rStrm );
WriteBool( GetImageRotation(), rStrm ); WriteBool( GetImageRotation(), rStrm );
WriteBool( GetImageReflection(), rStrm );
rStrm << GetDisableFlags().GetBuffer() << ','; rStrm << GetDisableFlags().GetBuffer() << ',';
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: command.cxx,v $ * $RCSfile: command.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: mba $ $Date: 2002-04-17 12:53:07 $ * last change: $Author: mba $ $Date: 2002-08-23 11:13:22 $
* *
* 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
...@@ -138,6 +138,7 @@ char* SyntaxStrings[] = { ...@@ -138,6 +138,7 @@ char* SyntaxStrings[] = {
"\t\tHasDialog", "\t\tHasDialog",
"\t\tIsCollection", "\t\tIsCollection",
"\t\tImageRotation", "\t\tImageRotation",
"\t\tImageReflection",
"\t\tPseudoPrefix = Identifier", "\t\tPseudoPrefix = Identifier",
"\t\tPseudoSlots", "\t\tPseudoSlots",
"\t\tReadOnly", "\t\tReadOnly",
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: globals.cxx,v $ * $RCSfile: globals.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: mba $ $Date: 2002-04-17 12:53:07 $ * last change: $Author: mba $ $Date: 2002-08-23 11:13:22 $
* *
* 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
...@@ -216,6 +216,7 @@ SvGlobalHashNames::SvGlobalHashNames() ...@@ -216,6 +216,7 @@ SvGlobalHashNames::SvGlobalHashNames()
A_ENTRY(SbxObject) A_ENTRY(SbxObject)
A_ENTRY(Container) A_ENTRY(Container)
A_ENTRY(ImageRotation) A_ENTRY(ImageRotation)
A_ENTRY(ImageReflection)
A_ENTRY(IsCollection) A_ENTRY(IsCollection)
A_ENTRY(ReadOnlyDoc) A_ENTRY(ReadOnlyDoc)
A_ENTRY(ConfigName) A_ENTRY(ConfigName)
......
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