summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/XMLCellRangeSourceContext.cxx
diff options
context:
space:
mode:
authorDaniel Rentz <dr@openoffice.org>2001-04-05 09:57:41 +0000
committerDaniel Rentz <dr@openoffice.org>2001-04-05 09:57:41 +0000
commit6fc022e12c8d306a9c3d49e63e600daba5363a65 (patch)
treef1652e1ed17a49c66aa0c9877f6ca7931f603790 /sc/source/filter/xml/XMLCellRangeSourceContext.cxx
parentb0322338813a2a5293e488d201a059d4299c5d0f (diff)
new attribute for table:cell-range-source: table:refresh-delay
Diffstat (limited to 'sc/source/filter/xml/XMLCellRangeSourceContext.cxx')
-rw-r--r--sc/source/filter/xml/XMLCellRangeSourceContext.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/sc/source/filter/xml/XMLCellRangeSourceContext.cxx b/sc/source/filter/xml/XMLCellRangeSourceContext.cxx
index a970556639e1..d3ad7094f460 100644
--- a/sc/source/filter/xml/XMLCellRangeSourceContext.cxx
+++ b/sc/source/filter/xml/XMLCellRangeSourceContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLCellRangeSourceContext.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: dr $ $Date: 2000-11-10 16:56:12 $
+ * last change: $Author: dr $ $Date: 2001-04-05 10:57:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,6 +91,7 @@ using namespace ::com::sun::star;
ScMyImpCellRangeSource::ScMyImpCellRangeSource() :
nColumns( 0 ),
nRows( 0 ),
+ nRefresh( 0 ),
bHas( sal_False )
{
}
@@ -150,6 +151,15 @@ ScXMLCellRangeSourceContext::ScXMLCellRangeSourceContext(
rCellRangeSource.nRows = 1;
}
break;
+ case XML_TOK_TABLE_CELL_RANGE_SOURCE_ATTR_REFRESH_DELAY:
+ {
+ double fTime;
+ if( SvXMLUnitConverter::convertTime( fTime, sValue ) )
+ rCellRangeSource.nRefresh = Max( (sal_Int32)(fTime * 86400.0), (sal_Int32)0 );
+ else
+ rCellRangeSource.nRefresh = 0;
+ }
+ break;
}
}
rCellRangeSource.bHas = rCellRangeSource.sSourceStr.getLength() &&