LibreOffice Module svx (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
SgaObject Class Referenceabstract

#include <galobj.hxx>

Inheritance diagram for SgaObject:
[legend]
Collaboration diagram for SgaObject:
[legend]

Public Member Functions

 SgaObject ()
 
virtual ~SgaObject ()
 
virtual SgaObjKind GetObjKind () const =0
 
virtual sal_uInt16 GetVersion () const =0
 
virtual BitmapEx GetThumbBmp () const
 
const GDIMetaFileGetThumbMtf () const
 
const INetURLObjectGetURL () const
 
bool IsValid () const
 
bool IsThumbBitmap () const
 
OUString const & GetTitle () const
 
void SetTitle (const OUString &rTitle)
 
BitmapEx createPreviewBitmapEx (const Size &rSizePixel) const
 

Protected Member Functions

virtual void WriteData (SvStream &rOut, const OUString &rDestDir) const
 
virtual void ReadData (SvStream &rIn, sal_uInt16 &rReadVersion)
 
bool CreateThumb (const Graphic &rGraphic)
 

Protected Attributes

BitmapEx aThumbBmp
 
GDIMetaFile aThumbMtf
 
INetURLObject aURL
 
OUString aTitle
 
bool bIsValid
 
bool bIsThumbBmp
 

Private Member Functions

void ImplUpdateURL (const INetURLObject &rNewURL)
 

Friends

class GalleryTheme
 
SvStreamWriteSgaObject (SvStream &rOut, const SgaObject &rObj)
 
SvStreamReadSgaObject (SvStream &rIn, SgaObject &rObj)
 

Detailed Description

Definition at line 43 of file galobj.hxx.

Constructor & Destructor Documentation

SgaObject::SgaObject ( )

Definition at line 46 of file galobj.cxx.

virtual SgaObject::~SgaObject ( )
inlinevirtual

Definition at line 67 of file galobj.hxx.

Member Function Documentation

BitmapEx SgaObject::createPreviewBitmapEx ( const Size rSizePixel) const
bool SgaObject::CreateThumb ( const Graphic rGraphic)
protected
virtual SgaObjKind SgaObject::GetObjKind ( ) const
pure virtual
virtual BitmapEx SgaObject::GetThumbBmp ( ) const
inlinevirtual

Reimplemented in SgaObjectSound.

Definition at line 72 of file galobj.hxx.

Referenced by createPreviewBitmapEx().

const GDIMetaFile& SgaObject::GetThumbMtf ( ) const
inline

Definition at line 73 of file galobj.hxx.

Referenced by createPreviewBitmapEx().

OUString const & SgaObject::GetTitle ( ) const

Definition at line 218 of file galobj.cxx.

References aTitle.

Referenced by GalleryBrowser2::GetItemText(), and GalleryTheme::InsertObject().

const INetURLObject& SgaObject::GetURL ( ) const
inline
virtual sal_uInt16 SgaObject::GetVersion ( ) const
pure virtual

Implemented in SgaObjectBmp, SgaObjectSvDraw, and SgaObjectSound.

Referenced by WriteData().

void SgaObject::ImplUpdateURL ( const INetURLObject rNewURL)
inlineprivate

Definition at line 49 of file galobj.hxx.

bool SgaObject::IsThumbBitmap ( ) const
inline

Definition at line 76 of file galobj.hxx.

Referenced by createPreviewBitmapEx().

bool SgaObject::IsValid ( ) const
inline

Definition at line 75 of file galobj.hxx.

Referenced by GalleryTheme::InsertObject().

void SgaObject::ReadData ( SvStream rIn,
sal_uInt16 &  rReadVersion 
)
protectedvirtual
void SgaObject::SetTitle ( const OUString &  rTitle)

Definition at line 223 of file galobj.cxx.

References aTitle.

Referenced by GalleryTheme::InsertObject().

void SgaObject::WriteData ( SvStream rOut,
const OUString &  rDestDir 
) const
protectedvirtual

Friends And Related Function Documentation

friend class GalleryTheme
friend

Definition at line 45 of file galobj.hxx.

SvStream& ReadSgaObject ( SvStream rIn,
SgaObject rObj 
)
friend

Definition at line 234 of file galobj.cxx.

SvStream& WriteSgaObject ( SvStream rOut,
const SgaObject rObj 
)
friend

Definition at line 228 of file galobj.cxx.

Member Data Documentation

BitmapEx SgaObject::aThumbBmp
protected
GDIMetaFile SgaObject::aThumbMtf
protected

Definition at line 54 of file galobj.hxx.

Referenced by ReadData(), and WriteData().

OUString SgaObject::aTitle
protected
INetURLObject SgaObject::aURL
protected
bool SgaObject::bIsThumbBmp
protected

Definition at line 58 of file galobj.hxx.

Referenced by ReadData(), and WriteData().

bool SgaObject::bIsValid
protected

The documentation for this class was generated from the following files: