filters

Swinder::ColInfoRecord Class Reference

#include <excel.h>

Inheritance diagram for Swinder::ColInfoRecord:
Swinder::Record Swinder::ColumnSpanInfo

Public Member Functions

unsigned int rtti ()
 ColInfoRecord ()
virtual ~ColInfoRecord ()
unsigned xfIndex () const
void setXfIndex (unsigned i)
unsigned width () const
void setWidth (unsigned w)
bool hidden () const
void setHidden (bool h)
bool collapsed () const
void setCollapsed (bool c)
unsigned outlineLevel () const
void setOutlineLevel (unsigned l)
virtual void setData (unsigned size, const unsigned char *data)
virtual const char * name ()
virtual void dump (std::ostream &out) const
Public Member Functions inherited from Swinder::Record
 Record ()
virtual ~Record ()
void setVersion (unsigned v)
unsigned version ()
void setPosition (unsigned pos)
unsigned position () const
Public Member Functions inherited from Swinder::ColumnSpanInfo
 ColumnSpanInfo ()
virtual ~ColumnSpanInfo ()
virtual unsigned firstColumn () const
virtual unsigned lastColumn () const
virtual void setFirstColumn (unsigned c)
virtual void setLastColumn (unsigned c)

Static Public Attributes

static const unsigned int id = 0x007d
Static Public Attributes inherited from Swinder::Record
static const unsigned int id = 0

Additional Inherited Members

Static Public Member Functions inherited from Swinder::Record
static Record * create (unsigned type)
Protected Attributes inherited from Swinder::Record
unsigned stream_position
unsigned ver

Detailed Description

Columns width and format.

Class ColInfoRecord represents ColInfo record, which provides information (such as column width and formatting) for a span of columns.

Definition at line 841 of file excel.h.

Constructor & Destructor Documentation

◆ ColInfoRecord()

ColInfoRecord::ColInfoRecord ( )

Creates a new ColInfo record.

Definition at line 2097 of file excel.cpp.

◆ ~ColInfoRecord()

ColInfoRecord::~ColInfoRecord ( )
virtual

Destroys the record.

Definition at line 2108 of file excel.cpp.

Member Function Documentation

◆ collapsed()

bool ColInfoRecord::collapsed ( ) const

Returns true if the columns should be collapsed.

See also
setCollapsed

Definition at line 2144 of file excel.cpp.

◆ dump()

void ColInfoRecord::dump ( std::ostream & out) const
virtual

Dumps record information to output stream.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 2179 of file excel.cpp.

◆ hidden()

bool ColInfoRecord::hidden ( ) const

Returns true if the columns should be hidden, i.e not visible.

See also
setHidden

Definition at line 2134 of file excel.cpp.

◆ name()

virtual const char * Swinder::ColInfoRecord::name ( )
inlinevirtual

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 939 of file excel.h.

◆ outlineLevel()

unsigned ColInfoRecord::outlineLevel ( ) const

Returns the outline level of the columns.

If it is 0, then the columns are not outlined.

See also
setOutlineLevel

Definition at line 2154 of file excel.cpp.

◆ rtti()

unsigned int Swinder::ColInfoRecord::rtti ( )
inlinevirtual

Reimplemented from Swinder::Record.

Definition at line 847 of file excel.h.

◆ setCollapsed()

void ColInfoRecord::setCollapsed ( bool c)

Sets whether columns should be collapsed or not.

See also
collapsed

Definition at line 2149 of file excel.cpp.

◆ setData()

void ColInfoRecord::setData ( unsigned size,
const unsigned char * data )
virtual

Sets the data for this record.

Reimplemented from Swinder::Record.

Definition at line 2164 of file excel.cpp.

◆ setHidden()

void ColInfoRecord::setHidden ( bool h)

Sets whether columns should be hidden or visible.

See also
hidden

Definition at line 2139 of file excel.cpp.

◆ setOutlineLevel()

void ColInfoRecord::setOutlineLevel ( unsigned l)

Sets the outline level of the columns.

If it is 0, then the columns are not outlined.

See also
outlineLevel

Definition at line 2159 of file excel.cpp.

◆ setWidth()

void ColInfoRecord::setWidth ( unsigned w)

Sets the width of the column(s), specified in 1/256 of a character width.

The exact width (in pt or inch) could only be calculated given the base character width for the column format.

See also
width

Definition at line 2119 of file excel.cpp.

◆ setXfIndex()

void ColInfoRecord::setXfIndex ( unsigned i)

Sets the XF index for the formatting of the column(s).

See also
xfIndex

Definition at line 2129 of file excel.cpp.

◆ width()

unsigned ColInfoRecord::width ( ) const

Returns the width of the column(s), specified in 1/256 of a character width.

The exact width (in pt or inch) could only be calculated given the base character width for the column format.

See also
setWidth

Definition at line 2114 of file excel.cpp.

◆ xfIndex()

unsigned ColInfoRecord::xfIndex ( ) const

Returns the XF index for the formatting of the column(s).

See also
setXfIndex

Definition at line 2124 of file excel.cpp.

Member Data Documentation

◆ id

const unsigned int ColInfoRecord::id = 0x007d
static

Definition at line 845 of file excel.h.


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