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

#include <docufld.hxx>

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

Public Member Functions

 SwHiddenParaField (SwHiddenParaFieldType *, const OUString &rCond)
 Direct input, delete old value. More...
 
virtual OUString ExpandImpl (SwRootFrame const *pLayout) const override
 
virtual std::unique_ptr< SwFieldCopy () const override
 
void SetHidden (bool bHidden)
 
bool IsHidden () const
 
virtual OUString GetPar1 () const override
 Query, set condition. More...
 
virtual void SetPar1 (const OUString &rStr) override
 set condition More...
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) 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...
 
sal_uInt16 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 GetPar2 () const
 
virtual OUString GetFormula () const
 
void ChangeFormat (sal_uInt32 n)
 
virtual void SetPar2 (const OUString &rStr)
 
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
 

Private Attributes

OUString m_aCond
 
bool m_bIsHidden
 

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 357 of file docufld.hxx.

Constructor & Destructor Documentation

SwHiddenParaField::SwHiddenParaField ( SwHiddenParaFieldType pTyp,
const OUString &  rCond 
)

Direct input, delete old value.

Definition at line 1652 of file docufld.cxx.

References m_bIsHidden.

Referenced by Copy().

Member Function Documentation

std::unique_ptr< SwField > SwHiddenParaField::Copy ( ) const
overridevirtual

Implements SwField.

Definition at line 1663 of file docufld.cxx.

References SwField::GetTyp(), m_aCond, m_bIsHidden, and SwHiddenParaField().

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

Implements SwField.

Definition at line 1658 of file docufld.cxx.

OUString SwHiddenParaField::GetPar1 ( ) const
overridevirtual

Query, set condition.

Reimplemented from SwField.

Definition at line 1710 of file docufld.cxx.

References m_aCond.

Referenced by sw::DocumentFieldsManager::UpdateExpFieldsImpl().

bool SwHiddenParaField::IsHidden ( ) const
inline

Definition at line 369 of file docufld.hxx.

References m_bIsHidden.

bool SwHiddenParaField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual

Reimplemented from SwField.

Definition at line 1687 of file docufld.cxx.

References FIELD_PROP_BOOL1, FIELD_PROP_PAR1, m_aCond, and m_bIsHidden.

bool SwHiddenParaField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual

Reimplemented from SwField.

Definition at line 1670 of file docufld.cxx.

References FIELD_PROP_BOOL1, FIELD_PROP_PAR1, m_aCond, and m_bIsHidden.

void SwHiddenParaField::SetHidden ( bool  bHidden)
inline
void SwHiddenParaField::SetPar1 ( const OUString &  rStr)
overridevirtual

set condition

Reimplemented from SwField.

Definition at line 1705 of file docufld.cxx.

References m_aCond.

Member Data Documentation

OUString SwHiddenParaField::m_aCond
private

Definition at line 359 of file docufld.hxx.

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

bool SwHiddenParaField::m_bIsHidden
private

Definition at line 360 of file docufld.hxx.

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


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