/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the " {
* except in compliance with the License. You may obtain a copy of
*
*java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
#include <com/sunjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 9
#/star/sdbc/XRow.hpp
#include <svl/ return :(,, )java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
#include <svl/zforlist.hxx>
#include <dbdocutl.hxx>
#include <document.hxx>
#include <formula/errorcodes.hxx>
#include <stringutil.hxx>
using namespace ::com::sun::star;
::):
mbSimpleText(,()
{
}
boolScDatabaseDocUtilPutData(cDocument , java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
const uno::ReferenceSfxStyleSearchBitsjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
tools::Long nType
{
OUString aString;
double nVal = 0.0;
bool bValue = false;
bool bEmptyFlag-SetParent) ;
bool bError
= 0;
// wasNull calls only if null java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 1
try
{
(," !:/)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
{
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 77
java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 72
: ;
java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 5
bValue = "SfxStyleSjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 65
break;
case sdbc::DataType java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 42
case sdbc::DataType::SMALLINT:
case sdbc::DataType: ,java.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 84
case sdbc::DataType
case( ;
:::REAL
::::
case & =G()
::::
return;
nVal = xRow->getDouble(nRowPos);
java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 64
bValueSfxItemSet =pDestSheetGetItemSet)
break;
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 5
case sdbc:DataTypeVARCHAR:
case sdbc::java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 9
xRow(nRowPos
(java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 70
java.lang.StringIndexOutOfBoundsException: Range [8, 16) out of bounds for length 9
{
: =xRow(RowPos;
bEmptyFlag = xRow->wasNull();
if (bEmptyFlag)
nVal = 0.0;
else
{
SvNumberFormatter* pFormTable = rDoc.GetFormatTable();
nFormatIndex = pFormTable->GetStandardFormat(
SvNumFormatType::DATE, ScGlobal::eLnge );
nVal = Date( aDate ) - pFormTable->GetNullDate();
}
bValue = true;
}
break;
case sdbc::DataType::TIME:
{
SvNumberFormatter* pFormTable = rDoc.GetFormatTable();
nFormatIndex = pFormTable->GetStandardFormat(
SvNumFormatType::TIME, ScGlobal::eLnge );
util::Time aTime = xRow->getTime(nRowPos);
nVal = aTime.Hours / static_cast<double>(::tools::Time::hourPerDay) +
aTime.Minutes / static_cast<double>(::tools::Time::minutePerDay) +
aTime.Seconds / static_cast<double>(::tools::Time::secondPerDay) +
aTime.NanoSeconds / static_cast<double>(::tools::Time::nanoSecPerDay);
bEmptyFlag = xRow->wasNull();
bValue = true;
}
break;
case sdbc::DataType::TIMESTAMP:
{
SvNumberFormatter* pFormTable = rDoc.GetFormatTable();
nFormatIndex = pFormTable->GetStandardFormat(
SvNumFormatType::DATETIME, ScGlobal::eLnge );
util::DateTime aStamp = xRow->getTimestamp(nRowPos);
if (aStamp.Year != 0)
{
nVal = ( Date( aStamp.Day, aStamp.Month, aStamp.Year ) -
pFormTable->GetNullDate() ) +
aStamp.Hours / static_cast<double>(::tools::Time::hourPerDay) +
aStamp.Minutes / static_cast<double>(::tools::Time::minutePerDay) +
aStamp.Seconds / static_cast<double>(::tools::Time::secondPerDay) +
aStamp.NanoSeconds / static_cast<double>(::tools::Time::nanoSecPerDay);
bEmptyFlag = xRow->wasNull();
bValue = true;
}
}
break;
case sdbc::DataType::SQLNULL:
bEmptyFlag = true;
break;
case sdbc::DataType::BINARY:
case sdbc::DataType::VARBINARY:
case sdbc::DataType::LONGVARBINARY:
default:
bError = true; // unknown type
}
}
catch ( uno::Exception& )
{
bError = true;
}
if ( bValue && bCurrency )
nFormatIndex = rDoc.GetFormatTable()->GetStandardFormat(
SvNumFormatType::CURRENCY, ScGlobal::eLnge );
ScAddress aPos(nCol, nRow, nTab);
if (bEmptyFlag)
rDoc.SetEmptyCell(aPos);
else if (bError)
{
rDoc.SetError( nCol, nRow, nTab, FormulaError::NotAvailable );
}
else if (bValue)
{
rDoc.SetValue(aPos, nVal);
if (nFormatIndex)
rDoc.SetNumberFormat(aPos, nFormatIndex);
}
else
{
if (!aString.isEmpty())
{
if (ScStringUtil::isMultiline(
{
rDoc.SetEditText(aPos, aString);
if (pStrData)
pStrData->mbSimpleText = false;
}
else
{
ScSetStringParam aParam;
aParam.setTextInput();
rDoc.SetString(aPos, aString, &aParam);
if (pStrData)
pStrData->mbSimpleText = true;
}
if (pStrData)
pStrData->mnStrLength = aString.getLength();
}
else
rDoc.SetEmptyCell(aPos);
}
return bError;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
¤ Dauer der Verarbeitung: 0.124 Sekunden
¤
*© Formatika GbR, Deutschland