/// This pool item subclass can appear in the item set of an SwPageDesc, and contains settings /// visible on the UI via Format -> Page Style -> Columns tab. /// It can also appear in the item set of an SwSectionFormat, and then contains settings visible on /// the UI via Format -> Sections -> Options -> Columns tab. class SW_DLLPUBLIC SwFormatCol final : public SfxPoolItem
{
SvxBorderLineStyle m_eLineStyle; ///< style of the separator line
sal_uLong m_nLineWidth; ///< Width of the separator line.
Color m_aLineColor; ///< Color of the separator line.
sal_uInt16 m_nLineHeight; /**< Percentile height of lines.
(Based on height of columns including UL). */
SwColLineAdj m_eAdj; ///< Line will be adjusted top, centered or bottom.
SwColumns m_aColumns; ///< Information concerning the columns.
sal_uInt16 m_nWidth; ///< Total desired width of all columns.
sal_Int16 m_aWidthAdjustValue;
bool m_bOrtho; /**< Only if this flag is set, the setting of GutterWidth will beaccompaniedbya"visualrearrangement". Theflagmustberesetifwidthsofcolumnsorbordersarechanged. Whenitisset(again)thevisualarrangementisrecalculated.
The flag is initially set. */
/** This function allows to (repeatedly) initialize the columns.
The Ortho flag is set automatically. */ void Init( sal_uInt16 nNumCols, sal_uInt16 nGutterWidth, sal_uInt16 nAct );
/** Adjusts borders for columns in aColumns. Ifflagm_bOrthoisset,columnsarevisuallyre-arranged. Iftheflagisnotset,columnswidthsarenotchangedand
borders are adjusted. */ void SetGutterWidth( sal_uInt16 nNew, sal_uInt16 nAct );
/** This too re-arranges columns automatically if flag is set.
Only in this case the second parameter is needed and evaluated. */ void SetOrtho( bool bNew, sal_uInt16 nGutterWidth, sal_uInt16 nAct );
/// For the reader void SetOrtho_( bool bNew ) { m_bOrtho = bNew; }
/** Calculates current width of column nCol. Theratioofdesiredwidthofthiscolumntoreturnvalueis
proportional to ratio of total desired value to nAct. */
sal_uInt16 CalcColWidth( sal_uInt16 nCol, sal_uInt16 nAct ) const;
/** As above except that it @return the width of PrtArea -
that corresponds to what constitutes the column for the user. */
sal_uInt16 CalcPrtColWidth( sal_uInt16 nCol, sal_uInt16 nAct ) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.