73 , m_bNumberRight(false)
80 , m_eAlignType(other.m_eAlignType)
81 , m_fTextIndent(other.m_fTextIndent)
82 , m_aBackColor(other.m_aBackColor)
83 , m_aMargin(other.m_aMargin)
84 , m_aPadding(other.m_aPadding)
85 , m_pFont(other.m_pFont)
86 , m_aShadow(other.m_aShadow)
87 , m_aDropcap(other.m_aDropcap)
88 , m_aLineHeight(other.m_aLineHeight)
89 , m_aBreaks(other.m_aBreaks)
90 , m_nFlag(other.m_nFlag)
91 , m_bNumberRight(other.m_bNumberRight)
107 std::unique_ptr<XFTabStyle> pCopyStyle(
new XFTabStyle(*pTabStyle));
156 std::unique_ptr<XFTabStyle> pCopyStyle(
new XFTabStyle(*pTabStyle));
226 assert(fDistance>=0);
260 std::unique_ptr<XFTabStyle> tab(
new XFTabStyle());
261 tab->SetTabType(
type);
263 tab->SetLeaderChar(leader);
264 tab->SetDelimiter(delimiter);
322 else if( pOther->
m_pFont.is() )
359 if( !style.isEmpty() )
389 pAttrList->
AddAttribute(
"text:line-number", OUString::number(0) );
Attribute list interface for sax writer.
virtual void Clear()=0
@descr: Clear all the attributes in the attribute list.
virtual void AddAttribute(const OUString &name, const OUString &value)=0
@descr: Add an attribute to the attribute list.
Stream wrapper for sax writer.
virtual IXFAttrList * GetAttrList()=0
@descr return the Attribute list interface.
virtual void StartElement(const OUString &oustr)=0
@descr Wrap XDocumentHandler::startElement()
virtual void EndElement(const OUString &oustr)=0
@descr Wrap XDocumentHandler::endElement()
@descr Interface for all style object.
virtual enumXFStyle GetStyleFamily()=0
@descr: return the style family.
Borders for object with borders.
void ToXml(IXFStream *pStrm)
@descr Output breaks object.
bool IsValid() const
@descr helper function to assert whether a color is valid.
OUString ToString() const
enumXFStyle GetStyleFamily() override
@descr get style family.
virtual void ToXml(IXFStream *pStrm) override
void ToXml(IXFStream *pStrm)
void SetDistance(double distance)
void SetLines(sal_Int32 lines)
void SetCharCount(sal_Int32 count)
void ToXml(IXFStream *pStrm)
void SetLeastHeight(double value)
void SetPercent(sal_Int32 value)
void SetSpace(double value)
void SetHeight(double value)
void SetLeft(double left)
void SetRight(double right)
void SetBottom(double bottom)
void ToXml(IXFStream *pStrm)
void ToXml(IXFStream *pStrm)
@descr Output padding properties.
Style object for aragraph.
virtual void ToXml(IXFStream *strm) override
void SetIndent(double indent)
@descr Set the indent of the paragraph.
void SetDropCap(sal_Int16 nLength, sal_Int16 nLines, double fDistance=0)
@descr Set drop caption of the paragraph.
std::unique_ptr< XFBGImage > m_pBGImage
void SetMargins(double left, double right, double top=-1, double bottom=-1)
@descr Set the Margins of the paragraph.
enumXFAlignType m_eAlignType
void SetLineHeight(enumLHType type, double value)
@descr Set line height of the paragraph.
virtual ~XFParaStyle() override
std::unique_ptr< XFBorders > m_pBorders
XFParaStyle & operator=(const XFParaStyle &other)
virtual enumXFStyle GetStyleFamily() override
@descr get style family.
void SetShadow(enumXFShadowPos pos, double offset, XFColor const &color)
@descr Set the shadow of the paragraph.
rtl::Reference< XFFont > m_pFont
virtual bool Equal(IXFStyle *pStyle) override
Affirm whether two XFParaStyle objects are equal.
void SetFont(rtl::Reference< XFFont > const &font)
@descr set the paragraph default font.
void SetBackImage(std::unique_ptr< XFBGImage > &rImage)
@descr Set background image of the paragraph.
void AddTabStyle(enumXFTab type, double len, sal_Unicode leader, sal_Unicode delimiter)
@descr Add a tab style.
void SetBorders(XFBorders *pBorders)
@descr The borders is complex, so you have to create one before use.
XFLineHeight m_aLineHeight
void SetBackColor(XFColor const &color)
@descr Set background color of the paragraph.
void SetPosition(enumXFShadowPos pos)
@descr set shadow position.
void SetOffset(double offset)
@descr Set shadow offset from owner object.
void ToXml(IXFStream *pStrm)
void SetColor(const XFColor &color)
@descr Set shadow color.
IXFStyleRet AddStyle(std::unique_ptr< IXFStyle > pStyle)
@descr Add style to container.
size_t GetCount() const
@descr get count of styles in the container.
void Reset()
@descr clear container.
virtual void ToXml(IXFStream *pStrm)
@descr Output all style.
const IXFStyle * Item(size_t index) const
@descr get style by index.
implements ixfstyle interface.
virtual OUString GetStyleName() override
@descr get style name.
OUString m_strParentStyleName
virtual OUString GetParentStyleName() override
@descr set parent style name.
#define XFPARA_FLAG_BACKCOLOR
OUString GetAlignName(enumXFAlignType align)