diff options
-rw-r--r-- | filter/source/pdf/pdfexport.cxx | 4 | ||||
-rw-r--r-- | oox/source/drawingml/table/tablestylecellstylecontext.cxx | 6 | ||||
-rw-r--r-- | oox/source/ppt/presentationfragmenthandler.cxx | 14 |
3 files changed, 17 insertions, 7 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx index 6a720448eddb..0ab94acb44fa 100644 --- a/filter/source/pdf/pdfexport.cxx +++ b/filter/source/pdf/pdfexport.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: pdfexport.cxx,v $ - * $Revision: 1.69 $ + * $Revision: 1.69.24.1 $ * * This file is part of OpenOffice.org. * @@ -1307,7 +1307,7 @@ sal_Bool PDFExport::ImplWriteActions( PDFWriter& rWriter, PDFExtOutDevData* pPDF bSkipSequence = sal_False; if ( (sal_uInt32)eJT > 2 ) bSkipSequence = sal_False; - if ( aDashArray.size() && ( fStrokeWidth != 0.0 ) ) + if ( aDashArray.size() && ( fStrokeWidth != 0.0 ) && ( fTransparency == 0.0 ) ) bSkipSequence = sal_False; if ( bSkipSequence ) { 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 |