LibreOffice Module dbaccess (master) 1
|
#include <TokenWriter.hxx>
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 |
SvStream * | m_pStream |
css::awt::FontDescriptor | m_aFont |
css::uno::Reference< css::beans::XPropertySet > | m_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 |
Definition at line 138 of file TokenWriter.hxx.
dbaui::OHTMLImportExport::OHTMLImportExport | ( | const svx::ODataAccessDescriptor & | _aDataDescriptor, |
const css::uno::Reference< css::uno::XComponentContext > & | _rM, | ||
const css::uno::Reference< css::util::XNumberFormatter > & | _rxNumberF | ||
) |
|
inline |
Definition at line 163 of file TokenWriter.hxx.
|
inlineprivate |
Definition at line 944 of file TokenWriter.cxx.
References m_bCheckFont, dbaui::ODatabaseImportExport::m_pStream, OOO_STRING_SVTOOLS_HTML_font, and HTMLOutFuncs::Out_AsciiTag().
Referenced by WriteCell(), and WriteTables().
|
private |
Definition at line 915 of file TokenWriter.cxx.
References dbaui::ODatabaseImportExport::m_aFont, m_bCheckFont, dbaui::ODatabaseImportExport::m_pStream, dbaui::ODatabaseImportExport::m_xObject, OOO_STRING_SVTOOLS_HTML_font, OOO_STRING_SVTOOLS_HTML_O_color, OOO_STRING_SVTOOLS_HTML_O_face, OUStringToOString(), HTMLOutFuncs::Out_Color(), PROPERTY_TEXTCOLOR(), and SvStream::WriteOString().
Referenced by WriteCell(), and WriteTables().
|
inlineprivate |
Definition at line 153 of file TokenWriter.hxx.
References sIndent.
Referenced by Write(), WriteBody(), WriteCell(), WriteHeader(), and WriteTables().
|
private |
Definition at line 955 of file TokenWriter.cxx.
References m_nIndent, dbaui::nIndentMax, and sIndent.
Referenced by WriteBody(), WriteHeader(), and WriteTables().
|
overridevirtual |
Reimplemented from dbaui::ODatabaseImportExport.
Definition at line 607 of file TokenWriter.cxx.
References dbaui::ODatabaseImportExport::isCheckEnabled(), dbaui::ODatabaseImportExport::m_pStream, dbaui::ODatabaseImportExport::m_sDefaultTableName, dbaui::ODatabaseImportExport::m_xConnection, dbaui::ODatabaseImportExport::m_xContext, dbaui::ODatabaseImportExport::m_xFormatter, and dbaui::ODatabaseImportExport::Read().
|
overridevirtual |
Reimplemented from dbaui::ODatabaseImportExport.
Definition at line 589 of file TokenWriter.cxx.
References ERRCODE_NONE, GetIndentStr(), dbaui::ODatabaseImportExport::m_pStream, dbaui::ODatabaseImportExport::m_xObject, OOO_STRING_SVTOOLS_HTML_doctype, OOO_STRING_SVTOOLS_HTML_doctype5, OOO_STRING_SVTOOLS_HTML_html, HTMLOutFuncs::Out_AsciiTag(), SAL_NEWLINE_STRING, dbaui::ODatabaseImportExport::Write(), WriteBody(), SvStream::WriteChar(), WriteHeader(), and SvStream::WriteOString().
|
private |
Definition at line 642 of file TokenWriter.cxx.
References GetIndentStr(), IncIndent(), dbaui::ODatabaseImportExport::m_aFont, dbaui::ODatabaseImportExport::m_pStream, dbaui::ODatabaseImportExport::m_xObject, OOO_STRING_SVTOOLS_HTML_body, OOO_STRING_SVTOOLS_HTML_O_bgcolor, OOO_STRING_SVTOOLS_HTML_O_text, OOO_STRING_SVTOOLS_HTML_O_type, OOO_STRING_SVTOOLS_HTML_style, OUStringToOString(), HTMLOutFuncs::Out_AsciiTag(), HTMLOutFuncs::Out_Color(), PROPERTY_TEXTCOLOR(), SAL_NEWLINE_STRING, SvStream::WriteChar(), SvStream::WriteNumberAsString(), SvStream::WriteOString(), and WriteTables().
Referenced by Write().
|
private |
Definition at line 844 of file TokenWriter.cxx.
References HTMLOutFuncs::CreateTableDataOptionsValNum(), Exception, FontOff(), FontOn(), GetIndentStr(), SvNumberFormatsSupplierObj::GetNumberFormatter(), dbaui::ODatabaseImportExport::m_aFont, dbaui::ODatabaseImportExport::m_pStream, dbaui::ODatabaseImportExport::m_xFormatter, OOO_STRING_SVTOOLS_HTML_bold, OOO_STRING_SVTOOLS_HTML_italic, OOO_STRING_SVTOOLS_HTML_linebreak, OOO_STRING_SVTOOLS_HTML_O_align, OOO_STRING_SVTOOLS_HTML_O_height, OOO_STRING_SVTOOLS_HTML_O_width, OOO_STRING_SVTOOLS_HTML_strike, OOO_STRING_SVTOOLS_HTML_underline, HTMLOutFuncs::Out_AsciiTag(), HTMLOutFuncs::Out_String(), pChar, SAL_NEWLINE_STRING, and SvStream::WriteOString().
Referenced by WriteTables().
|
private |
Definition at line 623 of file TokenWriter.cxx.
References GetIndentStr(), IncIndent(), dbaui::ODatabaseImportExport::m_pStream, dbaui::ODatabaseImportExport::m_sName, dbaui::ODatabaseImportExport::m_xContext, OOO_STRING_SVTOOLS_HTML_head, HTMLOutFuncs::Out_AsciiTag(), SfxFrameHTMLWriter::Out_DocInfo(), SAL_NEWLINE_STRING, sIndent, and SvStream::WriteOString().
Referenced by Write().
|
private |
Definition at line 680 of file TokenWriter.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, FontOff(), FontOn(), dbtools::FormattedColumnValue::getFormattedValue(), GetIndentStr(), i, IncIndent(), dbaui::ODatabaseImportExport::m_pStream, dbaui::ODatabaseImportExport::m_sName, dbaui::ODatabaseImportExport::m_xContext, dbaui::ODatabaseImportExport::m_xObject, dbaui::ODatabaseImportExport::m_xResultSet, dbaui::ODatabaseImportExport::m_xResultSetMetaData, dbaui::ODatabaseImportExport::m_xRow, dbaui::ODatabaseImportExport::m_xRowSetColumns, nCellSpacing, nCount, OOO_STRING_SVTOOLS_HTML_AL_center, OOO_STRING_SVTOOLS_HTML_AL_left, OOO_STRING_SVTOOLS_HTML_AL_right, OOO_STRING_SVTOOLS_HTML_bold, OOO_STRING_SVTOOLS_HTML_caption, OOO_STRING_SVTOOLS_HTML_frame, OOO_STRING_SVTOOLS_HTML_O_align, OOO_STRING_SVTOOLS_HTML_O_border, OOO_STRING_SVTOOLS_HTML_O_cellspacing, OOO_STRING_SVTOOLS_HTML_O_cols, OOO_STRING_SVTOOLS_HTML_table, OOO_STRING_SVTOOLS_HTML_tabledata, OOO_STRING_SVTOOLS_HTML_tableheader, OOO_STRING_SVTOOLS_HTML_tablerow, OOO_STRING_SVTOOLS_HTML_tbody, OOO_STRING_SVTOOLS_HTML_TF_void, OOO_STRING_SVTOOLS_HTML_thead, OUStringToOString(), HTMLOutFuncs::Out_AsciiTag(), PROPERTY_ALIGN(), PROPERTY_FORMATKEY(), PROPERTY_ROW_HEIGHT(), PROPERTY_WIDTH(), SAL_NEWLINE_STRING, WriteCell(), SvStream::WriteOString(), and xColumn.
Referenced by WriteBody().
|
private |
Definition at line 145 of file TokenWriter.hxx.
|
private |
Definition at line 143 of file TokenWriter.hxx.
Referenced by IncIndent().
|
staticprivate |
Definition at line 140 of file TokenWriter.hxx.
Referenced by WriteTables().
|
private |
Definition at line 142 of file TokenWriter.hxx.
Referenced by GetIndentStr(), IncIndent(), and WriteHeader().
|
staticprivate |
Definition at line 141 of file TokenWriter.hxx.