LibreOffice Module sw (master) 1
|
#include <ddefld.hxx>
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< SwFieldType > | Copy () 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::SvBaseLink & | GetBaseLink () const |
::sfx2::SvBaseLink & | GetBaseLink () |
const SwDoc * | GetDoc () const |
SwDoc * | GetDoc () |
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< SwFieldType > | Copy () 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 |
SwFormatField * | FindFormatForField (const SwField *) const |
SwFormatField * | FindFormatForPostItId (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::SvBaseLink > | m_RefLink |
SwDoc * | m_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... | |
Definition at line 50 of file ddefld.hxx.
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().
|
overridevirtual |
Definition at line 161 of file ddefld.cxx.
References tools::SvRef< typename T >::get(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), SwDoc::IsInDtor(), m_pDoc, m_RefLink, and sfx2::LinkManager::Remove().
|
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().
|
inline |
Definition at line 98 of file ddefld.hxx.
Referenced by SwNodes::ChgNode(), SwpHints::DeleteAtPos(), SwNodes::MoveNodes(), SwDDETable::NoDDETable(), and SwDDETable::~SwDDETable().
|
inline |
Definition at line 88 of file ddefld.hxx.
Referenced by RefCntChgd().
|
inline |
Definition at line 91 of file ddefld.hxx.
|
inline |
Definition at line 90 of file ddefld.hxx.
Referenced by SwTextShell::StateField().
OUString const & SwDDEFieldType::GetCmd | ( | ) | const |
Definition at line 194 of file ddefld.cxx.
References m_RefLink.
Referenced by Copy(), SwXMLExport::ExportTable(), lcl_GetDDEFieldType(), SwTransferable::PasteDDE(), PutValue(), QueryValue(), and SwFieldVarPage::SubTypeHdl().
|
inline |
Definition at line 94 of file ddefld.hxx.
|
inline |
Definition at line 93 of file ddefld.hxx.
Referenced by UpdateDDE().
|
inline |
Definition at line 69 of file ddefld.hxx.
Referenced by SwDDETable::ChangeContent().
|
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().
|
inline |
Definition at line 82 of file ddefld.hxx.
Referenced by Copy(), SwXMLExport::ExportTable(), lcl_GetDDEFieldType(), SwTransferable::PasteDDE(), QueryValue(), and SwFieldVarPage::SubTypeHdl().
|
inline |
Definition at line 97 of file ddefld.hxx.
Referenced by SwNodes::ChgNode(), SwTableNode::MakeCopy(), SwNodes::MoveNodes(), and SwDDETable::SwDDETable().
|
inline |
Definition at line 85 of file ddefld.hxx.
Referenced by SwTableNode::MakeCopy(), and SwDDETable::~SwDDETable().
|
overridevirtual |
Reimplemented from SwFieldType.
Definition at line 255 of file ddefld.cxx.
References sfx2::cTokenSeparator, FIELD_PROP_BOOL1, FIELD_PROP_PAR2, FIELD_PROP_PAR4, FIELD_PROP_PAR5, FIELD_PROP_SUBTYPE, GetCmd(), i, m_aExpansion, nIndex, SetCmd(), and SetType().
|
overridevirtual |
Reimplemented from SwFieldType.
Definition at line 234 of file ddefld.cxx.
References sfx2::cTokenSeparator, FIELD_PROP_BOOL1, FIELD_PROP_PAR2, FIELD_PROP_PAR4, FIELD_PROP_PAR5, FIELD_PROP_SUBTYPE, GetCmd(), GetType(), and m_aExpansion.
|
private |
Definition at line 218 of file ddefld.cxx.
References Disconnect(), tools::SvRef< typename T >::get(), IDocumentLayoutAccess::GetCurrentViewShell(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), sfx2::LinkManager::InsertDDELink(), IDocumentLinksAdministration::IsVisibleLinks(), m_nRefCount, m_pDoc, m_RefLink, and sfx2::LinkManager::Remove().
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().
|
inline |
Definition at line 100 of file ddefld.hxx.
|
inline |
Definition at line 86 of file ddefld.hxx.
void SwDDEFieldType::SetDoc | ( | SwDoc * | pDoc | ) |
Definition at line 199 of file ddefld.cxx.
References tools::SvRef< typename T >::get(), SwDoc::getIDocumentLinksAdministration(), IDocumentLinksAdministration::GetLinkManager(), sfx2::LinkManager::InsertDDELink(), tools::SvRef< typename T >::is(), IDocumentLinksAdministration::IsVisibleLinks(), m_nRefCount, m_pDoc, m_RefLink, and sfx2::LinkManager::Remove().
|
inline |
Definition at line 70 of file ddefld.hxx.
|
inline |
void SwDDEFieldType::UpdateDDE | ( | const bool | bNotifyShells = true | ) |
Definition at line 293 of file ddefld.cxx.
References SwViewShell::EndAction(), SwEditShell::EndAllAction(), SwFieldType::GatherDdeTables(), SwFieldType::GatherFields(), IDocumentLayoutAccess::GetCurrentViewShell(), GetDoc(), SwViewShell::GetDoc(), SwViewShell::getIDocumentLayoutAccess(), SwDoc::getIDocumentState(), IDocumentState::SetModified(), SwViewShell::StartAction(), and SwEditShell::StartAllAction().
|
inlineoverridevirtual |
Reimplemented from SwFieldType.
Definition at line 101 of file ddefld.hxx.
|
private |
Definition at line 53 of file ddefld.hxx.
Referenced by Copy(), PutValue(), and QueryValue().
|
private |
Definition at line 52 of file ddefld.hxx.
|
private |
Definition at line 59 of file ddefld.hxx.
Referenced by Copy(), and SwDDEFieldType().
|
private |
Definition at line 60 of file ddefld.hxx.
Referenced by Copy(), and SwDDEFieldType().
|
private |
Definition at line 58 of file ddefld.hxx.
Referenced by RefCntChgd(), and SetDoc().
|
private |
Definition at line 56 of file ddefld.hxx.
Referenced by Copy(), RefCntChgd(), SetDoc(), and ~SwDDEFieldType().
|
private |
Definition at line 55 of file ddefld.hxx.
Referenced by GetCmd(), RefCntChgd(), SetCmd(), SetDoc(), SwDDEFieldType(), and ~SwDDEFieldType().