MWAWField Struct Reference

a field More...

#include <libmwaw_internal.hxx>

Public Types

enum  Type {
  None , PageCount , PageNumber , Date ,
  Time , Title , Database , BookmarkStart ,
  BookmarkEnd
}
 Defines some basic type for field. More...
 

Public Member Functions

 MWAWField (Type type)
 basic constructor
 
 MWAWField (MWAWField &&)=default
 
 MWAWField (MWAWField const &)=default
 
MWAWFieldoperator= (MWAWField const &)=default
 
MWAWFieldoperator= (MWAWField &&)=default
 
bool addTo (librevenge::RVNGPropertyList &propList) const
 add the link property to proplist (if possible)
 
librevenge::RVNGString getString () const
 returns a string corresponding to the field (if possible) *‍/
 

Public Attributes

Type m_type
 the type
 
libmwaw::NumberingType m_numberingType
 the number type ( for number field )
 
std::string m_DTFormat
 the date/time format using strftime format if defined
 
std::string m_data
 the database/link field ( if defined ) or the bookmark name
 

Detailed Description

a field

Member Enumeration Documentation

◆ Type

Defines some basic type for field.

Enumerator
None 
PageCount 
PageNumber 
Date 
Time 
Title 
Database 
BookmarkStart 
BookmarkEnd 

Constructor & Destructor Documentation

◆ MWAWField() [1/3]

MWAWField::MWAWField ( Type  type)
inlineexplicit

basic constructor

◆ MWAWField() [2/3]

MWAWField::MWAWField ( MWAWField &&  )
default

◆ MWAWField() [3/3]

MWAWField::MWAWField ( MWAWField const &  )
default

Member Function Documentation

◆ addTo()

bool MWAWField::addTo ( librevenge::RVNGPropertyList &  propList) const

◆ getString()

librevenge::RVNGString MWAWField::getString ( ) const

◆ operator=() [1/2]

MWAWField & MWAWField::operator= ( MWAWField &&  )
default

◆ operator=() [2/2]

MWAWField & MWAWField::operator= ( MWAWField const &  )
default

Member Data Documentation

◆ m_data

std::string MWAWField::m_data

the database/link field ( if defined ) or the bookmark name

Referenced by addTo(), getString(), and RagTime5Text::send().

◆ m_DTFormat

◆ m_numberingType

libmwaw::NumberingType MWAWField::m_numberingType

the number type ( for number field )

Referenced by addTo(), and MWAWHeaderFooter::insertPageNumberParagraph().

◆ m_type


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

Generated on Thu Jan 19 2023 00:00:00 for libmwaw by doxygen 1.9.6