LibreOffice Module sw (master)
1
|
#include <docufld.hxx>
Public Member Functions | |
SwPostItField (SwPostItFieldType *, const OUString &rAuthor, const OUString &rText, const OUString &rInitials, const OUString &rName, const DateTime &rDate, const bool bResolved=false, const sal_uInt32 nPostItId=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 |
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::unique_ptr< OutlinerParaObject > pText) |
void | SetResolved (bool bNewState) |
void | ToggleResolved () |
bool | GetResolved () const |
sal_Int32 | GetNumberOfParagraphs () const |
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 |
![]() | |
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 | GetFormula () const |
void | ChangeFormat (sal_uInt32 n) |
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) |
bool | IsClickable () const |
Is this field clickable? More... | |
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::unique_ptr< OutlinerParaObject > | mpText |
rtl::Reference< SwTextAPIObject > | m_xTextObject |
sal_uInt32 | m_nPostItId |
Additional Inherited Members | |
![]() | |
void | SetFormat (sal_uInt32 const nSet) |
SwField (SwFieldType *pTyp, sal_uInt32 nFormat=0, LanguageType nLang=LANGUAGE_SYSTEM, bool m_bUseFieldValueCache=true) | |
Definition at line 445 of file docufld.hxx.
SwPostItField::SwPostItField | ( | SwPostItFieldType * | pT, |
const OUString & | rAuthor, | ||
const OUString & | rText, | ||
const OUString & | rInitials, | ||
const OUString & | rName, | ||
const DateTime & | rDate, | ||
const bool | bResolved = false , |
||
const sal_uInt32 | nPostItId = 0 |
||
) |
Definition at line 1724 of file docufld.cxx.
References m_nPostItId, m_sName, and s_nLastPostItId.
Referenced by Copy().
|
delete |
|
overridevirtual |
Definition at line 1744 of file docufld.cxx.
References m_xTextObject, and mpText.
|
overridevirtual |
Implements SwField.
Definition at line 1779 of file docufld.cxx.
References SwField::GetTyp(), m_aDateTime, m_bResolved, 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 1932 of file docufld.cxx.
References SwField::dumpAsXml(), GetName(), and mpText.
|
overridevirtual |
Implements SwField.
Definition at line 1754 of file docufld.cxx.
|
inline |
Definition at line 478 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 477 of file docufld.hxx.
Referenced by SwXTextDocument::getPostIts(), RtfAttributeOutput::PostitField(), and DocxAttributeOutput::WritePostitFields().
|
overridevirtual |
|
inline |
Definition at line 490 of file docufld.hxx.
Referenced by RtfAttributeOutput::PostitField(), DocxAttributeOutput::WritePostitFields(), and WW8_Annotation::WW8_Annotation().
|
inline |
Definition at line 492 of file docufld.hxx.
Referenced by WW8_WrPlcAnnotations::Append(), SwXTextField::attach(), dumpAsXml(), SwXTextField::getAnchor(), sw::mark::AnnotationMark::GetAnnotationFormatField(), RtfAttributeOutput::PostitField(), DocxAttributeOutput::PostitField(), and SwFltControlStack::SetAttrInDoc().
sal_Int32 SwPostItField::GetNumberOfParagraphs | ( | ) | const |
Definition at line 1827 of file docufld.cxx.
References mpText.
|
overridevirtual |
Author.
get author
Reimplemented from SwField.
Definition at line 1798 of file docufld.cxx.
References m_sAuthor.
Referenced by SwEnhancedPDFExportHelper::EnhancedPDFExport(), sw::annotation::SwAnnotationWin::GetAuthor(), SwXTextDocument::getPostIts(), lcl_FormatPostIt(), RtfAttributeOutput::PostitField(), DocxAttributeOutput::WritePostitFields(), and WW8_Annotation::WW8_Annotation().
|
overridevirtual |
Text.
get the PostIt's text
Reimplemented from SwField.
Definition at line 1810 of file docufld.cxx.
References m_sText.
Referenced by SwXTextDocument::getPostIts(), lcl_FormatPostIt(), and sw::annotation::SwAnnotationWin::SetPostItText().
|
inline |
Definition at line 480 of file docufld.hxx.
Referenced by sw::annotation::SwAnnotationWin::CalcParent(), SwPostItMgr::Delete(), SwXTextDocument::getPostIts(), SwPostItMgr::Notify(), and sw::annotation::SwAnnotationWin::SwAnnotationWin().
bool SwPostItField::GetResolved | ( | ) | const |
Definition at line 1774 of file docufld.cxx.
References m_bResolved.
Referenced by SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwXTextDocument::getPostIts(), and lcl_FormatPostIt().
|
inline |
Definition at line 489 of file docufld.hxx.
Referenced by SwEnhancedPDFExportHelper::EnhancedPDFExport(), DocxAttributeOutput::WritePostitFields(), and WW8_Annotation::WW8_Annotation().
|
inline |
Definition at line 494 of file docufld.hxx.
Referenced by RtfAttributeOutput::PostitField(), sw::annotation::SwAnnotationWin::SetPostItText(), DocxAttributeOutput::WritePostitFields(), and WW8_Annotation::WW8_Annotation().
|
inline |
Definition at line 479 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 1888 of file docufld.cxx.
References assert(), FIELD_PROP_BOOL1, FIELD_PROP_DATE, FIELD_PROP_DATE_TIME, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_TEXT, m_aDateTime, m_bResolved, m_sAuthor, m_sInitials, m_sName, m_sText, and mpText.
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1832 of file docufld.cxx.
References assert(), FIELD_PROP_BOOL1, FIELD_PROP_DATE, FIELD_PROP_DATE_TIME, FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_TEXT, SwPostItFieldType::GetDoc(), SwField::GetTyp(), Date::GetUNODate(), DateTime::GetUNODateTime(), m_aDateTime, m_bResolved, m_sAuthor, m_sInitials, m_sName, m_sText, m_xTextObject, and mpText.
void SwPostItField::SetName | ( | const OUString & | rStr | ) |
Definition at line 1816 of file docufld.cxx.
References m_sName.
|
overridevirtual |
set author
Reimplemented from SwField.
Definition at line 1792 of file docufld.cxx.
References m_sAuthor.
|
overridevirtual |
set the PostIt's text
Reimplemented from SwField.
Definition at line 1804 of file docufld.cxx.
References m_sText.
Referenced by SwXTextField::attach(), sw::annotation::SwAnnotationWin::InitAnswer(), and sw::annotation::SwAnnotationWin::UpdateData().
void SwPostItField::SetResolved | ( | bool | bNewState | ) |
Definition at line 1764 of file docufld.cxx.
References m_bResolved.
void SwPostItField::SetTextObject | ( | std::unique_ptr< OutlinerParaObject > | pText | ) |
Definition at line 1822 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 1769 of file docufld.cxx.
References m_bResolved.
|
private |
Definition at line 451 of file docufld.hxx.
Referenced by Copy(), PutValue(), and QueryValue().
|
private |
Definition at line 452 of file docufld.hxx.
Referenced by Copy(), GetResolved(), PutValue(), QueryValue(), SetResolved(), and ToggleResolved().
|
private |
Definition at line 455 of file docufld.hxx.
Referenced by Copy(), and SwPostItField().
|
private |
Definition at line 448 of file docufld.hxx.
Referenced by Copy(), GetPar1(), PutValue(), QueryValue(), and SetPar1().
|
private |
Initials of the author.
Definition at line 449 of file docufld.hxx.
Referenced by Copy(), PutValue(), and QueryValue().
|
private |
Name of the comment.
Definition at line 450 of file docufld.hxx.
Referenced by Copy(), PutValue(), QueryValue(), and SetName().
|
private |
Definition at line 447 of file docufld.hxx.
Referenced by Copy(), GetPar2(), PutValue(), QueryValue(), and SetPar2().
|
private |
Definition at line 454 of file docufld.hxx.
Referenced by QueryValue(), and ~SwPostItField().
|
private |
Definition at line 453 of file docufld.hxx.
Referenced by Copy(), dumpAsXml(), GetNumberOfParagraphs(), PutValue(), QueryValue(), SetTextObject(), and ~SwPostItField().
|
static |
Definition at line 458 of file docufld.hxx.
Referenced by SwPostItField().