summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-10-01 06:50:54 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-10-01 06:50:54 +0000
commitf8554691867015787fa8d84d40f8b90a6797f89f (patch)
tree764d0f01500ea459d32ef034cd50e038757e3b3f /oox
parent07cabd8e634679ff59db4d72eacdfb514feb3cd1 (diff)
CWS-TOOLING: integrate CWS impress149
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/table/tablestylecellstylecontext.cxx6
-rw-r--r--oox/source/ppt/presentationfragmenthandler.cxx14
2 files changed, 15 insertions, 5 deletions
diff --git a/oox/source/drawingml/table/tablestylecellstylecontext.cxx b/oox/source/drawingml/table/tablestylecellstylecontext.cxx
index 3538f83a1bef..efd38d1f601e 100644
--- a/oox/source/drawingml/table/tablestylecellstylecontext.cxx
+++ b/oox/source/drawingml/table/tablestylecellstylecontext.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tablestylecellstylecontext.cxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.3.14.1 $
*
* This file is part of OpenOffice.org.
*
@@ -93,7 +93,7 @@ TableStyleCellStyleContext::createFastChildContext( ::sal_Int32 aElementToken, c
{
if ( mnLineType != XML_none )
{
- ShapeStyleRef rLineStyleRef = mrTableStylePart.getStyleRefs()[ mnLineType ];
+ ShapeStyleRef& rLineStyleRef = mrTableStylePart.getStyleRefs()[ mnLineType ];
rLineStyleRef.mnThemedIdx = aAttribs.getInteger( XML_idx, 0 );
xRet.set( new StyleMatrixReferenceContext( *this, rLineStyleRef.maPhClr ) );
}
@@ -110,7 +110,7 @@ TableStyleCellStyleContext::createFastChildContext( ::sal_Int32 aElementToken, c
break;
case NMSP_DRAWINGML|XML_fillRef: // CT_StyleMatrixReference
{
- ShapeStyleRef rStyleRef = mrTableStylePart.getStyleRefs()[ XML_fillRef ];
+ ShapeStyleRef& rStyleRef = mrTableStylePart.getStyleRefs()[ XML_fillRef ];
rStyleRef.mnThemedIdx = aAttribs.getInteger( XML_idx, 0 );
xRet.set( new StyleMatrixReferenceContext( *this, rStyleRef.maPhClr ) );
}
diff --git a/oox/source/ppt/presentationfragmenthandler.cxx b/oox/source/ppt/presentationfragmenthandler.cxx
index d782b14f07c3..a91d428dc0c5 100644
--- a/oox/source/ppt/presentationfragmenthandler.cxx
+++ b/oox/source/ppt/presentationfragmenthandler.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: presentationfragmenthandler.cxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.14.1 $
*
* This file is part of OpenOffice.org.
*
@@ -38,6 +38,7 @@
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/style/XStyle.hpp>
#include <com/sun/star/presentation/XPresentationPage.hpp>
+#include <com/sun/star/task/XStatusIndicator.hpp>
#include "oox/drawingml/theme.hxx"
#include "oox/drawingml/drawingmltypes.hxx"
@@ -79,6 +80,11 @@ void PresentationFragmentHandler::startDocument() throw (SAXException, RuntimeEx
void PresentationFragmentHandler::endDocument() throw (SAXException, RuntimeException)
{
+ // todo: localized progress bar text
+ const Reference< task::XStatusIndicator >& rxStatusIndicator( getFilter().getStatusIndicator() );
+ if ( rxStatusIndicator.is() )
+ rxStatusIndicator->start( rtl::OUString(), 10000 );
+
try
{
PowerPointImport& rFilter = dynamic_cast< PowerPointImport& >( getFilter() );
@@ -94,7 +100,6 @@ void PresentationFragmentHandler::endDocument() throw (SAXException, RuntimeExce
}
#endif
-
Reference< frame::XModel > xModel( rFilter.getModel() );
Reference< drawing::XDrawPage > xSlide;
sal_uInt32 nSlide;
@@ -105,6 +110,9 @@ void PresentationFragmentHandler::endDocument() throw (SAXException, RuntimeExce
for( nSlide = 0; nSlide < maSlidesVector.size(); nSlide++ )
{
+ if ( rxStatusIndicator.is() )
+ rxStatusIndicator->setValue( ( nSlide * 10000 ) / maSlidesVector.size() );
+
if( nSlide == 0 )
xDrawPages->getByIndex( 0 ) >>= xSlide;
else
@@ -232,6 +240,8 @@ void PresentationFragmentHandler::endDocument() throw (SAXException, RuntimeExce
}
// todo error handling;
+ if ( rxStatusIndicator.is() )
+ rxStatusIndicator->end();
}
// CT_Presentation