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

#include <cellatr.hxx>

Inheritance diagram for SwTableBoxFormula:
[legend]
Collaboration diagram for SwTableBoxFormula:
[legend]

Public Member Functions

 SwTableBoxFormula (const OUString &rFormula)
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const override
 
const SwModifyGetDefinedIn () const
 
void ChgDefinedIn (const SwModify *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
 
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 (long lMult, 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 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

SwModifym_pDefinedIn
 

Additional Inherited Members

- 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
 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 57 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 SwModify pNew)
inline
SfxPoolItem * SwTableBoxFormula::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 71 of file cellatr.cxx.

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

const SwModify* SwTableBoxFormula::GetDefinedIn ( ) const
inline
const SwNode * SwTableBoxFormula::GetNodeOfFormula ( ) const
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 86 of file cellatr.cxx.

References SwIterator< TElementType, TSource, eMode >::First(), SwTableBox::GetSttNd(), and m_pDefinedIn.

Referenced by ChangeState(), SwHistorySetAttrSet::SwHistorySetAttrSet(), and SwHistorySetFormat::SwHistorySetFormat().

SwTableBox * SwTableBoxFormula::GetTableBox ( )

Definition at line 98 of file cellatr.cxx.

References SwIterator< TElementType, TSource, eMode >::First(), and m_pDefinedIn.

Referenced by ChangeState(), and GetTableBox().

const SwTableBox* SwTableBoxFormula::GetTableBox ( ) const
inline

Definition at line 71 of file cellatr.hxx.

References GetTableBox().

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

Implements SfxPoolItem.

Definition at line 64 of file cellatr.cxx.

References SwTableFormula::GetFormula(), and m_pDefinedIn.

Member Data Documentation

SwModify* SwTableBoxFormula::m_pDefinedIn
private

Definition at line 54 of file cellatr.hxx.

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


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