LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
dbaui::OHTMLImportExport Class Reference

#include <TokenWriter.hxx>

Inheritance diagram for dbaui::OHTMLImportExport:
[legend]
Collaboration diagram for dbaui::OHTMLImportExport:
[legend]

Public Member Functions

 OHTMLImportExport (const svx::ODataAccessDescriptor &_aDataDescriptor, const css::uno::Reference< css::uno::XComponentContext > &_rM, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF)
 
 OHTMLImportExport (const SharedConnection &_rxConnection, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF, const css::uno::Reference< css::uno::XComponentContext > &_rM)
 
virtual bool Write () override
 
virtual bool Read () override
 
- Public Member Functions inherited from dbaui::ODatabaseImportExport
void setStream (SvStream *_pStream)
 
void setSTableName (const OUString &_sTableName)
 
virtual bool Write ()
 
virtual bool Read ()
 
void initialize (const svx::ODataAccessDescriptor &_aDataDescriptor)
 
void dispose ()
 
void enableCheckOnly ()
 
bool isCheckEnabled () const
 

Private Member Functions

void WriteHeader ()
 
void WriteBody ()
 
void WriteTables ()
 
void WriteCell (sal_Int32 nFormat, sal_Int32 nWidthPixel, sal_Int32 nHeightPixel, const char *pChar, const OUString &rValue, const char *pHtmlTag)
 
void IncIndent (sal_Int16 nVal)
 
const char * GetIndentStr () const
 
void FontOn ()
 
void FontOff ()
 

Private Attributes

char sIndent [nIndentMax+1]
 
sal_Int16 m_nIndent
 
bool m_bCheckFont
 

Static Private Attributes

static const sal_Int16 nCellSpacing = 0
 
static const char sIndentSource [] = "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
 

Additional Inherited Members

- Protected Member Functions inherited from dbaui::ODatabaseImportExport
 ODatabaseImportExport (const svx::ODataAccessDescriptor &_aDataDescriptor, const css::uno::Reference< css::uno::XComponentContext > &_rM, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF)
 
 ODatabaseImportExport (SharedConnection _xConnection, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF, const css::uno::Reference< css::uno::XComponentContext > &_rM)
 
virtual ~ODatabaseImportExport () override
 
virtual void initialize ()
 
- Protected Attributes inherited from dbaui::ODatabaseImportExport
css::uno::Sequence< css::uno::Any > m_aSelection
 
bool m_bBookmarkSelection
 
SvStreamm_pStream
 
css::awt::FontDescriptor m_aFont
 
css::uno::Reference< css::beans::XPropertySetm_xObject
 
SharedConnection m_xConnection
 
css::uno::Reference< css::sdbc::XResultSet > m_xResultSet
 
css::uno::Reference< css::sdbc::XRow > m_xRow
 
css::uno::Reference< css::sdbcx::XRowLocate > m_xRowLocate
 
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xResultSetMetaData
 
css::uno::Reference< css::container::XIndexAccess > m_xRowSetColumns
 
css::uno::Reference< css::util::XNumberFormatter > m_xFormatter
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
OUString m_sName
 
OUString m_sDefaultTableName
 
OUString m_sDataSourceName
 
sal_Int32 m_nCommandType
 
bool m_bNeedToReInitialize
 
rtl_TextEncoding m_eDestEnc
 
bool m_bInInitialize
 
bool m_bCheckOnly
 

Detailed Description

Definition at line 138 of file TokenWriter.hxx.

Constructor & Destructor Documentation

◆ OHTMLImportExport() [1/2]

dbaui::OHTMLImportExport::OHTMLImportExport ( const svx::ODataAccessDescriptor _aDataDescriptor,
const css::uno::Reference< css::uno::XComponentContext > &  _rM,
const css::uno::Reference< css::util::XNumberFormatter > &  _rxNumberF 
)

◆ OHTMLImportExport() [2/2]

dbaui::OHTMLImportExport::OHTMLImportExport ( const SharedConnection _rxConnection,
const css::uno::Reference< css::util::XNumberFormatter > &  _rxNumberF,
const css::uno::Reference< css::uno::XComponentContext > &  _rM 
)
inline

Definition at line 163 of file TokenWriter.hxx.

Member Function Documentation

◆ FontOff()

void OHTMLImportExport::FontOff ( )
inlineprivate

◆ FontOn()

void OHTMLImportExport::FontOn ( )
private

◆ GetIndentStr()

const char * dbaui::OHTMLImportExport::GetIndentStr ( ) const
inlineprivate

Definition at line 153 of file TokenWriter.hxx.

References sIndent.

Referenced by Write(), WriteBody(), WriteCell(), WriteHeader(), and WriteTables().

◆ IncIndent()

void OHTMLImportExport::IncIndent ( sal_Int16  nVal)
private

Definition at line 955 of file TokenWriter.cxx.

References m_nIndent, dbaui::nIndentMax, and sIndent.

Referenced by WriteBody(), WriteHeader(), and WriteTables().

◆ Read()

bool OHTMLImportExport::Read ( )
overridevirtual

◆ Write()

bool OHTMLImportExport::Write ( )
overridevirtual

◆ WriteBody()

void OHTMLImportExport::WriteBody ( )
private

◆ WriteCell()

void OHTMLImportExport::WriteCell ( sal_Int32  nFormat,
sal_Int32  nWidthPixel,
sal_Int32  nHeightPixel,
const char *  pChar,
const OUString &  rValue,
const char *  pHtmlTag 
)
private

◆ WriteHeader()

void OHTMLImportExport::WriteHeader ( )
private

◆ WriteTables()

void OHTMLImportExport::WriteTables ( )
private

Member Data Documentation

◆ m_bCheckFont

bool dbaui::OHTMLImportExport::m_bCheckFont
private

Definition at line 145 of file TokenWriter.hxx.

Referenced by FontOff(), and FontOn().

◆ m_nIndent

sal_Int16 dbaui::OHTMLImportExport::m_nIndent
private

Definition at line 143 of file TokenWriter.hxx.

Referenced by IncIndent().

◆ nCellSpacing

const sal_Int16 OHTMLImportExport::nCellSpacing = 0
staticprivate

Definition at line 140 of file TokenWriter.hxx.

Referenced by WriteTables().

◆ sIndent

char dbaui::OHTMLImportExport::sIndent[nIndentMax+1]
private

Definition at line 142 of file TokenWriter.hxx.

Referenced by GetIndentStr(), IncIndent(), and WriteHeader().

◆ sIndentSource

const char OHTMLImportExport::sIndentSource = "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
staticprivate

Definition at line 141 of file TokenWriter.hxx.


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