LibreOffice Module sc (master) 1
|
Extends the XclCellAlign struct for export. More...
#include <xestyle.hxx>
Public Member Functions | |
bool | FillFromItemSet (const XclRoot &rRoot, const SfxItemSet &rItemSet, bool bForceLineBreak, XclBiff eBiff, bool bStyle=false) |
Fills the alignment attributes from the passed item set. More... | |
void | FillToXF5 (sal_uInt16 &rnAlign) const |
Fills the data to the passed fields of a BIFF5/BIFF7 XF record. More... | |
void | FillToXF8 (sal_uInt16 &rnAlign, sal_uInt16 &rnMiscAttrib) const |
Fills the data to the passed fields of a BIFF8 XF record. More... | |
void | SaveXml (XclExpXmlStream &rStrm) const |
Public Member Functions inherited from XclCellAlign | |
XclCellAlign () | |
true = Shrink to fit cell size. More... | |
SvxCellHorJustify | GetScHorAlign () const |
Returns the Calc horizontal alignment. More... | |
SvxCellJustifyMethod | GetScHorJustifyMethod () const |
Returns horizontal justification method as Calc's attribute. More... | |
SvxCellVerJustify | GetScVerAlign () const |
Returns the Calc vertical alignment. More... | |
SvxCellJustifyMethod | GetScVerJustifyMethod () const |
Returns vertical justification method as Calc's attribute. More... | |
SvxFrameDirection | GetScFrameDir () const |
Returns the Calc frame direction. More... | |
void | SetScHorAlign (SvxCellHorJustify eHorJust) |
Sets the Calc horizontal alignment. More... | |
void | SetScVerAlign (SvxCellVerJustify eVerJust) |
Sets the Calc vertical alignment. More... | |
void | SetScFrameDir (SvxFrameDirection eFrameDir) |
Sets the Calc frame direction. More... | |
Additional Inherited Members | |
Public Attributes inherited from XclCellAlign | |
sal_uInt8 | mnHorAlign |
sal_uInt8 | mnVerAlign |
Horizontal alignment. More... | |
sal_uInt8 | mnOrient |
Vertical alignment. More... | |
sal_uInt8 | mnTextDir |
Text orientation. More... | |
sal_uInt8 | mnRotation |
CTL text direction. More... | |
sal_uInt8 | mnIndent |
Text rotation angle. More... | |
bool | mbLineBreak |
Indentation. More... | |
bool | mbShrink |
true = Multi-line text. More... | |
Extends the XclCellAlign struct for export.
@descr Provides functions to fill from item sets and to fill to Excel record data.
Definition at line 321 of file xestyle.hxx.
bool XclExpCellAlign::FillFromItemSet | ( | const XclRoot & | rRoot, |
const SfxItemSet & | rItemSet, | ||
bool | bForceLineBreak, | ||
XclBiff | eBiff, | ||
bool | bStyle = false |
||
) |
Fills the alignment attributes from the passed item set.
@descr Fills only the attributes exported in the passed BIFF version.
bForceLineBreak | true = Set line break flag unconditionally. |
Definition at line 1452 of file xestyle.cxx.
References ATTR_HOR_JUSTIFY(), ATTR_HOR_JUSTIFY_METHOD(), ATTR_INDENT(), ATTR_LINEBREAK(), ATTR_ROTATE_VALUE(), ATTR_SHRINKTOFIT(), ATTR_STACKED(), ATTR_VER_JUSTIFY(), ATTR_VER_JUSTIFY_METHOD(), ATTR_WRITINGDIR(), ScfTools::CheckItem(), DBG_ERROR_BIFF, EXC_BIFF2, EXC_BIFF3, EXC_BIFF4, EXC_BIFF5, EXC_BIFF8, EXC_ROT_STACKED, EXC_XF_HOR_DISTRIB, EXC_XF_VER_DISTRIB, SfxItemSet::Get(), SfxItemSet::GetItem(), XclRoot::GetSpaceWidth(), GetValue, XclTools::GetXclOrientFromRot(), XclTools::GetXclRotation(), XclCellAlign::mbLineBreak, XclCellAlign::mbShrink, XclCellAlign::mnHorAlign, XclCellAlign::mnIndent, XclCellAlign::mnOrient, XclCellAlign::mnRotation, XclCellAlign::mnVerAlign, XclCellAlign::SetScFrameDir(), XclCellAlign::SetScHorAlign(), and XclCellAlign::SetScVerAlign().
Referenced by XclExpXF::Init().
void XclExpCellAlign::FillToXF5 | ( | sal_uInt16 & | rnAlign | ) | const |
Fills the data to the passed fields of a BIFF5/BIFF7 XF record.
Definition at line 1550 of file xestyle.cxx.
References EXC_XF_LINEBREAK, insert_value(), XclCellAlign::mbLineBreak, XclCellAlign::mnHorAlign, XclCellAlign::mnOrient, XclCellAlign::mnVerAlign, and set_flag().
Referenced by XclExpXF::WriteBody5().
void XclExpCellAlign::FillToXF8 | ( | sal_uInt16 & | rnAlign, |
sal_uInt16 & | rnMiscAttrib | ||
) | const |
Fills the data to the passed fields of a BIFF8 XF record.
Definition at line 1558 of file xestyle.cxx.
References EXC_XF8_SHRINK, EXC_XF_LINEBREAK, insert_value(), XclCellAlign::mbLineBreak, XclCellAlign::mbShrink, XclCellAlign::mnHorAlign, XclCellAlign::mnIndent, XclCellAlign::mnRotation, XclCellAlign::mnTextDir, XclCellAlign::mnVerAlign, and set_flag().
Referenced by XclExpXF::WriteBody8().
void XclExpCellAlign::SaveXml | ( | XclExpXmlStream & | rStrm | ) | const |
Definition at line 1598 of file xestyle.cxx.
References EXC_XF_TEXTDIR_CONTEXT, XclCellAlign::mbLineBreak, XclCellAlign::mbShrink, XclCellAlign::mnHorAlign, XclCellAlign::mnIndent, XclCellAlign::mnRotation, XclCellAlign::mnTextDir, XclCellAlign::mnVerAlign, rStrm, ToHorizontalAlignment(), ToVerticalAlignment(), and sax_fastparser::UseIf().
Referenced by XclExpXF::SaveXml().