LibreOffice Module sw (master) 1
|
#include <docufld.hxx>
Public Member Functions | |
SwDocInfoFieldType (SwDoc *pDc) | |
OUString | Expand (sal_uInt16 nSubType, sal_uInt32 nFormat, LanguageType nLang, const OUString &rName) const |
virtual std::unique_ptr< SwFieldType > | Copy () const override |
![]() | |
SwDoc * | GetDoc () const |
void | SetDoc (SwDoc *pNewDoc) |
bool | UseFormat () const |
void | EnableFormat (bool bFormat=true) |
OUString | ExpandValue (const double &rVal, sal_uInt32 nFormat, LanguageType nLng) const |
return value formatted as string More... | |
OUString | DoubleToString (const double &rVal, LanguageType eLng) const |
OUString | DoubleToString (const double &rVal, sal_uInt32 nFormat) const |
![]() | |
SAL_DLLPRIVATE css::uno::WeakReference< css::beans::XPropertySet > const & | GetXObject () const |
SAL_DLLPRIVATE void | SetXObject (css::uno::Reference< css::beans::XPropertySet > 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 |
virtual void | UpdateFields () |
![]() | |
virtual void | CallSwClientNotify (const SfxHint &rHint) const override |
![]() | |
SwModify () | |
virtual void | CallSwClientNotify (const SfxHint &rHint) const |
virtual | ~SwModify () override |
void | Add (SwClient *pDepend) |
SwClient * | Remove (SwClient *pDepend) |
bool | HasWriterListeners () const |
bool | HasOnlyOneListener () const |
virtual bool | GetInfo (SfxPoolItem &) const override |
void | LockModify () |
void | UnlockModify () |
bool | IsModifyLocked () const |
![]() | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::optional< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
virtual bool | GetInfo (SfxPoolItem &) const |
![]() | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
![]() | |
BroadcasterMixin ()=default | |
BroadcasterMixin (BroadcasterMixin const &)=default | |
BroadcasterMixin & | operator= (const BroadcasterMixin &) |
SvtBroadcaster & | GetNotifier () |
Additional Inherited Members | |
![]() | |
static const OUString & | GetTypeStr (SwFieldTypesEnum nTypeId) |
![]() | |
SwValueFieldType (SwDoc *pDocPtr, SwFieldIds nWhichId) | |
SwValueFieldType (const SwValueFieldType &rTyp) | |
![]() | |
SwFieldType (SwFieldIds nWhichId) | |
Single argument ctors shall be explicit. More... | |
![]() | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
virtual void | SwClientNotify (const SwModify &, const SfxHint &rHint)=0 |
Definition at line 513 of file docufld.hxx.
SwDocInfoFieldType::SwDocInfoFieldType | ( | SwDoc * | pDc | ) |
Definition at line 835 of file docufld.cxx.
References DocInfo.
|
overridevirtual |
Implements SwFieldType.
Definition at line 840 of file docufld.cxx.
References SwValueFieldType::GetDoc().
OUString SwDocInfoFieldType::Expand | ( | sal_uInt16 | nSubType, |
sal_uInt32 | nFormat, | ||
LanguageType | nLang, | ||
const OUString & | rName | ||
) | const |
Definition at line 856 of file docufld.cxx.
References aName, aStr, nsSwDocInfoSubType::DI_CHANGE, nsSwDocInfoSubType::DI_COMMENT, nsSwDocInfoSubType::DI_CREATE, nsSwDocInfoSubType::DI_CUSTOM, nsSwDocInfoSubType::DI_DOCNO, nsSwDocInfoSubType::DI_EDIT, nsSwDocInfoSubType::DI_KEYS, nsSwDocInfoSubType::DI_PRINT, nsSwDocInfoSubType::DI_SUB_AUTHOR, nsSwDocInfoSubType::DI_SUB_DATE, nsSwDocInfoSubType::DI_SUB_FIXED, nsSwDocInfoSubType::DI_SUB_TIME, nsSwDocInfoSubType::DI_SUBJECT, nsSwDocInfoSubType::DI_TITLE, SwValueFieldType::ExpandValue(), SwDateTimeField::GetDateTime(), SwValueFieldType::GetDoc(), SfxObjectShell::GetModel(), comphelper::getProcessComponentContext(), tools::Time::GetTimeInDays(), Date::IsValidAndGregorian(), lcl_GetLocalDataWrapper(), nLang, and xConverter.
Referenced by sw::DocumentFieldsManager::SetFixFields().