LibreOffice Module sw (master)  1
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
SwPostItField Class Reference

#include <docufld.hxx>

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

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
 
SwPostItFieldoperator= (const SwPostItField &)=delete
 
virtual ~SwPostItField () override
 
virtual OUString ExpandImpl (SwRootFrame const *pLayout) const override
 
virtual std::unique_ptr< SwFieldCopy () const override
 
const DateTimeGetDateTime () 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 OutlinerParaObjectGetTextObject () 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
 
- Public Member Functions inherited from SwField
virtual ~SwField ()
 
 SwField (SwField const &)=default
 
 SwField (SwField &&)=default
 
SwFieldoperator= (SwField const &)=default
 
SwFieldoperator= (SwField &&)=default
 
SwFieldTypeGetTyp () const
 
virtual SwFieldTypeChgTyp (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< SwFieldCopyField () 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 m_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< OutlinerParaObjectmpText
 
rtl::Reference< SwTextAPIObjectm_xTextObject
 
sal_uInt32 m_nPostItId
 

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)
 

Detailed Description

Definition at line 441 of file docufld.hxx.

Constructor & Destructor Documentation

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 1731 of file docufld.cxx.

References m_nLastPostItId, m_nPostItId, and m_sName.

Referenced by Copy().

SwPostItField::SwPostItField ( const SwPostItField )
delete
SwPostItField::~SwPostItField ( )
overridevirtual

Definition at line 1751 of file docufld.cxx.

References m_xTextObject, and mpText.

Member Function Documentation

std::unique_ptr< SwField > SwPostItField::Copy ( ) const
overridevirtual
void SwPostItField::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SwField.

Definition at line 1939 of file docufld.cxx.

References SwField::dumpAsXml(), GetName(), and mpText.

OUString SwPostItField::ExpandImpl ( SwRootFrame const *  pLayout) const
overridevirtual

Implements SwField.

Definition at line 1761 of file docufld.cxx.

Date SwPostItField::GetDate ( ) const
inline
const DateTime& SwPostItField::GetDateTime ( ) const
inline
OUString SwPostItField::GetDescription ( ) const
overridevirtual

Reimplemented from SwField.

Definition at line 1766 of file docufld.cxx.

References SwResId().

const OUString& SwPostItField::GetInitials ( ) const
inline
const OUString& SwPostItField::GetName ( ) const
inline
sal_Int32 SwPostItField::GetNumberOfParagraphs ( ) const

Definition at line 1834 of file docufld.cxx.

References mpText.

Referenced by sw::DocumentStatisticsManager::IncrementalDocStatCalculate().

OUString SwPostItField::GetPar1 ( ) const
overridevirtual
OUString SwPostItField::GetPar2 ( ) const
overridevirtual

Text.

get the PostIt's text

Reimplemented from SwField.

Definition at line 1817 of file docufld.cxx.

References m_sText.

Referenced by SwXTextDocument::getPostIts(), lcl_FormatPostIt(), and sw::annotation::SwAnnotationWin::SetPostItText().

sal_uInt32 SwPostItField::GetPostItId ( ) const
inline
bool SwPostItField::GetResolved ( ) const
const OUString& SwPostItField::GetText ( ) const
inline
const OutlinerParaObject* SwPostItField::GetTextObject ( ) const
inline
tools::Time SwPostItField::GetTime ( ) const
inline
SwPostItField* SwPostItField::operator= ( const SwPostItField )
delete
bool SwPostItField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual
bool SwPostItField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual
void SwPostItField::SetName ( const OUString &  rStr)

Definition at line 1823 of file docufld.cxx.

References m_sName.

void SwPostItField::SetPar1 ( const OUString &  rStr)
overridevirtual

set author

Reimplemented from SwField.

Definition at line 1799 of file docufld.cxx.

References m_sAuthor.

void SwPostItField::SetPar2 ( const OUString &  rStr)
overridevirtual

set the PostIt's text

Reimplemented from SwField.

Definition at line 1811 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 1771 of file docufld.cxx.

References m_bResolved.

void SwPostItField::SetTextObject ( std::unique_ptr< OutlinerParaObject pText)
void SwPostItField::ToggleResolved ( )

Definition at line 1776 of file docufld.cxx.

References m_bResolved.

Member Data Documentation

DateTime SwPostItField::m_aDateTime
private

Definition at line 447 of file docufld.hxx.

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

bool SwPostItField::m_bResolved
private

Definition at line 448 of file docufld.hxx.

Referenced by Copy(), GetResolved(), PutValue(), QueryValue(), SetResolved(), and ToggleResolved().

sal_uInt32 SwPostItField::m_nLastPostItId = 1
static

Definition at line 454 of file docufld.hxx.

Referenced by SwPostItField().

sal_uInt32 SwPostItField::m_nPostItId
private

Definition at line 451 of file docufld.hxx.

Referenced by Copy(), and SwPostItField().

OUString SwPostItField::m_sAuthor
private

Definition at line 444 of file docufld.hxx.

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

OUString SwPostItField::m_sInitials
private

Initials of the author.

Definition at line 445 of file docufld.hxx.

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

OUString SwPostItField::m_sName
private

Name of the comment.

Definition at line 446 of file docufld.hxx.

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

OUString SwPostItField::m_sText
private

Definition at line 443 of file docufld.hxx.

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

rtl::Reference<SwTextAPIObject> SwPostItField::m_xTextObject
private

Definition at line 450 of file docufld.hxx.

Referenced by QueryValue(), and ~SwPostItField().

std::unique_ptr<OutlinerParaObject> SwPostItField::mpText
private

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