Kaydet (Commit) 7d6c5e79 authored tarafından Herbert Dürr's avatar Herbert Dürr

provide complete types of some SdrCustomShapeGeometryItem functors before they are used

üst 198a9ea7
......@@ -138,5 +138,22 @@ public:
SdrTextAutoGrowSizeItem( SvStream& rIn ) : SdrOnOffItem( SDRATTR_TEXT_AUTOGROWSIZE, rIn ) {}
};
// some useful inline methods
inline bool SdrCustomShapeGeometryItem::PropertyEq::operator()( const rtl::OUString& r1, const rtl::OUString& r2 ) const
{
return r1.equals( r2 );
}
inline bool SdrCustomShapeGeometryItem::PropertyPairEq::operator()( const SdrCustomShapeGeometryItem::PropertyPair& r1, const SdrCustomShapeGeometryItem::PropertyPair& r2 ) const
{
return ( r1.first.equals( r2.first ) ) && ( r1.second.equals( r2.second ) );
}
inline size_t SdrCustomShapeGeometryItem::PropertyPairHash::operator()( const SdrCustomShapeGeometryItem::PropertyPair &r1 ) const
{
return (size_t)r1.first.hashCode() + r1.second.hashCode();
};
#endif
......@@ -43,19 +43,6 @@ SdrCustomShapeDataItem::SdrCustomShapeDataItem( const String& rVal )
: SfxStringItem( SDRATTR_CUSTOMSHAPE_DATA, rVal )
{}
bool SdrCustomShapeGeometryItem::PropertyEq::operator()( const rtl::OUString& r1, const rtl::OUString& r2 ) const
{
return r1.equals( r2 );
}
bool SdrCustomShapeGeometryItem::PropertyPairEq::operator()( const SdrCustomShapeGeometryItem::PropertyPair& r1, const SdrCustomShapeGeometryItem::PropertyPair& r2 ) const
{
return ( r1.first.equals( r2.first ) ) && ( r1.second.equals( r2.second ) );
}
size_t SdrCustomShapeGeometryItem::PropertyPairHash::operator()( const SdrCustomShapeGeometryItem::PropertyPair &r1 ) const
{
return (size_t)r1.first.hashCode() + r1.second.hashCode();
};
TYPEINIT1_FACTORY( SdrCustomShapeGeometryItem, SfxPoolItem , new SdrCustomShapeGeometryItem);
SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem()
: SfxPoolItem( SDRATTR_CUSTOMSHAPE_GEOMETRY )
......
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