LibreOffice Module sc (master) 1
Public Member Functions | Protected Attributes | List of all members
XclAddressConverterBase Class Reference

Base class for import/export address converters. More...

#include <xladdress.hxx>

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

Public Member Functions

 XclAddressConverterBase (XclTracer &rTracer, const ScAddress &rMaxPos)
 
virtual ~XclAddressConverterBase ()
 
bool IsColTruncated () const
 Returns whether the "some columns have been cut" warning box should be shown. More...
 
bool IsRowTruncated () const
 Returns whether the "some rows have been cut" warning box should be shown. More...
 
bool IsTabTruncated () const
 Returns whether the "some sheets have been cut" warning box should be shown. More...
 
void CheckScTab (SCTAB nScTab)
 Checks if the passed sheet index is valid. More...
 

Protected Attributes

XclTracermrTracer
 
ScAddress maMaxPos
 Tracer for invalid addresses. More...
 
sal_uInt16 mnMaxCol
 Default maximum position. More...
 
sal_uInt32 mnMaxRow
 Maximum column index, as 16-bit value. More...
 
bool mbColTrunc
 Maximum row index. More...
 
bool mbRowTrunc
 Flag for "columns truncated" warning box. More...
 
bool mbTabTrunc
 Flag for "rows truncated" warning box. More...
 

Detailed Description

Base class for import/export address converters.

Definition at line 139 of file xladdress.hxx.

Constructor & Destructor Documentation

◆ XclAddressConverterBase()

XclAddressConverterBase::XclAddressConverterBase ( XclTracer rTracer,
const ScAddress rMaxPos 
)
explicit

◆ ~XclAddressConverterBase()

XclAddressConverterBase::~XclAddressConverterBase ( )
virtual

Definition at line 147 of file xladdress.cxx.

Member Function Documentation

◆ CheckScTab()

void XclAddressConverterBase::CheckScTab ( SCTAB  nScTab)

Checks if the passed sheet index is valid.

Parameters
nScTabThe sheet index to check. Sets the internal flag that produces a warning box after loading/saving the file, if the sheet index is not valid.

Definition at line 151 of file xladdress.cxx.

References maMaxPos, mbTabTrunc, mrTracer, ScAddress::Tab(), and XclTracer::TraceInvalidTab().

Referenced by ImportExcel8::Read().

◆ IsColTruncated()

bool XclAddressConverterBase::IsColTruncated ( ) const
inline

Returns whether the "some columns have been cut" warning box should be shown.

Definition at line 146 of file xladdress.hxx.

References mbColTrunc.

Referenced by ImportExcel::Read(), ImportExcel8::Read(), and ExportBiff5::Write().

◆ IsRowTruncated()

bool XclAddressConverterBase::IsRowTruncated ( ) const
inline

Returns whether the "some rows have been cut" warning box should be shown.

Definition at line 148 of file xladdress.hxx.

References mbRowTrunc.

Referenced by ImportExcel::Read(), ImportExcel8::Read(), and ExportBiff5::Write().

◆ IsTabTruncated()

bool XclAddressConverterBase::IsTabTruncated ( ) const
inline

Returns whether the "some sheets have been cut" warning box should be shown.

Definition at line 150 of file xladdress.hxx.

References mbTabTrunc.

Referenced by ImportExcel::Read(), ImportExcel8::Read(), and ExportBiff5::Write().

Member Data Documentation

◆ maMaxPos

ScAddress XclAddressConverterBase::maMaxPos
protected

◆ mbColTrunc

bool XclAddressConverterBase::mbColTrunc
protected

Maximum row index.

Definition at line 164 of file xladdress.hxx.

Referenced by XclExpAddressConverter::CheckAddress(), XclImpAddressConverter::CheckAddress(), and IsColTruncated().

◆ mbRowTrunc

bool XclAddressConverterBase::mbRowTrunc
protected

Flag for "columns truncated" warning box.

Definition at line 165 of file xladdress.hxx.

Referenced by XclExpAddressConverter::CheckAddress(), XclImpAddressConverter::CheckAddress(), and IsRowTruncated().

◆ mbTabTrunc

bool XclAddressConverterBase::mbTabTrunc
protected

Flag for "rows truncated" warning box.

Definition at line 166 of file xladdress.hxx.

Referenced by XclExpAddressConverter::CheckAddress(), CheckScTab(), and IsTabTruncated().

◆ mnMaxCol

sal_uInt16 XclAddressConverterBase::mnMaxCol
protected

◆ mnMaxRow

sal_uInt32 XclAddressConverterBase::mnMaxRow
protected

Maximum column index, as 16-bit value.

Definition at line 163 of file xladdress.hxx.

Referenced by XclImpAddressConverter::CheckAddress(), XclImpAddressConverter::ConvertRange(), and XclImpAddressConverter::CreateValidAddress().

◆ mrTracer

XclTracer& XclAddressConverterBase::mrTracer
protected

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