LibreOffice Module lotuswordpro (master) 1
|
Background image object. More...
#include <xfbgimage.hxx>
Public Member Functions | |
XFBGImage () | |
void | SetFileLink (const OUString &fileName) |
@descr Use file link as image source. More... | |
void | SetImageData (sal_uInt8 const *buf, int len) |
@descr Use base64 stream as image source. More... | |
void | SetPosition (enumXFAlignType horiAlign=enumXFAlignCenter, enumXFAlignType vertAlign=enumXFAlignCenter) |
@descr Set the image position type. More... | |
void | SetRepeate () |
@descr Set background image repeat style. More... | |
void | SetStretch () |
@descr Set whether the image should be stretched to fill the owner object. More... | |
virtual bool | Equal (IXFStyle *pStyle) override |
@descr decide whether there has been a style that is the same as this object. More... | |
virtual void | ToXml (IXFStream *pStrm) override |
Public Member Functions inherited from XFStyle | |
XFStyle () | |
virtual | ~XFStyle () override |
XFStyle (XFStyle const &)=default | |
XFStyle (XFStyle &&)=default | |
XFStyle & | operator= (XFStyle const &)=default |
XFStyle & | operator= (XFStyle &&)=default |
virtual OUString | GetStyleName () override |
@descr get style name. More... | |
virtual void | SetStyleName (const OUString &styleName) override |
@descr set style name. More... | |
virtual OUString | GetParentStyleName () override |
@descr set parent style name. More... | |
virtual void | SetParentStyleName (const OUString &styleName) override |
@descr return parent style name. More... | |
virtual enumXFStyle | GetStyleFamily () override |
@descr get style family. More... | |
virtual bool | Equal (IXFStyle *pStyle) override |
@descr decide whether two style are equal. More... | |
Public Member Functions inherited from IXFStyle | |
IXFStyle ()=default | |
IXFStyle (IXFStyle const &)=default | |
IXFStyle (IXFStyle &&)=default | |
IXFStyle & | operator= (IXFStyle const &)=default |
IXFStyle & | operator= (IXFStyle &&)=default |
virtual | ~IXFStyle () |
virtual OUString | GetStyleName ()=0 |
@descr: return the style name. More... | |
virtual void | SetStyleName (const OUString &styleName)=0 |
@descr: set the name of the style. More... | |
virtual OUString | GetParentStyleName ()=0 |
@descr return the parent style name. More... | |
virtual void | SetParentStyleName (const OUString &parent)=0 |
@descr: Parent paragraph style. More... | |
virtual enumXFStyle | GetStyleFamily ()=0 |
@descr: return the style family. More... | |
virtual bool | Equal (IXFStyle *pStyle)=0 |
@descr: Compare whatever two style object are the same. More... | |
virtual void | ToXml (IXFStream *stream)=0 |
Private Attributes | |
OUString | m_strFileName |
OUString | m_strData |
bool | m_bUserFileLink |
bool | m_bRepeate |
bool | m_bStretch |
bool | m_bPosition |
enumXFAlignType | m_eHoriAlign |
enumXFAlignType | m_eVertAlign |
Friends | |
bool | operator== (XFBGImage const &img1, XFBGImage const &img2) |
bool | operator!= (XFBGImage const &img1, XFBGImage const &img2) |
Additional Inherited Members | |
Protected Attributes inherited from XFStyle | |
OUString | m_strStyleName |
OUString | m_strParentStyleName |
Background image object.
Definition at line 69 of file xfbgimage.hxx.
XFBGImage::XFBGImage | ( | ) |
Definition at line 65 of file xfbgimage.cxx.
|
overridevirtual |
@descr decide whether there has been a style that is the same as this object.
If it use base64 stream, i'll simply return sal_False because it's too slow to compare two base64 stream.
Reimplemented from XFStyle.
Definition at line 80 of file xfbgimage.cxx.
|
inline |
@descr Use file link as image source.
Definition at line 123 of file xfbgimage.hxx.
References m_bUserFileLink, and m_strFileName.
@descr Use base64 stream as image source.
Definition at line 74 of file xfbgimage.cxx.
References XFBase64::Encode(), m_bUserFileLink, and m_strData.
|
inline |
@descr Set the image position type.
Definition at line 129 of file xfbgimage.hxx.
References m_bPosition, m_bRepeate, m_bStretch, m_eHoriAlign, and m_eVertAlign.
|
inline |
@descr Set background image repeat style.
Definition at line 139 of file xfbgimage.hxx.
References m_bPosition, m_bRepeate, and m_bStretch.
|
inline |
@descr Set whether the image should be stretched to fill the owner object.
Definition at line 146 of file xfbgimage.hxx.
References m_bPosition, m_bRepeate, and m_bStretch.
|
overridevirtual |
Implements IXFStyle.
Definition at line 85 of file xfbgimage.cxx.
References IXFAttrList::AddAttribute(), IXFStream::Characters(), IXFAttrList::Clear(), IXFStream::EndElement(), enumXFAlignCenter, enumXFAlignEnd, enumXFAlignStart, GetAlignName(), IXFStream::GetAttrList(), m_bPosition, m_bRepeate, m_bStretch, m_bUserFileLink, m_eHoriAlign, m_eVertAlign, m_strData, m_strFileName, and IXFStream::StartElement().
Definition at line 157 of file xfbgimage.cxx.
Definition at line 129 of file xfbgimage.cxx.
|
private |
Definition at line 118 of file xfbgimage.hxx.
Referenced by SetPosition(), SetRepeate(), SetStretch(), and ToXml().
|
private |
Definition at line 116 of file xfbgimage.hxx.
Referenced by SetPosition(), SetRepeate(), SetStretch(), and ToXml().
|
private |
Definition at line 117 of file xfbgimage.hxx.
Referenced by SetPosition(), SetRepeate(), SetStretch(), and ToXml().
|
private |
Definition at line 115 of file xfbgimage.hxx.
Referenced by SetFileLink(), SetImageData(), and ToXml().
|
private |
Definition at line 119 of file xfbgimage.hxx.
Referenced by SetPosition(), and ToXml().
|
private |
Definition at line 120 of file xfbgimage.hxx.
Referenced by SetPosition(), and ToXml().
|
private |
Definition at line 114 of file xfbgimage.hxx.
Referenced by SetImageData(), and ToXml().
|
private |
Definition at line 113 of file xfbgimage.hxx.
Referenced by SetFileLink(), and ToXml().