LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwTableBoxFormula Class Referencefinal

#include <cellatr.hxx>

Inheritance diagram for SwTableBoxFormula:
Collaboration diagram for SwTableBoxFormula:

Public Member Functions

 SwTableBoxFormula (const OUString &rFormula)
virtual bool operator== (const SfxPoolItem &) const override
virtual SwTableBoxFormulaClone (SfxItemPool *pPool=nullptr) const override
const sw::BroadcastingModify * GetDefinedIn () const
void ChgDefinedIn (const sw::BroadcastingModify *pNew)
virtual const SwNodeGetNodeOfFormula () const override
 Get node type of the node containing this formula. More...
SwTableBoxGetTableBox ()
const SwTableBoxGetTableBox () 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 SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
std::unique_ptr< SfxPoolItemCloneSetWhich (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
SwTableFormulaoperator= (SwTableFormula const &)=default
SwTableFormulaoperator= (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 {
- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 SfxPoolItem (const SfxPoolItem &rCopy)
- Protected Member Functions inherited from SwTableFormula
virtual const SwNodeGetNodeOfFormula () 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...

Detailed Description

Definition at line 55 of file cellatr.hxx.

Constructor & Destructor Documentation

◆ SwTableBoxFormula()

SwTableBoxFormula::SwTableBoxFormula ( const OUString &  rFormula)

Definition at line 56 of file cellatr.cxx.

Referenced by Clone().

Member Function Documentation

◆ Calc()

void SwTableBoxFormula::Calc ( SwTableCalcPara rCalcPara,
double &  rValue 

◆ ChangeState()

void SwTableBoxFormula::ChangeState ( )

Definition at line 79 of file cellatr.hxx.

References SwNode::FindTableNode().

Referenced by sw::DocumentFieldsManager::UpdateTableFields().

◆ ChgDefinedIn()

void SwTableBoxFormula::ChgDefinedIn ( const sw::BroadcastingModify *  pNew)

◆ Clone()

SwTableBoxFormula * SwTableBoxFormula::Clone ( SfxItemPool pPool = nullptr) const

Implements SfxPoolItem.

Definition at line 70 of file cellatr.cxx.

References SwTableFormula::GetFormula(), and SwTableBoxFormula().

Referenced by MSWordExportBase::OutputTextNode().

◆ GetDefinedIn()

const sw::BroadcastingModify * SwTableBoxFormula::GetDefinedIn ( ) const

◆ GetNodeOfFormula()

const SwNode * SwTableBoxFormula::GetNodeOfFormula ( ) const

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().

◆ GetTableBox() [1/2]

SwTableBox * SwTableBoxFormula::GetTableBox ( )

Definition at line 91 of file cellatr.cxx.

References GetTableBox(), and m_pDefinedIn.

Referenced by GetNodeOfFormula(), and GetTableBox().

◆ GetTableBox() [2/2]

const SwTableBox * SwTableBoxFormula::GetTableBox ( ) const

Definition at line 74 of file cellatr.hxx.

◆ operator==()

bool SwTableBoxFormula::operator== ( const SfxPoolItem rAttr) const

Implements SfxPoolItem.

Definition at line 63 of file cellatr.cxx.

References SwTableFormula::GetFormula(), and m_pDefinedIn.

◆ ToSplitMergeBoxNmWithHistory()

void SwTableBoxFormula::ToSplitMergeBoxNmWithHistory ( SwTableFormulaUpdate rUpdate,
SwHistory pHistory 

◆ TryBoxNmToPtr()

void SwTableBoxFormula::TryBoxNmToPtr ( )

Member Data Documentation

◆ m_pDefinedIn

sw::BroadcastingModify* SwTableBoxFormula::m_pDefinedIn

Definition at line 57 of file cellatr.hxx.

Referenced by GetTableBox(), and operator==().

The documentation for this class was generated from the following files: