LibreOffice Module connectivity (master) 1
Functions
calc/CTable.cxx File Reference
#include <calc/CTable.hxx>
#include <com/sun/star/sdbc/ColumnValue.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
#include <com/sun/star/sheet/XSpreadsheet.hpp>
#include <com/sun/star/sheet/XCellRangeAddressable.hpp>
#include <com/sun/star/sheet/XCellRangesQuery.hpp>
#include <com/sun/star/sheet/XDatabaseRanges.hpp>
#include <com/sun/star/sheet/XDatabaseRange.hpp>
#include <com/sun/star/sheet/XCellRangeReferrer.hpp>
#include <com/sun/star/sheet/XUsedAreaCursor.hpp>
#include <com/sun/star/sheet/CellFlags.hpp>
#include <com/sun/star/sheet/FormulaResult.hpp>
#include <com/sun/star/util/NumberFormat.hpp>
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/text/XText.hpp>
#include <calc/CConnection.hxx>
#include <connectivity/sdbcx/VColumn.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <rtl/math.hxx>
#include <tools/time.hxx>
#include <comphelper/servicehelper.hxx>
Include dependency graph for calc/CTable.cxx:

Go to the source code of this file.

Functions

static void lcl_UpdateArea (const Reference< XCellRange > &xUsedRange, sal_Int32 &rEndCol, sal_Int32 &rEndRow)
 
static void lcl_GetDataArea (const Reference< XSpreadsheet > &xSheet, sal_Int32 &rColumnCount, sal_Int32 &rRowCount)
 
static CellContentType lcl_GetContentOrResultType (const Reference< XCell > &xCell)
 
static Reference< XCell > lcl_GetUsedCell (const Reference< XSpreadsheet > &xSheet, sal_Int32 nDocColumn, sal_Int32 nDocRow)
 
static bool lcl_HasTextInColumn (const Reference< XSpreadsheet > &xSheet, sal_Int32 nDocColumn, sal_Int32 nDocRow)
 
static void lcl_GetColumnInfo (const Reference< XSpreadsheet > &xSheet, const Reference< XNumberFormats > &xFormats, sal_Int32 nDocColumn, sal_Int32 nStartRow, bool bHasHeaders, OUString &rName, sal_Int32 &rDataType, bool &rCurrency)
 
static void lcl_SetValue (ORowSetValue &rValue, const Reference< XSpreadsheet > &xSheet, sal_Int32 nStartCol, sal_Int32 nStartRow, bool bHasHeaders, const ::Date &rNullDate, sal_Int32 nDBRow, sal_Int32 nDBColumn, sal_Int32 nType)
 
static OUString lcl_GetColumnStr (sal_Int32 nColumn)
 

Function Documentation

◆ lcl_GetColumnInfo()

static void lcl_GetColumnInfo ( const Reference< XSpreadsheet > &  xSheet,
const Reference< XNumberFormats > &  xFormats,
sal_Int32  nDocColumn,
sal_Int32  nStartRow,
bool  bHasHeaders,
OUString &  rName,
sal_Int32 &  rDataType,
bool &  rCurrency 
)
static

◆ lcl_GetColumnStr()

static OUString lcl_GetColumnStr ( sal_Int32  nColumn)
static

Definition at line 414 of file calc/CTable.cxx.

References aBuffer.

Referenced by connectivity::calc::OCalcTable::fillColumns().

◆ lcl_GetContentOrResultType()

static CellContentType lcl_GetContentOrResultType ( const Reference< XCell > &  xCell)
static

Definition at line 134 of file calc/CTable.cxx.

Referenced by lcl_GetColumnInfo(), and lcl_SetValue().

◆ lcl_GetDataArea()

static void lcl_GetDataArea ( const Reference< XSpreadsheet > &  xSheet,
sal_Int32 &  rColumnCount,
sal_Int32 &  rRowCount 
)
static

Definition at line 85 of file calc/CTable.cxx.

References lcl_UpdateArea().

Referenced by connectivity::calc::OCalcTable::construct().

◆ lcl_GetUsedCell()

static Reference< XCell > lcl_GetUsedCell ( const Reference< XSpreadsheet > &  xSheet,
sal_Int32  nDocColumn,
sal_Int32  nDocRow 
)
static

Definition at line 152 of file calc/CTable.cxx.

Referenced by lcl_GetColumnInfo().

◆ lcl_HasTextInColumn()

static bool lcl_HasTextInColumn ( const Reference< XSpreadsheet > &  xSheet,
sal_Int32  nDocColumn,
sal_Int32  nDocRow 
)
static

Definition at line 189 of file calc/CTable.cxx.

Referenced by lcl_GetColumnInfo().

◆ lcl_SetValue()

static void lcl_SetValue ( ORowSetValue rValue,
const Reference< XSpreadsheet > &  xSheet,
sal_Int32  nStartCol,
sal_Int32  nStartRow,
bool  bHasHeaders,
const ::Date rNullDate,
sal_Int32  nDBRow,
sal_Int32  nDBColumn,
sal_Int32  nType 
)
static

◆ lcl_UpdateArea()

static void lcl_UpdateArea ( const Reference< XCellRange > &  xUsedRange,
sal_Int32 &  rEndCol,
sal_Int32 &  rEndRow 
)
static

Definition at line 62 of file calc/CTable.cxx.

References i, nCount, and pData.

Referenced by lcl_GetDataArea().