LibreOffice Module sw (master) 1
|
#include <cellatr.hxx>
Public Member Functions | |
SwTableBoxFormula (const OUString &rFormula) | |
virtual bool | operator== (const SfxPoolItem &) const override |
virtual SwTableBoxFormula * | Clone (SfxItemPool *pPool=nullptr) const override |
const sw::BroadcastingModify * | GetDefinedIn () const |
void | ChgDefinedIn (const sw::BroadcastingModify *pNew) |
virtual const SwNode * | GetNodeOfFormula () const override |
Get node type of the node containing this formula. More... | |
SwTableBox * | GetTableBox () |
const SwTableBox * | GetTableBox () const |
void | TryBoxNmToPtr () |
void | ToSplitMergeBoxNmWithHistory (SwTableFormulaUpdate &rUpdate, SwHistory *pHistory) |
void | ChangeState () |
void | Calc (SwTableCalcPara &rCalcPara, double &rValue) |
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 |
Public Member Functions inherited from SwTableFormula | |
virtual | ~SwTableFormula () |
SwTableFormula (SwTableFormula const &)=default | |
SwTableFormula (SwTableFormula &&)=default | |
SwTableFormula & | operator= (SwTableFormula const &)=default |
SwTableFormula & | operator= (SwTableFormula &&)=default |
void | PtrToBoxNm (const SwTable *pTable) |
create from the internal formula (for CORE) the external formula (for UI) More... | |
void | BoxNmToPtr (const SwTable *pTable) |
create from the external formula the internal More... | |
void | ToRelBoxNm (const SwTable *pTable) |
create from the external/internal formula the relative formula More... | |
void | ToSplitMergeBoxNm (SwTableFormulaUpdate &rTableUpd) |
gets called before/after merging/splitting of tables More... | |
bool | IsIntrnlName () const |
NameType | GetNameType () const |
bool | IsValid () const |
void | ChgValid (bool bNew) |
const OUString & | GetFormula () const |
void | SetFormula (const OUString &rNew) |
void | GetBoxesOfFormula (const SwTable &rTable, SwSelBoxes &rBoxes) |
bool | HasValidBoxes () const |
Private Attributes | |
sw::BroadcastingModify * | m_pDefinedIn |
Additional Inherited Members | |
Public Types inherited from SfxPoolItem | |
typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
Static Public Member Functions inherited from SwTableFormula | |
static sal_uInt16 | GetLnPosInTable (const SwTable &rTable, const SwTableBox *pBox) |
Protected Types inherited from SwTableFormula | |
enum | NameType { EXTRNL_NAME , INTRNL_NAME , REL_NAME } |
Protected Member Functions inherited from SfxPoolItem | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
Protected Member Functions inherited from SwTableFormula | |
virtual const SwNode * | GetNodeOfFormula () const =0 |
SwTableFormula (OUString aFormula) | |
OUString | MakeFormula (SwTableCalcPara &rCalcPara) const |
Protected Attributes inherited from SwTableFormula | |
OUString | m_sFormula |
current formula More... | |
NameType | m_eNmType |
current display method More... | |
bool | m_bValidValue |
true: recalculate formula More... | |
Definition at line 55 of file cellatr.hxx.
SwTableBoxFormula::SwTableBoxFormula | ( | const OUString & | rFormula | ) |
Definition at line 56 of file cellatr.cxx.
Referenced by Clone().
void SwTableBoxFormula::Calc | ( | SwTableCalcPara & | rCalcPara, |
double & | rValue | ||
) |
Definition at line 130 of file cellatr.cxx.
References SwTableFormula::BoxNmToPtr(), SwCalc::Calculate(), SwTableFormula::ChgValid(), SwSbxValue::GetDouble(), SwCalc::IsCalcError(), SwTableCalcPara::IsStackOverflow(), SwTableCalcPara::m_pTable, SwTableCalcPara::m_rCalc, SwTableFormula::MakeFormula(), and sFormula.
|
inline |
Definition at line 79 of file cellatr.hxx.
References SwNode::FindTableNode().
Referenced by sw::DocumentFieldsManager::UpdateTableFields().
|
inline |
Definition at line 68 of file cellatr.hxx.
Referenced by SaveTable::AddFormat(), SwAttrSet::SetModifyAtAttr(), SwHistorySetAttrSet::SwHistorySetAttrSet(), and SwHistorySetFormat::SwHistorySetFormat().
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 70 of file cellatr.cxx.
References SwTableFormula::GetFormula(), and SwTableBoxFormula().
Referenced by MSWordExportBase::OutputTextNode().
|
inline |
Definition at line 67 of file cellatr.hxx.
Referenced by SwAttrSet::SetModifyAtAttr(), SwHistorySetAttrSet::SwHistorySetAttrSet(), and SwHistorySetFormat::SwHistorySetFormat().
|
overridevirtual |
Get node type of the node containing this formula.
E.g. TextField -> TextNode, or BoxAttribute -> BoxStartNode
Caution: Must override when inheriting.
Implements SwTableFormula.
Definition at line 85 of file cellatr.cxx.
References GetTableBox().
Referenced by SwHistorySetAttrSet::SwHistorySetAttrSet(), SwHistorySetFormat::SwHistorySetFormat(), ToSplitMergeBoxNmWithHistory(), and TryBoxNmToPtr().
SwTableBox * SwTableBoxFormula::GetTableBox | ( | ) |
Definition at line 91 of file cellatr.cxx.
References GetTableBox(), and m_pDefinedIn.
Referenced by GetNodeOfFormula(), and GetTableBox().
|
inline |
Definition at line 74 of file cellatr.hxx.
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 63 of file cellatr.cxx.
References SwTableFormula::GetFormula(), and m_pDefinedIn.
void SwTableBoxFormula::ToSplitMergeBoxNmWithHistory | ( | SwTableFormulaUpdate & | rUpdate, |
SwHistory * | pHistory | ||
) |
Definition at line 107 of file cellatr.cxx.
References SwHistory::Add(), GetNodeOfFormula(), SwTableFormulaUpdate::m_bModified, SwTableFormula::PtrToBoxNm(), and SwTableFormula::ToSplitMergeBoxNm().
void SwTableBoxFormula::TryBoxNmToPtr | ( | ) |
Definition at line 97 of file cellatr.cxx.
References SwTableFormula::BoxNmToPtr(), SwNode::FindTableNode(), SwNode::GetDoc(), GetNodeOfFormula(), SwDoc::GetNodes(), and SwNode::GetNodes().
Referenced by SwTable::UpdateFields().
|
private |
Definition at line 57 of file cellatr.hxx.
Referenced by GetTableBox(), and operator==().