LibreOffice Module sw (master) 1
|
#include <fmtclds.hxx>
Public Member Functions | |
SwFormatCol () | |
SwFormatCol (const SwFormatCol &) | |
virtual | ~SwFormatCol () override |
sal_Int16 | GetAdjustValue () const |
void | SetAdjustValue (sal_Int16 n) |
SwFormatCol & | operator= (const SwFormatCol &) |
virtual bool | operator== (const SfxPoolItem &) const override |
"pure virtual methods" of SfxPoolItem More... | |
virtual SwFormatCol * | Clone (SfxItemPool *pPool=nullptr) const override |
virtual bool | GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override |
const SwColumns & | GetColumns () const |
SwColumns & | GetColumns () |
sal_uInt16 | GetNumCols () const |
SvxBorderLineStyle | GetLineStyle () const |
sal_uLong | GetLineWidth () const |
const Color & | GetLineColor () const |
SwColLineAdj | GetLineAdj () const |
bool | IsOrtho () const |
sal_uInt16 | GetWishWidth () const |
sal_uInt8 | GetLineHeight () const |
sal_uInt16 | GetGutterWidth (bool bMin=false) const |
void | SetLineStyle (SvxBorderLineStyle eStyle) |
void | SetLineWidth (sal_uLong nLWidth) |
void | SetLineColor (const Color &rCol) |
void | SetLineHeight (sal_uInt8 nNew) |
void | SetLineAdj (SwColLineAdj eNew) |
void | SetWishWidth (sal_uInt16 nNew) |
void | Init (sal_uInt16 nNumCols, sal_uInt16 nGutterWidth, sal_uInt16 nAct) |
This function allows to (repeatedly) initialize the columns. More... | |
void | SetGutterWidth (sal_uInt16 nNew, sal_uInt16 nAct) |
Adjusts borders for columns in aColumns. More... | |
void | SetOrtho (bool bNew, sal_uInt16 nGutterWidth, sal_uInt16 nAct) |
This too re-arranges columns automatically if flag is set. More... | |
void | SetOrtho_ (bool bNew) |
For the reader. More... | |
sal_uInt16 | CalcColWidth (sal_uInt16 nCol, sal_uInt16 nAct) const |
Calculates current width of column nCol. More... | |
sal_uInt16 | CalcPrtColWidth (sal_uInt16 nCol, sal_uInt16 nAct) const |
As above except that it. More... | |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
Public Member Functions inherited from SfxPoolItem | |
void | AddRef (sal_uInt32 n=1) const |
virtual | ~SfxPoolItem () |
void | SetWhich (sal_uInt16 nId) |
sal_uInt16 | Which () const |
T & | StaticWhichCast (TypedWhichId< T > nId) |
const T & | StaticWhichCast (TypedWhichId< T > nId) const |
T * | DynamicWhichCast (TypedWhichId< T > nId) |
const T * | DynamicWhichCast (TypedWhichId< T > nId) const |
virtual bool | operator== (const SfxPoolItem &) const=0 |
bool | operator!= (const SfxPoolItem &rItem) const |
virtual bool | operator< (const SfxPoolItem &) const |
virtual bool | IsSortable () const |
virtual bool | HasLookup () const |
virtual lookup_iterator | Lookup (lookup_iterator, lookup_iterator end) const |
virtual bool | GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const |
virtual void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) |
virtual bool | HasMetrics () const |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) |
virtual SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (sal_uInt16 nNewWhich) const |
std::unique_ptr< T > | CloneSetWhich (TypedWhichId< T > nId) const |
sal_uInt32 | GetRefCount () const |
SfxItemKind | GetKind () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual boost::property_tree::ptree | dumpAsJSON () const |
virtual bool | IsVoidItem () const |
Private Member Functions | |
SAL_DLLPRIVATE void | Calc (sal_uInt16 nGutterWidth, sal_uInt16 nAct) |
Private Attributes | |
SvxBorderLineStyle | m_eLineStyle |
style of the separator line More... | |
sal_uLong | m_nLineWidth |
Width of the separator line. More... | |
Color | m_aLineColor |
Color of the separator line. More... | |
sal_uInt16 | m_nLineHeight |
Percentile height of lines. More... | |
SwColLineAdj | m_eAdj |
Line will be adjusted top, centered or bottom. More... | |
SwColumns | m_aColumns |
Information concerning the columns. More... | |
sal_uInt16 | m_nWidth |
Total desired width of all columns. More... | |
sal_Int16 | m_aWidthAdjustValue |
bool | m_bOrtho |
Only if this flag is set, the setting of GutterWidth will be accompanied by a "visual rearrangement". More... | |
Additional Inherited Members | |
Public Types inherited from SfxPoolItem | |
typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
Protected Member Functions inherited from SfxPoolItem | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
Definition at line 67 of file fmtclds.hxx.
SwFormatCol::SwFormatCol | ( | ) |
Definition at line 877 of file atrfrm.cxx.
Referenced by Clone().
SwFormatCol::SwFormatCol | ( | const SwFormatCol & | rCpy | ) |
Definition at line 835 of file atrfrm.cxx.
References GetColumns(), GetNumCols(), i, and m_aColumns.
|
overridevirtual |
Definition at line 853 of file atrfrm.cxx.
|
private |
Definition at line 1015 of file atrfrm.cxx.
References GetNumCols(), GetWishWidth(), i, m_aColumns, SAL_WARN, SwColumn::SetLeft(), SwColumn::SetRight(), and SwColumn::SetWishWidth().
Referenced by Init(), SetGutterWidth(), and SetOrtho().
sal_uInt16 SwFormatCol::CalcColWidth | ( | sal_uInt16 | nCol, |
sal_uInt16 | nAct | ||
) | const |
Calculates current width of column nCol.
The ratio of desired width of this column to return value is proportional to ratio of total desired value to nAct.
Definition at line 991 of file atrfrm.cxx.
References m_aColumns, and m_nWidth.
Referenced by SwLayoutFrame::AdjustColumns(), CalcPrtColWidth(), FitToActualSize(), IMPL_LINK_NOARG(), lcl_FillSvxColumn(), and SwView::StateTabWin().
sal_uInt16 SwFormatCol::CalcPrtColWidth | ( | sal_uInt16 | nCol, |
sal_uInt16 | nAct | ||
) | const |
As above except that it.
Definition at line 1005 of file atrfrm.cxx.
References CalcColWidth(), SwColumn::GetLeft(), SwColumn::GetRight(), and m_aColumns.
Referenced by AttributeOutputBase::FormatColumns(), DocxAttributeOutput::FormatColumns_Impl(), RtfAttributeOutput::FormatColumns_Impl(), SwColMgr::GetColWidth(), and SwView::StateTabWin().
|
overridevirtual |
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1243 of file atrfrm.cxx.
References Color::AsRGBHexString(), m_aColumns, m_aLineColor, m_aWidthAdjustValue, m_bOrtho, m_eAdj, m_eLineStyle, m_nLineHeight, m_nLineWidth, m_nWidth, and SfxPoolItem::Which().
|
inline |
Definition at line 95 of file fmtclds.hxx.
Referenced by AttributeOutputBase::FormatColumns(), and operator==().
|
inline |
Definition at line 113 of file fmtclds.hxx.
|
inline |
Definition at line 112 of file fmtclds.hxx.
Referenced by SwLayoutFrame::AdjustColumns(), SwLayoutFrame::ChgColumns(), AttributeOutputBase::EndTOX(), SwView::ExecTabWin(), FitToActualSize(), AttributeOutputBase::FormatColumns(), DocxAttributeOutput::FormatColumns_Impl(), RtfAttributeOutput::FormatColumns_Impl(), WW8AttributeOutput::FormatColumns_Impl(), SwColMgr::GetGutterWidth(), IMPL_LINK_NOARG(), sw::util::IsPlausableSingleWordSection(), lcl_ConvertToCols(), lcl_FillSvxColumn(), SwVirtFlyDrawObj::NbcResize(), SwColMgr::NoCols(), operator=(), operator==(), SwColumnOnlyExample::Paint(), QueryValue(), SwFramePage::RangeModifyHdl(), ResizeFrameCols(), wwSectionManager::SetCols(), SwColumnOnlyExample::SetColumns(), SwColMgr::SetColWidth(), SwColMgr::SetGutterWidth(), AttributeOutputBase::StartTOX(), SwView::StateTabWin(), and SwFormatCol().
sal_uInt16 SwFormatCol::GetGutterWidth | ( | bool | bMin = false | ) | const |
Definition at line 918 of file atrfrm.cxx.
References i, and m_aColumns.
Referenced by SwTextShell::ExecInsert(), SwFrameShell::Execute(), DocxAttributeOutput::FormatColumns_Impl(), RtfAttributeOutput::FormatColumns_Impl(), WW8AttributeOutput::FormatColumns_Impl(), SwColMgr::GetGutterWidth(), SwView::InsFrameMode(), lcl_html_OutSectionStartTag(), SwDrawBase::MouseButtonUp(), OutHTML_FrameFormatAsMulticol(), and QueryValue().
|
inline |
Definition at line 120 of file fmtclds.hxx.
Referenced by SwLayoutFrame::AdjustColumns(), DocxAttributeOutput::FormatColumns_Impl(), RtfAttributeOutput::FormatColumns_Impl(), WW8AttributeOutput::FormatColumns_Impl(), SwColMgr::GetAdjust(), GetPresentation(), operator=(), operator==(), MSWordExportBase::OutputSectionBreaks(), SwColumnOnlyExample::Paint(), SwLayoutFrame::PaintColLines(), SwLayoutFrame::PaintSwFrame(), and QueryValue().
|
inline |
Definition at line 118 of file fmtclds.hxx.
Referenced by SwColMgr::GetLineColor(), MSWordExportBase::OutputSectionBreaks(), SwLayoutFrame::PaintColLines(), and QueryValue().
|
inline |
Definition at line 123 of file fmtclds.hxx.
Referenced by SwColMgr::GetLineHeightPercent(), operator=(), operator==(), MSWordExportBase::OutputSectionBreaks(), SwColumnOnlyExample::Paint(), SwLayoutFrame::PaintColLines(), and QueryValue().
|
inline |
Definition at line 116 of file fmtclds.hxx.
Referenced by SwColMgr::GetLineStyle(), MSWordExportBase::OutputSectionBreaks(), SwLayoutFrame::PaintColLines(), and QueryValue().
|
inline |
Definition at line 117 of file fmtclds.hxx.
Referenced by SwLayoutFrame::AdjustColumns(), SwLayoutFrame::ChgColumns(), SwColMgr::GetLineWidth(), GetPresentation(), MSWordExportBase::OutputSectionBreaks(), SwLayoutFrame::PaintColLines(), and QueryValue().
|
inline |
Definition at line 114 of file fmtclds.hxx.
Referenced by SwLayoutFrame::AdjustColumns(), Calc(), SwLayoutFrame::ChgColumns(), SwLayoutFrame::ChgLowersProp(), MSWordSections::CurrentNumberOfColumns(), SwLayoutFrame::FormatWidthCols(), SwColMgr::GetCount(), SwHTMLParser::GetCurrentBrowseWidth(), SwAccessibleDocument::getExtendedAttributes(), GetPresentation(), SwHTMLWriter::GuessFrameType(), IMPL_LINK_NOARG(), SwSectionFrame::Init(), SwFlyFrame::InsertColumns(), lcl_ConvertToCols(), lcl_html_GetFormatCol(), operator=(), operator==(), SwHTMLWriter::OutCSS1_SectionFormatOptions(), OutHTML_FrameFormatAsMulticol(), OutHTML_SwTextNode(), MSWordExportBase::OutputSectionBreaks(), QueryValue(), SwView::StateTabWin(), SwFormatCol(), SwPageFrame::SwPageFrame(), and MSWordExportBase::WriteText().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 474 of file attrdesc.cxx.
References COLADJ_NONE, GetLineAdj(), GetLineWidth(), GetNumCols(), and SwResId().
|
inline |
Definition at line 122 of file fmtclds.hxx.
Referenced by Calc(), SwLayoutFrame::ChgColumns(), SwTextShell::ExecInsert(), SwFrameShell::Execute(), SwView::InsFrameMode(), lcl_ConvertToCols(), SwDrawBase::MouseButtonUp(), operator=(), operator==(), ResizeFrameCols(), SwColumnOnlyExample::SetColumns(), and SwView::StateTabWin().
void SwFormatCol::Init | ( | sal_uInt16 | nNumCols, |
sal_uInt16 | nGutterWidth, | ||
sal_uInt16 | nAct | ||
) |
This function allows to (repeatedly) initialize the columns.
The Ortho flag is set automatically.
Definition at line 969 of file atrfrm.cxx.
References Calc(), i, m_aColumns, m_bOrtho, and m_nWidth.
Referenced by SwTextShell::ExecInsert(), SwView::ExecTabWin(), SwBaseShell::Execute(), SwFrameShell::Execute(), SwBaseShell::InsertRegionDialog(), SwView::InsFrameMode(), SwDrawBase::MouseButtonUp(), SwHTMLParser::NewMultiCol(), SwWW8ImplReader::Read_F_Tox(), wwSectionManager::SetCols(), SwColMgr::SetCount(), SwFlyFrame::UpdateAttr_(), and SwSectionFrame::UpdateAttr_().
|
inline |
Definition at line 121 of file fmtclds.hxx.
Referenced by SwLayoutFrame::AdjustColumns(), SwLayoutFrame::ChgColumns(), SwLayoutFrame::ChgLowersProp(), AttributeOutputBase::FormatColumns(), SwColMgr::IsAutoWidth(), lcl_FillSvxColumn(), operator=(), operator==(), MSWordExportBase::OutputSectionBreaks(), QueryValue(), and SwColumnOnlyExample::SetColumns().
SwFormatCol & SwFormatCol::operator= | ( | const SwFormatCol & | rCpy | ) |
Definition at line 855 of file atrfrm.cxx.
References GetColumns(), GetLineAdj(), GetLineHeight(), GetNumCols(), GetWishWidth(), i, IsOrtho(), m_aColumns, m_aLineColor, m_aWidthAdjustValue, m_bOrtho, m_eAdj, m_eLineStyle, m_nLineHeight, m_nLineWidth, and m_nWidth.
|
overridevirtual |
"pure virtual methods" of SfxPoolItem
Implements SfxPoolItem.
Definition at line 890 of file atrfrm.cxx.
References GetAdjustValue(), GetColumns(), GetLineAdj(), GetLineHeight(), GetNumCols(), GetWishWidth(), i, IsOrtho(), m_aColumns, m_aLineColor, m_aWidthAdjustValue, m_bOrtho, m_eAdj, m_eLineStyle, m_nLineHeight, m_nLineWidth, and m_nWidth.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1165 of file atrfrm.cxx.
References COLADJ_BOTTOM, COLADJ_CENTER, COLADJ_NONE, COLADJ_TOP, i, LeftMargin, m_aColumns, m_aLineColor, m_bOrtho, m_eAdj, m_eLineStyle, m_nLineHeight, m_nLineWidth, m_nWidth, MID_COLUMN_SEPARATOR_LINE, min(), o3tl::mm100, nCount, SwPostItHelper::NONE, RightMargin, SwColumn::SetLeft(), SwColumn::SetRight(), SwColumn::SetWishWidth(), o3tl::toTwips(), UNO_NAME_IS_AUTOMATIC, UNO_NAME_SEPARATOR_LINE_COLOR, UNO_NAME_SEPARATOR_LINE_IS_ON, UNO_NAME_SEPARATOR_LINE_RELATIVE_HEIGHT, UNO_NAME_SEPARATOR_LINE_STYLE, UNO_NAME_SEPARATOR_LINE_VERTIVAL_ALIGNMENT, UNO_NAME_SEPARATOR_LINE_WIDTH, and Width.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1074 of file atrfrm.cxx.
References COLADJ_BOTTOM, COLADJ_CENTER, COLADJ_NONE, COLADJ_TOP, o3tl::convert(), convertTwipToMm100(), DEF_GUTTER_WIDTH, GetColumns(), GetGutterWidth(), SwColumn::GetLeft(), GetLineAdj(), GetLineColor(), GetLineHeight(), GetLineStyle(), GetLineWidth(), GetNumCols(), SwColumn::GetRight(), SwColumn::GetWishWidth(), i, IsOrtho(), MID_COLUMN_SEPARATOR_LINE, o3tl::mm100, SwPostItHelper::NONE, SvxXTextColumns_createInstance(), o3tl::twip, UNO_NAME_AUTOMATIC_DISTANCE, UNO_NAME_SEPARATOR_LINE_COLOR, UNO_NAME_SEPARATOR_LINE_IS_ON, UNO_NAME_SEPARATOR_LINE_RELATIVE_HEIGHT, UNO_NAME_SEPARATOR_LINE_STYLE, UNO_NAME_SEPARATOR_LINE_VERTIVAL_ALIGNMENT, and UNO_NAME_SEPARATOR_LINE_WIDTH.
|
inline |
Definition at line 96 of file fmtclds.hxx.
References n.
Referenced by MSWordExportBase::SectionProperties().
void SwFormatCol::SetGutterWidth | ( | sal_uInt16 | nNew, |
sal_uInt16 | nAct | ||
) |
Adjusts borders for columns in aColumns.
If flag m_bOrtho is set, columns are visually re-arranged. If the flag is not set, columns widths are not changed and borders are adjusted.
Definition at line 949 of file atrfrm.cxx.
References Calc(), i, m_aColumns, m_bOrtho, SwColumn::SetLeft(), and SwColumn::SetRight().
Referenced by SwView::ExecTabWin(), SwBaseShell::Execute(), SwColMgr::SetCount(), and SwColMgr::SetGutterWidth().
|
inline |
Definition at line 133 of file fmtclds.hxx.
Referenced by SwColMgr::SetAdjust(), and wwSectionManager::SetCols().
|
inline |
Definition at line 131 of file fmtclds.hxx.
Referenced by wwSectionManager::SetCols(), and SwColMgr::SetLineWidthAndColor().
|
inline |
Definition at line 132 of file fmtclds.hxx.
Referenced by wwSectionManager::SetCols(), and SwColMgr::SetLineHeightPercent().
|
inline |
Definition at line 129 of file fmtclds.hxx.
Referenced by SwColMgr::SetLineWidthAndColor().
|
inline |
Definition at line 130 of file fmtclds.hxx.
Referenced by wwSectionManager::SetCols(), and SwColMgr::SetLineWidthAndColor().
void SwFormatCol::SetOrtho | ( | bool | bNew, |
sal_uInt16 | nGutterWidth, | ||
sal_uInt16 | nAct | ||
) |
This too re-arranges columns automatically if flag is set.
Only in this case the second parameter is needed and evaluated.
Definition at line 984 of file atrfrm.cxx.
References Calc(), m_aColumns, and m_bOrtho.
Referenced by SwView::ExecTabWin(), lcl_ConvertToCols(), ResizeFrameCols(), and SwColMgr::SetAutoWidth().
|
inline |
For the reader.
Definition at line 151 of file fmtclds.hxx.
Referenced by wwSectionManager::SetCols().
|
inline |
Definition at line 134 of file fmtclds.hxx.
Referenced by SwView::ExecTabWin(), SwBaseShell::Execute(), FitToActualSize(), ResizeFrameCols(), wwSectionManager::SetCols(), and SwColMgr::SetCount().
|
private |
Information concerning the columns.
Definition at line 78 of file fmtclds.hxx.
Referenced by Calc(), CalcColWidth(), CalcPrtColWidth(), dumpAsXml(), GetGutterWidth(), Init(), operator=(), operator==(), PutValue(), SetGutterWidth(), SetOrtho(), and SwFormatCol().
|
private |
Color of the separator line.
Definition at line 71 of file fmtclds.hxx.
Referenced by dumpAsXml(), operator=(), operator==(), and PutValue().
|
private |
Definition at line 80 of file fmtclds.hxx.
Referenced by dumpAsXml(), operator=(), and operator==().
|
private |
Only if this flag is set, the setting of GutterWidth will be accompanied by a "visual rearrangement".
The flag must be reset if widths of columns or borders are changed. When it is set (again) the visual arrangement is recalculated. The flag is initially set.
Definition at line 82 of file fmtclds.hxx.
Referenced by dumpAsXml(), Init(), operator=(), operator==(), PutValue(), SetGutterWidth(), and SetOrtho().
|
private |
Line will be adjusted top, centered or bottom.
Definition at line 76 of file fmtclds.hxx.
Referenced by dumpAsXml(), operator=(), operator==(), and PutValue().
|
private |
style of the separator line
Definition at line 69 of file fmtclds.hxx.
Referenced by dumpAsXml(), operator=(), operator==(), and PutValue().
|
private |
Percentile height of lines.
(Based on height of columns including UL).
Definition at line 73 of file fmtclds.hxx.
Referenced by dumpAsXml(), operator=(), operator==(), and PutValue().
|
private |
Width of the separator line.
Definition at line 70 of file fmtclds.hxx.
Referenced by dumpAsXml(), operator=(), operator==(), and PutValue().
|
private |
Total desired width of all columns.
Definition at line 79 of file fmtclds.hxx.
Referenced by CalcColWidth(), dumpAsXml(), Init(), operator=(), operator==(), and PutValue().