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::BroadcastingModifyGetDefinedIn () 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 ChangeState (const SfxPoolItem *pItem)
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
bool operator!= (const SfxPoolItem &rItem) const
virtual bool operator< (const SfxPoolItem &) const
virtual bool IsSortable () 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)
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


Additional Inherited Members

- 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
 SwTableFormula (const OUString &rFormula)
OUString MakeFormula (SwTableCalcPara &rCalcPara) const
- Static Protected Member Functions inherited from SwTableFormula
static sal_uInt16 GetLnPosInTable (const SwTable &rTable, const SwTableBox *pBox)
- 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 52 of file cellatr.hxx.

Constructor & Destructor Documentation

SwTableBoxFormula::SwTableBoxFormula ( const OUString &  rFormula)

Definition at line 56 of file cellatr.cxx.

Referenced by Clone().

Member Function Documentation

void SwTableBoxFormula::Calc ( SwTableCalcPara rCalcPara,
double &  rValue 
void SwTableBoxFormula::ChangeState ( const SfxPoolItem pItem)
void SwTableBoxFormula::ChgDefinedIn ( const sw::BroadcastingModify pNew)
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().

const sw::BroadcastingModify* SwTableBoxFormula::GetDefinedIn ( ) const
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 ChangeState(), SwHistorySetAttrSet::SwHistorySetAttrSet(), and SwHistorySetFormat::SwHistorySetFormat().

SwTableBox * SwTableBoxFormula::GetTableBox ( )

Definition at line 91 of file cellatr.cxx.

References m_pDefinedIn.

Referenced by ChangeState(), and GetNodeOfFormula().

const SwTableBox* SwTableBoxFormula::GetTableBox ( ) const

Definition at line 71 of file cellatr.hxx.

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

Implements SfxPoolItem.

Definition at line 63 of file cellatr.cxx.

References SwTableFormula::GetFormula(), and m_pDefinedIn.

Member Data Documentation

sw::BroadcastingModify* SwTableBoxFormula::m_pDefinedIn

Definition at line 54 of file cellatr.hxx.

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

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