libglom-1.18 1.18.3
Public Member Functions | Public Attributes

Glom::LayoutItem_WithFormatting Class Reference

A base class for all layout items that may have formatting options. More...

Inheritance diagram for Glom::LayoutItem_WithFormatting:
Inheritance graph
[legend]
Collaboration diagram for Glom::LayoutItem_WithFormatting:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LayoutItem_WithFormatting ()
 LayoutItem_WithFormatting (const LayoutItem_WithFormatting& src)
LayoutItem_WithFormattingoperator= (const LayoutItem_WithFormatting& src)
virtual ~LayoutItem_WithFormatting ()
bool operator== (const LayoutItem_WithFormatting& src) const
virtual const FieldFormattingget_formatting_used () const
 Get the field formatting used by this layout item, which may be either custom field formatting or the default field formatting.
virtual
FieldFormatting::HorizontalAlignment 
get_formatting_used_horizontal_alignment () const
 Get the alignment for the formatting used (see get_formatting_used()), choosing an appropriate alignment if it is set to HORIZONTAL_ALIGNMENT_AUTO.

Public Attributes

FieldFormatting m_formatting

Detailed Description

A base class for all layout items that may have formatting options.

See get_formatting_used().


Constructor & Destructor Documentation

Glom::LayoutItem_WithFormatting::LayoutItem_WithFormatting ( )
Glom::LayoutItem_WithFormatting::LayoutItem_WithFormatting ( const LayoutItem_WithFormatting src)
virtual Glom::LayoutItem_WithFormatting::~LayoutItem_WithFormatting ( ) [virtual]

Member Function Documentation

virtual const FieldFormatting& Glom::LayoutItem_WithFormatting::get_formatting_used ( ) const [virtual]

Get the field formatting used by this layout item, which may be either custom field formatting or the default field formatting.

Reimplemented in Glom::LayoutItem_Field.

virtual FieldFormatting::HorizontalAlignment Glom::LayoutItem_WithFormatting::get_formatting_used_horizontal_alignment ( ) const [virtual]

Get the alignment for the formatting used (see get_formatting_used()), choosing an appropriate alignment if it is set to HORIZONTAL_ALIGNMENT_AUTO.

Note that this never returns HORIZONTAL_ALIGNMENT_AUTO.

Reimplemented in Glom::LayoutItem_Field.

LayoutItem_WithFormatting& Glom::LayoutItem_WithFormatting::operator= ( const LayoutItem_WithFormatting src)
bool Glom::LayoutItem_WithFormatting::operator== ( const LayoutItem_WithFormatting src) const

Member Data Documentation


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