LibreOffice Module sw (master) 1
|
#include <docufld.hxx>
Public Member Functions | |
SwPostItField (SwPostItFieldType *, OUString aAuthor, OUString aText, OUString aInitials, OUString aName, const DateTime &rDate, const bool bResolved=false, const sal_uInt32 nPostItId=0, const sal_uInt32 nParentId=0, const sal_uInt32 nParaId=0) | |
SwPostItField (const SwPostItField &)=delete | |
SwPostItField * | operator= (const SwPostItField &)=delete |
virtual | ~SwPostItField () override |
virtual OUString | ExpandImpl (SwRootFrame const *pLayout) const override |
virtual std::unique_ptr< SwField > | Copy () const override |
const DateTime & | GetDateTime () const |
Date | GetDate () const |
tools::Time | GetTime () const |
sal_uInt32 | GetPostItId () const |
void | SetPostItId (const sal_uInt32 nPostItId=0) |
sal_uInt32 | GetParentId () const |
void | SetParentId (const sal_uInt32 nParentId) |
sal_uInt32 | GetParaId () const |
void | SetParaId (const sal_uInt32 nParaId) |
virtual OUString | GetPar1 () const override |
Author. More... | |
virtual void | SetPar1 (const OUString &rStr) override |
set author More... | |
virtual OUString | GetPar2 () const override |
Text. More... | |
virtual void | SetPar2 (const OUString &rStr) override |
set the PostIt's text More... | |
const OUString & | GetText () const |
const OUString & | GetInitials () const |
void | SetName (const OUString &rStr) |
const OUString & | GetName () const |
const OutlinerParaObject * | GetTextObject () const |
void | SetTextObject (std::optional< OutlinerParaObject > pText) |
void | SetResolved (bool bNewState) |
void | ToggleResolved () |
bool | GetResolved () const |
sal_Int32 | GetNumberOfParagraphs () const |
void | ChangeStyleSheetName (std::u16string_view rOldName, const SfxStyleSheetBase *pStyleSheet) |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) override |
virtual OUString | GetDescription () const override |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
Public Member Functions inherited from SwField | |
virtual | ~SwField () |
SwField (SwField const &)=default | |
SwField (SwField &&)=default | |
SwField & | operator= (SwField const &)=default |
SwField & | operator= (SwField &&)=default |
SwFieldType * | GetTyp () const |
virtual SwFieldType * | ChgTyp (SwFieldType *) |
Set new type (used for copying among documents). More... | |
OUString | ExpandField (bool bCached, SwRootFrame const *pLayout) const |
expand the field. More... | |
virtual OUString | GetFieldName () const |
get name or content More... | |
std::unique_ptr< SwField > | CopyField () const |
SwFieldIds | Which () const |
ResId. More... | |
SwFieldTypesEnum | GetTypeId () const |
virtual sal_uInt16 | GetSubType () const |
virtual void | SetSubType (sal_uInt16) |
LanguageType | GetLanguage () const |
Language at field position. More... | |
virtual void | SetLanguage (LanguageType nLng) |
sal_uInt32 | GetFormat () const |
Query parameters for dialog and for BASIC. More... | |
virtual OUString | GetPar1 () const |
virtual OUString | GetPar2 () const |
virtual OUString | GetFormula () const |
void | ChangeFormat (sal_uInt32 n) |
virtual void | SetPar1 (const OUString &rStr) |
virtual void | SetPar2 (const OUString &rStr) |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhichId) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhichId) |
bool | HasClickHdl () const |
Does the field possess an action on its ClickHandler? (e.g. INetFields, ...). More... | |
bool | IsFixed () const |
bool | IsAutomaticLanguage () const |
void | SetAutomaticLanguage (bool const bSet) |
virtual OUString | GetDescription () const |
bool | IsClickable () const |
Is this field clickable? More... | |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
const OUString & | GetTitle () const |
void | SetTitle (const OUString &rTitle) |
Static Public Attributes | |
static sal_uInt32 | s_nLastPostItId = 1 |
Private Attributes | |
OUString | m_sText |
OUString | m_sAuthor |
OUString | m_sInitials |
Initials of the author. More... | |
OUString | m_sName |
Name of the comment. More... | |
DateTime | m_aDateTime |
bool | m_bResolved |
std::optional< OutlinerParaObject > | mpText |
rtl::Reference< SwTextAPIObject > | m_xTextObject |
sal_uInt32 | m_nPostItId |
sal_uInt32 | m_nParentId |
sal_uInt32 | m_nParaId |
Additional Inherited Members | |
Protected Member Functions inherited from SwField | |
void | SetFormat (sal_uInt32 const nSet) |
SwField (SwFieldType *pTyp, sal_uInt32 nFormat=0, LanguageType nLang=LANGUAGE_SYSTEM, bool m_bUseFieldValueCache=true) | |
Definition at line 448 of file docufld.hxx.
SwPostItField::SwPostItField | ( | SwPostItFieldType * | pT, |
OUString | aAuthor, | ||
OUString | aText, | ||
OUString | aInitials, | ||
OUString | aName, | ||
const DateTime & | rDate, | ||
const bool | bResolved = false , |
||
const sal_uInt32 | nPostItId = 0 , |
||
const sal_uInt32 | nParentId = 0 , |
||
const sal_uInt32 | nParaId = 0 |
||
) |
Definition at line 1740 of file docufld.cxx.
References aName, m_nPostItId, m_sName, and s_nLastPostItId.
Referenced by Copy().
|
delete |
|
overridevirtual |
Definition at line 1764 of file docufld.cxx.
References m_xTextObject, mpText, and std::optional< OutlinerParaObject >::reset().
void SwPostItField::ChangeStyleSheetName | ( | std::u16string_view | rOldName, |
const SfxStyleSheetBase * | pStyleSheet | ||
) |
Definition at line 1852 of file docufld.cxx.
References OutlinerParaObject::ChangeStyleSheetName(), SfxStyleSheetBase::GetFamily(), SfxStyleSheetBase::GetName(), and mpText.
Referenced by SwPostItMgr::Notify().
|
overridevirtual |
Implements SwField.
Definition at line 1799 of file docufld.cxx.
References SwField::GetTyp(), m_aDateTime, m_bResolved, m_nParaId, m_nParentId, m_nPostItId, m_sAuthor, m_sInitials, m_sName, m_sText, mpText, and SwPostItField().
Referenced by sw::annotation::SwAnnotationWin::InitAnswer(), and sw::annotation::SwAnnotationWin::UpdateData().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1997 of file docufld.cxx.
References OutlinerParaObject::dumpAsXml(), SwField::dumpAsXml(), GetName(), and mpText.
|
overridevirtual |
Implements SwField.
Definition at line 1774 of file docufld.cxx.
|
inline |
Definition at line 485 of file docufld.hxx.
References Date::GetDate().
Referenced by SwEnhancedPDFExportHelper::EnhancedPDFExport(), sw::annotation::SwAnnotationWin::GetDate(), lcl_FormatPostIt(), and WW8_Annotation::WW8_Annotation().
|
inline |
Definition at line 484 of file docufld.hxx.
Referenced by SwXTextDocument::getPostIts(), and RtfAttributeOutput::PostitField().
|
overridevirtual |
|
inline |
Definition at line 502 of file docufld.hxx.
Referenced by RtfAttributeOutput::PostitField(), and WW8_Annotation::WW8_Annotation().
|
inline |
Definition at line 504 of file docufld.hxx.
References m_sName.
Referenced by WW8_WrPlcAnnotations::Append(), SwXTextField::attach(), dumpAsXml(), SwXTextField::getAnchor(), DocxAttributeOutput::PostitField(), RtfAttributeOutput::PostitField(), and SwFltControlStack::SetAttrInDoc().
sal_Int32 SwPostItField::GetNumberOfParagraphs | ( | ) | const |
Definition at line 1847 of file docufld.cxx.
References OutlinerParaObject::Count(), and mpText.
|
overridevirtual |
Author.
get author
Reimplemented from SwField.
Definition at line 1818 of file docufld.cxx.
References m_sAuthor.
Referenced by SwEnhancedPDFExportHelper::EnhancedPDFExport(), sw::annotation::SwAnnotationWin::GetAuthor(), SwXTextDocument::getPostIts(), lcl_FormatPostIt(), RtfAttributeOutput::PostitField(), and WW8_Annotation::WW8_Annotation().
|
overridevirtual |
Text.
get the PostIt's text
Reimplemented from SwField.
Definition at line 1830 of file docufld.cxx.
References m_sText.
Referenced by SwXTextDocument::getPostIts(), lcl_FormatPostIt(), and sw::annotation::SwAnnotationWin::SetPostItText().
|
inline |
Definition at line 491 of file docufld.hxx.
Referenced by sw::annotation::SwAnnotationWin::GetParaId().
|
inline |
Definition at line 489 of file docufld.hxx.
Referenced by SwXTextDocument::getPostIts().
|
inline |
Definition at line 487 of file docufld.hxx.
Referenced by SwPostItMgr::CheckForRemovedPostIts(), SwPostItMgr::GetAnnotationWin(), SwXTextDocument::getPostIts(), SwPostItMgr::Notify(), and sw::annotation::SwAnnotationWin::SwAnnotationWin().
bool SwPostItField::GetResolved | ( | ) | const |
Definition at line 1794 of file docufld.cxx.
References m_bResolved.
Referenced by SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwXTextDocument::getPostIts(), and lcl_FormatPostIt().
|
inline |
Definition at line 501 of file docufld.hxx.
Referenced by SwEnhancedPDFExportHelper::EnhancedPDFExport(), and WW8_Annotation::WW8_Annotation().
|
inline |
Definition at line 506 of file docufld.hxx.
Referenced by RtfAttributeOutput::PostitField(), sw::annotation::SwAnnotationWin::SetPostItText(), and WW8_Annotation::WW8_Annotation().
|
inline |
Definition at line 486 of file docufld.hxx.
References tools::Time::GetTime().
Referenced by sw::annotation::SwAnnotationWin::GetTime(), and WW8_Annotation::WW8_Annotation().
|
delete |
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1939 of file docufld.cxx.
References FIELD_PROP_BOOL1, FIELD_PROP_DATE, FIELD_PROP_DATE_TIME, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_PAR5, FIELD_PROP_PAR6, FIELD_PROP_TEXT, m_aDateTime, m_bResolved, m_nParentId, m_nPostItId, m_sAuthor, m_sInitials, m_sName, m_sText, mpText, and std::optional< OutlinerParaObject >::reset().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1873 of file docufld.cxx.
References FIELD_PROP_BOOL1, FIELD_PROP_DATE, FIELD_PROP_DATE_TIME, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_PAR5, FIELD_PROP_PAR6, FIELD_PROP_TEXT, SwPostItFieldType::GetDoc(), SwField::GetTyp(), Date::GetUNODate(), DateTime::GetUNODateTime(), m_aDateTime, m_bResolved, m_nParentId, m_nPostItId, m_sAuthor, m_sInitials, m_sName, m_sText, m_xTextObject, and mpText.
void SwPostItField::SetName | ( | const OUString & | rStr | ) |
|
overridevirtual |
set author
Reimplemented from SwField.
Definition at line 1812 of file docufld.cxx.
References m_sAuthor.
|
overridevirtual |
set the PostIt's text
Reimplemented from SwField.
Definition at line 1824 of file docufld.cxx.
References m_sText.
Referenced by SwXTextField::attach(), sw::annotation::SwAnnotationWin::InitAnswer(), and sw::annotation::SwAnnotationWin::UpdateData().
void SwPostItField::SetParaId | ( | const sal_uInt32 | nParaId | ) |
Definition at line 1868 of file docufld.cxx.
References m_nParaId.
void SwPostItField::SetParentId | ( | const sal_uInt32 | nParentId | ) |
Definition at line 1863 of file docufld.cxx.
References m_nParentId.
Referenced by sw::annotation::SwAnnotationWin::ExecuteCommand().
void SwPostItField::SetPostItId | ( | const sal_uInt32 | nPostItId = 0 | ) |
Definition at line 1858 of file docufld.cxx.
References m_nPostItId, and s_nLastPostItId.
void SwPostItField::SetResolved | ( | bool | bNewState | ) |
Definition at line 1784 of file docufld.cxx.
References m_bResolved.
void SwPostItField::SetTextObject | ( | std::optional< OutlinerParaObject > | pText | ) |
Definition at line 1842 of file docufld.cxx.
References mpText.
Referenced by SwXTextField::attach(), sw::annotation::SwAnnotationWin::InitAnswer(), SwWW8ImplReader::Read_And(), and sw::annotation::SwAnnotationWin::UpdateData().
void SwPostItField::ToggleResolved | ( | ) |
Definition at line 1789 of file docufld.cxx.
References m_bResolved.
|
private |
Definition at line 454 of file docufld.hxx.
Referenced by Copy(), PutValue(), and QueryValue().
|
private |
Definition at line 455 of file docufld.hxx.
Referenced by Copy(), GetResolved(), PutValue(), QueryValue(), SetResolved(), and ToggleResolved().
|
private |
Definition at line 460 of file docufld.hxx.
Referenced by Copy(), and SetParaId().
|
private |
Definition at line 459 of file docufld.hxx.
Referenced by Copy(), PutValue(), QueryValue(), and SetParentId().
|
private |
Definition at line 458 of file docufld.hxx.
Referenced by Copy(), PutValue(), QueryValue(), SetPostItId(), and SwPostItField().
|
private |
Definition at line 451 of file docufld.hxx.
Referenced by Copy(), GetPar1(), PutValue(), QueryValue(), and SetPar1().
|
private |
Initials of the author.
Definition at line 452 of file docufld.hxx.
Referenced by Copy(), PutValue(), and QueryValue().
|
private |
Name of the comment.
Definition at line 453 of file docufld.hxx.
Referenced by Copy(), PutValue(), QueryValue(), and SetName().
|
private |
Definition at line 450 of file docufld.hxx.
Referenced by Copy(), GetPar2(), PutValue(), QueryValue(), and SetPar2().
|
private |
Definition at line 457 of file docufld.hxx.
Referenced by QueryValue(), and ~SwPostItField().
|
private |
Definition at line 456 of file docufld.hxx.
Referenced by ChangeStyleSheetName(), Copy(), dumpAsXml(), GetNumberOfParagraphs(), PutValue(), QueryValue(), SetTextObject(), and ~SwPostItField().
|
static |
Definition at line 463 of file docufld.hxx.
Referenced by SetPostItId(), and SwPostItField().