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

#include <ddefld.hxx>

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

Public Member Functions

 SwDDEFieldType (OUString aName, const OUString &rCmd, SfxLinkUpdateMode)
 
virtual ~SwDDEFieldType () override
 
const OUString & GetExpansion () const
 
void SetExpansion (const OUString &rStr)
 
virtual std::unique_ptr< SwFieldTypeCopy () const override
 
virtual OUString GetName () const override
 Only in derived classes. More...
 
virtual void QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const override
 
virtual void PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) override
 
OUString const & GetCmd () const
 
void SetCmd (const OUString &aStr)
 
SfxLinkUpdateMode GetType () const
 
void SetType (SfxLinkUpdateMode nType)
 
bool IsDeleted () const
 
void SetDeleted (bool b)
 
void Disconnect ()
 
const ::sfx2::SvBaseLinkGetBaseLink () const
 
::sfx2::SvBaseLinkGetBaseLink ()
 
const SwDocGetDoc () const
 
SwDocGetDoc ()
 
void SetDoc (SwDoc *pDoc)
 
void IncRefCnt ()
 
void DecRefCnt ()
 
void SetCRLFDelFlag (bool bFlag)
 
virtual void UpdateFields () override
 
void UpdateDDE (const bool bNotifyShells=true)
 
- Public Member Functions inherited from SwFieldType
unotools::WeakReference< SwXFieldMaster > const & GetXObject () const
 
void SetXObject (rtl::Reference< SwXFieldMaster > const &xFieldMaster)
 
virtual OUString GetName () const
 Only in derived classes. More...
 
virtual std::unique_ptr< SwFieldTypeCopy () const =0
 
virtual void QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const
 
virtual void PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich)
 
SwFieldIds Which () const
 
void PrintHiddenPara ()
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
SwFormatFieldFindFormatForField (const SwField *) const
 
SwFormatFieldFindFormatForPostItId (sal_uInt32 nPostItId) const
 
void CollectPostIts (std::vector< SwFormatField * > &rvFormatFields, IDocumentRedlineAccess const &rIDRA, bool HideRedlines)
 
bool HasHiddenInformationNotes () const
 
void GatherNodeIndex (std::vector< SwNodeOffset > &rvNodeIndex)
 
void GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp)
 
void GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const
 
void GatherDdeTables (std::vector< SwDDETable * > &rvTables) const
 
void UpdateDocPos (const SwTwips nDocPos)
 
virtual void UpdateFields ()
 

Private Member Functions

SAL_DLLPRIVATE void RefCntChgd ()
 

Private Attributes

OUString m_aName
 
OUString m_aExpansion
 
tools::SvRef< sfx2::SvBaseLinkm_RefLink
 
SwDocm_pDoc
 
sal_uInt16 m_nRefCount
 
bool m_bCRLFFlag: 1
 
bool m_bDeleted: 1
 

Additional Inherited Members

- Static Public Member Functions inherited from SwFieldType
static const OUString & GetTypeStr (SwFieldTypesEnum nTypeId)
 
- Protected Member Functions inherited from SwFieldType
 SwFieldType (SwFieldIds nWhichId)
 Single argument ctors shall be explicit. More...
 

Detailed Description

Definition at line 50 of file ddefld.hxx.

Constructor & Destructor Documentation

◆ SwDDEFieldType()

SwDDEFieldType::SwDDEFieldType ( OUString  aName,
const OUString &  rCmd,
SfxLinkUpdateMode  nUpdateType 
)

Definition at line 151 of file ddefld.cxx.

References aName, Dde, m_aName, m_bCRLFFlag, m_bDeleted, m_RefLink, and SetCmd().

Referenced by Copy().

◆ ~SwDDEFieldType()

SwDDEFieldType::~SwDDEFieldType ( )
overridevirtual

Member Function Documentation

◆ Copy()

std::unique_ptr< SwFieldType > SwDDEFieldType::Copy ( ) const
overridevirtual

Implements SwFieldType.

Definition at line 168 of file ddefld.cxx.

References GetCmd(), GetType(), m_aExpansion, m_aName, m_bCRLFFlag, m_bDeleted, m_pDoc, and SwDDEFieldType().

◆ DecRefCnt()

void SwDDEFieldType::DecRefCnt ( )
inline

◆ Disconnect()

void SwDDEFieldType::Disconnect ( )
inline

Definition at line 88 of file ddefld.hxx.

Referenced by RefCntChgd().

◆ GetBaseLink() [1/2]

::sfx2::SvBaseLink & SwDDEFieldType::GetBaseLink ( )
inline

Definition at line 91 of file ddefld.hxx.

◆ GetBaseLink() [2/2]

