sheetdatacontext.cxx (a60f0fbf) sheetdatacontext.cxx (f42644c3)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 13 unchanged lines hidden (view full) ---

22
23
24#include "oox/xls/sheetdatacontext.hxx"
25
26#include <com/sun/star/table/CellContentType.hpp>
27#include <com/sun/star/table/XCell.hpp>
28#include <com/sun/star/table/XCellRange.hpp>
29#include <com/sun/star/text/XText.hpp>
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 13 unchanged lines hidden (view full) ---

22
23
24#include "oox/xls/sheetdatacontext.hxx"
25
26#include <com/sun/star/table/CellContentType.hpp>
27#include <com/sun/star/table/XCell.hpp>
28#include <com/sun/star/table/XCellRange.hpp>
29#include <com/sun/star/text/XText.hpp>
30#include <com/sun/star/util/DateTime.hpp>
30#include "oox/helper/attributelist.hxx"
31#include "oox/helper/attributelist.hxx"
32#include "oox/helper/datetimehelper.hxx"
31#include "oox/helper/propertyset.hxx"
32#include "oox/xls/addressconverter.hxx"
33#include "oox/xls/biffinputstream.hxx"
34#include "oox/xls/formulaparser.hxx"
35#include "oox/xls/richstringcontext.hxx"
36#include "oox/xls/unitconverter.hxx"
37
38namespace oox {
39namespace xls {
40
41// ============================================================================
42
43using namespace ::com::sun::star::sheet;
44using namespace ::com::sun::star::table;
45using namespace ::com::sun::star::text;
46using namespace ::com::sun::star::uno;
33#include "oox/helper/propertyset.hxx"
34#include "oox/xls/addressconverter.hxx"
35#include "oox/xls/biffinputstream.hxx"
36#include "oox/xls/formulaparser.hxx"
37#include "oox/xls/richstringcontext.hxx"
38#include "oox/xls/unitconverter.hxx"
39
40namespace oox {
41namespace xls {
42
43// ============================================================================
44
45using namespace ::com::sun::star::sheet;
46using namespace ::com::sun::star::table;
47using namespace ::com::sun::star::text;
48using namespace ::com::sun::star::uno;
49using namespace ::com::sun::star::util;
47
48using ::oox::core::ContextHandlerRef;
49using ::rtl::OUString;
50
51// ============================================================================
52
53namespace {
54

--- 152 unchanged lines hidden (view full) ---

207 if( !mbHasFormula )
208 {
209 // no formula created: try to set the cell value
210 if( maCellValue.getLength() > 0 ) switch( maCellData.mnCellType )
211 {
212 case XML_n:
213 mrSheetData.setValueCell( maCellData, maCellValue.toDouble() );
214 break;
50
51using ::oox::core::ContextHandlerRef;
52using ::rtl::OUString;
53
54// ============================================================================
55
56namespace {
57

--- 152 unchanged lines hidden (view full) ---

210 if( !mbHasFormula )
211 {
212 // no formula created: try to set the cell value
213 if( maCellValue.getLength() > 0 ) switch( maCellData.mnCellType )
214 {
215 case XML_n:
216 mrSheetData.setValueCell( maCellData, maCellValue.toDouble() );
217 break;
218 case XML_d:
219 {
220 DateTime dateTime;
221 if ( parseISO8601DateTime( maCellValue, dateTime ) )
222 mrSheetData.setDateTimeCell( maCellData, dateTime );
223 else
224 mrSheetData.setErrorCell( maCellData, maCellValue );
225 }
226 break;
215 case XML_b:
216 mrSheetData.setBooleanCell( maCellData, maCellValue.toDouble() != 0.0 );
217 break;
218 case XML_e:
219 mrSheetData.setErrorCell( maCellData, maCellValue );
220 break;
221 case XML_str:
222 mrSheetData.setStringCell( maCellData, maCellValue );

--- 790 unchanged lines hidden ---
227 case XML_b:
228 mrSheetData.setBooleanCell( maCellData, maCellValue.toDouble() != 0.0 );
229 break;
230 case XML_e:
231 mrSheetData.setErrorCell( maCellData, maCellValue );
232 break;
233 case XML_str:
234 mrSheetData.setStringCell( maCellData, maCellValue );

--- 790 unchanged lines hidden ---