LibreOffice Module sw (master) 1
|
#include <fmtfsize.hxx>
Public Types | |
enum | PercentFlags { SYNCED = 0xff } |
Public Member Functions | |
SwFormatFrameSize (SwFrameSize eSize=SwFrameSize::Variable, SwTwips nWidth=0, SwTwips nHeight=0) | |
virtual bool | operator== (const SfxPoolItem &) const override |
virtual SwFormatFrameSize * | 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 |
SwFrameSize | GetHeightSizeType () const |
void | SetHeightSizeType (SwFrameSize eSize) |
SwFrameSize | GetWidthSizeType () const |
void | SetWidthSizeType (SwFrameSize eSize) |
sal_uInt8 | GetHeightPercent () const |
sal_Int16 | GetHeightPercentRelation () const |
sal_uInt8 | GetWidthPercent () const |
sal_Int16 | GetWidthPercentRelation () const |
void | SetHeightPercent (sal_uInt8 n) |
void | SetHeightPercentRelation (sal_Int16 n) |
void | SetWidthPercent (sal_uInt8 n) |
void | SetWidthPercentRelation (sal_Int16 n) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
Public Member Functions inherited from SvxSizeItem | |
SvxSizeItem (const sal_uInt16 nId) | |
SvxSizeItem (const sal_uInt16 nId, const Size &rSize) | |
virtual bool | operator== (const SfxPoolItem &) 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 |
virtual bool | GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override |
virtual SvxSizeItem * | Clone (SfxItemPool *pPool=nullptr) const override |
virtual void | ScaleMetrics (tools::Long nMult, tools::Long nDiv) override |
virtual bool | HasMetrics () const override |
const Size & | GetSize () const |
void | SetSize (const Size &rSize) |
tools::Long | GetWidth () const |
tools::Long | GetHeight () const |
void | SetWidth (tools::Long n) |
void | SetHeight (tools::Long n) |
Private Member Functions | |
void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) override |
bool | HasMetrics () const override |
Private Attributes | |
SwFrameSize | m_eFrameHeightType |
SwFrameSize | m_eFrameWidthType |
sal_uInt8 | m_nWidthPercent |
sal_Int16 | m_eWidthPercentRelation |
sal_uInt8 | m_nHeightPercent |
sal_Int16 | m_eHeightPercentRelation |
Additional Inherited Members | |
Static Public Member Functions inherited from SvxSizeItem | |
static SfxPoolItem * | CreateDefault () |
Definition at line 43 of file fmtfsize.hxx.
Enumerator | |
---|---|
SYNCED |
Definition at line 86 of file fmtfsize.hxx.
SwFormatFrameSize::SwFormatFrameSize | ( | SwFrameSize | eSize = SwFrameSize::Variable , |
SwTwips | nWidth = 0 , |
||
SwTwips | nHeight = 0 |
||
) |
Definition at line 234 of file atrfrm.cxx.
Referenced by Clone().
|
overridevirtual |
Reimplemented from SvxSizeItem.
Definition at line 254 of file atrfrm.cxx.
References SwFormatFrameSize().
Referenced by CalculateFlySize(), and lcl_InsertLabel().
|
override |
Definition at line 454 of file atrfrm.cxx.
References SvxSizeItem::GetSize(), m_eFrameHeightType, m_eFrameWidthType, m_eHeightPercentRelation, m_eWidthPercentRelation, m_nHeightPercent, and m_nWidthPercent.
|
inline |
Definition at line 88 of file fmtfsize.hxx.
Referenced by SwWrapTabPage::ActivatePage(), CalcHeightWithFlys(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), SwFlyFrame::CalcRel(), SwView::ExecTabWin(), SwFrameShell::Execute(), SwGrfShell::Execute(), SwFramePage::FillItemSet(), SwFlyFrame::Format(), GetPresentation(), SwFramePage::Init(), InvaPercentFlys(), SwLayoutFrame::InvaPercentLowers(), SwFlyAtContentFrame::MakeAll(), SwVirtFlyDrawObj::NbcResize(), operator==(), SwHTMLWriter::OutFrameFormatOptions(), PutValue(), QueryValue(), SwFramePage::Reset(), SwGrfNode::ScaleImageMap(), DocxSdrExport::writeDMLTextFrame(), and SwHTMLWriter::writeFrameFormatOptions().
|
inline |
Definition at line 89 of file fmtfsize.hxx.
Referenced by SwFEShell::CalcBoundRect(), SwFlyFrame::CalcRel(), SwFramePage::Init(), operator==(), QueryValue(), and DocxSdrExport::writeDMLTextFrame().
|
inline |
Definition at line 80 of file fmtfsize.hxx.
Referenced by SwWrapTabPage::ActivatePage(), SwXMLTableFrameFormatsSort_Impl::AddRow(), SwTableHeightDlg::Apply(), SwTextFormatter::BuildMultiPortion(), myImplHelpers::CalcHdFtDist(), SwTabFrame::CalcHeightOfFirstContentLine(), SwDoc::Chain(), SwFrame::CheckDirChange(), SwTable::ConvertSubtableBox(), SwFramePage::FillItemSet(), SwLayoutFrame::Format(), DocxAttributeOutput::FormatFrameSize(), WW8AttributeOutput::FormatFrameSize(), SwFlyFrame::FrameSizeChg(), GetPresentation(), SwXTextTableRow::getPropertyValue(), SwFrameShell::GetState(), SwFlyFreeFrame::HasEnvironmentAutoSize(), SwFramePage::Init(), SwTable::InsertSpannedRow(), lcl_CalcMinRowHeight(), lcl_GetFrameMinHeight(), lcl_PreprocessRowsInCells(), SwTable::OldSplitRow(), SwHTMLWriter::OutFrameFormatOptions(), PageDescToItemSet(), QueryValue(), SvXMLExportItemMapper::QueryXMLValue(), SwFrame::ReinitializeFrameSizeAttrFlags(), SwFEShell::RequestObjectResize(), SwDoc::SetTabRows(), SwRowFrame::ShrinkFrame(), SwTabFrame::Split(), SwFlyFrame::SwFlyFrame(), SwLayoutFrame::SwLayoutFrame(), WW8AttributeOutput::TableHeight(), DocxAttributeOutput::TableHeight(), RtfAttributeOutput::TableHeight(), DocxSdrExport::writeDMLTextFrame(), and SwHTMLWriter::writeFrameFormatOptions().
|
overridevirtual |
Reimplemented from SvxSizeItem.
Definition at line 215 of file attrdesc.cxx.
References EditResId(), Fixed, unicode::formatPercent(), SvxSizeItem::GetHeight(), GetHeightPercent(), GetHeightSizeType(), Application::GetSettings(), SvxSizeItem::GetWidth(), GetWidthPercent(), m_eFrameHeightType, SwResId(), and Variable.
|
inline |
Definition at line 91 of file fmtfsize.hxx.
Referenced by SwColumnPage::ActivatePage(), SwWrapTabPage::ActivatePage(), SwFlyFrame::CalcRel(), SwLayoutFrame::CalcRel(), SwTable::ConvertSubtableBox(), SwView::ExecTabWin(), SwFrameShell::Execute(), SwGrfShell::Execute(), SwXMLExport::ExportTableAutoStyles(), SwFramePage::FillItemSet(), SwFlyFrame::Format(), SwTextNode::GetMinMaxSize(), GetPresentation(), AttributeOutputBase::GetTablePageSize(), GetTableWidth(), SwRootFrame::ImplCalcBrowseWidth(), SwFramePage::Init(), InvaPercentFlys(), SwLayoutFrame::InvaPercentLowers(), lcl_GetSpecialProperty(), SwFlyAtContentFrame::MakeAll(), SwContentFrame::MakePrtArea(), SwXMLTableContext::MakeTable(), SwVirtFlyDrawObj::NbcResize(), operator==(), OutCSS1_SwFormatFrameSize(), SwHTMLWriter::OutFrameFormatOptions(), OutHTML_SwTableNode(), PutValue(), QueryValue(), SvXMLExportItemMapper::QueryXMLValue(), SwFEShell::RequestObjectResize(), SwFramePage::Reset(), SwGrfNode::ScaleImageMap(), SwTable::SetColWidth(), WW8AttributeOutput::TableDefinition(), DocxAttributeOutput::TableDefinition(), DocxSdrExport::writeDMLTextFrame(), and SwHTMLWriter::writeFrameFormatOptions().
|
inline |
Definition at line 92 of file fmtfsize.hxx.
Referenced by SwFEShell::CalcBoundRect(), SwFlyFrame::CalcRel(), SwFramePage::Init(), operator==(), QueryValue(), and DocxSdrExport::writeDMLTextFrame().
|
inline |
Definition at line 83 of file fmtfsize.hxx.
Referenced by SwFramePage::FillItemSet(), SwFlyFrame::Format(), DocxAttributeOutput::FormatFrameSize(), WW8AttributeOutput::FormatFrameSize(), SwFlyFrame::Grow_(), SwFrameNotify::ImplDestroy(), SwFramePage::Init(), SwWW8ImplReader::MatchSdrItemsIntoFlySet(), QueryValue(), SwWW8ImplReader::Read_HdFtTextAsHackedFrame(), and SwFlyFrame::Shrink_().
|
overrideprivatevirtual |
Reimplemented from SvxSizeItem.
Definition at line 226 of file atrfrm.cxx.
References SfxPoolItem::HasMetrics().
|
overridevirtual |
Reimplemented from SvxSizeItem.
Definition at line 242 of file atrfrm.cxx.
References GetHeightPercent(), GetHeightPercentRelation(), GetWidthPercent(), GetWidthPercentRelation(), m_eFrameHeightType, m_eFrameWidthType, m_eHeightPercentRelation, m_eWidthPercentRelation, m_nHeightPercent, and m_nWidthPercent.
|
overridevirtual |
Reimplemented from SvxSizeItem.
Definition at line 314 of file atrfrm.cxx.
References CONVERT_TWIPS, Fixed, GetHeightPercent(), GetWidthPercent(), Size::Height(), MID_FRMSIZE_HEIGHT, MID_FRMSIZE_IS_AUTO_HEIGHT, MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH, MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT, MID_FRMSIZE_REL_HEIGHT, MID_FRMSIZE_REL_HEIGHT_RELATION, MID_FRMSIZE_REL_WIDTH, MID_FRMSIZE_REL_WIDTH_RELATION, MID_FRMSIZE_SIZE, MID_FRMSIZE_SIZE_TYPE, MID_FRMSIZE_WIDTH, MID_FRMSIZE_WIDTH_TYPE, Minimum, MINLAY, o3tl::mm100, nType, SvxSizeItem::SetHeight(), Size::setHeight(), SetHeightPercent(), SetHeightPercentRelation(), SetHeightSizeType(), SvxSizeItem::SetSize(), SvxSizeItem::SetWidth(), Size::setWidth(), SetWidthPercent(), SetWidthPercentRelation(), SetWidthSizeType(), SYNCED, o3tl::toTwips(), Variable, and Size::Width().
Referenced by BaseFrameProperties_Impl::FillBaseProperties().
|
overridevirtual |
Reimplemented from SvxSizeItem.
Definition at line 259 of file atrfrm.cxx.
References convertTwipToMm100(), Fixed, SvxSizeItem::GetHeight(), GetHeightPercent(), GetHeightPercentRelation(), GetHeightSizeType(), SvxSizeItem::GetWidth(), GetWidthPercent(), GetWidthPercentRelation(), GetWidthSizeType(), MID_FRMSIZE_HEIGHT, MID_FRMSIZE_IS_AUTO_HEIGHT, MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH, MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT, MID_FRMSIZE_REL_HEIGHT, MID_FRMSIZE_REL_HEIGHT_RELATION, MID_FRMSIZE_REL_WIDTH, MID_FRMSIZE_REL_WIDTH_RELATION, MID_FRMSIZE_SIZE, MID_FRMSIZE_SIZE_TYPE, MID_FRMSIZE_WIDTH, MID_FRMSIZE_WIDTH_TYPE, MINLAY, and SYNCED.
Referenced by lcl_GetSpecialProperty().
|
overrideprivatevirtual |
Reimplemented from SvxSizeItem.
Definition at line 219 of file atrfrm.cxx.
References SfxPoolItem::ScaleMetrics().
|
inline |
Definition at line 93 of file fmtfsize.hxx.
References n.
Referenced by SwView::ExecTabWin(), SwGrfShell::Execute(), SwFramePage::FillItemSet(), SwHTMLParser::InsertImage(), SwVirtFlyDrawObj::NbcResize(), PutValue(), SwHTMLParser::SetFixSize(), and SwHTMLParser::SetVarSize().
|
inline |
Definition at line 94 of file fmtfsize.hxx.
References n.
Referenced by SwFramePage::FillItemSet(), and PutValue().
|
inline |
Definition at line 81 of file fmtfsize.hxx.
Referenced by WW8TabDesc::AdjustNewBand(), SwTableHeightDlg::Apply(), SwDoc::Chain(), SwFrame::CheckDirChange(), SwTable::ConvertSubtableBox(), SwView::ExecTabWin(), SwFramePage::FillItemSet(), SwDoc::MakeFlySection_(), SwWW8ImplReader::MoveOutsideFly(), SwTable::NewSplitRow(), SwTable::OldSplitRow(), PutValue(), SvXMLImportItemMapper::PutXMLValue(), SwFlyFrameAttrMgr::SetHeightSizeType(), SwXTextTableRow::setPropertyValue(), WW8TabDesc::SetSizePosition(), and SwDoc::SetTabRows().
|
inline |
Definition at line 95 of file fmtfsize.hxx.
References n.
Referenced by SwHTMLParser::BuildTableCell(), WW8TabDesc::CreateSwTable(), SwView::ExecTabWin(), SwGrfShell::Execute(), SwFramePage::FillItemSet(), SwHTMLParser::InsertImage(), ItemSetToTableParam(), lcl_SetSpecialProperty(), SwXMLTableContext::MakeTable(), HTMLTable::MakeTable(), SwVirtFlyDrawObj::NbcResize(), PutValue(), SvXMLImportItemMapper::PutXMLValue(), SwTable::SetColWidth(), SwHTMLParser::SetFixSize(), SwTable::SetTabCols(), and SwHTMLParser::SetVarSize().
|
inline |
Definition at line 96 of file fmtfsize.hxx.
References n.
Referenced by SwFramePage::FillItemSet(), and PutValue().
|
inline |
Definition at line 84 of file fmtfsize.hxx.
Referenced by SwWW8ImplReader::ConvertDrawTextToFly(), SwFramePage::FillItemSet(), SwWW8ImplReader::MatchSdrItemsIntoFlySet(), PutValue(), SwWW8ImplReader::Read_HdFtTextAsHackedFrame(), and SwWW8ImplReader::StopApo().
|
private |
Definition at line 45 of file fmtfsize.hxx.
Referenced by dumpAsXml(), GetPresentation(), and operator==().
|
private |
Definition at line 46 of file fmtfsize.hxx.
Referenced by dumpAsXml(), and operator==().
|
private |
Definition at line 50 of file fmtfsize.hxx.
Referenced by dumpAsXml(), and operator==().
|
private |
Definition at line 48 of file fmtfsize.hxx.
Referenced by dumpAsXml(), and operator==().
|
private |
Definition at line 49 of file fmtfsize.hxx.
Referenced by dumpAsXml(), and operator==().
|
private |
Definition at line 47 of file fmtfsize.hxx.
Referenced by dumpAsXml(), and operator==().