const ::sfx2::SvBaseLink & SwDDEFieldType::GetBaseLink ( ) const
inline

Definition at line 90 of file ddefld.hxx.

Referenced by SwTextShell::StateField().

◆ GetCmd()

OUString const & SwDDEFieldType::GetCmd ( ) const

◆ GetDoc() [1/2]

SwDoc * SwDDEFieldType::GetDoc ( )
inline

Definition at line 94 of file ddefld.hxx.

◆ GetDoc() [2/2]

const SwDoc * SwDDEFieldType::GetDoc ( ) const
inline

Definition at line 93 of file ddefld.hxx.

Referenced by UpdateDDE().

◆ GetExpansion()

const OUString & SwDDEFieldType::GetExpansion ( ) const
inline

Definition at line 69 of file ddefld.hxx.

Referenced by SwDDETable::ChangeContent().

◆ GetName()

OUString SwDDEFieldType::GetName ( ) const
overridevirtual

Only in derived classes.

Reimplemented from SwFieldType.

Definition at line 178 of file ddefld.cxx.

References m_aName.

Referenced by SwXMLExport::ExportTable(), and SwFieldVarPage::SubTypeHdl().

◆ GetType()

SfxLinkUpdateMode SwDDEFieldType::GetType ( ) const
inline

◆ IncRefCnt()

void SwDDEFieldType::IncRefCnt ( )
inline

◆ IsDeleted()

bool SwDDEFieldType::IsDeleted ( ) const
inline

Definition at line 85 of file ddefld.hxx.

Referenced by SwTableNode::MakeCopy(), and SwDDETable::~SwDDETable().

◆ PutValue()

void SwDDEFieldType::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual

◆ QueryValue()

void SwDDEFieldType::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual

◆ RefCntChgd()

void SwDDEFieldType::RefCntChgd ( )
private

◆ SetCmd()

void SwDDEFieldType::SetCmd ( const OUString &  aStr)

Definition at line 183 of file ddefld.cxx.

References aStr, m_RefLink, and nIndex.

Referenced by PutValue(), and SwDDEFieldType().

◆ SetCRLFDelFlag()

void SwDDEFieldType::SetCRLFDelFlag ( bool  bFlag)
inline

Definition at line 100 of file ddefld.hxx.

◆ SetDeleted()

void SwDDEFieldType::SetDeleted ( bool  b)
inline

Definition at line 86 of file ddefld.hxx.

◆ SetDoc()

void SwDDEFieldType::SetDoc ( SwDoc pDoc)

◆ SetExpansion()

void SwDDEFieldType::SetExpansion ( const OUString &  rStr)
inline

Definition at line 70 of file ddefld.hxx.

◆ SetType()

void SwDDEFieldType::SetType ( SfxLinkUpdateMode  nType)
inline

Definition at line 83 of file ddefld.hxx.

References nType.

Referenced by PutValue().

◆ UpdateDDE()

void SwDDEFieldType::UpdateDDE ( const bool  bNotifyShells = true)

◆ UpdateFields()

virtual void SwDDEFieldType::UpdateFields ( )
inlineoverridevirtual

Reimplemented from SwFieldType.

Definition at line 101 of file ddefld.hxx.

Member Data Documentation

◆ m_aExpansion

OUString SwDDEFieldType::m_aExpansion
private

Definition at line 53 of file ddefld.hxx.

Referenced by Copy(), PutValue(), and QueryValue().

◆ m_aName

OUString SwDDEFieldType::m_aName
private

Definition at line 52 of file ddefld.hxx.

Referenced by Copy(), and GetName().

◆ m_bCRLFFlag

bool SwDDEFieldType::m_bCRLFFlag
private

Definition at line 59 of file ddefld.hxx.

Referenced by Copy(), and SwDDEFieldType().

◆ m_bDeleted

bool SwDDEFieldType::m_bDeleted
private

Definition at line 60 of file ddefld.hxx.

Referenced by Copy(), and SwDDEFieldType().

◆ m_nRefCount

sal_uInt16 SwDDEFieldType::m_nRefCount
private

Definition at line 58 of file ddefld.hxx.

Referenced by RefCntChgd(), and SetDoc().

◆ m_pDoc

SwDoc* SwDDEFieldType::m_pDoc
private

Definition at line 56 of file ddefld.hxx.

Referenced by Copy(), RefCntChgd(), SetDoc(), and ~SwDDEFieldType().

◆ m_RefLink

tools::SvRef<sfx2::SvBaseLink> SwDDEFieldType::m_RefLink
private

Definition at line 55 of file ddefld.hxx.

Referenced by GetCmd(), RefCntChgd(), SetCmd(), SetDoc(), SwDDEFieldType(), and ~SwDDEFieldType().


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