summaryrefslogtreecommitdiff
path: root/sdext/source
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source')
-rw-r--r--sdext/source/minimizer/configurationaccess.cxx120
-rw-r--r--sdext/source/minimizer/configurationaccess.hxx46
-rw-r--r--sdext/source/minimizer/fileopendialog.cxx18
-rw-r--r--sdext/source/minimizer/fileopendialog.hxx8
-rw-r--r--sdext/source/minimizer/graphiccollector.cxx8
-rw-r--r--sdext/source/minimizer/graphiccollector.hxx38
-rw-r--r--sdext/source/minimizer/impoptimizer.cxx84
-rw-r--r--sdext/source/minimizer/impoptimizer.hxx40
-rw-r--r--sdext/source/minimizer/informationdialog.cxx50
-rw-r--r--sdext/source/minimizer/informationdialog.hxx14
-rw-r--r--sdext/source/minimizer/optimizationstats.cxx2
-rw-r--r--sdext/source/minimizer/optimizationstats.hxx2
-rw-r--r--sdext/source/minimizer/optimizerdialog.cxx60
-rw-r--r--sdext/source/minimizer/optimizerdialog.hrc12
-rw-r--r--sdext/source/minimizer/optimizerdialog.hxx60
-rw-r--r--sdext/source/minimizer/optimizerdialogcontrols.cxx78
-rw-r--r--sdext/source/minimizer/pagecollector.cxx2
-rw-r--r--sdext/source/minimizer/pagecollector.hxx2
-rw-r--r--sdext/source/minimizer/pppoptimizer.cxx4
-rw-r--r--sdext/source/minimizer/pppoptimizer.hxx4
-rw-r--r--sdext/source/minimizer/pppoptimizerdialog.cxx18
-rw-r--r--sdext/source/minimizer/pppoptimizerdialog.hxx8
-rw-r--r--sdext/source/minimizer/pppoptimizertoken.cxx466
-rw-r--r--sdext/source/minimizer/pppoptimizertoken.hxx4
-rw-r--r--sdext/source/minimizer/pppoptimizeruno.cxx8
-rw-r--r--sdext/source/minimizer/registry/data/org/openoffice/Office/extension/SunPresentationMinimizer.xcu30
-rw-r--r--sdext/source/minimizer/unodialog.cxx6
-rw-r--r--sdext/source/minimizer/unodialog.hxx36
-rwxr-xr-xsdext/source/pdfimport/config/description.xml2
-rw-r--r--sdext/source/pdfimport/config/pdf_import_filter.xcu6
-rw-r--r--sdext/source/pdfimport/filterdet.cxx6
-rw-r--r--sdext/source/pdfimport/filterdet.hxx12
-rw-r--r--sdext/source/pdfimport/inc/contentsink.hxx38
-rw-r--r--sdext/source/pdfimport/inc/odfemitter.hxx6
-rw-r--r--sdext/source/pdfimport/inc/pdfihelper.hxx16
-rw-r--r--sdext/source/pdfimport/inc/pdfparse.hxx46
-rw-r--r--sdext/source/pdfimport/inc/saxemitter.hxx4
-rw-r--r--sdext/source/pdfimport/inc/treevisitorfactory.hxx2
-rw-r--r--sdext/source/pdfimport/inc/wrapper.hxx10
-rw-r--r--sdext/source/pdfimport/inc/xmlemitter.hxx4
-rw-r--r--sdext/source/pdfimport/misc/pdfihelper.cxx6
-rw-r--r--sdext/source/pdfimport/misc/pwdinteract.cxx2
-rw-r--r--sdext/source/pdfimport/odf/odfemitter.cxx2
-rw-r--r--sdext/source/pdfimport/pdfiadaptor.cxx18
-rw-r--r--sdext/source/pdfimport/pdfiadaptor.hxx26
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfentries.cxx70
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfparse.cxx82
-rw-r--r--sdext/source/pdfimport/sax/emitcontext.cxx2
-rw-r--r--sdext/source/pdfimport/sax/emitcontext.hxx12
-rw-r--r--sdext/source/pdfimport/sax/saxattrlist.cxx6
-rw-r--r--sdext/source/pdfimport/sax/saxattrlist.hxx10
-rw-r--r--sdext/source/pdfimport/services.cxx4
-rwxr-xr-xsdext/source/pdfimport/test/export.map2
-rw-r--r--sdext/source/pdfimport/test/outputwrap.hxx8
-rw-r--r--sdext/source/pdfimport/test/pdf2xml.cxx2
-rw-r--r--sdext/source/pdfimport/test/pdfunzip.cxx50
-rw-r--r--sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_draw.xml1160
-rw-r--r--sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_impress.xml1160
-rw-r--r--sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_writer.xml60
-rw-r--r--sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_draw.xml1160
-rw-r--r--sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_impress.xml1160
-rw-r--r--sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_writer.xml60
-rw-r--r--sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_draw.xml1160
-rw-r--r--sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_impress.xml1160
-rw-r--r--sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_writer.xml60
-rw-r--r--sdext/source/pdfimport/test/tests.cxx2
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx234
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.hxx12
-rw-r--r--sdext/source/pdfimport/tree/genericelements.cxx26
-rw-r--r--sdext/source/pdfimport/tree/genericelements.hxx64
-rw-r--r--sdext/source/pdfimport/tree/imagecontainer.cxx2
-rw-r--r--sdext/source/pdfimport/tree/imagecontainer.hxx8
-rw-r--r--sdext/source/pdfimport/tree/pdfiprocessor.cxx58
-rw-r--r--sdext/source/pdfimport/tree/pdfiprocessor.hxx66
-rw-r--r--sdext/source/pdfimport/tree/style.cxx24
-rw-r--r--sdext/source/pdfimport/tree/style.hxx30
-rw-r--r--sdext/source/pdfimport/tree/treevisiting.hxx4
-rw-r--r--sdext/source/pdfimport/tree/treevisitorfactory.cxx16
-rw-r--r--sdext/source/pdfimport/tree/writertreevisiting.cxx200
-rw-r--r--sdext/source/pdfimport/tree/writertreevisiting.hxx20
-rw-r--r--sdext/source/pdfimport/wrapper/wrapper.cxx80
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx154
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx56
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx80
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pnghelper.hxx16
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx32
-rw-r--r--sdext/source/presenter/PresenterAccessibility.cxx156
-rw-r--r--sdext/source/presenter/PresenterAccessibility.hxx10
-rw-r--r--sdext/source/presenter/PresenterAnimation.cxx2
-rw-r--r--sdext/source/presenter/PresenterAnimation.hxx2
-rw-r--r--sdext/source/presenter/PresenterAnimator.cxx12
-rw-r--r--sdext/source/presenter/PresenterAnimator.hxx2
-rw-r--r--sdext/source/presenter/PresenterBitmapContainer.cxx14
-rw-r--r--sdext/source/presenter/PresenterBitmapContainer.hxx4
-rw-r--r--sdext/source/presenter/PresenterButton.cxx16
-rw-r--r--sdext/source/presenter/PresenterButton.hxx14
-rw-r--r--sdext/source/presenter/PresenterCanvasHelper.cxx12
-rw-r--r--sdext/source/presenter/PresenterCanvasHelper.hxx4
-rw-r--r--sdext/source/presenter/PresenterClock.cxx40
-rw-r--r--sdext/source/presenter/PresenterClock.hxx14
-rw-r--r--sdext/source/presenter/PresenterComponent.cxx8
-rw-r--r--sdext/source/presenter/PresenterComponent.hxx2
-rw-r--r--sdext/source/presenter/PresenterConfigurationAccess.cxx18
-rw-r--r--sdext/source/presenter/PresenterConfigurationAccess.hxx6
-rw-r--r--sdext/source/presenter/PresenterController.cxx26
-rw-r--r--sdext/source/presenter/PresenterController.hxx14
-rw-r--r--sdext/source/presenter/PresenterCurrentSlideObserver.cxx2
-rw-r--r--sdext/source/presenter/PresenterCurrentSlideObserver.hxx2
-rw-r--r--sdext/source/presenter/PresenterFrameworkObserver.cxx8
-rw-r--r--sdext/source/presenter/PresenterFrameworkObserver.hxx6
-rw-r--r--sdext/source/presenter/PresenterGeometryHelper.cxx10
-rw-r--r--sdext/source/presenter/PresenterGeometryHelper.hxx6
-rw-r--r--sdext/source/presenter/PresenterHelpView.cxx20
-rw-r--r--sdext/source/presenter/PresenterHelpView.hxx10
-rw-r--r--sdext/source/presenter/PresenterHelper.cxx4
-rw-r--r--sdext/source/presenter/PresenterHelper.hxx2
-rw-r--r--sdext/source/presenter/PresenterNotesView.cxx26
-rw-r--r--sdext/source/presenter/PresenterNotesView.hxx18
-rw-r--r--sdext/source/presenter/PresenterPaintManager.cxx6
-rw-r--r--sdext/source/presenter/PresenterPaintManager.hxx2
-rw-r--r--sdext/source/presenter/PresenterPane.cxx6
-rw-r--r--sdext/source/presenter/PresenterPane.hxx10
-rw-r--r--sdext/source/presenter/PresenterPaneAnimator.cxx64
-rw-r--r--sdext/source/presenter/PresenterPaneAnimator.hxx2
-rw-r--r--sdext/source/presenter/PresenterPaneBase.cxx16
-rw-r--r--sdext/source/presenter/PresenterPaneBase.hxx10
-rw-r--r--sdext/source/presenter/PresenterPaneBorderManager.cxx26
-rw-r--r--sdext/source/presenter/PresenterPaneBorderManager.hxx20
-rw-r--r--sdext/source/presenter/PresenterPaneBorderPainter.cxx46
-rw-r--r--sdext/source/presenter/PresenterPaneBorderPainter.hxx6
-rw-r--r--sdext/source/presenter/PresenterPaneContainer.cxx14
-rw-r--r--sdext/source/presenter/PresenterPaneContainer.hxx10
-rw-r--r--sdext/source/presenter/PresenterPaneFactory.cxx12
-rw-r--r--sdext/source/presenter/PresenterPaneFactory.hxx8
-rw-r--r--sdext/source/presenter/PresenterProtocolHandler.cxx26
-rw-r--r--sdext/source/presenter/PresenterProtocolHandler.hxx8
-rw-r--r--sdext/source/presenter/PresenterScreen.cxx32
-rw-r--r--sdext/source/presenter/PresenterScreen.hxx12
-rw-r--r--sdext/source/presenter/PresenterScrollBar.cxx44
-rw-r--r--sdext/source/presenter/PresenterScrollBar.hxx20
-rw-r--r--sdext/source/presenter/PresenterSlidePreview.cxx8
-rw-r--r--sdext/source/presenter/PresenterSlidePreview.hxx6
-rw-r--r--sdext/source/presenter/PresenterSlideShowView.cxx18
-rw-r--r--sdext/source/presenter/PresenterSlideShowView.hxx60
-rw-r--r--sdext/source/presenter/PresenterSlideSorter.cxx60
-rw-r--r--sdext/source/presenter/PresenterSlideSorter.hxx16
-rw-r--r--sdext/source/presenter/PresenterSprite.cxx2
-rw-r--r--sdext/source/presenter/PresenterSprite.hxx12
-rw-r--r--sdext/source/presenter/PresenterSpritePane.cxx4
-rw-r--r--sdext/source/presenter/PresenterSpritePane.hxx12
-rw-r--r--sdext/source/presenter/PresenterTextView.cxx20
-rw-r--r--sdext/source/presenter/PresenterTextView.hxx16
-rw-r--r--sdext/source/presenter/PresenterTheme.cxx24
-rw-r--r--sdext/source/presenter/PresenterTheme.hxx8
-rw-r--r--sdext/source/presenter/PresenterTimer.cxx24
-rw-r--r--sdext/source/presenter/PresenterTimer.hxx12
-rw-r--r--sdext/source/presenter/PresenterToolBar.cxx72
-rw-r--r--sdext/source/presenter/PresenterToolBar.hxx28
-rw-r--r--sdext/source/presenter/PresenterUIPainter.cxx6
-rw-r--r--sdext/source/presenter/PresenterUIPainter.hxx4
-rw-r--r--sdext/source/presenter/PresenterViewFactory.cxx30
-rw-r--r--sdext/source/presenter/PresenterViewFactory.hxx8
-rw-r--r--sdext/source/presenter/PresenterWindowManager.cxx58
-rw-r--r--sdext/source/presenter/PresenterWindowManager.hxx14
-rwxr-xr-xsdext/source/presenter/makefile.mk2
-rw-r--r--sdext/source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu8
166 files changed, 5714 insertions, 5714 deletions
diff --git a/sdext/source/minimizer/configurationaccess.cxx b/sdext/source/minimizer/configurationaccess.cxx
index 7e89eecbcd36..83187bc5b15e 100644
--- a/sdext/source/minimizer/configurationaccess.cxx
+++ b/sdext/source/minimizer/configurationaccess.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,21 +70,21 @@ void OptimizerSettings::LoadSettingsFromConfiguration( const Reference< XNameAcc
Any aValue( rSettings->getByName( aPropertyName ) );
switch( TKGet( aPropertyName ) )
{
- case TK_Name : aValue >>= maName; break;
- case TK_JPEGCompression : aValue >>= mbJPEGCompression; break;
- case TK_JPEGQuality : aValue >>= mnJPEGQuality; break;
- case TK_RemoveCropArea : aValue >>= mbRemoveCropArea; break;
- case TK_ImageResolution : aValue >>= mnImageResolution; break;
- case TK_EmbedLinkedGraphics : aValue >>= mbEmbedLinkedGraphics; break;
- case TK_OLEOptimization : aValue >>= mbOLEOptimization; break;
- case TK_OLEOptimizationType : aValue >>= mnOLEOptimizationType; break;
- case TK_DeleteUnusedMasterPages : aValue >>= mbDeleteUnusedMasterPages; break;
- case TK_DeleteHiddenSlides : aValue >>= mbDeleteHiddenSlides; break;
- case TK_DeleteNotesPages : aValue >>= mbDeleteNotesPages ;break;
- case TK_SaveAs : aValue >>= mbSaveAs; break;
-// case TK_SaveAsURL : aValue >>= maSaveAsURL; break; // URL is not saved to configuration
-// case TK_FilterName : aValue >>= maFilterName; break; // URL is not saved to configuration
- case TK_OpenNewDocument : aValue >>= mbOpenNewDocument; break;
+ case TK_Name : aValue >>= maName; break;
+ case TK_JPEGCompression : aValue >>= mbJPEGCompression; break;
+ case TK_JPEGQuality : aValue >>= mnJPEGQuality; break;
+ case TK_RemoveCropArea : aValue >>= mbRemoveCropArea; break;
+ case TK_ImageResolution : aValue >>= mnImageResolution; break;
+ case TK_EmbedLinkedGraphics : aValue >>= mbEmbedLinkedGraphics; break;
+ case TK_OLEOptimization : aValue >>= mbOLEOptimization; break;
+ case TK_OLEOptimizationType : aValue >>= mnOLEOptimizationType; break;
+ case TK_DeleteUnusedMasterPages : aValue >>= mbDeleteUnusedMasterPages; break;
+ case TK_DeleteHiddenSlides : aValue >>= mbDeleteHiddenSlides; break;
+ case TK_DeleteNotesPages : aValue >>= mbDeleteNotesPages ;break;
+ case TK_SaveAs : aValue >>= mbSaveAs; break;
+// case TK_SaveAsURL : aValue >>= maSaveAsURL; break; // URL is not saved to configuration
+// case TK_FilterName : aValue >>= maFilterName; break; // URL is not saved to configuration
+ case TK_OpenNewDocument : aValue >>= mbOpenNewDocument; break;
default: break;
}
}
@@ -112,11 +112,11 @@ void OptimizerSettings::SaveSettingsToConfiguration( const Reference< XNameRepla
TKGet( TK_DeleteHiddenSlides ),
TKGet( TK_DeleteNotesPages ),
TKGet( TK_SaveAs ),
-// TKGet( TK_SaveAsURL ),
-// TKGet( TK_FilterName ),
- TKGet( TK_OpenNewDocument ) };
+// TKGet( TK_SaveAsURL ),
+// TKGet( TK_FilterName ),
+ TKGet( TK_OpenNewDocument ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( maName ),
Any( mbJPEGCompression ),
Any( mnJPEGQuality ),
@@ -129,8 +129,8 @@ void OptimizerSettings::SaveSettingsToConfiguration( const Reference< XNameRepla
Any( mbDeleteHiddenSlides ),
Any( mbDeleteNotesPages ),
Any( mbSaveAs ),
-// Any( maSaveAsURL ),
-// Any( maFilterName ),
+// Any( maSaveAsURL ),
+// Any( maFilterName ),
Any( mbOpenNewDocument ) };
sal_Int32 i, nCount = sizeof( pNames ) / sizeof( OUString );
@@ -160,7 +160,7 @@ sal_Bool OptimizerSettings::operator==( const OptimizerSettings& rOptimizerSetti
&& ( rOptimizerSettings.mbDeleteUnusedMasterPages == mbDeleteUnusedMasterPages )
&& ( rOptimizerSettings.mbDeleteHiddenSlides == mbDeleteHiddenSlides )
&& ( rOptimizerSettings.mbDeleteNotesPages == mbDeleteNotesPages );
-// && ( rOptimizerSettings.mbOpenNewDocument == mbOpenNewDocument );
+// && ( rOptimizerSettings.mbOpenNewDocument == mbOpenNewDocument );
}
@@ -234,7 +234,7 @@ void ConfigurationAccess::LoadStrings()
}
catch( Exception& )
{
- }
+ }
}
}
}
@@ -344,8 +344,8 @@ Reference< XInterface > ConfigurationAccess::OpenConfiguration( bool bReadOnly )
{
Sequence< Any > aCreationArguments( 2 );
aCreationArguments[0] = makeAny( PropertyValue(
- OUString( RTL_CONSTASCII_USTRINGPARAM( "nodepath" ) ), 0,
- makeAny( GetPathToConfigurationRoot() ),
+ OUString( RTL_CONSTASCII_USTRINGPARAM( "nodepath" ) ), 0,
+ makeAny( GetPathToConfigurationRoot() ),
PropertyState_DIRECT_VALUE ) );
aCreationArguments[1] = makeAny(beans::PropertyValue(
OUString( RTL_CONSTASCII_USTRINGPARAM( "lazywrite" ) ), 0, makeAny( true ),
@@ -369,7 +369,7 @@ Reference< XInterface > ConfigurationAccess::OpenConfiguration( bool bReadOnly )
}
Reference< XInterface > ConfigurationAccess::GetConfigurationNode(
- const Reference< XInterface >& xRoot,
+ const Reference< XInterface >& xRoot,
const OUString& sPathToNode )
{
Reference< XInterface > xNode;
@@ -405,22 +405,22 @@ com::sun::star::uno::Any ConfigurationAccess::GetConfigProperty( const PPPOptimi
{
switch( ePropertyToken )
{
- case TK_Name : aRetValue <<= rSettings.maName; break;
- case TK_JPEGCompression : aRetValue <<= rSettings.mbJPEGCompression; break;
- case TK_JPEGQuality : aRetValue <<= rSettings.mnJPEGQuality; break;
- case TK_RemoveCropArea : aRetValue <<= rSettings.mbRemoveCropArea; break;
- case TK_ImageResolution : aRetValue <<= rSettings.mnImageResolution; break;
- case TK_EmbedLinkedGraphics : aRetValue <<= rSettings.mbEmbedLinkedGraphics; break;
- case TK_OLEOptimization : aRetValue <<= rSettings.mbOLEOptimization; break;
- case TK_OLEOptimizationType : aRetValue <<= rSettings.mnOLEOptimizationType; break;
- case TK_DeleteUnusedMasterPages : aRetValue <<= rSettings.mbDeleteUnusedMasterPages; break;
- case TK_DeleteHiddenSlides : aRetValue <<= rSettings.mbDeleteHiddenSlides; break;
- case TK_DeleteNotesPages : aRetValue <<= rSettings.mbDeleteNotesPages; break;
- case TK_SaveAs : aRetValue <<= rSettings.mbSaveAs; break;
- case TK_SaveAsURL : aRetValue <<= rSettings.maSaveAsURL; break;
- case TK_FilterName : aRetValue <<= rSettings.maFilterName; break;
- case TK_OpenNewDocument : aRetValue <<= rSettings.mbOpenNewDocument; break;
- case TK_EstimatedFileSize : aRetValue <<= rSettings.mnEstimatedFileSize; break;
+ case TK_Name : aRetValue <<= rSettings.maName; break;
+ case TK_JPEGCompression : aRetValue <<= rSettings.mbJPEGCompression; break;
+ case TK_JPEGQuality : aRetValue <<= rSettings.mnJPEGQuality; break;
+ case TK_RemoveCropArea : aRetValue <<= rSettings.mbRemoveCropArea; break;
+ case TK_ImageResolution : aRetValue <<= rSettings.mnImageResolution; break;
+ case TK_EmbedLinkedGraphics : aRetValue <<= rSettings.mbEmbedLinkedGraphics; break;
+ case TK_OLEOptimization : aRetValue <<= rSettings.mbOLEOptimization; break;
+ case TK_OLEOptimizationType : aRetValue <<= rSettings.mnOLEOptimizationType; break;
+ case TK_DeleteUnusedMasterPages : aRetValue <<= rSettings.mbDeleteUnusedMasterPages; break;
+ case TK_DeleteHiddenSlides : aRetValue <<= rSettings.mbDeleteHiddenSlides; break;
+ case TK_DeleteNotesPages : aRetValue <<= rSettings.mbDeleteNotesPages; break;
+ case TK_SaveAs : aRetValue <<= rSettings.mbSaveAs; break;
+ case TK_SaveAsURL : aRetValue <<= rSettings.maSaveAsURL; break;
+ case TK_FilterName : aRetValue <<= rSettings.maFilterName; break;
+ case TK_OpenNewDocument : aRetValue <<= rSettings.mbOpenNewDocument; break;
+ case TK_EstimatedFileSize : aRetValue <<= rSettings.mnEstimatedFileSize; break;
default:
break;
}
@@ -438,23 +438,23 @@ void ConfigurationAccess::SetConfigProperty( const PPPOptimizerTokenEnum eProper
{
switch( ePropertyToken )
{
- case TK_Name : rValue >>= rSettings.maName; break;
- case TK_JPEGCompression : rValue >>= rSettings.mbJPEGCompression; break;
- case TK_JPEGQuality : rValue >>= rSettings.mnJPEGQuality; break;
- case TK_RemoveCropArea : rValue >>= rSettings.mbRemoveCropArea; break;
- case TK_ImageResolution : rValue >>= rSettings.mnImageResolution; break;
- case TK_EmbedLinkedGraphics : rValue >>= rSettings.mbEmbedLinkedGraphics; break;
- case TK_OLEOptimization : rValue >>= rSettings.mbOLEOptimization; break;
- case TK_OLEOptimizationType : rValue >>= rSettings.mnOLEOptimizationType; break;
- case TK_DeleteUnusedMasterPages : rValue >>= rSettings.mbDeleteUnusedMasterPages; break;
- case TK_DeleteHiddenSlides : rValue >>= rSettings.mbDeleteHiddenSlides; break;
- case TK_DeleteNotesPages : rValue >>= rSettings.mbDeleteNotesPages; break;
- case TK_CustomShowName : rValue >>= rSettings.maCustomShowName; break;
- case TK_SaveAs : rValue >>= rSettings.mbSaveAs; break;
- case TK_SaveAsURL : rValue >>= rSettings.maSaveAsURL; break;
- case TK_FilterName : rValue >>= rSettings.maFilterName; break;
- case TK_OpenNewDocument : rValue >>= rSettings.mbOpenNewDocument; break;
- case TK_EstimatedFileSize : rValue >>= rSettings.mnEstimatedFileSize; break;
+ case TK_Name : rValue >>= rSettings.maName; break;
+ case TK_JPEGCompression : rValue >>= rSettings.mbJPEGCompression; break;
+ case TK_JPEGQuality : rValue >>= rSettings.mnJPEGQuality; break;
+ case TK_RemoveCropArea : rValue >>= rSettings.mbRemoveCropArea; break;
+ case TK_ImageResolution : rValue >>= rSettings.mnImageResolution; break;
+ case TK_EmbedLinkedGraphics : rValue >>= rSettings.mbEmbedLinkedGraphics; break;
+ case TK_OLEOptimization : rValue >>= rSettings.mbOLEOptimization; break;
+ case TK_OLEOptimizationType : rValue >>= rSettings.mnOLEOptimizationType; break;
+ case TK_DeleteUnusedMasterPages : rValue >>= rSettings.mbDeleteUnusedMasterPages; break;
+ case TK_DeleteHiddenSlides : rValue >>= rSettings.mbDeleteHiddenSlides; break;
+ case TK_DeleteNotesPages : rValue >>= rSettings.mbDeleteNotesPages; break;
+ case TK_CustomShowName : rValue >>= rSettings.maCustomShowName; break;
+ case TK_SaveAs : rValue >>= rSettings.mbSaveAs; break;
+ case TK_SaveAsURL : rValue >>= rSettings.maSaveAsURL; break;
+ case TK_FilterName : rValue >>= rSettings.maFilterName; break;
+ case TK_OpenNewDocument : rValue >>= rSettings.mbOpenNewDocument; break;
+ case TK_EstimatedFileSize : rValue >>= rSettings.mnEstimatedFileSize; break;
default:
break;
}
diff --git a/sdext/source/minimizer/configurationaccess.hxx b/sdext/source/minimizer/configurationaccess.hxx
index 436ae90fe071..2ccc8ece8428 100644
--- a/sdext/source/minimizer/configurationaccess.hxx
+++ b/sdext/source/minimizer/configurationaccess.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,24 +47,24 @@
struct OptimizerSettings
{
- rtl::OUString maName;
- sal_Bool mbJPEGCompression;
- sal_Int32 mnJPEGQuality;
- sal_Bool mbRemoveCropArea;
- sal_Int32 mnImageResolution;
- sal_Bool mbEmbedLinkedGraphics;
- sal_Bool mbOLEOptimization;
- sal_Int16 mnOLEOptimizationType;
- sal_Bool mbDeleteUnusedMasterPages;
- sal_Bool mbDeleteHiddenSlides;
- sal_Bool mbDeleteNotesPages;
- rtl::OUString maCustomShowName;
- sal_Bool mbSaveAs;
- rtl::OUString maSaveAsURL;
- rtl::OUString maFilterName;
- sal_Bool mbOpenNewDocument;
- sal_Int64 mnEstimatedFileSize;
-
+ rtl::OUString maName;
+ sal_Bool mbJPEGCompression;
+ sal_Int32 mnJPEGQuality;
+ sal_Bool mbRemoveCropArea;
+ sal_Int32 mnImageResolution;
+ sal_Bool mbEmbedLinkedGraphics;
+ sal_Bool mbOLEOptimization;
+ sal_Int16 mnOLEOptimizationType;
+ sal_Bool mbDeleteUnusedMasterPages;
+ sal_Bool mbDeleteHiddenSlides;
+ sal_Bool mbDeleteNotesPages;
+ rtl::OUString maCustomShowName;
+ sal_Bool mbSaveAs;
+ rtl::OUString maSaveAsURL;
+ rtl::OUString maFilterName;
+ sal_Bool mbOpenNewDocument;
+ sal_Int64 mnEstimatedFileSize;
+
OptimizerSettings() :
mbJPEGCompression( sal_False ),
mnJPEGQuality( 90 ),
@@ -80,13 +80,13 @@ struct OptimizerSettings
mbOpenNewDocument( sal_True ),
mnEstimatedFileSize( 0 ){};
~OptimizerSettings(){};
-
+
void LoadSettingsFromConfiguration( const com::sun::star::uno::Reference< com::sun::star::container::XNameAccess >& rSettings );
void SaveSettingsToConfiguration( const com::sun::star::uno::Reference< com::sun::star::container::XNameReplace >& rSettings );
sal_Bool operator==( const OptimizerSettings& rOptimizerSettings ) const;
-};
+};
class ConfigurationAccess
{
public :
@@ -108,7 +108,7 @@ class ConfigurationAccess
sal_Int32 GetConfigProperty( const PPPOptimizerTokenEnum, const sal_Int32 nDefault ) const;
com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > GetConfigurationSequence();
-
+
// getting access to the OptimizerSettings list
std::vector< OptimizerSettings >& GetOptimizerSettings() { return maSettings; };
std::vector< OptimizerSettings >::iterator GetOptimizerSettingsByName( const rtl::OUString& rName );
@@ -136,6 +136,6 @@ class ConfigurationAccess
const com::sun::star::uno::Reference< com::sun::star::uno::XInterface >& xRoot, const rtl::OUString& sPathToNode );
};
-#endif // _CONFIGURATION_ACCESS_HXX_
+#endif // _CONFIGURATION_ACCESS_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sdext/source/minimizer/fileopendialog.cxx b/sdext/source/minimizer/fileopendialog.cxx
index 6091e34cf614..ef5cd430ca36 100644
--- a/sdext/source/minimizer/fileopendialog.cxx
+++ b/sdext/source/minimizer/fileopendialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@ FileOpenDialog::FileOpenDialog( const Reference< XComponentContext >& rxMSF ) :
mxMSF( rxMSF )
{
Sequence< Any > aInitPropSeq( 1 );
- aInitPropSeq[ 0 ] <<= (sal_Int16)TemplateDescription::FILESAVE_AUTOEXTENSION; // TemplateDescription.FILEOPEN_SIMPLE
+ aInitPropSeq[ 0 ] <<= (sal_Int16)TemplateDescription::FILESAVE_AUTOEXTENSION; // TemplateDescription.FILEOPEN_SIMPLE
mxFilePicker = Reference < XFilePicker >( mxMSF->getServiceManager()->createInstanceWithArgumentsAndContext(
OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FilePicker" ) ), aInitPropSeq, rxMSF ),UNO_QUERY_THROW );
@@ -117,10 +117,10 @@ FileOpenDialog::FileOpenDialog( const Reference< XComponentContext >& rxMSF ) :
j = aFilterProperties.getLength();
}
break;
- case TK_Name : rProperty.Value >>= aFilterEntry.maName; break;
- case TK_UIName : rProperty.Value >>= aFilterEntry.maUIName; break;
- case TK_Type : rProperty.Value >>= aFilterEntry.maType; break;
- case TK_Flags : rProperty.Value >>= aFilterEntry.maFlags; break;
+ case TK_Name : rProperty.Value >>= aFilterEntry.maName; break;
+ case TK_UIName : rProperty.Value >>= aFilterEntry.maUIName; break;
+ case TK_Type : rProperty.Value >>= aFilterEntry.maType; break;
+ case TK_Flags : rProperty.Value >>= aFilterEntry.maFlags; break;
default : break;
}
}
@@ -139,7 +139,7 @@ FileOpenDialog::FileOpenDialog( const Reference< XComponentContext >& rxMSF ) :
OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.TypeDetection" ) ), rxMSF ), UNO_QUERY_THROW );
Sequence< OUString > aTypeList( xFilters->getElementNames() );
-// mxFilePicker->setDefaultName( );
+// mxFilePicker->setDefaultName( );
Reference< XFilterManager > xFilterManager( mxFilePicker, UNO_QUERY_THROW );
std::vector< FilterEntry >::iterator aIter( aFilterEntryList.begin() );
@@ -184,12 +184,12 @@ void FileOpenDialog::setDefaultName( const rtl::OUString& rDefaultName )
{
mxFilePicker->setDefaultName( rDefaultName );
}
-::rtl::OUString FileOpenDialog::getURL() const
+::rtl::OUString FileOpenDialog::getURL() const
{
Sequence< OUString > aFileSeq( mxFilePicker->getFiles() );
return aFileSeq.getLength() ? aFileSeq[ 0 ] : OUString();
};
-::rtl::OUString FileOpenDialog::getFilterName() const
+::rtl::OUString FileOpenDialog::getFilterName() const
{
rtl::OUString aFilterName;
Reference< XFilterManager > xFilterManager( mxFilePicker, UNO_QUERY_THROW );
diff --git a/sdext/source/minimizer/fileopendialog.hxx b/sdext/source/minimizer/fileopendialog.hxx
index 8ddbba752113..6cb2d615f145 100644
--- a/sdext/source/minimizer/fileopendialog.hxx
+++ b/sdext/source/minimizer/fileopendialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,12 +63,12 @@ public :
sal_Int16 execute();
void setDefaultName( const rtl::OUString& );
-// void setDefaultDirectory( const rtl::OUString& );
+// void setDefaultDirectory( const rtl::OUString& );
- ::rtl::OUString getURL() const;
+ ::rtl::OUString getURL() const;
::rtl::OUString getFilterName() const;
};
-#endif // _FILEOPEN_DIALOG_HXX_
+#endif // _FILEOPEN_DIALOG_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sdext/source/minimizer/graphiccollector.cxx b/sdext/source/minimizer/graphiccollector.cxx
index d4258e66953c..66b33b690a03 100644
--- a/sdext/source/minimizer/graphiccollector.cxx
+++ b/sdext/source/minimizer/graphiccollector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -218,7 +218,7 @@ void ImpCollectBackgroundGraphic( const Reference< XComponentContext >& rxMSF, c
Reference< XPropertySet > xPropertySet( rxDrawPage, UNO_QUERY_THROW );
xPropertySet->getPropertyValue( TKGet( TK_Width ) ) >>= aLogicalSize.Width;
xPropertySet->getPropertyValue( TKGet( TK_Height ) ) >>= aLogicalSize.Height;
-
+
Reference< XPropertySet > xBackgroundPropSet;
if ( xPropertySet->getPropertyValue( TKGet( TK_Background ) ) >>= xBackgroundPropSet )
ImpAddFillBitmapEntity( rxMSF, xBackgroundPropSet, aLogicalSize, rGraphicEntities, rGraphicSettings, xPropertySet );
@@ -267,7 +267,7 @@ awt::Size GraphicCollector::GetOriginalSize( const Reference< XComponentContext
if ( xGraphicPropertySet->getPropertyValue( TKGet( TK_Size100thMM ) ) >>= aSize100thMM )
{
if ( !aSize100thMM.Width && !aSize100thMM.Height )
- { // MAPMODE_PIXEL USED :-(
+ { // MAPMODE_PIXEL USED :-(
awt::Size aSourceSizePixel( 0, 0 );
if ( xGraphicPropertySet->getPropertyValue( TKGet( TK_SizePixel ) ) >>= aSourceSizePixel )
{
@@ -404,7 +404,7 @@ void ImpCountBackgroundGraphic( const Reference< XComponentContext >& /* rxMSF *
Reference< XPropertySet > xPropertySet( rxDrawPage, UNO_QUERY_THROW );
xPropertySet->getPropertyValue( TKGet( TK_Width ) ) >>= aLogicalSize.Width;
xPropertySet->getPropertyValue( TKGet( TK_Height ) ) >>= aLogicalSize.Height;
-
+
Reference< XPropertySet > xBackgroundPropSet;
if ( xPropertySet->getPropertyValue( TKGet( TK_Background ) ) >>= xBackgroundPropSet )
{
diff --git a/sdext/source/minimizer/graphiccollector.hxx b/sdext/source/minimizer/graphiccollector.hxx
index f67e06058cfa..392a632ba334 100644
--- a/sdext/source/minimizer/graphiccollector.hxx
+++ b/sdext/source/minimizer/graphiccollector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,11 +42,11 @@
struct GraphicSettings
{
- sal_Bool mbJPEGCompression;
- sal_Int32 mnJPEGQuality;
- sal_Bool mbRemoveCropArea;
- sal_Int32 mnImageResolution;
- sal_Bool mbEmbedLinkedGraphics;
+ sal_Bool mbJPEGCompression;
+ sal_Int32 mnJPEGQuality;
+ sal_Bool mbRemoveCropArea;
+ sal_Int32 mnImageResolution;
+ sal_Bool mbEmbedLinkedGraphics;
GraphicSettings( sal_Bool bJPEGCompression, sal_Int32 nJPEGQuality, sal_Bool bRemoveCropArea,
sal_Int32 nImageResolution, sal_Bool bEmbedLinkedGraphics )
@@ -63,25 +63,25 @@ class GraphicCollector
struct GraphicUser
{
- com::sun::star::uno::Reference< com::sun::star::drawing::XShape > mxShape; // if mbFillBitmap is false the xShape has
- com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > mxPropertySet; // to be used otherwise the PropertySet
- com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > mxPagePropertySet;
- rtl::OUString maGraphicURL;
- rtl::OUString maGraphicStreamURL;
- com::sun::star::text::GraphicCrop maGraphicCropLogic;
- com::sun::star::awt::Size maLogicalSize;
- sal_Bool mbFillBitmap;
+ com::sun::star::uno::Reference< com::sun::star::drawing::XShape > mxShape; // if mbFillBitmap is false the xShape has
+ com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > mxPropertySet; // to be used otherwise the PropertySet
+ com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > mxPagePropertySet;
+ rtl::OUString maGraphicURL;
+ rtl::OUString maGraphicStreamURL;
+ com::sun::star::text::GraphicCrop maGraphicCropLogic;
+ com::sun::star::awt::Size maLogicalSize;
+ sal_Bool mbFillBitmap;
GraphicUser() : mxShape(), maGraphicCropLogic( 0, 0, 0, 0 ), mbFillBitmap( sal_False ) {};
};
struct GraphicEntity
{
- com::sun::star::uno::Reference< com::sun::star::graphic::XGraphic > mxGraphic; // the corresponding XGraphic of the Shape
- com::sun::star::awt::Size maLogicalSize; // the biggest logical size the graphic will be displayed
- sal_Bool mbRemoveCropArea; //
- com::sun::star::text::GraphicCrop maGraphicCropLogic;
- std::vector< GraphicUser > maUser;
+ com::sun::star::uno::Reference< com::sun::star::graphic::XGraphic > mxGraphic; // the corresponding XGraphic of the Shape
+ com::sun::star::awt::Size maLogicalSize; // the biggest logical size the graphic will be displayed
+ sal_Bool mbRemoveCropArea; //
+ com::sun::star::text::GraphicCrop maGraphicCropLogic;
+ std::vector< GraphicUser > maUser;
GraphicEntity( const com::sun::star::uno::Reference< com::sun::star::graphic::XGraphic >& xGraphic, const GraphicUser& rUser )
: mxGraphic( xGraphic ), maLogicalSize( rUser.maLogicalSize ), mbRemoveCropArea( sal_False ), maGraphicCropLogic( 0, 0, 0, 0 ) { maUser.push_back( rUser ); };
diff --git a/sdext/source/minimizer/impoptimizer.cxx b/sdext/source/minimizer/impoptimizer.cxx
index d2e00fb94f26..9d4e49e5f951 100644
--- a/sdext/source/minimizer/impoptimizer.cxx
+++ b/sdext/source/minimizer/impoptimizer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -236,13 +236,13 @@ void ImpCompressGraphic( Reference< XGraphicProvider >& rxGraphicProvider, const
Sequence< PropertyValue > aFilterData( 8 );
aFilterData[ 0 ].Name = TKGet( TK_ImageResolution );
aFilterData[ 0 ].Value <<= nImageResolution;
- aFilterData[ 1 ].Name = TKGet( TK_ColorMode ); // todo: jpeg color mode (0->true color, 1->greyscale)
+ aFilterData[ 1 ].Name = TKGet( TK_ColorMode ); // todo: jpeg color mode (0->true color, 1->greyscale)
aFilterData[ 1 ].Value <<= (sal_Int32)0;
- aFilterData[ 2 ].Name = TKGet( TK_Quality ); // quality that is used if we export to jpeg
+ aFilterData[ 2 ].Name = TKGet( TK_Quality ); // quality that is used if we export to jpeg
aFilterData[ 2 ].Value <<= nJPEGQuality;
- aFilterData[ 3 ].Name = TKGet( TK_Compression ); // compression that is used if we export to png
+ aFilterData[ 3 ].Name = TKGet( TK_Compression ); // compression that is used if we export to png
aFilterData[ 3 ].Value <<= (sal_Int32)6;
- aFilterData[ 4 ].Name = TKGet( TK_Interlaced ); // interlaced is turned off if we export to png
+ aFilterData[ 4 ].Name = TKGet( TK_Interlaced ); // interlaced is turned off if we export to png
aFilterData[ 4 ].Value <<= (sal_Int32)0;
aFilterData[ 5 ].Name = TKGet( TK_LogicalSize );
aFilterData[ 5 ].Value <<= rLogicalSize;
@@ -250,9 +250,9 @@ void ImpCompressGraphic( Reference< XGraphicProvider >& rxGraphicProvider, const
aFilterData[ 6 ].Value <<= bRemoveCropping;
aFilterData[ 7 ].Name = TKGet( TK_GraphicCropLogic );
aFilterData[ 7 ].Value <<= rGraphicCropLogic;
-
+
Sequence< PropertyValue > aArgs( 3 );
- aArgs[ 0 ].Name = TKGet( TK_MimeType ); // the GraphicProvider is using "MimeType", the GraphicExporter "MediaType"...
+ aArgs[ 0 ].Name = TKGet( TK_MimeType ); // the GraphicProvider is using "MimeType", the GraphicExporter "MediaType"...
aArgs[ 0 ].Value <<= rDestMimeType;
aArgs[ 1 ].Name = TKGet( TK_OutputStream );
aArgs[ 1 ].Value <<= rxOutputStream;
@@ -282,8 +282,8 @@ Reference< XGraphic > ImpCompressGraphic( const Reference< XComponentContext >&
if ( nGraphicType == com::sun::star::graphic::GraphicType::PIXEL )
{
sal_Bool bTransparent = sal_False;
- sal_Bool bAlpha = sal_False;
- sal_Bool bAnimated = sal_False;
+ sal_Bool bAlpha = sal_False;
+ sal_Bool bAnimated = sal_False;
awt::Size aSourceSizePixel( 0, 0 );
text::GraphicCrop aGraphicCropPixel( 0, 0, 0, 0 );
@@ -295,7 +295,7 @@ Reference< XGraphic > ImpCompressGraphic( const Reference< XComponentContext >&
{
awt::Size aDestSizePixel( aSourceSizePixel );
if ( !bAnimated )
- {
+ {
sal_Bool bNeedsOptimizing = sal_False;
sal_Bool bRemoveCropArea( rGraphicSettings.mbRemoveCropArea );
@@ -329,7 +329,7 @@ Reference< XGraphic > ImpCompressGraphic( const Reference< XComponentContext >&
if ( rGraphicSettings.mbJPEGCompression && !bTransparent && !bAlpha && !bAnimated )
{
aDestMimeType = OUString( RTL_CONSTASCII_USTRINGPARAM( "image/jpeg" ) );
-// if( aSourceMimeType != aDestMimeType )
+// if( aSourceMimeType != aDestMimeType )
bNeedsOptimizing = sal_True;
}
if ( bRemoveCropArea )
@@ -427,7 +427,7 @@ void CompressGraphics( ImpOptimizer& rOptimizer, const Reference< XComponentCont
if ( aGraphicUserIter->maGraphicCropLogic.Left || aGraphicUserIter->maGraphicCropLogic.Top
|| aGraphicUserIter->maGraphicCropLogic.Right || aGraphicUserIter->maGraphicCropLogic.Bottom )
- { // removing crop area was not possible or should't been applied
+ { // removing crop area was not possible or should't been applied
text::GraphicCrop aGraphicCropLogic( 0, 0, 0, 0 );
if ( !aGraphicSettings.mbRemoveCropArea )
{
@@ -481,19 +481,19 @@ void CompressGraphics( ImpOptimizer& rOptimizer, const Reference< XComponentCont
// ----------------
ImpOptimizer::ImpOptimizer( const Reference< XComponentContext >& rxMSF, const Reference< XModel >& rxModel ) :
- mxMSF ( rxMSF ),
- mxModel ( rxModel ),
- mbJPEGCompression ( sal_False ),
- mnJPEGQuality ( 90 ),
- mbRemoveCropArea ( sal_False ),
- mnImageResolution ( 0 ),
- mbEmbedLinkedGraphics ( sal_True ),
- mbOLEOptimization ( sal_False ),
- mnOLEOptimizationType ( 0 ),
- mbDeleteUnusedMasterPages ( sal_False ),
- mbDeleteHiddenSlides ( sal_False ),
- mbDeleteNotesPages ( sal_False ),
- mbOpenNewDocument ( sal_True )
+ mxMSF ( rxMSF ),
+ mxModel ( rxModel ),
+ mbJPEGCompression ( sal_False ),
+ mnJPEGQuality ( 90 ),
+ mbRemoveCropArea ( sal_False ),
+ mnImageResolution ( 0 ),
+ mbEmbedLinkedGraphics ( sal_True ),
+ mbOLEOptimization ( sal_False ),
+ mnOLEOptimizationType ( 0 ),
+ mbDeleteUnusedMasterPages ( sal_False ),
+ mbDeleteHiddenSlides ( sal_False ),
+ mbDeleteNotesPages ( sal_False ),
+ mbOpenNewDocument ( sal_True )
{
}
@@ -619,21 +619,21 @@ sal_Bool ImpOptimizer::Optimize( const Sequence< PropertyValue >& rArguments )
{
switch( TKGet( aSettings[ j ].Name ) )
{
- case TK_JPEGCompression : aSettings[ j ].Value >>= mbJPEGCompression; break;
- case TK_JPEGQuality : aSettings[ j ].Value >>= mnJPEGQuality; break;
- case TK_RemoveCropArea : aSettings[ j ].Value >>= mbRemoveCropArea; break;
- case TK_ImageResolution : aSettings[ j ].Value >>= mnImageResolution; break;
- case TK_EmbedLinkedGraphics : aSettings[ j ].Value >>= mbEmbedLinkedGraphics; break;
- case TK_OLEOptimization : aSettings[ j ].Value >>= mbOLEOptimization; break;
- case TK_OLEOptimizationType : aSettings[ j ].Value >>= mnOLEOptimizationType; break;
- case TK_CustomShowName : aSettings[ j ].Value >>= maCustomShowName; break;
+ case TK_JPEGCompression : aSettings[ j ].Value >>= mbJPEGCompression; break;
+ case TK_JPEGQuality : aSettings[ j ].Value >>= mnJPEGQuality; break;
+ case TK_RemoveCropArea : aSettings[ j ].Value >>= mbRemoveCropArea; break;
+ case TK_ImageResolution : aSettings[ j ].Value >>= mnImageResolution; break;
+ case TK_EmbedLinkedGraphics : aSettings[ j ].Value >>= mbEmbedLinkedGraphics; break;
+ case TK_OLEOptimization : aSettings[ j ].Value >>= mbOLEOptimization; break;
+ case TK_OLEOptimizationType : aSettings[ j ].Value >>= mnOLEOptimizationType; break;
+ case TK_CustomShowName : aSettings[ j ].Value >>= maCustomShowName; break;
case TK_DeleteUnusedMasterPages : aSettings[ j ].Value >>= mbDeleteUnusedMasterPages; break;
- case TK_DeleteHiddenSlides : aSettings[ j ].Value >>= mbDeleteHiddenSlides; break;
- case TK_DeleteNotesPages : aSettings[ j ].Value >>= mbDeleteNotesPages; break;
- case TK_SaveAsURL : aSettings[ j ].Value >>= maSaveAsURL; break;
- case TK_FilterName : aSettings[ j ].Value >>= maFilterName; break;
- case TK_OpenNewDocument : aSettings[ j ].Value >>= mbOpenNewDocument; break;
- case TK_EstimatedFileSize : aSettings[ j ].Value >>= nEstimatedFileSize; break;
+ case TK_DeleteHiddenSlides : aSettings[ j ].Value >>= mbDeleteHiddenSlides; break;
+ case TK_DeleteNotesPages : aSettings[ j ].Value >>= mbDeleteNotesPages; break;
+ case TK_SaveAsURL : aSettings[ j ].Value >>= maSaveAsURL; break;
+ case TK_FilterName : aSettings[ j ].Value >>= maFilterName; break;
+ case TK_OpenNewDocument : aSettings[ j ].Value >>= mbOpenNewDocument; break;
+ case TK_EstimatedFileSize : aSettings[ j ].Value >>= nEstimatedFileSize; break;
default: break;
}
}
@@ -649,7 +649,7 @@ sal_Bool ImpOptimizer::Optimize( const Sequence< PropertyValue >& rArguments )
Reference< XFrame > xSelf;
if ( maSaveAsURL.getLength() )
{
-
+
SetStatusValue( TK_Progress, Any( static_cast< sal_Int32 >( 10 ) ) );
SetStatusValue( TK_Status, Any( TKGet( STR_DUPLICATING_PRESENTATION ) ) );
DispatchStatus();
@@ -697,7 +697,7 @@ sal_Bool ImpOptimizer::Optimize( const Sequence< PropertyValue >& rArguments )
mxModel->lockControllers();
bRet = Optimize();
mxModel->unlockControllers();
-
+
// clearing undo stack:
Reference< XFrame > xFrame( xSelf.is() ? xSelf : mxInformationDialog );
if ( xFrame.is() )
@@ -723,7 +723,7 @@ sal_Bool ImpOptimizer::Optimize( const Sequence< PropertyValue >& rArguments )
SetStatusValue( TK_OpenNewDocument, Any( mbOpenNewDocument ) );
DispatchStatus();
}
-
+
if ( maSaveAsURL.getLength() )
{
if ( mbOpenNewDocument && xSelf.is() )
diff --git a/sdext/source/minimizer/impoptimizer.hxx b/sdext/source/minimizer/impoptimizer.hxx
index ac3b4e8c36e4..9112cbd1bd61 100644
--- a/sdext/source/minimizer/impoptimizer.hxx
+++ b/sdext/source/minimizer/impoptimizer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,27 +50,27 @@ class ImpOptimizer : public OptimizationStats
{
private:
- com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxMSF;
- com::sun::star::uno::Reference< com::sun::star::frame::XModel > mxModel;
- com::sun::star::uno::Reference< com::sun::star::frame::XDispatch > mxStatusDispatcher;
+ com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxMSF;
+ com::sun::star::uno::Reference< com::sun::star::frame::XModel > mxModel;
+ com::sun::star::uno::Reference< com::sun::star::frame::XDispatch > mxStatusDispatcher;
- sal_Bool mbJPEGCompression;
- sal_Int32 mnJPEGQuality;
- sal_Bool mbRemoveCropArea;
- sal_Int32 mnImageResolution;
- sal_Bool mbEmbedLinkedGraphics;
- sal_Bool mbOLEOptimization;
- sal_Int32 mnOLEOptimizationType;
- rtl::OUString maCustomShowName;
- sal_Bool mbDeleteUnusedMasterPages;
- sal_Bool mbDeleteHiddenSlides;
- sal_Bool mbDeleteNotesPages;
- rtl::OUString maSaveAsURL;
- rtl::OUString maFilterName;
- sal_Bool mbOpenNewDocument;
+ sal_Bool mbJPEGCompression;
+ sal_Int32 mnJPEGQuality;
+ sal_Bool mbRemoveCropArea;
+ sal_Int32 mnImageResolution;
+ sal_Bool mbEmbedLinkedGraphics;
+ sal_Bool mbOLEOptimization;
+ sal_Int32 mnOLEOptimizationType;
+ rtl::OUString maCustomShowName;
+ sal_Bool mbDeleteUnusedMasterPages;
+ sal_Bool mbDeleteHiddenSlides;
+ sal_Bool mbDeleteNotesPages;
+ rtl::OUString maSaveAsURL;
+ rtl::OUString maFilterName;
+ sal_Bool mbOpenNewDocument;
com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxInformationDialog;
-
+
sal_Bool Optimize();
public:
@@ -80,7 +80,7 @@ public:
~ImpOptimizer();
sal_Bool Optimize( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rArguments );
- void DispatchStatus();
+ void DispatchStatus();
};
#endif
diff --git a/sdext/source/minimizer/informationdialog.cxx b/sdext/source/minimizer/informationdialog.cxx
index 17f900ccc6b6..de6bd58aeb04 100644
--- a/sdext/source/minimizer/informationdialog.cxx
+++ b/sdext/source/minimizer/informationdialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,10 +38,10 @@
#include "com/sun/star/util/URL.hpp"
#include "com/sun/star/util/XURLTransformer.hpp"
-#define DIALOG_WIDTH 240
-#define DIALOG_HEIGHT 80
-#define PAGE_POS_X 35
-#define PAGE_WIDTH ( DIALOG_WIDTH - PAGE_POS_X ) - 6
+#define DIALOG_WIDTH 240
+#define DIALOG_HEIGHT 80
+#define PAGE_POS_X 35
+#define PAGE_WIDTH ( DIALOG_WIDTH - PAGE_POS_X ) - 6
// ---------------------
@@ -78,7 +78,7 @@ rtl::OUString InsertFixedText( InformationDialog& rInformationDialog, const rtl:
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( nHeight ),
Any( rLabel ),
Any( bMultiLine ),
@@ -90,8 +90,8 @@ rtl::OUString InsertFixedText( InformationDialog& rInformationDialog, const rtl:
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
rInformationDialog.insertFixedText( rControlName, aNames, aValues );
return rControlName;
@@ -109,7 +109,7 @@ rtl::OUString InsertImage( InformationDialog& rInformationDialog, const OUString
TKGet( TK_ScaleImage ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( sal_Int16( 0 ) ),
Any( nHeight ),
Any( rURL ),
@@ -119,8 +119,8 @@ rtl::OUString InsertImage( InformationDialog& rInformationDialog, const OUString
Any( nWidth ) };
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
rInformationDialog.insertImage( rControlName, aNames, aValues );
return rControlName;
@@ -140,7 +140,7 @@ rtl::OUString InsertCheckBox( InformationDialog& rInformationDialog, const OUStr
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( sal_True ),
Any( nHeight ),
Any( rLabel ),
@@ -152,8 +152,8 @@ rtl::OUString InsertCheckBox( InformationDialog& rInformationDialog, const OUStr
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
Reference< XCheckBox > xCheckBox( rInformationDialog.insertCheckBox( rControlName, aNames, aValues ) );
if ( xItemListener.is() )
@@ -175,7 +175,7 @@ rtl::OUString InsertButton( InformationDialog& rInformationDialog, const OUStrin
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( sal_True ),
Any( nHeight ),
Any( rInformationDialog.getString( nResID ) ),
@@ -189,8 +189,8 @@ rtl::OUString InsertButton( InformationDialog& rInformationDialog, const OUStrin
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
rInformationDialog.insertButton( rControlName, xActionListener, aNames, aValues );
return rControlName;
@@ -229,7 +229,7 @@ OUString InformationDialog::ImpGetStandardImage( const OUString& sPrivateURL )
{
OUString aDestMimeType( RTL_CONSTASCII_USTRINGPARAM( "image/png" ) );
Sequence< PropertyValue > aArgs2( 2 );
- aArgs2[ 0 ].Name = TKGet( TK_MimeType ); // the GraphicProvider is using "MimeType", the GraphicExporter "MediaType"...
+ aArgs2[ 0 ].Name = TKGet( TK_MimeType ); // the GraphicProvider is using "MimeType", the GraphicExporter "MediaType"...
aArgs2[ 0 ].Value <<= aDestMimeType;
aArgs2[ 1 ].Name = TKGet( TK_OutputStream );
aArgs2[ 1 ].Value <<= xOutputStream;
@@ -260,7 +260,7 @@ void InformationDialog::InitDialog()
TKGet( TK_Title ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( sal_True ),
Any( nDialogHeight ),
Any( sal_True ),
@@ -268,13 +268,13 @@ void InformationDialog::InitDialog()
Any( sal_Int32( 115 ) ),
Any( getString( STR_SUN_OPTIMIZATION_WIZARD2 ) ),
Any( sal_Int32( DIALOG_WIDTH ) ) };
-
+
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
- mxDialogModelMultiPropertySet->setPropertyValues( aNames, aValues );
+ mxDialogModelMultiPropertySet->setPropertyValues( aNames, aValues );
sal_Int64 nSource = mnSourceSize;
sal_Int64 nDest = mnDestSize;
@@ -335,7 +335,7 @@ void InformationDialog::InitDialog()
if ( k >= 0 )
aInfoString = aInfoString.replaceAt( k, aTitlePlaceholder.getLength(), aTitle );
- com::sun::star::uno::Reference< com::sun::star::awt::XItemListener > xItemListener;
+ com::sun::star::uno::Reference< com::sun::star::awt::XItemListener > xItemListener;
InsertImage( *this, rtl::OUString( rtl::OUString::createFromAscii( "aboutimage" ) ), ImpGetStandardImage( rtl::OUString::createFromAscii( "private:standardimage/query" ) ), 5, 5, 25, 25 );
InsertFixedText( *this, rtl::OUString( rtl::OUString::createFromAscii( "fixedtext" ) ), aInfoString, PAGE_POS_X, 6, PAGE_WIDTH, 24, sal_True, 0 );
if ( maSaveAsURL.getLength() )
@@ -363,7 +363,7 @@ InformationDialog::InformationDialog( const Reference< XComponentContext > &rxMS
Reference< XFrame > xFrame( mxController->getFrame() );
Reference< XWindow > xContainerWindow( xFrame->getContainerWindow() );
Reference< XWindowPeer > xWindowPeer( xContainerWindow, UNO_QUERY_THROW );
- createWindowPeer( xWindowPeer );
+ createWindowPeer( xWindowPeer );
InitDialog();
}
diff --git a/sdext/source/minimizer/informationdialog.hxx b/sdext/source/minimizer/informationdialog.hxx
index 44d2d4c035be..0b38f57eb177 100644
--- a/sdext/source/minimizer/informationdialog.hxx
+++ b/sdext/source/minimizer/informationdialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,19 +60,19 @@ public :
sal_Bool& bOpenNewDocument, const sal_Int64& nSourceSize, const sal_Int64& nDestSize, const sal_Int64& nApproxDest );
~InformationDialog();
- sal_Bool execute();
+ sal_Bool execute();
private :
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >mxMSF;
- com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxFrame;
- com::sun::star::uno::Reference< com::sun::star::io::XStream > mxTempFile;
+ com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxFrame;
+ com::sun::star::uno::Reference< com::sun::star::io::XStream > mxTempFile;
- com::sun::star::uno::Reference< com::sun::star::awt::XActionListener > mxActionListener;
+ com::sun::star::uno::Reference< com::sun::star::awt::XActionListener > mxActionListener;
rtl::OUString ImpGetStandardImage( const rtl::OUString& rPrivateURL );
void InitDialog();
-
+
sal_Int64 mnSourceSize;
sal_Int64 mnDestSize;
sal_Int64 mnApproxSize;
@@ -93,7 +93,7 @@ public:
virtual void SAL_CALL actionPerformed( const ::com::sun::star::awt::ActionEvent& Event ) throw ( com::sun::star::uno::RuntimeException );
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw ( com::sun::star::uno::RuntimeException);
private:
-
+
InformationDialog& mrInformationDialog;
};
diff --git a/sdext/source/minimizer/optimizationstats.cxx b/sdext/source/minimizer/optimizationstats.cxx
index 8f6eaeeb7f1c..a1e22ea08548 100644
--- a/sdext/source/minimizer/optimizationstats.cxx
+++ b/sdext/source/minimizer/optimizationstats.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/minimizer/optimizationstats.hxx b/sdext/source/minimizer/optimizationstats.hxx
index 3359b5888627..5a45de99f62e 100644
--- a/sdext/source/minimizer/optimizationstats.hxx
+++ b/sdext/source/minimizer/optimizationstats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/minimizer/optimizerdialog.cxx b/sdext/source/minimizer/optimizerdialog.cxx
index 17fd2b1cdde5..32bac3134ef5 100644
--- a/sdext/source/minimizer/optimizerdialog.cxx
+++ b/sdext/source/minimizer/optimizerdialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@ void OptimizerDialog::InitDialog()
TKGet( TK_Title ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( sal_True ),
Any( sal_Int32( DIALOG_HEIGHT ) ),
Any( sal_True ),
@@ -79,13 +79,13 @@ void OptimizerDialog::InitDialog()
Any( sal_Int32( 52 ) ),
Any( getString( STR_SUN_OPTIMIZATION_WIZARD2 ) ),
Any( sal_Int32( OD_DIALOG_WIDTH ) ) };
-
+
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
- mxDialogModelMultiPropertySet->setPropertyValues( aNames, aValues );
+ mxDialogModelMultiPropertySet->setPropertyValues( aNames, aValues );
}
// -----------------------------------------------------------------------------
@@ -102,7 +102,7 @@ void OptimizerDialog::InitRoadmap()
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( sal_Int32( DIALOG_HEIGHT - 26 ) ),
Any( sal_Int32( 0 ) ),
Any( sal_Int32( 0 ) ),
@@ -112,11 +112,11 @@ void OptimizerDialog::InitRoadmap()
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
mxRoadmapControlModel = insertControlModel( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.UnoControlRoadmapModel" ) ),
- TKGet( TK_rdmNavi ), aNames, aValues );
+ TKGet( TK_rdmNavi ), aNames, aValues );
Reference< XPropertySet > xPropertySet( mxRoadmapControlModel, UNO_QUERY_THROW );
xPropertySet->setPropertyValue( TKGet( TK_Name ), Any( TKGet( TK_rdmNavi ) ) );
@@ -168,13 +168,13 @@ void OptimizerDialog::InsertRoadmapItem( const sal_Int32 nIndex, const sal_Bool
void OptimizerDialog::UpdateConfiguration()
{
- sal_Int16 nInt16 = 0;
- OUString aString;
- Any aAny;
+ sal_Int16 nInt16 = 0;
+ OUString aString;
+ Any aAny;
Sequence< sal_Int16 > aSelectedItems;
Sequence< OUString > aStringItemList;
-
+
// page0
aAny = getControlProperty( TKGet( TK_ListBox0Pg0 ), TKGet( TK_SelectedItems ) );
if ( aAny >>= aSelectedItems )
@@ -266,7 +266,7 @@ sal_Bool OptimizerDialog::execute()
Reference< XItemEventBroadcaster > maRoadmapBroadcaster( mxRoadmapControl, UNO_QUERY_THROW );
maRoadmapBroadcaster->addItemListener( mxItemListener );
UnoDialog::execute();
- UpdateConfiguration(); // taking actual control settings for the configuration
+ UpdateConfiguration(); // taking actual control settings for the configuration
maRoadmapBroadcaster->removeItemListener( mxItemListener );
return mbStatus;
}
@@ -282,14 +282,14 @@ void OptimizerDialog::SwitchPage( sal_Int16 nNewStep )
disableControl( TKGet( TK_btnNavBack ) );
else if ( nOldStep == 0 )
enableControl( TKGet( TK_btnNavBack ) );
-
+
if ( nNewStep == MAX_STEP )
disableControl( TKGet( TK_btnNavNext ) );
else if ( nOldStep == MAX_STEP )
enableControl( TKGet( TK_btnNavNext ) );
setControlProperty( TKGet( TK_rdmNavi ), TKGet( TK_CurrentItemID ), Any( nNewStep ) );
-
+
DeactivatePage( nOldStep );
UpdateControlStates( nNewStep );
@@ -547,7 +547,7 @@ void ActionListener::actionPerformed( const ActionEvent& rEvent )
Reference< XLayoutManager > xLayoutManager;
if ( xPropSet->getPropertyValue( OUString::createFromAscii( "LayoutManager" ) ) >>= xLayoutManager )
{
- xLayoutManager->setVisible( sal_False );
+ xLayoutManager->setVisible( sal_False );
xLayoutManager->hideElement( OUString::createFromAscii( "private:resource/menubar/menubar" ) );
xLayoutManager->destroyElement( OUString::createFromAscii( "private:resource/statusbar/statusbar" ) );
}
@@ -559,8 +559,8 @@ void ActionListener::actionPerformed( const ActionEvent& rEvent )
}
}
break;
- case TK_btnNavBack : mrOptimizerDialog.SwitchPage( mrOptimizerDialog.mnCurrentStep - 1 ); break;
- case TK_btnNavNext : mrOptimizerDialog.SwitchPage( mrOptimizerDialog.mnCurrentStep + 1 ); break;
+ case TK_btnNavBack : mrOptimizerDialog.SwitchPage( mrOptimizerDialog.mnCurrentStep - 1 ); break;
+ case TK_btnNavNext : mrOptimizerDialog.SwitchPage( mrOptimizerDialog.mnCurrentStep + 1 ); break;
case TK_btnNavFinish :
{
mrOptimizerDialog.UpdateConfiguration();
@@ -574,9 +574,9 @@ void ActionListener::actionPerformed( const ActionEvent& rEvent )
mrOptimizerDialog.setControlProperty( TKGet( TK_btnNavCancel ), TKGet( TK_Enabled ), Any( sal_False ) );
mrOptimizerDialog.setControlProperty( TKGet( TK_FixedText0Pg4 ), TKGet( TK_Enabled ), Any( sal_True ) );
- // check if we have to open the FileDialog
- sal_Bool bSuccessfullyExecuted = sal_True;
- sal_Int16 nInt16 = 0;
+ // check if we have to open the FileDialog
+ sal_Bool bSuccessfullyExecuted = sal_True;
+ sal_Int16 nInt16 = 0;
mrOptimizerDialog.getControlProperty( TKGet( TK_RadioButton1Pg4 ), TKGet( TK_State ) ) >>= nInt16;
if ( nInt16 )
{
@@ -629,7 +629,7 @@ void ActionListener::actionPerformed( const ActionEvent& rEvent )
}
}
if ( bSuccessfullyExecuted )
- { // now check if we have to store a session template
+ { // now check if we have to store a session template
nInt16 = 0;
OUString aSettingsName;
mrOptimizerDialog.getControlProperty( TKGet( TK_CheckBox1Pg4 ), TKGet( TK_State ) ) >>= nInt16;
@@ -682,8 +682,8 @@ void ActionListener::actionPerformed( const ActionEvent& rEvent )
}
}
break;
- case TK_btnNavCancel : mrOptimizerDialog.endExecute( sal_False ); break;
- case TK_Button0Pg0 : // delete configuration
+ case TK_btnNavCancel : mrOptimizerDialog.endExecute( sal_False ); break;
+ case TK_Button0Pg0 : // delete configuration
{
OUString aSelectedItem( mrOptimizerDialog.GetSelectedString( TK_ListBox0Pg0 ) );
if ( aSelectedItem.getLength() )
@@ -781,7 +781,7 @@ void SpinListenerFormattedField0Pg1::up( const SpinEvent& /* rEvent */ )
fDouble += 9;
if ( fDouble > 100 )
fDouble = 100;
- mrOptimizerDialog.setControlProperty( TKGet( TK_FormattedField0Pg1 ), TKGet( TK_EffectiveValue ), Any( fDouble ) );
+ mrOptimizerDialog.setControlProperty( TKGet( TK_FormattedField0Pg1 ), TKGet( TK_EffectiveValue ), Any( fDouble ) );
mrOptimizerDialog.SetConfigProperty( TK_JPEGQuality, Any( (sal_Int32)fDouble ) );
}
}
@@ -795,20 +795,20 @@ void SpinListenerFormattedField0Pg1::down( const SpinEvent& /* rEvent */ )
fDouble -= 9;
if ( fDouble < 0 )
fDouble = 0;
- mrOptimizerDialog.setControlProperty( TKGet( TK_FormattedField0Pg1 ), TKGet( TK_EffectiveValue ), Any( fDouble ) );
+ mrOptimizerDialog.setControlProperty( TKGet( TK_FormattedField0Pg1 ), TKGet( TK_EffectiveValue ), Any( fDouble ) );
mrOptimizerDialog.SetConfigProperty( TK_JPEGQuality, Any( (sal_Int32)fDouble ) );
}
}
void SpinListenerFormattedField0Pg1::first( const SpinEvent& /* rEvent */ )
throw ( com::sun::star::uno::RuntimeException )
{
- mrOptimizerDialog.setControlProperty( TKGet( TK_FormattedField0Pg1 ), TKGet( TK_EffectiveValue ), Any( static_cast< double >( 0 ) ) );
+ mrOptimizerDialog.setControlProperty( TKGet( TK_FormattedField0Pg1 ), TKGet( TK_EffectiveValue ), Any( static_cast< double >( 0 ) ) );
mrOptimizerDialog.SetConfigProperty( TK_JPEGQuality, Any( (sal_Int32)0 ) );
}
void SpinListenerFormattedField0Pg1::last( const SpinEvent& /* rEvent */ )
throw ( com::sun::star::uno::RuntimeException )
{
- mrOptimizerDialog.setControlProperty( TKGet( TK_FormattedField0Pg1 ), TKGet( TK_EffectiveValue ), Any( static_cast< double >( 100 ) ) );
+ mrOptimizerDialog.setControlProperty( TKGet( TK_FormattedField0Pg1 ), TKGet( TK_EffectiveValue ), Any( static_cast< double >( 100 ) ) );
mrOptimizerDialog.SetConfigProperty( TK_JPEGQuality, Any( (sal_Int32)100 ) );
}
void SpinListenerFormattedField0Pg1::disposing( const ::com::sun::star::lang::EventObject& /* Source */ )
diff --git a/sdext/source/minimizer/optimizerdialog.hrc b/sdext/source/minimizer/optimizerdialog.hrc
index bc3fd49a277f..9bf81f9d612a 100644
--- a/sdext/source/minimizer/optimizerdialog.hrc
+++ b/sdext/source/minimizer/optimizerdialog.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,10 +27,10 @@
#ifndef _OPTIMIZERDIALOG_HRC
#define _OPTIMIZERDIALOG_HRC
-#define ITEM_ID_INTRODUCTION 0
-#define ITEM_ID_SLIDES 1
-#define ITEM_ID_GRAPHIC_OPTIMIZATION 2
-#define ITEM_ID_OLE_OPTIMIZATION 3
-#define ITEM_ID_SUMMARY 4
+#define ITEM_ID_INTRODUCTION 0
+#define ITEM_ID_SLIDES 1
+#define ITEM_ID_GRAPHIC_OPTIMIZATION 2
+#define ITEM_ID_OLE_OPTIMIZATION 3
+#define ITEM_ID_SUMMARY 4
#endif
diff --git a/sdext/source/minimizer/optimizerdialog.hxx b/sdext/source/minimizer/optimizerdialog.hxx
index 08036c056069..af661121dbcb 100644
--- a/sdext/source/minimizer/optimizerdialog.hxx
+++ b/sdext/source/minimizer/optimizerdialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,16 +53,16 @@
#include <com/sun/star/frame/XDesktop.hpp>
#include <com/sun/star/awt/PushButtonType.hpp>
-#define MAX_STEP 4
-#define OD_DIALOG_WIDTH 330
-#define DIALOG_HEIGHT 210
-#define BUTTON_WIDTH 50
-#define BUTTON_HEIGHT 14
-#define BUTTON_POS_Y DIALOG_HEIGHT - BUTTON_HEIGHT - 6
+#define MAX_STEP 4
+#define OD_DIALOG_WIDTH 330
+#define DIALOG_HEIGHT 210
+#define BUTTON_WIDTH 50
+#define BUTTON_HEIGHT 14
+#define BUTTON_POS_Y DIALOG_HEIGHT - BUTTON_HEIGHT - 6
-#define PAGE_POS_X 91
-#define PAGE_POS_Y 8
-#define PAGE_WIDTH OD_DIALOG_WIDTH - PAGE_POS_X
+#define PAGE_POS_X 91
+#define PAGE_POS_Y 8
+#define PAGE_WIDTH OD_DIALOG_WIDTH - PAGE_POS_X
// -------------------
// - OPTIMIZERDIALOG -
@@ -75,26 +75,26 @@ public :
com::sun::star::uno::Reference< com::sun::star::frame::XDispatch > rxStatusDispatcher );
~OptimizerDialog();
- sal_Bool execute();
+ sal_Bool execute();
- sal_Int16 mnCurrentStep;
- sal_Int16 mnTabIndex;
- sal_Bool mbIsReadonly;
+ sal_Int16 mnCurrentStep;
+ sal_Int16 mnTabIndex;
+ sal_Bool mbIsReadonly;
private :
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >mxMSF;
- com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxFrame;
+ com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxFrame;
- com::sun::star::uno::Reference< com::sun::star::uno::XInterface > mxRoadmapControl;
- com::sun::star::uno::Reference< com::sun::star::uno::XInterface > mxRoadmapControlModel;
+ com::sun::star::uno::Reference< com::sun::star::uno::XInterface > mxRoadmapControl;
+ com::sun::star::uno::Reference< com::sun::star::uno::XInterface > mxRoadmapControlModel;
- com::sun::star::uno::Reference< com::sun::star::awt::XItemListener > mxItemListener;
- com::sun::star::uno::Reference< com::sun::star::awt::XActionListener > mxActionListener;
- com::sun::star::uno::Reference< com::sun::star::awt::XActionListener > mxActionListenerListBox0Pg0;
- com::sun::star::uno::Reference< com::sun::star::awt::XTextListener > mxTextListenerFormattedField0Pg1;
- com::sun::star::uno::Reference< com::sun::star::awt::XTextListener > mxTextListenerComboBox0Pg1;
- com::sun::star::uno::Reference< com::sun::star::awt::XSpinListener > mxSpinListenerFormattedField0Pg1;
- com::sun::star::uno::Reference< com::sun::star::frame::XDispatch > mxStatusDispatcher;
+ com::sun::star::uno::Reference< com::sun::star::awt::XItemListener > mxItemListener;
+ com::sun::star::uno::Reference< com::sun::star::awt::XActionListener > mxActionListener;
+ com::sun::star::uno::Reference< com::sun::star::awt::XActionListener > mxActionListenerListBox0Pg0;
+ com::sun::star::uno::Reference< com::sun::star::awt::XTextListener > mxTextListenerFormattedField0Pg1;
+ com::sun::star::uno::Reference< com::sun::star::awt::XTextListener > mxTextListenerComboBox0Pg1;
+ com::sun::star::uno::Reference< com::sun::star::awt::XSpinListener > mxSpinListenerFormattedField0Pg1;
+ com::sun::star::uno::Reference< com::sun::star::frame::XDispatch > mxStatusDispatcher;
std::vector< std::vector< rtl::OUString > > maControlPages;
@@ -161,7 +161,7 @@ public:
virtual void SAL_CALL actionPerformed( const ::com::sun::star::awt::ActionEvent& Event ) throw ( com::sun::star::uno::RuntimeException );
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw ( com::sun::star::uno::RuntimeException);
private:
-
+
OptimizerDialog& mrOptimizerDialog;
};
@@ -175,7 +175,7 @@ public:
virtual void SAL_CALL actionPerformed( const ::com::sun::star::awt::ActionEvent& Event ) throw ( com::sun::star::uno::RuntimeException );
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw ( com::sun::star::uno::RuntimeException);
private:
-
+
OptimizerDialog& mrOptimizerDialog;
};
@@ -189,7 +189,7 @@ public:
virtual void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& Event ) throw ( com::sun::star::uno::RuntimeException );
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw ( com::sun::star::uno::RuntimeException);
private:
-
+
OptimizerDialog& mrOptimizerDialog;
};
@@ -203,7 +203,7 @@ public:
virtual void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& Event ) throw ( com::sun::star::uno::RuntimeException );
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw ( com::sun::star::uno::RuntimeException);
private:
-
+
OptimizerDialog& mrOptimizerDialog;
};
@@ -220,7 +220,7 @@ public:
virtual void SAL_CALL last( const ::com::sun::star::awt::SpinEvent& Event ) throw ( com::sun::star::uno::RuntimeException );
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw ( com::sun::star::uno::RuntimeException);
private:
-
+
OptimizerDialog& mrOptimizerDialog;
};
@@ -238,7 +238,7 @@ public:
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& aEvent ) throw (com::sun::star::uno::RuntimeException) ;
private:
-
+
com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& mrXFrame;
};
diff --git a/sdext/source/minimizer/optimizerdialogcontrols.cxx b/sdext/source/minimizer/optimizerdialogcontrols.cxx
index bdd3cf0e80c1..a72ec1482d48 100644
--- a/sdext/source/minimizer/optimizerdialogcontrols.cxx
+++ b/sdext/source/minimizer/optimizerdialogcontrols.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,7 +81,7 @@ rtl::OUString InsertSeparator( OptimizerDialog& rOptimizerDialog, const OUString
TKGet( TK_Step ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( nHeight ),
Any( nOrientation ),
Any( nPosX ),
@@ -91,8 +91,8 @@ rtl::OUString InsertSeparator( OptimizerDialog& rOptimizerDialog, const OUString
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
rOptimizerDialog.insertControlModel( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.UnoControlFixedLineModel" ) ),
rControlName, aNames, aValues );
@@ -115,7 +115,7 @@ rtl::OUString InsertButton( OptimizerDialog& rOptimizerDialog, const OUString& r
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( bEnabled ),
Any( nHeight ),
Any( rOptimizerDialog.getString( nResID ) ),
@@ -129,8 +129,8 @@ rtl::OUString InsertButton( OptimizerDialog& rOptimizerDialog, const OUString& r
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
rOptimizerDialog.insertButton( rControlName, xActionListener, aNames, aValues );
return rControlName;
@@ -151,7 +151,7 @@ rtl::OUString InsertFixedText( OptimizerDialog& rOptimizerDialog, const rtl::OUS
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( nHeight ),
Any( rLabel ),
Any( bMultiLine ),
@@ -163,8 +163,8 @@ rtl::OUString InsertFixedText( OptimizerDialog& rOptimizerDialog, const rtl::OUS
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
rOptimizerDialog.insertFixedText( rControlName, aNames, aValues );
if ( bBold )
@@ -188,7 +188,7 @@ rtl::OUString InsertCheckBox( OptimizerDialog& rOptimizerDialog, const OUString&
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( sal_True ),
Any( nHeight ),
Any( rLabel ),
@@ -200,8 +200,8 @@ rtl::OUString InsertCheckBox( OptimizerDialog& rOptimizerDialog, const OUString&
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
Reference< XCheckBox > xCheckBox( rOptimizerDialog.insertCheckBox( rControlName, aNames, aValues ) );
if ( xItemListener.is() )
@@ -228,7 +228,7 @@ rtl::OUString InsertFormattedField( OptimizerDialog& rOptimizerDialog, const OUS
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( fEffectiveMax ),
Any( fEffectiveMin ),
Any( sal_True ),
@@ -243,8 +243,8 @@ rtl::OUString InsertFormattedField( OptimizerDialog& rOptimizerDialog, const OUS
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
Reference< XTextComponent > xTextComponent( rOptimizerDialog.insertFormattedField( rControlName, aNames, aValues ), UNO_QUERY_THROW );
if ( xTextListener.is() )
@@ -275,7 +275,7 @@ rtl::OUString InsertComboBox( OptimizerDialog& rOptimizerDialog, const OUString&
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( sal_True ),
Any( bEnabled ),
Any( nHeight ),
@@ -289,8 +289,8 @@ rtl::OUString InsertComboBox( OptimizerDialog& rOptimizerDialog, const OUString&
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
Reference< XTextComponent > xTextComponent( rOptimizerDialog.insertComboBox( rControlName, aNames, aValues ), UNO_QUERY_THROW );
if ( xTextListener.is() )
@@ -313,7 +313,7 @@ rtl::OUString InsertRadioButton( OptimizerDialog& rOptimizerDialog, const rtl::O
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( nHeight ),
Any( rLabel ),
Any( bMultiLine ),
@@ -325,8 +325,8 @@ rtl::OUString InsertRadioButton( OptimizerDialog& rOptimizerDialog, const rtl::O
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
Reference< XRadioButton > xRadioButton( rOptimizerDialog.insertRadioButton( rControlName, aNames, aValues ) );
if ( xItemListener.is() )
@@ -353,7 +353,7 @@ rtl::OUString InsertListBox( OptimizerDialog& rOptimizerDialog, const OUString&
TKGet( TK_TabIndex ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( sal_True ),
Any( bEnabled ),
Any( nHeight ),
@@ -368,8 +368,8 @@ rtl::OUString InsertListBox( OptimizerDialog& rOptimizerDialog, const OUString&
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
Reference< XListBox > xListBox( rOptimizerDialog.insertListBox( rControlName, aNames, aValues ) );
if ( xListBox.is() )
@@ -381,10 +381,10 @@ rtl::OUString InsertListBox( OptimizerDialog& rOptimizerDialog, const OUString&
void OptimizerDialog::InitNavigationBar()
{
- sal_Int32 nCancelPosX = OD_DIALOG_WIDTH - BUTTON_WIDTH - 6;
- sal_Int32 nFinishPosX = nCancelPosX - 6 - BUTTON_WIDTH;
- sal_Int32 nNextPosX = nFinishPosX - 6 - BUTTON_WIDTH;
- sal_Int32 nBackPosX = nNextPosX - 3 - BUTTON_WIDTH;
+ sal_Int32 nCancelPosX = OD_DIALOG_WIDTH - BUTTON_WIDTH - 6;
+ sal_Int32 nFinishPosX = nCancelPosX - 6 - BUTTON_WIDTH;
+ sal_Int32 nNextPosX = nFinishPosX - 6 - BUTTON_WIDTH;
+ sal_Int32 nBackPosX = nNextPosX - 3 - BUTTON_WIDTH;
InsertSeparator( *this, TKGet( TK_lnNavSep1 ), 0, 0, DIALOG_HEIGHT - 26, OD_DIALOG_WIDTH, 1 );
InsertSeparator( *this, TKGet( TK_lnNavSep2 ), 1, 85, 0, 1, BUTTON_POS_Y - 6 );
@@ -406,7 +406,7 @@ void OptimizerDialog::UpdateControlStatesPage0()
short nSelectedItem = -1;
Sequence< OUString > aItemList;
const std::vector< OptimizerSettings >& rList( GetOptimizerSettings() );
- if ( rList.size() > 1 ) // the first session in the list is the actual one -> skipping first one
+ if ( rList.size() > 1 ) // the first session in the list is the actual one -> skipping first one
{
aItemList.realloc( rList.size() - 1 );
for ( i = 1; i < rList.size(); i++ )
@@ -425,7 +425,7 @@ void OptimizerDialog::UpdateControlStatesPage0()
{
aSelectedItems.realloc( 1 );
aSelectedItems[ 0 ] = nSelectedItem;
- if ( nSelectedItem > 2 ) // only allowing to delete custom themes, the first can|t be deleted
+ if ( nSelectedItem > 2 ) // only allowing to delete custom themes, the first can|t be deleted
bRemoveButtonEnabled = sal_True;
}
setControlProperty( TKGet( TK_ListBox0Pg0 ), TKGet( TK_StringItemList ), Any( aItemList ) );
@@ -630,7 +630,7 @@ void OptimizerDialog::UpdateControlStatesPage4()
sal_uInt32 w;
Sequence< OUString > aItemList;
const std::vector< OptimizerSettings >& rList( GetOptimizerSettings() );
- if ( rList.size() > 1 ) // the first session in the list is the actual one -> skipping first one
+ if ( rList.size() > 1 ) // the first session in the list is the actual one -> skipping first one
{
aItemList.realloc( rList.size() - 1 );
for ( w = 1; w < rList.size(); w++ )
@@ -640,7 +640,7 @@ void OptimizerDialog::UpdateControlStatesPage4()
// now check if it is sensible to enable the combo box
sal_Bool bSaveSettingsEnabled = sal_True;
- if ( rList.size() > 1 ) // the first session in the list is the actual one -> skipping first one
+ if ( rList.size() > 1 ) // the first session in the list is the actual one -> skipping first one
{
for ( w = 1; w < rList.size(); w++ )
{
@@ -769,7 +769,7 @@ void OptimizerDialog::UpdateControlStatesPage4()
sal_Int32 i = aStr.indexOf( aImagePlaceholder, 0 );
if ( i >= 0 )
aStr = aStr.replaceAt( i, aImagePlaceholder.getLength(), OUString::valueOf( nGraphics ) );
-
+
sal_Int32 j = aStr.indexOf( aQualityPlaceholder, 0 );
if ( j >= 0 )
aStr = aStr.replaceAt( j, aQualityPlaceholder.getLength(), OUString::valueOf( nJPEGQuality ) );
@@ -846,7 +846,7 @@ void OptimizerDialog::UpdateControlStatesPage4()
void OptimizerDialog::InitPage4()
{
- { // creating progress bar:
+ { // creating progress bar:
OUString pNames[] = {
TKGet( TK_Height ),
TKGet( TK_Name ),
@@ -857,7 +857,7 @@ void OptimizerDialog::InitPage4()
TKGet( TK_ProgressValueMin ),
TKGet( TK_Width ) };
- Any pValues[] = {
+ Any pValues[] = {
Any( (sal_Int32)12 ),
Any( TKGet( STR_SAVE_AS ) ),
Any( (sal_Int32)( PAGE_POS_X + 6 ) ),
@@ -869,8 +869,8 @@ void OptimizerDialog::InitPage4()
sal_Int32 nCount = sizeof( pNames ) / sizeof( OUString );
- Sequence< rtl::OUString > aNames( pNames, nCount );
- Sequence< Any > aValues( pValues, nCount );
+ Sequence< rtl::OUString > aNames( pNames, nCount );
+ Sequence< Any > aValues( pValues, nCount );
Reference< XMultiPropertySet > xMultiPropertySet( insertControlModel( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.UnoControlProgressBarModel" ) ),
TKGet( TK_Progress ), aNames, aValues ), UNO_QUERY );
@@ -879,7 +879,7 @@ void OptimizerDialog::InitPage4()
Sequence< OUString > aItemList;
std::vector< rtl::OUString > aControlList;
aControlList.push_back( InsertFixedText( *this, TKGet( TK_FixedText0Pg4 ), getString( STR_SUMMARY_TITLE ), PAGE_POS_X, PAGE_POS_Y, PAGE_WIDTH, 8, sal_False, sal_True, mnTabIndex++ ) );
-// aControlList.push_back( InsertSeparator( *this, TKGet( TK_Separator0Pg4 ), 0, PAGE_POS_X + 6, PAGE_POS_Y + 90, PAGE_WIDTH - 12, 1 ) );
+// aControlList.push_back( InsertSeparator( *this, TKGet( TK_Separator0Pg4 ), 0, PAGE_POS_X + 6, PAGE_POS_Y + 90, PAGE_WIDTH - 12, 1 ) );
aControlList.push_back( InsertFixedText( *this, TKGet( TK_FixedText4Pg4 ), OUString(), PAGE_POS_X + 6, PAGE_POS_Y + 14, PAGE_WIDTH - 12, 8, sal_False, sal_False, mnTabIndex++ ) );
aControlList.push_back( InsertFixedText( *this, TKGet( TK_FixedText5Pg4 ), OUString(), PAGE_POS_X + 6, PAGE_POS_Y + 22, PAGE_WIDTH - 12, 8, sal_False, sal_False, mnTabIndex++ ) );
diff --git a/sdext/source/minimizer/pagecollector.cxx b/sdext/source/minimizer/pagecollector.cxx
index e9f733533475..33522109549c 100644
--- a/sdext/source/minimizer/pagecollector.cxx
+++ b/sdext/source/minimizer/pagecollector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/minimizer/pagecollector.hxx b/sdext/source/minimizer/pagecollector.hxx
index 3387dd92213f..60c0292ee111 100644
--- a/sdext/source/minimizer/pagecollector.hxx
+++ b/sdext/source/minimizer/pagecollector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/minimizer/pppoptimizer.cxx b/sdext/source/minimizer/pppoptimizer.cxx
index 4fac633ca4dc..9fbd5233a5f9 100644
--- a/sdext/source/minimizer/pppoptimizer.cxx
+++ b/sdext/source/minimizer/pppoptimizer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -107,7 +107,7 @@ Reference< com::sun::star::frame::XDispatch > SAL_CALL PPPOptimizer::queryDispat
Reference < XDispatch > xRet;
if ( aURL.Protocol.compareToAscii( "vnd.com.sun.star.comp.PPPOptimizer:" ) == 0 )
{
-// if ( aURL.Path.compareToAscii( "Function1" ) == 0 )
+// if ( aURL.Path.compareToAscii( "Function1" ) == 0 )
xRet = this;
}
return xRet;
diff --git a/sdext/source/minimizer/pppoptimizer.hxx b/sdext/source/minimizer/pppoptimizer.hxx
index eaa4502e8d5f..871e8c886cd9 100644
--- a/sdext/source/minimizer/pppoptimizer.hxx
+++ b/sdext/source/minimizer/pppoptimizer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ class PPPOptimizer : public cppu::WeakImplHelper4<
public:
PPPOptimizer( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxMSF );
- virtual ~PPPOptimizer();
+ virtual ~PPPOptimizer();
// XInitialization
void SAL_CALL initialize( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments )
diff --git a/sdext/source/minimizer/pppoptimizerdialog.cxx b/sdext/source/minimizer/pppoptimizerdialog.cxx
index 5729eda5c4dc..776c2d9d32e6 100644
--- a/sdext/source/minimizer/pppoptimizerdialog.cxx
+++ b/sdext/source/minimizer/pppoptimizerdialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,8 +29,8 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sdext.hxx"
-#include "pppoptimizerdialog.hxx"
-#include "optimizerdialog.hxx"
+#include "pppoptimizerdialog.hxx"
+#include "optimizerdialog.hxx"
using namespace ::rtl;
using namespace ::com::sun::star::uno;
@@ -65,7 +65,7 @@ PPPOptimizerDialog::~PPPOptimizerDialog()
void SAL_CALL PPPOptimizerDialog::initialize( const Sequence< Any >& aArguments )
throw ( Exception, RuntimeException )
{
- if( aArguments.getLength() != 1 )
+ if( aArguments.getLength() != 1 )
throw IllegalArgumentException();
aArguments[ 0 ] >>= mxFrame;
@@ -83,13 +83,13 @@ OUString SAL_CALL PPPOptimizerDialog::getImplementationName()
return PPPOptimizerDialog_getImplementationName();
}
-sal_Bool SAL_CALL PPPOptimizerDialog::supportsService( const OUString& ServiceName )
+sal_Bool SAL_CALL PPPOptimizerDialog::supportsService( const OUString& ServiceName )
throw ( RuntimeException )
{
return ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SERVICE_NAME ) );
}
-Sequence< OUString > SAL_CALL PPPOptimizerDialog::getSupportedServiceNames()
+Sequence< OUString > SAL_CALL PPPOptimizerDialog::getSupportedServiceNames()
throw (RuntimeException)
{
return PPPOptimizerDialog_getSupportedServiceNames();
@@ -161,7 +161,7 @@ void SAL_CALL PPPOptimizerDialog::dispatch( const URL& rURL,
sBuf.append( rtl::OUString::valueOf( nFileSizeDest >> 10 ) );
sBuf.append( rtl::OUString::createFromAscii( "KB." ) );
OUString sResult( sBuf.makeStringAndClear() );
-// mpOptimizerDialog->showMessageBox( sResult, sResult, sal_False );
+// mpOptimizerDialog->showMessageBox( sResult, sResult, sal_False );
}
delete mpOptimizerDialog, mpOptimizerDialog = NULL;
}
@@ -201,7 +201,7 @@ OUString PPPOptimizerDialog_getImplementationName()
return OUString ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.comp.SunPresentationMinimizerImp" ) );
}
-Sequence< OUString > PPPOptimizerDialog_getSupportedServiceNames()
+Sequence< OUString > PPPOptimizerDialog_getSupportedServiceNames()
{
Sequence < OUString > aRet(1);
OUString* pArray = aRet.getArray();
@@ -209,7 +209,7 @@ Sequence< OUString > PPPOptimizerDialog_getSupportedServiceNames()
return aRet;
}
-Reference< XInterface > PPPOptimizerDialog_createInstance( const Reference< XComponentContext > & rSMgr)
+Reference< XInterface > PPPOptimizerDialog_createInstance( const Reference< XComponentContext > & rSMgr)
throw( Exception )
{
return (cppu::OWeakObject*) new PPPOptimizerDialog( rSMgr );
diff --git a/sdext/source/minimizer/pppoptimizerdialog.hxx b/sdext/source/minimizer/pppoptimizerdialog.hxx
index 712db18cb7ee..76fad42b6a9d 100644
--- a/sdext/source/minimizer/pppoptimizerdialog.hxx
+++ b/sdext/source/minimizer/pppoptimizerdialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@
// ----------------------
class OptimizerDialog;
-class PPPOptimizerDialog : public ::cppu::WeakImplHelper4<
+class PPPOptimizerDialog : public ::cppu::WeakImplHelper4<
com::sun::star::lang::XInitialization,
com::sun::star::lang::XServiceInfo,
com::sun::star::frame::XDispatchProvider,
@@ -58,12 +58,12 @@ class PPPOptimizerDialog : public ::cppu::WeakImplHelper4<
com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxFrame;
com::sun::star::uno::Reference< com::sun::star::frame::XController > mxController;
- OptimizerDialog* mpOptimizerDialog;
+ OptimizerDialog* mpOptimizerDialog;
public:
PPPOptimizerDialog( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxMSF );
- virtual ~PPPOptimizerDialog();
+ virtual ~PPPOptimizerDialog();
// XInitialization
void SAL_CALL initialize( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments )
diff --git a/sdext/source/minimizer/pppoptimizertoken.cxx b/sdext/source/minimizer/pppoptimizertoken.cxx
index ef80a02798ab..e213a065d489 100644
--- a/sdext/source/minimizer/pppoptimizertoken.cxx
+++ b/sdext/source/minimizer/pppoptimizertoken.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,261 +51,261 @@ static ::osl::Mutex& getHashMapMutex()
struct TokenTable
{
- const char* pS;
- PPPOptimizerTokenEnum pE;
+ const char* pS;
+ PPPOptimizerTokenEnum pE;
};
-
-static const TokenTable pTokenTableArray[] =
+
+static const TokenTable pTokenTableArray[] =
{
- { "rdmNavi", TK_rdmNavi },
- { "lnNavSep1", TK_lnNavSep1 },
- { "lnNavSep2", TK_lnNavSep2 },
- { "btnNavHelp", TK_btnNavHelp },
- { "btnNavBack", TK_btnNavBack },
- { "btnNavNext", TK_btnNavNext },
- { "btnNavFinish", TK_btnNavFinish },
- { "btnNavCancel", TK_btnNavCancel },
+ { "rdmNavi", TK_rdmNavi },
+ { "lnNavSep1", TK_lnNavSep1 },
+ { "lnNavSep2", TK_lnNavSep2 },
+ { "btnNavHelp", TK_btnNavHelp },
+ { "btnNavBack", TK_btnNavBack },
+ { "btnNavNext", TK_btnNavNext },
+ { "btnNavFinish", TK_btnNavFinish },
+ { "btnNavCancel", TK_btnNavCancel },
- { "FixedText0Pg0", TK_FixedText0Pg0 },
- { "FixedText1Pg0", TK_FixedText1Pg0 },
- { "Separator1Pg0", TK_Separator1Pg0 },
- { "FixedText2Pg0", TK_FixedText2Pg0 },
- { "ListBox0Pg0", TK_ListBox0Pg0 },
- { "Button0Pg0", TK_Button0Pg0 },
- { "RadioButton0Pg1", TK_RadioButton0Pg1 },
- { "RadioButton1Pg1", TK_RadioButton1Pg1 },
- { "FixedText0Pg1", TK_FixedText0Pg1 },
- { "CheckBox1Pg1", TK_CheckBox1Pg1 },
- { "FixedText1Pg1", TK_FixedText1Pg1 },
- { "FixedText2Pg1", TK_FixedText2Pg1 },
- { "FormattedField0Pg1", TK_FormattedField0Pg1 },
- { "ComboBox0Pg1", TK_ComboBox0Pg1 },
- { "CheckBox2Pg1", TK_CheckBox2Pg1 },
- { "FixedText0Pg2", TK_FixedText0Pg2 },
- { "FixedText1Pg2", TK_FixedText1Pg2 },
- { "CheckBox0Pg2", TK_CheckBox0Pg2 },
- { "RadioButton0Pg2", TK_RadioButton0Pg2 },
- { "RadioButton1Pg2", TK_RadioButton1Pg2 },
- { "FixedText0Pg3", TK_FixedText0Pg3 },
- { "CheckBox0Pg3", TK_CheckBox0Pg3 },
- { "FixedText1Pg3", TK_FixedText1Pg3 },
- { "CheckBox1Pg3", TK_CheckBox1Pg3 },
- { "FixedText2Pg3", TK_FixedText2Pg3 },
- { "CheckBox2Pg3", TK_CheckBox2Pg3 },
- { "CheckBox3Pg3", TK_CheckBox3Pg3 },
- { "ListBox0Pg3", TK_ListBox0Pg3 },
- { "Separator0Pg4", TK_Separator0Pg4 },
- { "RadioButton0Pg4", TK_RadioButton0Pg4 },
- { "RadioButton1Pg4", TK_RadioButton1Pg4 },
- { "Separator1Pg4", TK_Separator1Pg4 },
- { "FixedText0Pg4", TK_FixedText0Pg4 },
- { "FixedText1Pg4", TK_FixedText1Pg4 },
- { "FixedText2Pg4", TK_FixedText2Pg4 },
- { "FixedText3Pg4", TK_FixedText3Pg4 },
- { "FixedText4Pg4", TK_FixedText4Pg4 },
- { "FixedText5Pg4", TK_FixedText5Pg4 },
- { "FixedText6Pg4", TK_FixedText6Pg4 },
- { "FixedText7Pg4", TK_FixedText7Pg4 },
- { "FixedText8Pg4", TK_FixedText8Pg4 },
- { "CheckBox1Pg4", TK_CheckBox1Pg4 },
- { "ComboBox0Pg4", TK_ComboBox0Pg4 },
+ { "FixedText0Pg0", TK_FixedText0Pg0 },
+ { "FixedText1Pg0", TK_FixedText1Pg0 },
+ { "Separator1Pg0", TK_Separator1Pg0 },
+ { "FixedText2Pg0", TK_FixedText2Pg0 },
+ { "ListBox0Pg0", TK_ListBox0Pg0 },
+ { "Button0Pg0", TK_Button0Pg0 },
+ { "RadioButton0Pg1", TK_RadioButton0Pg1 },
+ { "RadioButton1Pg1", TK_RadioButton1Pg1 },
+ { "FixedText0Pg1", TK_FixedText0Pg1 },
+ { "CheckBox1Pg1", TK_CheckBox1Pg1 },
+ { "FixedText1Pg1", TK_FixedText1Pg1 },
+ { "FixedText2Pg1", TK_FixedText2Pg1 },
+ { "FormattedField0Pg1", TK_FormattedField0Pg1 },
+ { "ComboBox0Pg1", TK_ComboBox0Pg1 },
+ { "CheckBox2Pg1", TK_CheckBox2Pg1 },
+ { "FixedText0Pg2", TK_FixedText0Pg2 },
+ { "FixedText1Pg2", TK_FixedText1Pg2 },
+ { "CheckBox0Pg2", TK_CheckBox0Pg2 },
+ { "RadioButton0Pg2", TK_RadioButton0Pg2 },
+ { "RadioButton1Pg2", TK_RadioButton1Pg2 },
+ { "FixedText0Pg3", TK_FixedText0Pg3 },
+ { "CheckBox0Pg3", TK_CheckBox0Pg3 },
+ { "FixedText1Pg3", TK_FixedText1Pg3 },
+ { "CheckBox1Pg3", TK_CheckBox1Pg3 },
+ { "FixedText2Pg3", TK_FixedText2Pg3 },
+ { "CheckBox2Pg3", TK_CheckBox2Pg3 },
+ { "CheckBox3Pg3", TK_CheckBox3Pg3 },
+ { "ListBox0Pg3", TK_ListBox0Pg3 },
+ { "Separator0Pg4", TK_Separator0Pg4 },
+ { "RadioButton0Pg4", TK_RadioButton0Pg4 },
+ { "RadioButton1Pg4", TK_RadioButton1Pg4 },
+ { "Separator1Pg4", TK_Separator1Pg4 },
+ { "FixedText0Pg4", TK_FixedText0Pg4 },
+ { "FixedText1Pg4", TK_FixedText1Pg4 },
+ { "FixedText2Pg4", TK_FixedText2Pg4 },
+ { "FixedText3Pg4", TK_FixedText3Pg4 },
+ { "FixedText4Pg4", TK_FixedText4Pg4 },
+ { "FixedText5Pg4", TK_FixedText5Pg4 },
+ { "FixedText6Pg4", TK_FixedText6Pg4 },
+ { "FixedText7Pg4", TK_FixedText7Pg4 },
+ { "FixedText8Pg4", TK_FixedText8Pg4 },
+ { "CheckBox1Pg4", TK_CheckBox1Pg4 },
+ { "ComboBox0Pg4", TK_ComboBox0Pg4 },
- { "_blank", TK__blank },
- { "_self", TK__self },
- { "Activated", TK_Activated },
- { "Align", TK_Align },
- { "Alpha", TK_Alpha },
- { "Animated", TK_Animated },
- { "Background", TK_Background },
- { "BitmapPath", TK_BitmapPath },
- { "Border", TK_Border },
- { "Closeable", TK_Closeable },
- { "ColorMode", TK_ColorMode },
- { "Complete", TK_Complete },
- { "Compression", TK_Compression },
- { "CurrentItemID", TK_CurrentItemID },
- { "DefaultButton", TK_DefaultButton },
- { "DocumentService", TK_DocumentService },
- { "Dropdown", TK_Dropdown },
- { "EffectiveValue", TK_EffectiveValue },
- { "EffectiveMin", TK_EffectiveMin },
- { "EffectiveMax", TK_EffectiveMax },
- { "Enabled", TK_Enabled },
- { "Extensions", TK_Extensions },
+ { "_blank", TK__blank },
+ { "_self", TK__self },
+ { "Activated", TK_Activated },
+ { "Align", TK_Align },
+ { "Alpha", TK_Alpha },
+ { "Animated", TK_Animated },
+ { "Background", TK_Background },
+ { "BitmapPath", TK_BitmapPath },
+ { "Border", TK_Border },
+ { "Closeable", TK_Closeable },
+ { "ColorMode", TK_ColorMode },
+ { "Complete", TK_Complete },
+ { "Compression", TK_Compression },
+ { "CurrentItemID", TK_CurrentItemID },
+ { "DefaultButton", TK_DefaultButton },
+ { "DocumentService", TK_DocumentService },
+ { "Dropdown", TK_Dropdown },
+ { "EffectiveValue", TK_EffectiveValue },
+ { "EffectiveMin", TK_EffectiveMin },
+ { "EffectiveMax", TK_EffectiveMax },
+ { "Enabled", TK_Enabled },
+ { "Extensions", TK_Extensions },
{ "FileSizeDestination",TK_FileSizeDestination },
- { "FileSizeSource", TK_FileSizeSource },
- { "FillBitmap", TK_FillBitmap },
+ { "FileSizeSource", TK_FileSizeSource },
+ { "FillBitmap", TK_FillBitmap },
{ "FillBitmapLogicalSize",TK_FillBitmapLogicalSize },
- { "FillBitmapMode", TK_FillBitmapMode },
- { "FillBitmapSizeX", TK_FillBitmapSizeX },
- { "FillBitmapSizeY", TK_FillBitmapSizeY },
- { "FillBitmapURL", TK_FillBitmapURL },
- { "FillStyle", TK_FillStyle },
- { "FilterData", TK_FilterData },
- { "FilterName", TK_FilterName },
- { "Flags", TK_Flags },
- { "FontDescriptor", TK_FontDescriptor },
- { "Graphic", TK_Graphic },
- { "GraphicCrop", TK_GraphicCrop },
- { "GraphicCropLogic", TK_GraphicCropLogic },
- { "GraphicURL", TK_GraphicURL },
- { "GraphicStreamURL", TK_GraphicStreamURL },
- { "Height", TK_Height },
- { "HelpFile", TK_HelpFile },
- { "Hidden", TK_Hidden },
- { "ID", TK_ID },
- { "ImageURL", TK_ImageURL },
- { "InformationDialog", TK_InformationDialog },
- { "InputStream", TK_InputStream },
- { "Interlaced", TK_Interlaced },
- { "IsInternal", TK_IsInternal },
- { "Label", TK_Label },
- { "LineCount", TK_LineCount },
- { "LogicalHeight", TK_LogicalHeight },
- { "LogicalWidth", TK_LogicalWidth },
- { "LogicalSize", TK_LogicalSize },
- { "MimeType", TK_MimeType },
- { "Moveable", TK_Moveable },
- { "MultiLine", TK_MultiLine },
- { "MultiSelection", TK_MultiSelection },
- { "Name", TK_Name },
- { "Orientation", TK_Orientation },
- { "OutputStream", TK_OutputStream },
- { "PixelHeight", TK_PixelHeight },
- { "PixelWidth", TK_PixelWidth },
- { "PositionX", TK_PositionX },
- { "PositionY", TK_PositionY },
- { "Progress", TK_Progress },
- { "ProgressValue", TK_ProgressValue },
- { "ProgressValueMax", TK_ProgressValueMax },
- { "ProgressValueMin", TK_ProgressValueMin },
- { "PushButtonType", TK_PushButtonType },
- { "Quality", TK_Quality },
- { "ReadOnly", TK_ReadOnly },
- { "Repeat", TK_Repeat },
- { "ScaleImage", TK_ScaleImage },
- { "SelectedItems", TK_SelectedItems },
- { "Settings", TK_Settings },
- { "Size100thMM", TK_Size100thMM },
- { "SizePixel", TK_SizePixel },
- { "Spin", TK_Spin },
- { "Step", TK_Step },
- { "State", TK_State },
- { "StatusDispatcher", TK_StatusDispatcher },
- { "StringItemList", TK_StringItemList },
- { "Strings", TK_Strings },
- { "TabIndex", TK_TabIndex },
- { "Template", TK_Template },
- { "Text", TK_Text },
- { "Title", TK_Title },
- { "Transparent", TK_Transparent },
- { "Type", TK_Type },
- { "UIName", TK_UIName },
- { "Value", TK_Value },
- { "Width", TK_Width },
- { "ZOrder", TK_ZOrder },
+ { "FillBitmapMode", TK_FillBitmapMode },
+ { "FillBitmapSizeX", TK_FillBitmapSizeX },
+ { "FillBitmapSizeY", TK_FillBitmapSizeY },
+ { "FillBitmapURL", TK_FillBitmapURL },
+ { "FillStyle", TK_FillStyle },
+ { "FilterData", TK_FilterData },
+ { "FilterName", TK_FilterName },
+ { "Flags", TK_Flags },
+ { "FontDescriptor", TK_FontDescriptor },
+ { "Graphic", TK_Graphic },
+ { "GraphicCrop", TK_GraphicCrop },
+ { "GraphicCropLogic", TK_GraphicCropLogic },
+ { "GraphicURL", TK_GraphicURL },
+ { "GraphicStreamURL", TK_GraphicStreamURL },
+ { "Height", TK_Height },
+ { "HelpFile", TK_HelpFile },
+ { "Hidden", TK_Hidden },
+ { "ID", TK_ID },
+ { "ImageURL", TK_ImageURL },
+ { "InformationDialog", TK_InformationDialog },
+ { "InputStream", TK_InputStream },
+ { "Interlaced", TK_Interlaced },
+ { "IsInternal", TK_IsInternal },
+ { "Label", TK_Label },
+ { "LineCount", TK_LineCount },
+ { "LogicalHeight", TK_LogicalHeight },
+ { "LogicalWidth", TK_LogicalWidth },
+ { "LogicalSize", TK_LogicalSize },
+ { "MimeType", TK_MimeType },
+ { "Moveable", TK_Moveable },
+ { "MultiLine", TK_MultiLine },
+ { "MultiSelection", TK_MultiSelection },
+ { "Name", TK_Name },
+ { "Orientation", TK_Orientation },
+ { "OutputStream", TK_OutputStream },
+ { "PixelHeight", TK_PixelHeight },
+ { "PixelWidth", TK_PixelWidth },
+ { "PositionX", TK_PositionX },
+ { "PositionY", TK_PositionY },
+ { "Progress", TK_Progress },
+ { "ProgressValue", TK_ProgressValue },
+ { "ProgressValueMax", TK_ProgressValueMax },
+ { "ProgressValueMin", TK_ProgressValueMin },
+ { "PushButtonType", TK_PushButtonType },
+ { "Quality", TK_Quality },
+ { "ReadOnly", TK_ReadOnly },
+ { "Repeat", TK_Repeat },
+ { "ScaleImage", TK_ScaleImage },
+ { "SelectedItems", TK_SelectedItems },
+ { "Settings", TK_Settings },
+ { "Size100thMM", TK_Size100thMM },
+ { "SizePixel", TK_SizePixel },
+ { "Spin", TK_Spin },
+ { "Step", TK_Step },
+ { "State", TK_State },
+ { "StatusDispatcher", TK_StatusDispatcher },
+ { "StringItemList", TK_StringItemList },
+ { "Strings", TK_Strings },
+ { "TabIndex", TK_TabIndex },
+ { "Template", TK_Template },
+ { "Text", TK_Text },
+ { "Title", TK_Title },
+ { "Transparent", TK_Transparent },
+ { "Type", TK_Type },
+ { "UIName", TK_UIName },
+ { "Value", TK_Value },
+ { "Width", TK_Width },
+ { "ZOrder", TK_ZOrder },
- { "LastUsedSettings", TK_LastUsedSettings },
- { "Settings/Templates", TK_Settings_Templates },
+ { "LastUsedSettings", TK_LastUsedSettings },
+ { "Settings/Templates", TK_Settings_Templates },
{ "Settings/Templates/",TK_Settings_Templates_ },
- { "JPEGCompression", TK_JPEGCompression },
- { "JPEGQuality", TK_JPEGQuality },
- { "RemoveCropArea", TK_RemoveCropArea },
- { "ImageResolution", TK_ImageResolution },
+ { "JPEGCompression", TK_JPEGCompression },
+ { "JPEGQuality", TK_JPEGQuality },
+ { "RemoveCropArea", TK_RemoveCropArea },
+ { "ImageResolution", TK_ImageResolution },
{ "EmbedLinkedGraphics",TK_EmbedLinkedGraphics },
- { "OLEOptimization", TK_OLEOptimization },
+ { "OLEOptimization", TK_OLEOptimization },
{ "OLEOptimizationType",TK_OLEOptimizationType },
{ "DeleteUnusedMasterPages", TK_DeleteUnusedMasterPages },
{ "DeleteHiddenSlides", TK_DeleteHiddenSlides },
- { "DeleteNotesPages", TK_DeleteNotesPages },
- { "CustomShowName", TK_CustomShowName },
- { "SaveAs", TK_SaveAs },
- { "SaveAsURL", TK_SaveAsURL },
- { "OpenNewDocument", TK_OpenNewDocument },
- { "EstimatedFileSize", TK_EstimatedFileSize },
+ { "DeleteNotesPages", TK_DeleteNotesPages },
+ { "CustomShowName", TK_CustomShowName },
+ { "SaveAs", TK_SaveAs },
+ { "SaveAsURL", TK_SaveAsURL },
+ { "OpenNewDocument", TK_OpenNewDocument },
+ { "EstimatedFileSize", TK_EstimatedFileSize },
- { "Status", TK_Status },
- { "Pages", TK_Pages },
- { "CurrentPage", TK_CurrentPage },
- { "GraphicObjects", TK_GraphicObjects },
+ { "Status", TK_Status },
+ { "Pages", TK_Pages },
+ { "CurrentPage", TK_CurrentPage },
+ { "GraphicObjects", TK_GraphicObjects },
{ "CurrentGraphicObject",TK_CurrentGraphicObject },
- { "OLEObjects", TK_OLEObjects },
- { "CurrentOLEObject", TK_CurrentOLEObject },
+ { "OLEObjects", TK_OLEObjects },
+ { "CurrentOLEObject", TK_CurrentOLEObject },
{ "STR_SUN_OPTIMIZATION_WIZARD2",STR_SUN_OPTIMIZATION_WIZARD2 },
- { "STR_STEPS", STR_STEPS },
- { "STR_HELP", STR_HELP },
- { "STR_BACK", STR_BACK },
- { "STR_NEXT", STR_NEXT },
- { "STR_FINISH", STR_FINISH },
- { "STR_CANCEL", STR_CANCEL },
- { "STR_INTRODUCTION", STR_INTRODUCTION },
- { "STR_INTRODUCTION_T", STR_INTRODUCTION_T },
- { "STR_CHOSE_SETTINGS", STR_CHOSE_SETTINGS },
- { "STR_REMOVE", STR_REMOVE },
- { "STR_GRAPHIC_OPTIMIZATION", STR_GRAPHIC_OPTIMIZATION },
- { "STR_IMAGE_OPTIMIZATION", STR_IMAGE_OPTIMIZATION },
- { "STR_LOSSLESS_COMPRESSION", STR_LOSSLESS_COMPRESSION },
- { "STR_JPEG_COMPRESSION", STR_JPEG_COMPRESSION },
- { "STR_QUALITY", STR_QUALITY },
- { "STR_REMOVE_CROP_AREA", STR_REMOVE_CROP_AREA },
- { "STR_IMAGE_RESOLUTION", STR_IMAGE_RESOLUTION },
- { "STR_IMAGE_RESOLUTION_0", STR_IMAGE_RESOLUTION_0 },
- { "STR_IMAGE_RESOLUTION_1", STR_IMAGE_RESOLUTION_1 },
- { "STR_IMAGE_RESOLUTION_2", STR_IMAGE_RESOLUTION_2 },
- { "STR_IMAGE_RESOLUTION_3", STR_IMAGE_RESOLUTION_3 },
- { "STR_EMBED_LINKED_GRAPHICS", STR_EMBED_LINKED_GRAPHICS },
- { "STR_OLE_OBJECTS", STR_OLE_OBJECTS },
- { "STR_OLE_OPTIMIZATION", STR_OLE_OPTIMIZATION },
- { "STR_OLE_REPLACE", STR_OLE_REPLACE },
- { "STR_ALL_OLE_OBJECTS", STR_ALL_OLE_OBJECTS },
- { "STR_ALIEN_OLE_OBJECTS_ONLY", STR_ALIEN_OLE_OBJECTS_ONLY },
- { "STR__OLE_OBJECTS_DESC", STR_OLE_OBJECTS_DESC },
- { "STR_NO_OLE_OBJECTS_DESC", STR_NO_OLE_OBJECTS_DESC },
- { "STR_SLIDES", STR_SLIDES },
- { "STR_CHOOSE_SLIDES", STR_CHOOSE_SLIDES },
- { "STR_MASTER_PAGES", STR_MASTER_PAGES },
- { "STR_DELETE_MASTER_PAGES", STR_DELETE_MASTER_PAGES },
- { "STR_DELETE_NOTES_PAGES", STR_DELETE_NOTES_PAGES },
- { "STR_DELETE_HIDDEN_SLIDES", STR_DELETE_HIDDEN_SLIDES },
- { "STR_CUSTOM_SHOW", STR_CUSTOM_SHOW },
- { "STR_SUMMARY", STR_SUMMARY },
- { "STR_SUMMARY_TITLE", STR_SUMMARY_TITLE },
- { "STR_PROGRESS", STR_PROGRESS },
- { "STR_OBJECTS_OPTIMIZED", STR_OBJECTS_OPTIMIZED },
- { "STR_APPLY_TO_CURRENT", STR_APPLY_TO_CURRENT },
- { "STR_AUTOMATICALLY_OPEN", STR_AUTOMATICALLY_OPEN },
- { "STR_SAVE_SETTINGS", STR_SAVE_SETTINGS },
- { "STR_SAVE_AS", STR_SAVE_AS },
- { "STR_DELETE_SLIDES", STR_DELETE_SLIDES },
- { "STR_OPTIMIZE_IMAGES", STR_OPTIMIZE_IMAGES },
- { "STR_CREATE_REPLACEMENT", STR_CREATE_REPLACEMENT },
- { "STR_CURRENT_FILESIZE", STR_CURRENT_FILESIZE },
- { "STR_ESTIMATED_FILESIZE", STR_ESTIMATED_FILESIZE },
- { "STR_MB", STR_MB },
- { "MY_SETTINGS", STR_MY_SETTINGS },
- { "STR_DEFAULT_SESSION", STR_DEFAULT_SESSION },
- { "STR_MODIFY_WARNING", STR_MODIFY_WARNING },
- { "STR_YES", STR_YES },
- { "STR_OK", STR_OK },
- { "STR_INFO_1", STR_INFO_1 },
- { "STR_INFO_2", STR_INFO_2 },
- { "STR_INFO_3", STR_INFO_3 },
- { "STR_INFO_4", STR_INFO_4 },
+ { "STR_STEPS", STR_STEPS },
+ { "STR_HELP", STR_HELP },
+ { "STR_BACK", STR_BACK },
+ { "STR_NEXT", STR_NEXT },
+ { "STR_FINISH", STR_FINISH },
+ { "STR_CANCEL", STR_CANCEL },
+ { "STR_INTRODUCTION", STR_INTRODUCTION },
+ { "STR_INTRODUCTION_T", STR_INTRODUCTION_T },
+ { "STR_CHOSE_SETTINGS", STR_CHOSE_SETTINGS },
+ { "STR_REMOVE", STR_REMOVE },
+ { "STR_GRAPHIC_OPTIMIZATION", STR_GRAPHIC_OPTIMIZATION },
+ { "STR_IMAGE_OPTIMIZATION", STR_IMAGE_OPTIMIZATION },
+ { "STR_LOSSLESS_COMPRESSION", STR_LOSSLESS_COMPRESSION },
+ { "STR_JPEG_COMPRESSION", STR_JPEG_COMPRESSION },
+ { "STR_QUALITY", STR_QUALITY },
+ { "STR_REMOVE_CROP_AREA", STR_REMOVE_CROP_AREA },
+ { "STR_IMAGE_RESOLUTION", STR_IMAGE_RESOLUTION },
+ { "STR_IMAGE_RESOLUTION_0", STR_IMAGE_RESOLUTION_0 },
+ { "STR_IMAGE_RESOLUTION_1", STR_IMAGE_RESOLUTION_1 },
+ { "STR_IMAGE_RESOLUTION_2", STR_IMAGE_RESOLUTION_2 },
+ { "STR_IMAGE_RESOLUTION_3", STR_IMAGE_RESOLUTION_3 },
+ { "STR_EMBED_LINKED_GRAPHICS", STR_EMBED_LINKED_GRAPHICS },
+ { "STR_OLE_OBJECTS", STR_OLE_OBJECTS },
+ { "STR_OLE_OPTIMIZATION", STR_OLE_OPTIMIZATION },
+ { "STR_OLE_REPLACE", STR_OLE_REPLACE },
+ { "STR_ALL_OLE_OBJECTS", STR_ALL_OLE_OBJECTS },
+ { "STR_ALIEN_OLE_OBJECTS_ONLY", STR_ALIEN_OLE_OBJECTS_ONLY },
+ { "STR__OLE_OBJECTS_DESC", STR_OLE_OBJECTS_DESC },
+ { "STR_NO_OLE_OBJECTS_DESC", STR_NO_OLE_OBJECTS_DESC },
+ { "STR_SLIDES", STR_SLIDES },
+ { "STR_CHOOSE_SLIDES", STR_CHOOSE_SLIDES },
+ { "STR_MASTER_PAGES", STR_MASTER_PAGES },
+ { "STR_DELETE_MASTER_PAGES", STR_DELETE_MASTER_PAGES },
+ { "STR_DELETE_NOTES_PAGES", STR_DELETE_NOTES_PAGES },
+ { "STR_DELETE_HIDDEN_SLIDES", STR_DELETE_HIDDEN_SLIDES },
+ { "STR_CUSTOM_SHOW", STR_CUSTOM_SHOW },
+ { "STR_SUMMARY", STR_SUMMARY },
+ { "STR_SUMMARY_TITLE", STR_SUMMARY_TITLE },
+ { "STR_PROGRESS", STR_PROGRESS },
+ { "STR_OBJECTS_OPTIMIZED", STR_OBJECTS_OPTIMIZED },
+ { "STR_APPLY_TO_CURRENT", STR_APPLY_TO_CURRENT },
+ { "STR_AUTOMATICALLY_OPEN", STR_AUTOMATICALLY_OPEN },
+ { "STR_SAVE_SETTINGS", STR_SAVE_SETTINGS },
+ { "STR_SAVE_AS", STR_SAVE_AS },
+ { "STR_DELETE_SLIDES", STR_DELETE_SLIDES },
+ { "STR_OPTIMIZE_IMAGES", STR_OPTIMIZE_IMAGES },
+ { "STR_CREATE_REPLACEMENT", STR_CREATE_REPLACEMENT },
+ { "STR_CURRENT_FILESIZE", STR_CURRENT_FILESIZE },
+ { "STR_ESTIMATED_FILESIZE", STR_ESTIMATED_FILESIZE },
+ { "STR_MB", STR_MB },
+ { "MY_SETTINGS", STR_MY_SETTINGS },
+ { "STR_DEFAULT_SESSION", STR_DEFAULT_SESSION },
+ { "STR_MODIFY_WARNING", STR_MODIFY_WARNING },
+ { "STR_YES", STR_YES },
+ { "STR_OK", STR_OK },
+ { "STR_INFO_1", STR_INFO_1 },
+ { "STR_INFO_2", STR_INFO_2 },
+ { "STR_INFO_3", STR_INFO_3 },
+ { "STR_INFO_4", STR_INFO_4 },
{ "STR_DUPLICATING_PRESENTATION",STR_DUPLICATING_PRESENTATION },
- { "STR_DELETING_SLIDES", STR_DELETING_SLIDES },
- { "STR_OPTIMIZING_GRAPHICS", STR_OPTIMIZING_GRAPHICS },
+ { "STR_DELETING_SLIDES", STR_DELETING_SLIDES },
+ { "STR_OPTIMIZING_GRAPHICS", STR_OPTIMIZING_GRAPHICS },
{ "STR_CREATING_OLE_REPLACEMENTS",STR_CREATING_OLE_REPLACEMENTS },
- { "STR_FileSizeSeparator", STR_FILESIZESEPARATOR },
-
- { "Last", TK_Last },
- { "NotFound", TK_NotFound }
+ { "STR_FileSizeSeparator", STR_FILESIZESEPARATOR },
+
+ { "Last", TK_Last },
+ { "NotFound", TK_NotFound }
};
PPPOptimizerTokenEnum TKGet( const rtl::OUString& rToken )
{
if ( !pHashMap )
- { // init hash map
+ { // init hash map
::osl::MutexGuard aGuard( getHashMapMutex() );
if ( !pHashMap )
{
diff --git a/sdext/source/minimizer/pppoptimizertoken.hxx b/sdext/source/minimizer/pppoptimizertoken.hxx
index 19ae973c7572..3a4cf2f93637 100644
--- a/sdext/source/minimizer/pppoptimizertoken.hxx
+++ b/sdext/source/minimizer/pppoptimizertoken.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -274,7 +274,7 @@ enum PPPOptimizerTokenEnum
STR_CREATING_OLE_REPLACEMENTS,
STR_FILESIZESEPARATOR,
- TK_Last,
+ TK_Last,
TK_NotFound
};
diff --git a/sdext/source/minimizer/pppoptimizeruno.cxx b/sdext/source/minimizer/pppoptimizeruno.cxx
index 1bb4d182bb2b..a905ccb037d9 100644
--- a/sdext/source/minimizer/pppoptimizeruno.cxx
+++ b/sdext/source/minimizer/pppoptimizeruno.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ extern "C"
}
// -------------------------------------------------------------------------
-
+
sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistryKey )
{
if (pRegistryKey)
@@ -68,7 +68,7 @@ extern "C"
for ( nPos = rSNL1.getLength(); nPos--; )
xNewKey->createKey( pArray1[nPos] );
- xNewKey = reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( PPPOptimizerDialog_getImplementationName() );
+ xNewKey = reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( PPPOptimizerDialog_getImplementationName() );
xNewKey = xNewKey->createKey( OUString::createFromAscii( "/UNO/SERVICES" ) );
const Sequence< OUString > & rSNL2 = PPPOptimizerDialog_getSupportedServiceNames();
const OUString * pArray2 = rSNL2.getConstArray();
@@ -99,7 +99,7 @@ extern "C"
{
xFactory = createSingleComponentFactory(
PPPOptimizer_createInstance,
- OUString::createFromAscii( pImplName ),
+ OUString::createFromAscii( pImplName ),
PPPOptimizer_getSupportedServiceNames() );
}
diff --git a/sdext/source/minimizer/registry/data/org/openoffice/Office/extension/SunPresentationMinimizer.xcu b/sdext/source/minimizer/registry/data/org/openoffice/Office/extension/SunPresentationMinimizer.xcu
index 08324953d32c..0cf414778f8a 100644
--- a/sdext/source/minimizer/registry/data/org/openoffice/Office/extension/SunPresentationMinimizer.xcu
+++ b/sdext/source/minimizer/registry/data/org/openoffice/Office/extension/SunPresentationMinimizer.xcu
@@ -53,7 +53,7 @@
</prop>
<prop oor:name="STR_LOSSLESS_COMPRESSION">
<value xml:lang="en-US">~Lossless compression</value>
- </prop>
+ </prop>
<prop oor:name="STR_JPEG_COMPRESSION">
<value xml:lang="en-US">~JPEG compression</value>
</prop>
@@ -80,7 +80,7 @@
</prop>
<prop oor:name="STR_EMBED_LINKED_GRAPHICS">
<value xml:lang="en-US">~Break links to external graphics</value>
- </prop>
+ </prop>
<prop oor:name="STR_OLE_OBJECTS">
<value xml:lang="en-US">OLE Objects</value>
</prop>
@@ -105,7 +105,7 @@ The current presentation contains OLE objects.</value>
<value xml:lang="en-US">Object Linking and Embedding (OLE) is a technology that allows embedding and linking to documents and other objects.
The current presentation contains no OLE objects.</value>
- </prop>
+ </prop>
<prop oor:name="STR_SLIDES">
<value xml:lang="en-US">Slides</value>
</prop>
@@ -180,13 +180,13 @@ The current presentation contains no OLE objects.</value>
</prop>
<prop oor:name="STR_YES">
<value xml:lang="en-US">~Yes</value>
- </prop>
+ </prop>
<prop oor:name="STR_OK">
<value xml:lang="en-US">OK</value>
- </prop>
+ </prop>
<prop oor:name="STR_INFO_1">
<value xml:lang="en-US">The @MINIMIZEREXTENSIONPRODUCTNAME@ has successfully updated the presentation '%TITLE'. The file size has changed from %OLDFILESIZE MB to %NEWFILESIZE MB.</value>
- </prop>
+ </prop>
<prop oor:name="STR_INFO_2">
<value xml:lang="en-US">The @MINIMIZEREXTENSIONPRODUCTNAME@ has successfully updated the presentation '%TITLE'. The file size has changed from %OLDFILESIZE MB to approximated %NEWFILESIZE MB.</value>
</prop>
@@ -230,7 +230,7 @@ The current presentation contains no OLE objects.</value>
</prop>
<prop oor:name="EmbedLinkedGraphics">
<value>true</value>
- </prop>
+ </prop>
<prop oor:name="OLEOptimization">
<value>true</value>
</prop>
@@ -251,11 +251,11 @@ The current presentation contains no OLE objects.</value>
</prop>
<prop oor:name="OpenNewDocument">
<value>true</value>
- </prop>
+ </prop>
</node>
<node oor:name="Settings">
<node oor:name="Templates">
- <node oor:name="template1" oor:op="replace">
+ <node oor:name="template1" oor:op="replace">
<prop oor:name="Name">
<value xml:lang="en-US">Screen optimized (smallest file size)</value>
</prop>
@@ -294,7 +294,7 @@ The current presentation contains no OLE objects.</value>
</prop>
<prop oor:name="OpenNewDocument">
<value>true</value>
- </prop>
+ </prop>
</node>
<node oor:name="template2" oor:op="replace">
<prop oor:name="Name">
@@ -314,7 +314,7 @@ The current presentation contains no OLE objects.</value>
</prop>
<prop oor:name="EmbedLinkedGraphics">
<value>true</value>
- </prop>
+ </prop>
<prop oor:name="OLEOptimization">
<value>true</value>
</prop>
@@ -335,7 +335,7 @@ The current presentation contains no OLE objects.</value>
</prop>
<prop oor:name="OpenNewDocument">
<value>true</value>
- </prop>
+ </prop>
</node>
<node oor:name="template3" oor:op="replace">
<prop oor:name="Name">
@@ -355,7 +355,7 @@ The current presentation contains no OLE objects.</value>
</prop>
<prop oor:name="EmbedLinkedGraphics">
<value>true</value>
- </prop>
+ </prop>
<prop oor:name="OLEOptimization">
<value>true</value>
</prop>
@@ -376,8 +376,8 @@ The current presentation contains no OLE objects.</value>
</prop>
<prop oor:name="OpenNewDocument">
<value>true</value>
- </prop>
- </node>
+ </prop>
+ </node>
</node>
</node>
</oor:component-data>
diff --git a/sdext/source/minimizer/unodialog.cxx b/sdext/source/minimizer/unodialog.cxx
index e5f6fdceeed3..554a3537710c 100644
--- a/sdext/source/minimizer/unodialog.cxx
+++ b/sdext/source/minimizer/unodialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,7 +77,7 @@ UnoDialog::UnoDialog( const Reference< XComponentContext > &rxMSF, Reference< XF
Reference< XFrame > xFrame( mxController->getFrame() );
Reference< XWindow > xContainerWindow( xFrame->getContainerWindow() );
mxWindowPeer = Reference< XWindowPeer >( xContainerWindow, UNO_QUERY_THROW );
- createWindowPeer( mxWindowPeer );
+ createWindowPeer( mxWindowPeer );
}
// -----------------------------------------------------------------------------
@@ -113,7 +113,7 @@ Reference< XWindowPeer > UnoDialog::createWindowPeer( Reference< XWindowPeer > x
xParentPeer = xToolkit->getDesktopWindow();
mxReschedule = Reference< XReschedule >( xToolkit, UNO_QUERY );
mxControl->createPeer( xToolkit, xParentPeer );
-// xWindowPeer = xControl.getPeer();
+// xWindowPeer = xControl.getPeer();
return mxControl->getPeer();
}
diff --git a/sdext/source/minimizer/unodialog.hxx b/sdext/source/minimizer/unodialog.hxx
index 78e3fd0f409c..39c366474301 100644
--- a/sdext/source/minimizer/unodialog.hxx
+++ b/sdext/source/minimizer/unodialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -119,28 +119,28 @@ public :
void enableControl( const rtl::OUString& rControlName );
void disableControl( const rtl::OUString& rControlName );
- com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxMSF;
- com::sun::star::uno::Reference< com::sun::star::frame::XController > mxController;
- com::sun::star::uno::Reference< com::sun::star::awt::XReschedule > mxReschedule;
+ com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxMSF;
+ com::sun::star::uno::Reference< com::sun::star::frame::XController > mxController;
+ com::sun::star::uno::Reference< com::sun::star::awt::XReschedule > mxReschedule;
- com::sun::star::uno::Reference< com::sun::star::uno::XInterface > mxDialogModel;
- com::sun::star::uno::Reference< com::sun::star::beans::XMultiPropertySet > mxDialogModelMultiPropertySet;
- com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > mxDialogModelPropertySet;
- com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > mxDialogModelMSF;
- com::sun::star::uno::Reference< com::sun::star::container::XNameContainer > mxDialogModelNameContainer;
- com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > mxDialogModelNameAccess;
+ com::sun::star::uno::Reference< com::sun::star::uno::XInterface > mxDialogModel;
+ com::sun::star::uno::Reference< com::sun::star::beans::XMultiPropertySet > mxDialogModelMultiPropertySet;
+ com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > mxDialogModelPropertySet;
+ com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > mxDialogModelMSF;
+ com::sun::star::uno::Reference< com::sun::star::container::XNameContainer > mxDialogModelNameContainer;
+ com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > mxDialogModelNameAccess;
- com::sun::star::uno::Reference< com::sun::star::awt::XControlModel > mxControlModel;
+ com::sun::star::uno::Reference< com::sun::star::awt::XControlModel > mxControlModel;
- com::sun::star::uno::Reference< com::sun::star::awt::XDialog > mxDialog;
- com::sun::star::uno::Reference< com::sun::star::awt::XControl > mxControl;
- com::sun::star::uno::Reference< com::sun::star::awt::XWindowPeer > mxWindowPeer;
+ com::sun::star::uno::Reference< com::sun::star::awt::XDialog > mxDialog;
+ com::sun::star::uno::Reference< com::sun::star::awt::XControl > mxControl;
+ com::sun::star::uno::Reference< com::sun::star::awt::XWindowPeer > mxWindowPeer;
- com::sun::star::uno::Reference< com::sun::star::awt::XControlContainer > mxDialogControlContainer;
- com::sun::star::uno::Reference< com::sun::star::lang::XComponent > mxDialogComponent;
- com::sun::star::uno::Reference< com::sun::star::awt::XWindow > mxDialogWindow;
+ com::sun::star::uno::Reference< com::sun::star::awt::XControlContainer > mxDialogControlContainer;
+ com::sun::star::uno::Reference< com::sun::star::lang::XComponent > mxDialogComponent;
+ com::sun::star::uno::Reference< com::sun::star::awt::XWindow > mxDialogWindow;
- sal_Bool mbStatus;
+ sal_Bool mbStatus;
};
#endif // UNODIALOG_HXX
diff --git a/sdext/source/pdfimport/config/description.xml b/sdext/source/pdfimport/config/description.xml
index 0b4031a5a63f..b7340a1f27b5 100755
--- a/sdext/source/pdfimport/config/description.xml
+++ b/sdext/source/pdfimport/config/description.xml
@@ -21,7 +21,7 @@
<display-name>
<name lang="en-US">PDF Import</name>
</display-name>
-
+
<icon>
<default xlink:href="images/extension_32.png" />
<high-contrast xlink:href="images/extension_32_h.png" />
diff --git a/sdext/source/pdfimport/config/pdf_import_filter.xcu b/sdext/source/pdfimport/config/pdf_import_filter.xcu
index 89ad84b7a6cf..f10a0022fa82 100644
--- a/sdext/source/pdfimport/config/pdf_import_filter.xcu
+++ b/sdext/source/pdfimport/config/pdf_import_filter.xcu
@@ -9,7 +9,7 @@
<value>0</value>
</prop>
<prop oor:name="FilterService" oor:type="xs:string">
- <!-- stacks filters for XML import. see UserData below.
+ <!-- stacks filters for XML import. see UserData below.
the _Writer_ in the impl name is a misnomer -->
<value>com.sun.star.comp.Writer.XmlFilterAdaptor</value>
</prop>
@@ -38,7 +38,7 @@
<value>0</value>
</prop>
<prop oor:name="FilterService" oor:type="xs:string">
- <!-- stacks filters for XML import. see UserData below.
+ <!-- stacks filters for XML import. see UserData below.
the _Writer_ in the impl name is a misnomer -->
<value>com.sun.star.comp.Writer.XmlFilterAdaptor</value>
</prop>
@@ -67,7 +67,7 @@
<value>0</value>
</prop>
<prop oor:name="FilterService" oor:type="xs:string">
- <!-- stacks filters for XML import. see UserData below.
+ <!-- stacks filters for XML import. see UserData below.
the _Writer_ in the impl name is a misnomer -->
<value>com.sun.star.comp.Writer.XmlFilterAdaptor</value>
</prop>
diff --git a/sdext/source/pdfimport/filterdet.cxx b/sdext/source/pdfimport/filterdet.cxx
index bfd237d85570..265ccbcad0e1 100644
--- a/sdext/source/pdfimport/filterdet.cxx
+++ b/sdext/source/pdfimport/filterdet.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -104,7 +104,7 @@ namespace {
{}
void initControls( const uno::Reference<awt::XControlContainer>& xControls,
- const rtl::OUString& rFilename )
+ const rtl::OUString& rFilename )
{
m_xListbox.set(xControls->getControl(
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ListBox" ))),
@@ -710,7 +710,7 @@ uno::Reference< io::XStream > getAdditionalStream( const rtl::OUString&
xEmbed.clear();
break;
}
-
+
rtl::OUString aDocName( rInPDFFileURL.copy( rInPDFFileURL.lastIndexOf( sal_Unicode('/') )+1 ) );
bool bEntered = false;
diff --git a/sdext/source/pdfimport/filterdet.hxx b/sdext/source/pdfimport/filterdet.hxx
index 3532b0180333..2ca62d139ed2 100644
--- a/sdext/source/pdfimport/filterdet.hxx
+++ b/sdext/source/pdfimport/filterdet.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,22 +42,22 @@
namespace pdfi
{
-typedef ::cppu::WeakComponentImplHelper1<
+typedef ::cppu::WeakComponentImplHelper1<
com::sun::star::document::XExtendedFilterDetection > PDFDetectorBase;
class PDFDetector : private cppu::BaseMutex,
public PDFDetectorBase
{
private:
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > m_xContext;
public:
- explicit PDFDetector( const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext >& xContext );
+ explicit PDFDetector( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XComponentContext >& xContext );
// XExtendedFilterDetection
- virtual rtl::OUString SAL_CALL detect( com::sun::star::uno::Sequence<
+ virtual rtl::OUString SAL_CALL detect( com::sun::star::uno::Sequence<
com::sun::star::beans::PropertyValue >& io_rDescriptor )
throw (com::sun::star::uno::RuntimeException);
};
diff --git a/sdext/source/pdfimport/inc/contentsink.hxx b/sdext/source/pdfimport/inc/contentsink.hxx
index 204eb7499a50..5919028e1858 100644
--- a/sdext/source/pdfimport/inc/contentsink.hxx
+++ b/sdext/source/pdfimport/inc/contentsink.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
#include <boost/shared_ptr.hpp>
namespace rtl { class OUString; }
-namespace com { namespace sun { namespace star {
+namespace com { namespace sun { namespace star {
namespace rendering
{
class XPolyPolygon2D;
@@ -47,7 +47,7 @@ namespace geometry
struct RealRectangle2D;
struct RealPoint2D;
struct RealSize2D;
-}
+}
namespace beans
{
struct PropertyValue;
@@ -86,7 +86,7 @@ namespace pdfi
bool isUnderline;
bool isOutline;
double size; // device pixel
-
+
bool operator==(const FontAttributes& rFont) const
{
return familyName == rFont.familyName &&
@@ -106,18 +106,18 @@ namespace pdfi
struct ContentSink
{
virtual ~ContentSink() {}
-
+
/// Total number of pages for upcoming document
virtual void setPageNum( sal_Int32 nNumPages ) = 0;
virtual void startPage( const ::com::sun::star::geometry::RealSize2D& rSize ) = 0;
virtual void endPage() = 0;
-
+
virtual void hyperLink( const ::com::sun::star::geometry::RealRectangle2D& rBounds,
const ::rtl::OUString& rURI ) = 0;
-
+
virtual void pushState() = 0;
virtual void popState() = 0;
-
+
virtual void setFlatness( double ) = 0;
virtual void setTransformation( const ::com::sun::star::geometry::AffineMatrix2D& rMatrix ) = 0;
virtual void setLineDash( const ::com::sun::star::uno::Sequence<double>& dashes,
@@ -131,27 +131,27 @@ namespace pdfi
virtual void setBlendMode( sal_Int8 blendMode ) = 0;
virtual void setFont( const FontAttributes& rFont ) = 0;
virtual void setTextRenderMode( sal_Int32 ) = 0;
+
-
- virtual void strokePath( const ::com::sun::star::uno::Reference<
+ virtual void strokePath( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XPolyPolygon2D >& rPath ) = 0;
- virtual void fillPath( const ::com::sun::star::uno::Reference<
+ virtual void fillPath( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XPolyPolygon2D >& rPath ) = 0;
- virtual void eoFillPath( const ::com::sun::star::uno::Reference<
+ virtual void eoFillPath( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XPolyPolygon2D >& rPath ) = 0;
-
- virtual void intersectClip(const ::com::sun::star::uno::Reference<
+
+ virtual void intersectClip(const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XPolyPolygon2D >& rPath) = 0;
- virtual void intersectEoClip(const ::com::sun::star::uno::Reference<
+ virtual void intersectEoClip(const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XPolyPolygon2D >& rPath) = 0;
-
+
virtual void drawGlyphs( const rtl::OUString& rGlyphs,
const ::com::sun::star::geometry::RealRectangle2D& rRect,
const ::com::sun::star::geometry::Matrix2D& rFontMatrix ) = 0;
/// issued when a sequence of associated glyphs is drawn
virtual void endText() = 0;
-
+
/// draws given bitmap as a mask (using current fill color)
virtual void drawMask(const ::com::sun::star::uno::Sequence<
::com::sun::star::beans::PropertyValue>& xBitmap,
@@ -159,13 +159,13 @@ namespace pdfi
/// Given image must already be color-mapped and normalized to sRGB.
virtual void drawImage(const ::com::sun::star::uno::Sequence<
::com::sun::star::beans::PropertyValue>& xBitmap ) = 0;
- /** Given image must already be color-mapped and normalized to sRGB.
+ /** Given image must already be color-mapped and normalized to sRGB.
maskColors must contain two sequences of color components
*/
virtual void drawColorMaskedImage(const ::com::sun::star::uno::Sequence<
::com::sun::star::beans::PropertyValue>& xBitmap,
- const ::com::sun::star::uno::Sequence<
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Any>& xMaskColors ) = 0;
virtual void drawMaskedImage(const ::com::sun::star::uno::Sequence<
::com::sun::star::beans::PropertyValue>& xBitmap,
diff --git a/sdext/source/pdfimport/inc/odfemitter.hxx b/sdext/source/pdfimport/inc/odfemitter.hxx
index d7e1c27097b7..f8c958e31c5e 100644
--- a/sdext/source/pdfimport/inc/odfemitter.hxx
+++ b/sdext/source/pdfimport/inc/odfemitter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,14 +32,14 @@
#include "xmlemitter.hxx"
#include <com/sun/star/uno/Reference.hxx>
-namespace com { namespace sun { namespace star { namespace io
+namespace com { namespace sun { namespace star { namespace io
{
class XOutputStream;
} } } }
namespace pdfi
{
- XmlEmitterSharedPtr createOdfEmitter( const com::sun::star::uno::Reference<
+ XmlEmitterSharedPtr createOdfEmitter( const com::sun::star::uno::Reference<
com::sun::star::io::XOutputStream>& xOut );
}
diff --git a/sdext/source/pdfimport/inc/pdfihelper.hxx b/sdext/source/pdfimport/inc/pdfihelper.hxx
index 50e982557d01..ce0ddf50c7ad 100644
--- a/sdext/source/pdfimport/inc/pdfihelper.hxx
+++ b/sdext/source/pdfimport/inc/pdfihelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,8 +49,8 @@ namespace com { namespace sun { namespace star { namespace task
namespace pdfi
{
- typedef std::hash_map< rtl::OUString, rtl::OUString, rtl::OUStringHash > PropertyMap;
- typedef sal_Int32 ImageId;
+ typedef std::hash_map< rtl::OUString, rtl::OUString, rtl::OUStringHash > PropertyMap;
+ typedef sal_Int32 ImageId;
/// What to do with a polygon. values can be ORed together
enum PolygonAction { PATH_STROKE=1, PATH_FILL=2, PATH_EOFILL=4 };
@@ -64,14 +64,14 @@ namespace pdfi
fPix *= px2mm;
return fPix;
}
-
+
inline double convmm2Px( double fMM )
{
const double mm2px = PDFI_OUTDEV_RESOLUTION/25.4;
fMM *= mm2px;
return fMM;
}
-
+
inline double convPx2mmPrec2( double fPix )
{
return rtl_math_round( convPx2mm( fPix ), 2, rtl_math_RoundingMode_Floor );
@@ -148,12 +148,12 @@ namespace pdfi
Transformation == rRight.Transformation &&
Clip == rRight.Clip;
}
-
+
bool isRotatedOrSkewed() const
{ return Transformation.get( 0, 1 ) != 0.0 ||
Transformation.get( 1, 0 ) != 0.0; }
};
-
+
struct GraphicsContextHash
{
size_t operator()(const GraphicsContext& rGC ) const
@@ -188,7 +188,7 @@ namespace pdfi
/** retrieve password from user
*/
- bool getPassword( const ::com::sun::star::uno::Reference<
+ bool getPassword( const ::com::sun::star::uno::Reference<
::com::sun::star::task::XInteractionHandler >& xHandler,
rtl::OUString& rOutPwd,
bool bFirstTry,
diff --git a/sdext/source/pdfimport/inc/pdfparse.hxx b/sdext/source/pdfimport/inc/pdfparse.hxx
index 6dae97c309b7..76db849b6b30 100644
--- a/sdext/source/pdfimport/inc/pdfparse.hxx
+++ b/sdext/source/pdfimport/inc/pdfparse.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,15 +48,15 @@ class EmitContext
virtual unsigned int getCurPos() = 0;
virtual bool copyOrigBytes( unsigned int nOrigOffset, unsigned int nLen ) = 0;
virtual unsigned int readOrigBytes( unsigned int nOrigOffset, unsigned int nLen, void* pBuf ) = 0;
-
+
EmitContext( const PDFContainer* pTop = NULL );
virtual ~EmitContext();
-
+
// set this to deflate contained streams
bool m_bDeflate;
// set this to decrypt the PDF file
bool m_bDecrypt;
-
+
private:
friend struct PDFEntry;
EmitImplData* m_pImplData;
@@ -66,10 +66,10 @@ struct PDFEntry
{
PDFEntry() {}
virtual ~PDFEntry();
-
+
virtual bool emit( EmitContext& rWriteContext ) const = 0;
virtual PDFEntry* clone() const = 0;
-
+
protected:
EmitImplData* getEmitData( EmitContext& rContext ) const;
void setEmitData( EmitContext& rContext, EmitImplData* pNewEmitData ) const;
@@ -102,7 +102,7 @@ struct PDFName : public PDFValue
virtual ~PDFName();
virtual bool emit( EmitContext& rWriteContext ) const;
virtual PDFEntry* clone() const;
-
+
rtl::OUString getFilteredName() const;
};
@@ -115,7 +115,7 @@ struct PDFString : public PDFValue
virtual ~PDFString();
virtual bool emit( EmitContext& rWriteContext ) const;
virtual PDFEntry* clone() const;
-
+
rtl::OString getFilteredString() const;
};
@@ -145,7 +145,7 @@ struct PDFObjectRef : public PDFValue
{
unsigned int m_nNumber;
unsigned int m_nGeneration;
-
+
PDFObjectRef( unsigned int nNr, unsigned int nGen )
: PDFValue(), m_nNumber( nNr ), m_nGeneration( nGen ) {}
virtual ~PDFObjectRef();
@@ -173,7 +173,7 @@ struct PDFContainer : public PDFEntry
virtual ~PDFContainer();
virtual bool emitSubElements( EmitContext& rWriteContext ) const;
virtual void cloneSubElements( std::vector<PDFEntry*>& rNewSubElements ) const;
-
+
PDFObject* findObject( unsigned int nNumber, unsigned int nGeneration ) const;
PDFObject* findObject( PDFObjectRef* pRef ) const
{ return findObject( pRef->m_nNumber, pRef->m_nGeneration ); }
@@ -191,12 +191,12 @@ struct PDFDict : public PDFContainer
{
typedef std::hash_map<rtl::OString,PDFEntry*,rtl::OStringHash> Map;
Map m_aMap;
-
+
PDFDict() {}
virtual ~PDFDict();
virtual bool emit( EmitContext& rWriteContext ) const;
virtual PDFEntry* clone() const;
-
+
// inserting a value of NULL will remove rName and the previous value
// from the dictionary
void insertValue( const rtl::OString& rName, PDFEntry* pValue );
@@ -212,20 +212,20 @@ struct PDFStream : public PDFEntry
unsigned int m_nBeginOffset;
unsigned int m_nEndOffset; // offset of the byte after the stream
PDFDict* m_pDict;
-
+
PDFStream( unsigned int nBegin, unsigned int nEnd, PDFDict* pStreamDict )
: PDFEntry(), m_nBeginOffset( nBegin ), m_nEndOffset( nEnd ), m_pDict( pStreamDict ) {}
virtual ~PDFStream();
virtual bool emit( EmitContext& rWriteContext ) const;
virtual PDFEntry* clone() const;
-
+
unsigned int getDictLength( const PDFContainer* pObjectContainer = NULL ) const; // get contents of the "Length" entry of the dict
};
struct PDFTrailer : public PDFContainer
{
PDFDict* m_pDict;
-
+
PDFTrailer() : PDFContainer(), m_pDict( NULL ) {}
virtual ~PDFTrailer();
virtual bool emit( EmitContext& rWriteContext ) const;
@@ -241,23 +241,23 @@ struct PDFFile : public PDFContainer
public:
unsigned int m_nMajor; // PDF major
unsigned int m_nMinor; // PDF minor
-
+
PDFFile()
: PDFContainer(),
m_pData( NULL ),
m_nMajor( 0 ), m_nMinor( 0 )
{}
virtual ~PDFFile();
-
+
virtual bool emit( EmitContext& rWriteContext ) const;
virtual PDFEntry* clone() const;
-
+
bool isEncrypted() const;
// this method checks whether rPwd is compatible with
// either user or owner password and sets up decrypt data in that case
// returns true if decryption can be done
bool setupDecryptionData( const rtl::OString& rPwd ) const;
-
+
bool decrypt( const sal_uInt8* pInBuffer, sal_uInt32 nLen,
sal_uInt8* pOutBuffer,
unsigned int nObject, unsigned int nGeneration ) const;
@@ -269,16 +269,16 @@ struct PDFObject : public PDFContainer
PDFStream* m_pStream;
unsigned int m_nNumber;
unsigned int m_nGeneration;
-
+
PDFObject( unsigned int nNr, unsigned int nGen )
: m_pObject( NULL ), m_pStream( NULL ), m_nNumber( nNr ), m_nGeneration( nGen ) {}
virtual ~PDFObject();
virtual bool emit( EmitContext& rWriteContext ) const;
virtual PDFEntry* clone() const;
-
+
// writes only the contained stream, deflated if necessary
bool writeStream( EmitContext& rContext, const PDFFile* pPDFFile ) const;
-
+
private:
// returns true if stream is deflated
// fills *ppStream and *pBytes with start of stream and count of bytes
@@ -300,7 +300,7 @@ class PDFReader
public:
PDFReader() {}
~PDFReader() {}
-
+
PDFEntry* read( const char* pFileName );
PDFEntry* read( const char* pBuffer, unsigned int nLen );
};
diff --git a/sdext/source/pdfimport/inc/saxemitter.hxx b/sdext/source/pdfimport/inc/saxemitter.hxx
index c8a394ab746e..c2871f8124cc 100644
--- a/sdext/source/pdfimport/inc/saxemitter.hxx
+++ b/sdext/source/pdfimport/inc/saxemitter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ namespace sax
namespace pdfi
{
- XmlEmitterSharedPtr createSaxEmitter( const com::sun::star::uno::Reference<
+ XmlEmitterSharedPtr createSaxEmitter( const com::sun::star::uno::Reference<
com::sun::star::xml::sax::XDocumentHandler >& xDocHdl );
}
diff --git a/sdext/source/pdfimport/inc/treevisitorfactory.hxx b/sdext/source/pdfimport/inc/treevisitorfactory.hxx
index 064b23864043..fd9ad74fc5f4 100644
--- a/sdext/source/pdfimport/inc/treevisitorfactory.hxx
+++ b/sdext/source/pdfimport/inc/treevisitorfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/pdfimport/inc/wrapper.hxx b/sdext/source/pdfimport/inc/wrapper.hxx
index a7ca18574a39..119510c6c22a 100644
--- a/sdext/source/pdfimport/inc/wrapper.hxx
+++ b/sdext/source/pdfimport/inc/wrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
#include <com/sun/star/uno/Reference.hxx>
namespace rtl { class OUString; }
-namespace com { namespace sun { namespace star {
+namespace com { namespace sun { namespace star {
namespace uno {
class XComponentContext;
}
@@ -49,15 +49,15 @@ namespace pdfi
const com::sun::star::uno::Reference<
com::sun::star::task::XInteractionHandler >& xIHdl,
const rtl::OUString& rPwd,
- const com::sun::star::uno::Reference<
+ const com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext >& xContext );
- bool xpdf_ImportFromStream( const com::sun::star::uno::Reference<
+ bool xpdf_ImportFromStream( const com::sun::star::uno::Reference<
com::sun::star::io::XInputStream >& xInput,
const ContentSinkSharedPtr& rSink,
const com::sun::star::uno::Reference<
com::sun::star::task::XInteractionHandler >& xIHdl,
const rtl::OUString& rPwd,
- const com::sun::star::uno::Reference<
+ const com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext >& xContext );
}
diff --git a/sdext/source/pdfimport/inc/xmlemitter.hxx b/sdext/source/pdfimport/inc/xmlemitter.hxx
index 3700e67b8006..66a43d609656 100644
--- a/sdext/source/pdfimport/inc/xmlemitter.hxx
+++ b/sdext/source/pdfimport/inc/xmlemitter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace pdfi
{
public:
virtual ~XmlEmitter() {}
-
+
/** Open up a tag with the given properties
*/
virtual void beginTag( const char* pTag, const PropertyMap& rProperties ) = 0;
diff --git a/sdext/source/pdfimport/misc/pdfihelper.cxx b/sdext/source/pdfimport/misc/pdfihelper.cxx
index 1c888e1e6d1f..8209346b478a 100644
--- a/sdext/source/pdfimport/misc/pdfihelper.cxx
+++ b/sdext/source/pdfimport/misc/pdfihelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ rtl::OUString pdfi::unitMMString( double fMM )
rtl::OUStringBuffer aBuf( 32 );
aBuf.append( rtl_math_round( fMM, 2, rtl_math_RoundingMode_Floor ) );
aBuf.appendAscii( "mm" );
-
+
return aBuf.makeStringAndClear();
}
@@ -74,7 +74,7 @@ rtl::OUString pdfi::convertPixelToUnitString( double fPix )
rtl::OUStringBuffer aBuf( 32 );
aBuf.append( rtl_math_round( convPx2mm( fPix ), 2, rtl_math_RoundingMode_Floor ) );
aBuf.appendAscii( "mm" );
-
+
return aBuf.makeStringAndClear();
}
diff --git a/sdext/source/pdfimport/misc/pwdinteract.cxx b/sdext/source/pdfimport/misc/pwdinteract.cxx
index 6ef2a17c2875..3280beafe3d7 100644
--- a/sdext/source/pdfimport/misc/pwdinteract.cxx
+++ b/sdext/source/pdfimport/misc/pwdinteract.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/pdfimport/odf/odfemitter.cxx b/sdext/source/pdfimport/odf/odfemitter.cxx
index c2d30ac16304..665d351e6dd7 100644
--- a/sdext/source/pdfimport/odf/odfemitter.cxx
+++ b/sdext/source/pdfimport/odf/odfemitter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/pdfimport/pdfiadaptor.cxx b/sdext/source/pdfimport/pdfiadaptor.cxx
index 3b800f242396..f40e35480c5a 100644
--- a/sdext/source/pdfimport/pdfiadaptor.cxx
+++ b/sdext/source/pdfimport/pdfiadaptor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -168,7 +168,7 @@ sal_Bool SAL_CALL PDFIHybridAdaptor::filter( const uno::Sequence< beans::Propert
catch(uno::Exception& e)
{
(void)e;
- OSL_TRACE( "subfilter exception: %s\n",
+ OSL_TRACE( "subfilter exception: %s\n",
OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
}
@@ -182,7 +182,7 @@ sal_Bool SAL_CALL PDFIHybridAdaptor::filter( const uno::Sequence< beans::Propert
{
nPwPos = aFilterData.getLength();
aFilterData.realloc( nPwPos+1 );
- aFilterData[nPwPos].Name = rtl::OUString(
+ aFilterData[nPwPos].Name = rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM( "Password" ) );
}
aFilterData[nPwPos].Value <<= aPwd;
@@ -201,7 +201,7 @@ sal_Bool SAL_CALL PDFIHybridAdaptor::filter( const uno::Sequence< beans::Propert
else
OSL_TRACE( "PDFIAdaptor::filter: no model set\n" );
#endif
-
+
return bRet;
}
@@ -238,12 +238,12 @@ bool PDFIRawAdaptor::parse( const uno::Reference<io::XInputStream>& xInput
const uno::Reference<task::XInteractionHandler>& xIHdl,
const rtl::OUString& rPwd,
const uno::Reference<task::XStatusIndicator>& xStatus,
- const XmlEmitterSharedPtr& rEmitter,
+ const XmlEmitterSharedPtr& rEmitter,
const rtl::OUString& rURL )
{
// container for metaformat
boost::shared_ptr<PDFIProcessor> pSink(
- new PDFIProcessor(xStatus, m_xContext));
+ new PDFIProcessor(xStatus, m_xContext));
// TEMP! TEMP!
if( m_bEnableToplevelText )
@@ -274,7 +274,7 @@ bool PDFIRawAdaptor::odfConvert( const rtl::OUString& r
// tell input stream that it is no longer needed
xOutput->closeOutput();
-
+
return bSuccess;
}
@@ -313,8 +313,8 @@ sal_Bool SAL_CALL PDFIRawAdaptor::importer( const uno::Sequence< beans::Property
// tell input stream that it is no longer needed
xInput->closeInput();
- xInput.clear();
-
+ xInput.clear();
+
return bSuccess;
}
diff --git a/sdext/source/pdfimport/pdfiadaptor.hxx b/sdext/source/pdfimport/pdfiadaptor.hxx
index d9d6d71356f7..2b0b0b915be1 100644
--- a/sdext/source/pdfimport/pdfiadaptor.hxx
+++ b/sdext/source/pdfimport/pdfiadaptor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@
namespace pdfi
{
- typedef ::cppu::WeakComponentImplHelper2<
+ typedef ::cppu::WeakComponentImplHelper2<
com::sun::star::document::XFilter,
com::sun::star::document::XImporter > PDFIHybridAdaptorBase;
@@ -56,13 +56,13 @@ namespace pdfi
public PDFIHybridAdaptorBase
{
private:
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > m_xContext;
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::frame::XModel > m_xModel;
public:
- explicit PDFIHybridAdaptor( const ::com::sun::star::uno::Reference<
+ explicit PDFIHybridAdaptor( const ::com::sun::star::uno::Reference<
::com::sun::star::uno::XComponentContext >& xContext );
// XFilter
@@ -75,7 +75,7 @@ namespace pdfi
};
- typedef ::cppu::WeakComponentImplHelper2<
+ typedef ::cppu::WeakComponentImplHelper2<
com::sun::star::xml::XImportFilter,
com::sun::star::document::XImporter > PDFIAdaptorBase;
@@ -85,9 +85,9 @@ namespace pdfi
public PDFIAdaptorBase
{
private:
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > m_xContext;
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::frame::XModel > m_xModel;
TreeVisitorFactorySharedPtr m_pVisitorFactory;
bool m_bEnableToplevelText;
@@ -96,11 +96,11 @@ namespace pdfi
const com::sun::star::uno::Reference<com::sun::star::task::XInteractionHandler>& xIHdl,
const rtl::OUString& rPwd,
const com::sun::star::uno::Reference<com::sun::star::task::XStatusIndicator>& xStatus,
- const XmlEmitterSharedPtr& rEmitter,
+ const XmlEmitterSharedPtr& rEmitter,
const rtl::OUString& rURL );
-
+
public:
- explicit PDFIRawAdaptor( const ::com::sun::star::uno::Reference<
+ explicit PDFIRawAdaptor( const ::com::sun::star::uno::Reference<
::com::sun::star::uno::XComponentContext >& xContext );
/** Set factory object used to create the tree visitors
@@ -114,7 +114,7 @@ namespace pdfi
void enableToplevelText() { m_bEnableToplevelText=true; }
/** Export pdf document to ODG
-
+
@param xOutput
Stream to write the flat xml file to
@@ -128,7 +128,7 @@ namespace pdfi
// XImportFilter
virtual sal_Bool SAL_CALL importer( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rSourceData,
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler >& rHdl,
- const com::sun::star::uno::Sequence< rtl::OUString >& rUserData ) throw( com::sun::star::uno::RuntimeException );
+ const com::sun::star::uno::Sequence< rtl::OUString >& rUserData ) throw( com::sun::star::uno::RuntimeException );
// XImporter
virtual void SAL_CALL setTargetDocument( const com::sun::star::uno::Reference< com::sun::star::lang::XComponent >& xDocument )
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx
index c41e3acfb902..51bf6a1b7348 100644
--- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx
+++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ struct EmitImplData
XRefTable m_aXRefTable;
// container of all indirect objects (usually a PDFFile*)
const PDFContainer* m_pObjectContainer;
-
+
// returns true if the xref table was updated
bool insertXref( unsigned int nObject, unsigned int nGeneration, unsigned int nOffset )
{
@@ -79,7 +79,7 @@ struct EmitImplData
}
return false;
}
-
+
EmitImplData( const PDFContainer* pTopContainer ) :
m_pObjectContainer( pTopContainer )
{}
@@ -212,7 +212,7 @@ OString PDFString::getFilteredString() const
{
int nLen = m_aString.getLength();
OStringBuffer aBuf( nLen );
-
+
const sal_Char* pStr = m_aString.getStr();
if( *pStr == '(' )
{
@@ -296,7 +296,7 @@ OString PDFString::getFilteredString() const
aBuf.append( rResult );
}
}
-
+
return aBuf.makeStringAndClear();
}
@@ -308,7 +308,7 @@ bool PDFNumber::emit( EmitContext& rWriteContext ) const
{
rtl::OStringBuffer aBuf( 32 );
aBuf.append( ' ' );
-
+
double fValue = m_fValue;
bool bNeg = false;
int nPrecision = 5;
@@ -348,7 +348,7 @@ bool PDFNumber::emit( EmitContext& rWriteContext ) const
nBound /= 10;
}
}
-
+
return rWriteContext.write( aBuf.getStr(), aBuf.getLength() );
}
@@ -485,7 +485,7 @@ void PDFDict::insertValue( const OString& rName, PDFEntry* pValue )
{
if( ! pValue )
eraseValue( rName );
-
+
std::hash_map<OString,PDFEntry*,OStringHash>::iterator it = m_aMap.find( rName );
if( it == m_aMap.end() )
{
@@ -648,7 +648,7 @@ bool PDFObject::getDeflatedStream( char** ppStream, unsigned int* pBytes, const
pFilter = dynamic_cast<PDFName*>(pArray->m_aSubElements.front());
}
}
-
+
// is the (first) filter FlateDecode ?
if( pFilter && pFilter->m_aName.equals( "FlateDecode" ) )
{
@@ -692,7 +692,7 @@ static void unzipToBuffer( const char* pBegin, unsigned int nLen,
aZStr.zfree = ( free_func )0;
aZStr.opaque = ( voidpf )0;
inflateInit(&aZStr);
-
+
const unsigned int buf_increment_size = 16384;
*pOutBuf = (sal_uInt8*)rtl_reallocateMemory( *pOutBuf, buf_increment_size );
@@ -755,11 +755,11 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const
{
if( ! rWriteContext.write( "\n", 1 ) )
return false;
-
+
EmitImplData* pEData = getEmitData( rWriteContext );
if( pEData )
pEData->insertXref( m_nNumber, m_nGeneration, rWriteContext.getCurPos() );
-
+
OStringBuffer aBuf( 32 );
aBuf.append( sal_Int32( m_nNumber ) );
aBuf.append( ' ' );
@@ -767,7 +767,7 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const
aBuf.append( " obj\n" );
if( ! rWriteContext.write( aBuf.getStr(), aBuf.getLength() ) )
return false;
-
+
if( rWriteContext.m_bDeflate && pEData )
{
char* pStream = NULL;
@@ -944,9 +944,9 @@ struct PDFFileImplData
OString m_aDocID;
rtlCipher m_aCipher;
rtlDigest m_aDigest;
-
+
sal_uInt8 m_aDecryptionKey[ENCRYPTION_KEY_LEN+5]; // maximum handled key length
-
+
PDFFileImplData() :
m_bIsEncrypted( false ),
m_bStandardHandler( false ),
@@ -961,7 +961,7 @@ struct PDFFileImplData
rtl_zeroMemory( m_aUEntry, sizeof( m_aUEntry ) );
rtl_zeroMemory( m_aDecryptionKey, sizeof( m_aDecryptionKey ) );
}
-
+
~PDFFileImplData()
{
if( m_aCipher )
@@ -988,10 +988,10 @@ bool PDFFile::decrypt( const sal_uInt8* pInBuffer, sal_uInt32 nLen, sal_uInt8* p
{
if( ! isEncrypted() )
return false;
-
+
if( ! m_pData->m_aCipher )
m_pData->m_aCipher = rtl_cipher_createARCFOUR( rtl_Cipher_ModeStream );
-
+
// modify encryption key
sal_uInt32 i = m_pData->m_nKeyLength;
m_pData->m_aDecryptionKey[i++] = sal_uInt8(nObject&0xff);
@@ -999,11 +999,11 @@ bool PDFFile::decrypt( const sal_uInt8* pInBuffer, sal_uInt32 nLen, sal_uInt8* p
m_pData->m_aDecryptionKey[i++] = sal_uInt8((nObject>>16)&0xff);
m_pData->m_aDecryptionKey[i++] = sal_uInt8(nGeneration&0xff);
m_pData->m_aDecryptionKey[i++] = sal_uInt8((nGeneration>>8)&0xff);
-
+
sal_uInt8 aSum[ENCRYPTION_KEY_LEN];
rtl_digest_updateMD5( m_pData->m_aDigest, m_pData->m_aDecryptionKey, i );
rtl_digest_getMD5( m_pData->m_aDigest, aSum, sizeof( aSum ) );
-
+
if( i > 16 )
i = 16;
@@ -1086,12 +1086,12 @@ static bool check_user_password( const OString& rPwd, PDFFileImplData* pData )
{
// see PDF reference 1.4 Algorithm 3.4
// encrypt pad string
- rtl_cipher_initARCFOUR( pData->m_aCipher, rtl_Cipher_DirectionEncode,
+ rtl_cipher_initARCFOUR( pData->m_aCipher, rtl_Cipher_DirectionEncode,
aKey, nKeyLen,
NULL, 0 );
rtl_cipher_encodeARCFOUR( pData->m_aCipher, nPadString, sizeof( nPadString ),
nEncryptedEntry, sizeof( nEncryptedEntry ) );
- bValid = (rtl_compareMemory( nEncryptedEntry, pData->m_aUEntry, 32 ) == 0);
+ bValid = (rtl_compareMemory( nEncryptedEntry, pData->m_aUEntry, 32 ) == 0);
}
else if( pData->m_nStandardRevision == 3 )
{
@@ -1099,7 +1099,7 @@ static bool check_user_password( const OString& rPwd, PDFFileImplData* pData )
rtl_digest_updateMD5( pData->m_aDigest, nPadString, sizeof( nPadString ) );
rtl_digest_updateMD5( pData->m_aDigest, pData->m_aDocID.getStr(), pData->m_aDocID.getLength() );
rtl_digest_getMD5( pData->m_aDigest, nEncryptedEntry, sizeof(nEncryptedEntry) );
- rtl_cipher_initARCFOUR( pData->m_aCipher, rtl_Cipher_DirectionEncode,
+ rtl_cipher_initARCFOUR( pData->m_aCipher, rtl_Cipher_DirectionEncode,
aKey, sizeof(aKey), NULL, 0 );
rtl_cipher_encodeARCFOUR( pData->m_aCipher,
nEncryptedEntry, 16,
@@ -1109,14 +1109,14 @@ static bool check_user_password( const OString& rPwd, PDFFileImplData* pData )
sal_uInt8 aTempKey[ENCRYPTION_KEY_LEN];
for( sal_uInt32 j = 0; j < sizeof(aTempKey); j++ )
aTempKey[j] = static_cast<sal_uInt8>( aKey[j] ^ i );
-
- rtl_cipher_initARCFOUR( pData->m_aCipher, rtl_Cipher_DirectionEncode,
+
+ rtl_cipher_initARCFOUR( pData->m_aCipher, rtl_Cipher_DirectionEncode,
aTempKey, sizeof(aTempKey), NULL, 0 );
rtl_cipher_encodeARCFOUR( pData->m_aCipher,
nEncryptedEntry, 16,
nEncryptedEntry, 16 ); // encrypt in place
}
- bValid = (rtl_compareMemory( nEncryptedEntry, pData->m_aUEntry, 16 ) == 0);
+ bValid = (rtl_compareMemory( nEncryptedEntry, pData->m_aUEntry, 16 ) == 0);
}
return bValid;
}
@@ -1125,7 +1125,7 @@ bool PDFFile::setupDecryptionData( const OString& rPwd ) const
{
if( !impl_getData()->m_bIsEncrypted )
return rPwd.getLength() == 0;
-
+
// check if we can handle this encryption at all
if( ! m_pData->m_bStandardHandler ||
m_pData->m_nAlgoVersion < 1 ||
@@ -1133,15 +1133,15 @@ bool PDFFile::setupDecryptionData( const OString& rPwd ) const
m_pData->m_nStandardRevision < 2 ||
m_pData->m_nStandardRevision > 3 )
return false;
-
+
if( ! m_pData->m_aCipher )
m_pData->m_aCipher = rtl_cipher_createARCFOUR(rtl_Cipher_ModeStream);
if( ! m_pData->m_aDigest )
m_pData->m_aDigest = rtl_digest_createMD5();
-
+
// first try user password
bool bValid = check_user_password( rPwd, m_pData );
-
+
if( ! bValid )
{
// try owner password
@@ -1152,7 +1152,7 @@ bool PDFFile::setupDecryptionData( const OString& rPwd ) const
sal_uInt32 nKeyLen = password_to_key( rPwd, aKey, m_pData, true );
if( m_pData->m_nStandardRevision == 2 )
{
- rtl_cipher_initARCFOUR( m_pData->m_aCipher, rtl_Cipher_DirectionDecode,
+ rtl_cipher_initARCFOUR( m_pData->m_aCipher, rtl_Cipher_DirectionDecode,
aKey, nKeyLen, NULL, 0 );
rtl_cipher_decodeARCFOUR( m_pData->m_aCipher,
m_pData->m_aOEntry, 32,
@@ -1166,7 +1166,7 @@ bool PDFFile::setupDecryptionData( const OString& rPwd ) const
sal_uInt8 nTempKey[ENCRYPTION_KEY_LEN];
for( unsigned int j = 0; j < sizeof(nTempKey); j++ )
nTempKey[j] = sal_uInt8(aKey[j] ^ i);
- rtl_cipher_initARCFOUR( m_pData->m_aCipher, rtl_Cipher_DirectionDecode,
+ rtl_cipher_initARCFOUR( m_pData->m_aCipher, rtl_Cipher_DirectionDecode,
nTempKey, nKeyLen, NULL, 0 );
rtl_cipher_decodeARCFOUR( m_pData->m_aCipher,
nPwd, 32,
@@ -1316,17 +1316,17 @@ PDFFileImplData* PDFFile::impl_getData() const
break;
}
}
- }
+ }
}
}
-
+
return m_pData;
}
bool PDFFile::emit( EmitContext& rWriteContext ) const
{
setEmitData( rWriteContext, new EmitImplData( this ) );
-
+
OStringBuffer aBuf( 32 );
aBuf.append( "%PDF-" );
aBuf.append( sal_Int32( m_nMajor ) );
diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx
index b278021df6f8..5105ac5e2413 100644
--- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx
+++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx
@@ -85,7 +85,7 @@ class StringEmitContext : public EmitContext
}
return 0;
}
-
+
OString getString() { return m_aBuf.makeStringAndClear(); }
};
@@ -107,7 +107,7 @@ public:
std::vector< PDFEntry* > m_aObjectStack;
rtl::OString m_aErrorString;
iteratorT m_aGlobalBegin;
-
+
public:
struct pdf_string_parser
{
@@ -117,7 +117,7 @@ public:
operator()(ScannerT const& scan, result_t&) const
{
std::ptrdiff_t len = 0;
-
+
int nBraceLevel = 0;
while( ! scan.at_end() )
{
@@ -150,11 +150,11 @@ public:
definition( const PDFGrammar<iteratorT>& rSelf )
{
PDFGrammar<iteratorT>* pSelf = const_cast< PDFGrammar<iteratorT>* >( &rSelf );
-
+
// workaround workshop compiler: comment_p doesn't work
// comment = comment_p("%")[boost::bind(&PDFGrammar::pushComment, pSelf, _1, _2 )];
comment = lexeme_d[ (ch_p('%') >> *(~ch_p('\r') & ~ch_p('\n')) >> eol_p)[boost::bind(&PDFGrammar::pushComment, pSelf, _1, _2 )] ];
-
+
boolean = (str_p("true") | str_p("false"))[boost::bind(&PDFGrammar::pushBool, pSelf, _1, _2)];
// workaround workshop compiler: confix_p doesn't work
@@ -170,13 +170,13 @@ public:
//stringtype = ( confix_p("(",*anychar_p, ")") |
// confix_p("<",*xdigit_p, ">") )
// [boost::bind(&PDFGrammar::pushString,pSelf, _1, _2)];
-
+
stringtype = ( ( ch_p('(') >> functor_parser<pdf_string_parser>() >> ch_p(')') ) |
( ch_p('<') >> *xdigit_p >> ch_p('>') ) )
[boost::bind(&PDFGrammar::pushString,pSelf, _1, _2)];
null_object = str_p( "null" )[boost::bind(&PDFGrammar::pushNull, pSelf, _1, _2)];
-
+
#ifdef USE_ASSIGN_ACTOR
objectref = ( uint_p[push_back_a(pSelf->m_aUIntStack)]
>> uint_p[push_back_a(pSelf->m_aUIntStack)]
@@ -202,10 +202,10 @@ public:
[boost::bind(&PDFGrammar::pushDouble, pSelf, _1, _2)]
| stringtype | boolean | null_object;
#endif
-
+
dict_begin = str_p( "<<" )[boost::bind(&PDFGrammar::beginDict, pSelf, _1, _2)];
dict_end = str_p( ">>" )[boost::bind(&PDFGrammar::endDict, pSelf, _1, _2)];
-
+
array_begin = str_p("[")[boost::bind(&PDFGrammar::beginArray,pSelf, _1, _2)];
array_end = str_p("]")[boost::bind(&PDFGrammar::endArray,pSelf, _1, _2)];
@@ -219,7 +219,7 @@ public:
>> str_p("obj" )[boost::bind(&PDFGrammar::beginObject, pSelf, _1, _2)];
#endif
object_end = str_p( "endobj" )[boost::bind(&PDFGrammar::endObject, pSelf, _1, _2)];
-
+
xref = str_p( "xref" ) >> uint_p >> uint_p
>> lexeme_d[
+( repeat_p(10)[digit_p]
@@ -229,21 +229,21 @@ public:
>> ( ch_p('n') | ch_p('f') )
>> repeat_p(2)[space_p]
) ];
-
+
dict_element= dict_begin | comment | simple_type
| array_begin | array_end | dict_end;
-
+
object = object_begin
>> *dict_element
>> !stream
>> object_end;
-
+
trailer = str_p( "trailer" )[boost::bind(&PDFGrammar::beginTrailer,pSelf,_1,_2)]
>> *dict_element
>> str_p("startxref")
>> uint_p
>> str_p("%%EOF")[boost::bind(&PDFGrammar::endTrailer,pSelf,_1,_2)];
-
+
#ifdef USE_ASSIGN_ACTOR
pdfrule = ! (lexeme_d[
str_p( "%PDF-" )
@@ -270,10 +270,10 @@ public:
objectref, array, value, dict_element, dict_begin, dict_end,
array_begin, array_end, object, object_begin, object_end,
xref, trailer, pdfrule;
-
+
const rule< ScannerT >& start() const { return pdfrule; }
};
-
+
#ifndef USE_ASSIGN_ACTOR
void push_back_action_uint( unsigned int i )
{
@@ -284,12 +284,12 @@ public:
m_fDouble = d;
}
#endif
-
+
void parseError( const char* pMessage, iteratorT pLocation )
{
throw_( pLocation, pMessage );
}
-
+
rtl::OString iteratorToString( iteratorT first, iteratorT last ) const
{
rtl::OStringBuffer aStr( 32 );
@@ -300,7 +300,7 @@ public:
}
return aStr.makeStringAndClear();
}
-
+
void haveFile( iteratorT pBegin, iteratorT /*pEnd*/ )
{
if( m_aObjectStack.empty() )
@@ -308,14 +308,14 @@ public:
PDFFile* pFile = new PDFFile();
pFile->m_nMinor = m_aUIntStack.back();
m_aUIntStack.pop_back();
- pFile->m_nMajor = m_aUIntStack.back();
+ pFile->m_nMajor = m_aUIntStack.back();
m_aUIntStack.pop_back();
m_aObjectStack.push_back( pFile );
}
else
parseError( "found file header in unusual place", pBegin );
}
-
+
void pushComment( iteratorT first, iteratorT last )
{
// add a comment to the current stack element
@@ -328,7 +328,7 @@ public:
parseError( "comment without container", first );
pContainer->m_aSubElements.push_back( pComment );
}
-
+
void insertNewValue( PDFEntry* pNewValue, iteratorT pPos )
{
PDFContainer* pContainer = NULL;
@@ -382,7 +382,7 @@ public:
parseError( pMsg, pPos );
}
}
-
+
void pushName( iteratorT first, iteratorT last )
{
insertNewValue( new PDFName(iteratorToString(first,last)), first );
@@ -408,7 +408,7 @@ public:
insertNewValue( new PDFNull(), first );
}
-
+
void beginObject( iteratorT first, iteratorT /*last*/ )
{
if( m_aObjectStack.empty() )
@@ -418,12 +418,12 @@ public:
m_aUIntStack.pop_back();
unsigned int nObject = m_aUIntStack.back();
m_aUIntStack.pop_back();
-
+
PDFObject* pObj = new PDFObject( nObject, nGeneration );
pObj->m_nOffset = first - m_aGlobalBegin;
PDFContainer* pContainer = dynamic_cast<PDFContainer*>(m_aObjectStack.back());
- if( pContainer &&
+ if( pContainer &&
( dynamic_cast<PDFFile*>(pContainer) ||
dynamic_cast<PDFPart*>(pContainer) ) )
{
@@ -433,7 +433,7 @@ public:
else
parseError( "object in wrong place", first );
}
-
+
void endObject( iteratorT first, iteratorT )
{
if( m_aObjectStack.empty() )
@@ -443,7 +443,7 @@ public:
else
m_aObjectStack.pop_back();
}
-
+
void pushObjectRef( iteratorT first, iteratorT )
{
unsigned int nGeneration = m_aUIntStack.back();
@@ -452,7 +452,7 @@ public:
m_aUIntStack.pop_back();
insertNewValue( new PDFObjectRef(nObject,nGeneration), first );
}
-
+
void beginDict( iteratorT first, iteratorT )
{
PDFDict* pDict = new PDFDict();
@@ -471,7 +471,7 @@ public:
parseError( "spurious dictionary end", first );
else
m_aObjectStack.pop_back();
-
+
PDFEntry* pOffender = pDict->buildMap();
if( pOffender )
{
@@ -487,7 +487,7 @@ public:
{
PDFArray* pArray = new PDFArray();
pArray->m_nOffset = first - m_aGlobalBegin;
-
+
insertNewValue( pArray, first );
// will not come here if insertion fails (exception)
m_aObjectStack.push_back( pArray );
@@ -502,7 +502,7 @@ public:
else
m_aObjectStack.pop_back();
}
-
+
void emitStream( iteratorT first, iteratorT last )
{
if( m_aObjectStack.empty() )
@@ -512,7 +512,7 @@ public:
{
if( pObj->m_pStream )
parseError( "multiple streams in object", first );
-
+
PDFDict* pDict = dynamic_cast<PDFDict*>(pObj->m_pObject);
if( pDict )
{
@@ -535,7 +535,7 @@ public:
pTrailer->m_nOffset = first - m_aGlobalBegin;
PDFContainer* pContainer = dynamic_cast<PDFContainer*>(m_aObjectStack.back());
- if( pContainer &&
+ if( pContainer &&
( dynamic_cast<PDFFile*>(pContainer) ||
dynamic_cast<PDFPart*>(pContainer) ) )
{
@@ -560,7 +560,7 @@ public:
PDFEntry* PDFReader::read( const char* pBuffer, unsigned int nLen )
{
PDFGrammar<const char*> aGrammar( pBuffer );
-
+
try
{
boost::spirit::parse_info<const char*> aInfo =
@@ -588,7 +588,7 @@ PDFEntry* PDFReader::read( const char* pBuffer, unsigned int nLen )
}
#endif
}
-
+
PDFEntry* pRet = NULL;
unsigned int nEntries = aGrammar.m_aObjectStack.size();
if( nEntries == 1 )
@@ -600,7 +600,7 @@ PDFEntry* PDFReader::read( const char* pBuffer, unsigned int nLen )
else if( nEntries > 1 )
fprintf( stderr, "error got %u stack objects in parse\n", nEntries );
#endif
-
+
return pRet;
}
@@ -611,7 +611,7 @@ PDFEntry* PDFReader::read( const char* pFileName )
since converting to boost 1.39 file_iterator does not work anymore on all Windows systems
C++ stdlib istream_iterator does not allow "-" apparently
using spirit 2.0 doesn't work in our environment with the MSC
-
+
So for the time being bite the bullet and read the whole file.
FIXME: give Spirit 2.x another try when we upgrade boost again.
*/
@@ -638,7 +638,7 @@ PDFEntry* PDFReader::read( const char* pFileName )
return NULL;
file_iterator<> file_end = file_start.make_end();
PDFGrammar< file_iterator<> > aGrammar( file_start );
-
+
try
{
boost::spirit::parse_info< file_iterator<> > aInfo =
@@ -666,7 +666,7 @@ PDFEntry* PDFReader::read( const char* pFileName )
}
#endif
}
-
+
PDFEntry* pRet = NULL;
unsigned int nEntries = aGrammar.m_aObjectStack.size();
if( nEntries == 1 )
@@ -697,7 +697,7 @@ PDFEntry* PDFReader::read( const char* pFileName )
#pragma enable_warn
#elif defined _MSC_VER
#pragma warning(pop)
-#endif
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sdext/source/pdfimport/sax/emitcontext.cxx b/sdext/source/pdfimport/sax/emitcontext.cxx
index 19d439060883..21de11382aa1 100644
--- a/sdext/source/pdfimport/sax/emitcontext.cxx
+++ b/sdext/source/pdfimport/sax/emitcontext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/pdfimport/sax/emitcontext.hxx b/sdext/source/pdfimport/sax/emitcontext.hxx
index e617763636f3..c67615a7456b 100644
--- a/sdext/source/pdfimport/sax/emitcontext.hxx
+++ b/sdext/source/pdfimport/sax/emitcontext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#define INCLUDED_PDFI_EMITCONTEXT_HXX
#include "xmlemitter.hxx"
-
+
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
#include <rtl/ustring.hxx>
@@ -43,14 +43,14 @@ namespace pdfi
class SaxEmitter : public XmlEmitter
{
private:
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::xml::sax::XDocumentHandler > m_xDocHdl;
-
+
public:
- explicit SaxEmitter( const com::sun::star::uno::Reference<
+ explicit SaxEmitter( const com::sun::star::uno::Reference<
com::sun::star::xml::sax::XDocumentHandler >& xDocHdl );
~SaxEmitter();
-
+
virtual void beginTag( const char* pTag, const PropertyMap& rProperties );
virtual void write( const rtl::OUString& rString );
virtual void endTag( const char* pTag );
diff --git a/sdext/source/pdfimport/sax/saxattrlist.cxx b/sdext/source/pdfimport/sax/saxattrlist.cxx
index 2059e836bfae..dbfe2d3aad1f 100644
--- a/sdext/source/pdfimport/sax/saxattrlist.cxx
+++ b/sdext/source/pdfimport/sax/saxattrlist.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ namespace {
return aStr;
}
}
-
+
sal_Int16 SAL_CALL SaxAttrList::getLength() throw()
{
return sal_Int16(m_aAttributes.size());
@@ -95,7 +95,7 @@ rtl::OUString SAL_CALL SaxAttrList::getValueByName(const ::rtl::OUString& i_rNam
std::hash_map< rtl::OUString, size_t, rtl::OUStringHash >::const_iterator it = m_aIndexMap.find( i_rName );
return (it != m_aIndexMap.end()) ? m_aAttributes[it->second].m_aValue : rtl::OUString();
}
-
+
com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL SaxAttrList::createClone() throw()
{
return new SaxAttrList( *this );
diff --git a/sdext/source/pdfimport/sax/saxattrlist.hxx b/sdext/source/pdfimport/sax/saxattrlist.hxx
index 5e01ef18896a..5ca6b56cf9f1 100644
--- a/sdext/source/pdfimport/sax/saxattrlist.hxx
+++ b/sdext/source/pdfimport/sax/saxattrlist.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,19 +48,19 @@ namespace pdfi
{
rtl::OUString m_aName;
rtl::OUString m_aValue;
-
+
AttrEntry( const rtl::OUString& i_rName, const rtl::OUString& i_rValue )
: m_aName( i_rName ), m_aValue( i_rValue ) {}
};
std::vector< AttrEntry > m_aAttributes;
std::hash_map< rtl::OUString, size_t, rtl::OUStringHash > m_aIndexMap;
-
+
public:
SaxAttrList() {}
SaxAttrList( const std::hash_map< rtl::OUString, rtl::OUString, rtl::OUStringHash >& );
SaxAttrList( const SaxAttrList& );
virtual ~SaxAttrList();
-
+
// ::com::sun::star::xml::sax::XAttributeList
virtual sal_Int16 SAL_CALL getLength() throw();
virtual rtl::OUString SAL_CALL getNameByIndex(sal_Int16 i) throw();
@@ -68,7 +68,7 @@ namespace pdfi
virtual rtl::OUString SAL_CALL getTypeByName(const ::rtl::OUString& aName) throw();
virtual rtl::OUString SAL_CALL getValueByIndex(sal_Int16 i) throw();
virtual rtl::OUString SAL_CALL getValueByName(const ::rtl::OUString& aName) throw();
-
+
// ::com::sun::star::util::XCloneable
virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone() throw();
};
diff --git a/sdext/source/pdfimport/services.cxx b/sdext/source/pdfimport/services.cxx
index a7c61f1a2577..c4860ebe1170 100644
--- a/sdext/source/pdfimport/services.cxx
+++ b/sdext/source/pdfimport/services.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -95,7 +95,7 @@ namespace
struct ComponentDescription
{
- const sal_Char* pAsciiServiceName;
+ const sal_Char* pAsciiServiceName;
const sal_Char* pAsciiImplementationName;
ComponentFactory pFactory;
diff --git a/sdext/source/pdfimport/test/export.map b/sdext/source/pdfimport/test/export.map
index 7321bbca16ad..f313c44bd7ad 100755
--- a/sdext/source/pdfimport/test/export.map
+++ b/sdext/source/pdfimport/test/export.map
@@ -1,7 +1,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/pdfimport/test/outputwrap.hxx b/sdext/source/pdfimport/test/outputwrap.hxx
index 148ee739e7d7..5da34d5f9f80 100644
--- a/sdext/source/pdfimport/test/outputwrap.hxx
+++ b/sdext/source/pdfimport/test/outputwrap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@
namespace pdfi
{
-typedef ::cppu::WeakComponentImplHelper1<
+typedef ::cppu::WeakComponentImplHelper1<
com::sun::star::io::XOutputStream > OutputWrapBase;
class OutputWrap : private cppu::BaseMutex, public OutputWrapBase
@@ -47,7 +47,7 @@ typedef ::cppu::WeakComponentImplHelper1<
public:
- explicit OutputWrap( const rtl::OUString& rURL ) : OutputWrapBase(m_aMutex), maFile(rURL)
+ explicit OutputWrap( const rtl::OUString& rURL ) : OutputWrapBase(m_aMutex), maFile(rURL)
{
maFile.open(osl_File_OpenFlag_Create|OpenFlag_Write);
}
@@ -70,6 +70,6 @@ typedef ::cppu::WeakComponentImplHelper1<
};
}
#endif
-
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sdext/source/pdfimport/test/pdf2xml.cxx b/sdext/source/pdfimport/test/pdf2xml.cxx
index a8278ccf2267..2bf0ecbb6b1c 100644
--- a/sdext/source/pdfimport/test/pdf2xml.cxx
+++ b/sdext/source/pdfimport/test/pdf2xml.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/pdfimport/test/pdfunzip.cxx b/sdext/source/pdfimport/test/pdfunzip.cxx
index e871e36809d2..606b91295888 100644
--- a/sdext/source/pdfimport/test/pdfunzip.cxx
+++ b/sdext/source/pdfimport/test/pdfunzip.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,13 +68,13 @@ class FileEmitContext : public EmitContext
oslFileHandle m_aHandle;
oslFileHandle m_aReadHandle;
unsigned int m_nReadLen;
-
+
void openReadFile( const char* pOrigName );
-
+
public:
FileEmitContext( const char* pFileName, const char* pOrigName, const PDFContainer* pTop );
virtual ~FileEmitContext();
-
+
virtual bool write( const void* pBuf, unsigned int nLen ) throw();
virtual unsigned int getCurPos() throw();
virtual bool copyOrigBytes( unsigned int nOrigOffset, unsigned int nLen ) throw();
@@ -94,7 +94,7 @@ FileEmitContext::FileEmitContext( const char* pFileName, const char* pOrigName,
fprintf( stderr, "filename conversion \"%s\" failed\n", pFileName );
return;
}
-
+
if( osl_openFile( aURL.pData, &m_aHandle, osl_File_OpenFlag_Write ) == osl_File_E_None )
{
if( osl_setFileSize( m_aHandle, 0 ) != osl_File_E_None )
@@ -111,7 +111,7 @@ FileEmitContext::FileEmitContext( const char* pFileName, const char* pOrigName,
return;
}
m_bDeflate = true;
-
+
openReadFile( pOrigName );
}
@@ -132,20 +132,20 @@ void FileEmitContext::openReadFile( const char* pInFile )
fprintf( stderr, "filename conversion \"%s\" failed\n", pInFile );
return;
}
-
+
if( osl_openFile( aURL.pData, &m_aReadHandle, osl_File_OpenFlag_Read ) != osl_File_E_None )
{
fprintf( stderr, "could not open %s\n", pInFile );
return;
}
-
+
if( osl_setFilePos( m_aReadHandle, osl_Pos_End, 0 ) != osl_File_E_None )
{
fprintf( stderr, "could not seek to end of %s\n", pInFile );
osl_closeFile( m_aReadHandle );
return;
}
-
+
sal_uInt64 nFileSize = 0;
if( osl_getFilePos( m_aReadHandle, &nFileSize ) != osl_File_E_None )
{
@@ -153,7 +153,7 @@ void FileEmitContext::openReadFile( const char* pInFile )
osl_closeFile( m_aReadHandle );
return;
}
-
+
m_nReadLen = static_cast<unsigned int>(nFileSize);
}
@@ -161,7 +161,7 @@ bool FileEmitContext::write( const void* pBuf, unsigned int nLen ) throw()
{
if( ! m_aHandle )
return false;
-
+
sal_uInt64 nWrite = static_cast<sal_uInt64>(nLen);
sal_uInt64 nWritten = 0;
return (osl_writeFile( m_aHandle, pBuf, nWrite, &nWritten ) == osl_File_E_None)
@@ -183,7 +183,7 @@ bool FileEmitContext::copyOrigBytes( unsigned int nOrigOffset, unsigned int nLen
{
if( nOrigOffset + nLen > m_nReadLen )
return false;
-
+
if( osl_setFilePos( m_aReadHandle, osl_Pos_Absolut, nOrigOffset ) != osl_File_E_None )
{
fprintf( stderr, "could not seek to offset %u\n", nOrigOffset );
@@ -209,7 +209,7 @@ unsigned int FileEmitContext::readOrigBytes( unsigned int nOrigOffset, unsigned
{
if( nOrigOffset + nLen > m_nReadLen )
return 0;
-
+
if( osl_setFilePos( m_aReadHandle, osl_Pos_Absolut, nOrigOffset ) != osl_File_E_None )
{
fprintf( stderr, "could not seek to offset %u\n", nOrigOffset );
@@ -225,7 +225,7 @@ typedef int(*PDFFileHdl)(const char*, const char*, PDFFile*);
int handleFile( const char* pInFile, const char* pOutFile, const char* pPassword, PDFFileHdl pHdl )
{
-
+
PDFReader aParser;
int nRet = 0;
PDFEntry* pEntry = aParser.read( pInFile );
@@ -333,18 +333,18 @@ int write_fonts( const char* i_pInFile, const char* i_pOutFile, PDFFile* i_pPDFF
PDFDict* pDict = dynamic_cast<PDFDict*>(pObj->m_pObject);
if( ! pDict )
continue;
-
+
std::hash_map<rtl::OString,PDFEntry*,rtl::OStringHash>::iterator map_it =
pDict->m_aMap.find( "Type" );
if( map_it == pDict->m_aMap.end() )
continue;
-
+
PDFName* pName = dynamic_cast<PDFName*>(map_it->second);
if( ! pName )
continue;
if( ! pName->m_aName.equals( "FontDescriptor" ) )
continue;
-
+
// the font name will be helpful, also there must be one in
// a font descriptor
map_it = pDict->m_aMap.find( "FontName" );
@@ -352,9 +352,9 @@ int write_fonts( const char* i_pInFile, const char* i_pOutFile, PDFFile* i_pPDFF
continue;
pName = dynamic_cast<PDFName*>(map_it->second);
if( ! pName )
- continue;
+ continue;
rtl::OString aFontName( pName->m_aName );
-
+
PDFObjectRef* pStreamRef = 0;
const char* pFileType = NULL;
// we have a font descriptor, try for a type 1 font
@@ -377,14 +377,14 @@ int write_fonts( const char* i_pInFile, const char* i_pOutFile, PDFFile* i_pPDFF
pFileType = "ttf";
}
}
-
+
if( ! pStreamRef )
continue;
-
+
PDFObject* pStream = i_pPDFFile->findObject( pStreamRef );
if( ! pStream )
continue;
-
+
rtl::OStringBuffer aOutStream( i_pOutFile );
aOutStream.append( "_font_" );
aOutStream.append( sal_Int32(pStreamRef->m_nNumber) );
@@ -440,7 +440,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv )
const char* pPassword = NULL;
OStringBuffer aOutFile( 256 );
PDFFileHdl aHdl = write_unzipFile;
-
+
for( int nArg = 1; nArg < argc; nArg++ )
{
if( argv[nArg][0] == '-' )
@@ -493,7 +493,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv )
s_aEmitObjects.push_back( std::pair<sal_Int32,sal_Int32>(nObject,nGeneration) );
}
}
- }
+ }
else
{
fprintf( stderr, "unrecognized option \"%s\"\n",
@@ -533,7 +533,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv )
return 11;
}
}
-
+
return handleFile( pInFile, pOutFile, pPassword, aHdl );
}
diff --git a/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_draw.xml b/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_draw.xml
index f864c4dfb01a..8c3704cb0b4e 100644
--- a/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_draw.xml
+++ b/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_draw.xml
@@ -43,73 +43,73 @@ UDYKMTAwIDQwCjI1NQr/////////////////////////////////////////////////////////////
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -119,24 +119,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -150,19 +150,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -171,33 +171,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -208,7 +208,7 @@ u
l
a
r
-
+
m
o
m
@@ -216,36 +216,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -257,40 +257,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -302,17 +302,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -320,32 +320,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -359,19 +359,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -380,15 +380,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -396,63 +396,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -466,44 +466,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -512,38 +512,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -551,10 +551,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -569,35 +569,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -605,10 +605,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -618,18 +618,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -637,7 +637,7 @@ u
n
d
.
-
+
S
u
d
@@ -646,18 +646,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -672,12 +672,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -687,37 +687,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -729,7 +729,7 @@ a
r
e
d
-
+
b
e
t
@@ -737,15 +737,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -756,14 +756,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -779,53 +779,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -835,19 +835,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -857,19 +857,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -883,19 +883,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -904,11 +904,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -917,7 +917,7 @@ e
n
l
y
-
+
s
t
i
@@ -928,16 +928,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -947,36 +947,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -988,45 +988,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -1034,24 +1034,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -1059,26 +1059,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1093,11 +1093,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -1105,39 +1105,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -1145,7 +1145,7 @@ u
g
h
t
-
+
p
r
e
@@ -1154,7 +1154,7 @@ s
i
n
g
-
+
h
i
m
@@ -1162,12 +1162,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -1175,16 +1175,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1199,15 +1199,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -1215,7 +1215,7 @@ s
e
l
f
-
+
i
n
v
@@ -1225,33 +1225,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -1260,18 +1260,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -1279,14 +1279,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1303,76 +1303,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -1381,7 +1381,7 @@ h
e
s
.
-
+
S
u
d
@@ -1390,7 +1390,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1403,29 +1403,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -1436,7 +1436,7 @@ a
b
l
e
-
+
s
q
u
@@ -1444,20 +1444,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -1465,25 +1465,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -1491,7 +1491,7 @@ h
t
'
s
-
+
b
r
e
@@ -1499,7 +1499,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1513,74 +1513,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -1589,7 +1589,7 @@ s
i
n
g
-
+
h
i
m
@@ -1597,16 +1597,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1619,83 +1619,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
@@ -1711,73 +1711,73 @@ e
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -1787,24 +1787,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1818,19 +1818,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -1839,33 +1839,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -1876,7 +1876,7 @@ u
l
a
r
-
+
m
o
m
@@ -1884,36 +1884,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1925,40 +1925,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -1970,17 +1970,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -1988,32 +1988,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2027,19 +2027,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -2048,15 +2048,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -2064,63 +2064,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2134,44 +2134,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -2180,38 +2180,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -2219,10 +2219,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2237,35 +2237,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -2273,10 +2273,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -2286,18 +2286,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -2305,7 +2305,7 @@ u
n
d
.
-
+
S
u
d
@@ -2314,18 +2314,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2340,12 +2340,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -2355,37 +2355,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -2397,7 +2397,7 @@ a
r
e
d
-
+
b
e
t
@@ -2405,15 +2405,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -2424,14 +2424,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2447,53 +2447,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -2503,19 +2503,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -2525,19 +2525,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2551,19 +2551,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -2572,11 +2572,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -2585,7 +2585,7 @@ e
n
l
y
-
+
s
t
i
@@ -2596,16 +2596,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -2615,36 +2615,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2656,45 +2656,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -2702,24 +2702,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -2727,26 +2727,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2761,11 +2761,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -2773,39 +2773,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -2813,7 +2813,7 @@ u
g
h
t
-
+
p
r
e
@@ -2822,7 +2822,7 @@ s
i
n
g
-
+
h
i
m
@@ -2830,12 +2830,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -2843,16 +2843,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2867,15 +2867,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -2883,7 +2883,7 @@ s
e
l
f
-
+
i
n
v
@@ -2893,33 +2893,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -2928,18 +2928,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -2947,14 +2947,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2971,76 +2971,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -3049,7 +3049,7 @@ h
e
s
.
-
+
S
u
d
@@ -3058,7 +3058,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3071,29 +3071,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -3104,7 +3104,7 @@ a
b
l
e
-
+
s
q
u
@@ -3112,20 +3112,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -3133,25 +3133,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -3159,7 +3159,7 @@ h
t
'
s
-
+
b
r
e
@@ -3167,7 +3167,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3181,74 +3181,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -3257,7 +3257,7 @@ s
i
n
g
-
+
h
i
m
@@ -3265,16 +3265,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3287,83 +3287,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
diff --git a/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_impress.xml b/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_impress.xml
index 6d777866ee33..68ab55f1fb65 100644
--- a/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_impress.xml
+++ b/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_impress.xml
@@ -43,73 +43,73 @@ UDYKMTAwIDQwCjI1NQr/////////////////////////////////////////////////////////////
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -119,24 +119,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -150,19 +150,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -171,33 +171,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -208,7 +208,7 @@ u
l
a
r
-
+
m
o
m
@@ -216,36 +216,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -257,40 +257,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -302,17 +302,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -320,32 +320,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -359,19 +359,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -380,15 +380,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -396,63 +396,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -466,44 +466,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -512,38 +512,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -551,10 +551,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -569,35 +569,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -605,10 +605,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -618,18 +618,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -637,7 +637,7 @@ u
n
d
.
-
+
S
u
d
@@ -646,18 +646,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -672,12 +672,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -687,37 +687,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -729,7 +729,7 @@ a
r
e
d
-
+
b
e
t
@@ -737,15 +737,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -756,14 +756,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -779,53 +779,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -835,19 +835,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -857,19 +857,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -883,19 +883,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -904,11 +904,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -917,7 +917,7 @@ e
n
l
y
-
+
s
t
i
@@ -928,16 +928,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -947,36 +947,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -988,45 +988,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -1034,24 +1034,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -1059,26 +1059,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1093,11 +1093,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -1105,39 +1105,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -1145,7 +1145,7 @@ u
g
h
t
-
+
p
r
e
@@ -1154,7 +1154,7 @@ s
i
n
g
-
+
h
i
m
@@ -1162,12 +1162,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -1175,16 +1175,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1199,15 +1199,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -1215,7 +1215,7 @@ s
e
l
f
-
+
i
n
v
@@ -1225,33 +1225,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -1260,18 +1260,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -1279,14 +1279,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1303,76 +1303,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -1381,7 +1381,7 @@ h
e
s
.
-
+
S
u
d
@@ -1390,7 +1390,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1403,29 +1403,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -1436,7 +1436,7 @@ a
b
l
e
-
+
s
q
u
@@ -1444,20 +1444,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -1465,25 +1465,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -1491,7 +1491,7 @@ h
t
'
s
-
+
b
r
e
@@ -1499,7 +1499,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1513,74 +1513,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -1589,7 +1589,7 @@ s
i
n
g
-
+
h
i
m
@@ -1597,16 +1597,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1619,83 +1619,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
@@ -1711,73 +1711,73 @@ e
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -1787,24 +1787,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1818,19 +1818,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -1839,33 +1839,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -1876,7 +1876,7 @@ u
l
a
r
-
+
m
o
m
@@ -1884,36 +1884,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1925,40 +1925,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -1970,17 +1970,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -1988,32 +1988,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2027,19 +2027,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -2048,15 +2048,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -2064,63 +2064,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2134,44 +2134,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -2180,38 +2180,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -2219,10 +2219,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2237,35 +2237,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -2273,10 +2273,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -2286,18 +2286,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -2305,7 +2305,7 @@ u
n
d
.
-
+
S
u
d
@@ -2314,18 +2314,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2340,12 +2340,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -2355,37 +2355,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -2397,7 +2397,7 @@ a
r
e
d
-
+
b
e
t
@@ -2405,15 +2405,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -2424,14 +2424,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2447,53 +2447,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -2503,19 +2503,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -2525,19 +2525,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2551,19 +2551,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -2572,11 +2572,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -2585,7 +2585,7 @@ e
n
l
y
-
+
s
t
i
@@ -2596,16 +2596,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -2615,36 +2615,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2656,45 +2656,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -2702,24 +2702,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -2727,26 +2727,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2761,11 +2761,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -2773,39 +2773,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -2813,7 +2813,7 @@ u
g
h
t
-
+
p
r
e
@@ -2822,7 +2822,7 @@ s
i
n
g
-
+
h
i
m
@@ -2830,12 +2830,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -2843,16 +2843,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2867,15 +2867,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -2883,7 +2883,7 @@ s
e
l
f
-
+
i
n
v
@@ -2893,33 +2893,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -2928,18 +2928,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -2947,14 +2947,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2971,76 +2971,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -3049,7 +3049,7 @@ h
e
s
.
-
+
S
u
d
@@ -3058,7 +3058,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3071,29 +3071,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -3104,7 +3104,7 @@ a
b
l
e
-
+
s
q
u
@@ -3112,20 +3112,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -3133,25 +3133,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -3159,7 +3159,7 @@ h
t
'
s
-
+
b
r
e
@@ -3167,7 +3167,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3181,74 +3181,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -3257,7 +3257,7 @@ s
i
n
g
-
+
h
i
m
@@ -3265,16 +3265,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3287,83 +3287,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
diff --git a/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_writer.xml b/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_writer.xml
index 8b773553d793..254f591c0e2f 100644
--- a/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_writer.xml
+++ b/sdext/source/pdfimport/test/testdocs/pictxt_pdfi_unittest_writer.xml
@@ -43,7 +43,7 @@ UDYKMTAwIDQwCjI1NQr/////////////////////////////////////////////////////////////
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
+He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
</text:span>
</text:p>
</draw:text-box>
@@ -52,7 +52,7 @@ He heard quiet steps behind him. That didn't bode well. Who could be following h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
+night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
</text:span>
</text:p>
</draw:text-box>
@@ -61,7 +61,7 @@ night and in this deadbeat part of town? And at this particular moment, just aft
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-big time and was making off with the greenbacks. Was there another crook who'd had the same
+big time and was making off with the greenbacks. Was there another crook who'd had the same
</text:span>
</text:p>
</draw:text-box>
@@ -70,7 +70,7 @@ big time and was making off with the greenbacks. Was there another crook who'd h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
+idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
</text:span>
</text:p>
</draw:text-box>
@@ -79,7 +79,7 @@ idea, and was now watching him and waiting for a chance to grab the fruit of his
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-steps behind him mean that one of many law officers in town was on to him and just waiting to
+steps behind him mean that one of many law officers in town was on to him and just waiting to
</text:span>
</text:p>
</draw:text-box>
@@ -88,7 +88,7 @@ steps behind him mean that one of many law officers in town was on to him and ju
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
+pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
</text:span>
</text:p>
</draw:text-box>
@@ -97,7 +97,7 @@ pounce and snap those cuffs on his wrists? He nervously looked all around. Sudde
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
+alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
</text:span>
</text:p>
</draw:text-box>
@@ -106,7 +106,7 @@ alley. Like lightning he darted off to the left and disappeared between the two
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
+falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
</text:span>
</text:p>
</draw:text-box>
@@ -115,7 +115,7 @@ falling over the trash can lying in the middle of the sidewalk. He tried to nerv
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
+along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
</text:span>
</text:p>
</draw:text-box>
@@ -124,7 +124,7 @@ along in the inky darkness and suddenly stiffened: it was a dead-end, he would h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-way he had come. The steps got louder and louder, he saw the black outline of a figure coming
+way he had come. The steps got louder and louder, he saw the black outline of a figure coming
</text:span>
</text:p>
</draw:text-box>
@@ -133,7 +133,7 @@ way he had come. The steps got louder and louder, he saw the black outline of a
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-around the corner. Is this the end of the line? he thought pressing himself back against the wall
+around the corner. Is this the end of the line? he thought pressing himself back against the wall
</text:span>
</text:p>
</draw:text-box>
@@ -142,7 +142,7 @@ around the corner. Is this the end of the line? he thought pressing himself back
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-trying to make himself invisible in the dark, was all that planning and energy wasted? He was
+trying to make himself invisible in the dark, was all that planning and energy wasted? He was
</text:span>
</text:p>
</draw:text-box>
@@ -151,7 +151,7 @@ trying to make himself invisible in the dark, was all that planning and energy w
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
+dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
</text:span>
</text:p>
</draw:text-box>
@@ -160,7 +160,7 @@ dripping with sweat now, cold and wet, he could smell the fear coming off his cl
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
+next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
</text:span>
</text:p>
</draw:text-box>
@@ -169,7 +169,7 @@ next to him, with a barely noticeable squeak, a door swung quietly to and fro in
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
+Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
</text:span>
</text:p>
</draw:text-box>
@@ -187,7 +187,7 @@ more into the wall, into the dark, away from his enemy. Would this door save his
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
+He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
</text:span>
</text:p>
</draw:text-box>
@@ -196,7 +196,7 @@ He heard quiet steps behind him. That didn't bode well. Who could be following h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
+night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
</text:span>
</text:p>
</draw:text-box>
@@ -205,7 +205,7 @@ night and in this deadbeat part of town? And at this particular moment, just aft
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-big time and was making off with the greenbacks. Was there another crook who'd had the same
+big time and was making off with the greenbacks. Was there another crook who'd had the same
</text:span>
</text:p>
</draw:text-box>
@@ -214,7 +214,7 @@ big time and was making off with the greenbacks. Was there another crook who'd h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
+idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
</text:span>
</text:p>
</draw:text-box>
@@ -223,7 +223,7 @@ idea, and was now watching him and waiting for a chance to grab the fruit of his
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-steps behind him mean that one of many law officers in town was on to him and just waiting to
+steps behind him mean that one of many law officers in town was on to him and just waiting to
</text:span>
</text:p>
</draw:text-box>
@@ -232,7 +232,7 @@ steps behind him mean that one of many law officers in town was on to him and ju
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
+pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
</text:span>
</text:p>
</draw:text-box>
@@ -241,7 +241,7 @@ pounce and snap those cuffs on his wrists? He nervously looked all around. Sudde
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
+alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
</text:span>
</text:p>
</draw:text-box>
@@ -250,7 +250,7 @@ alley. Like lightning he darted off to the left and disappeared between the two
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
+falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
</text:span>
</text:p>
</draw:text-box>
@@ -259,7 +259,7 @@ falling over the trash can lying in the middle of the sidewalk. He tried to nerv
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
+along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
</text:span>
</text:p>
</draw:text-box>
@@ -268,7 +268,7 @@ along in the inky darkness and suddenly stiffened: it was a dead-end, he would h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-way he had come. The steps got louder and louder, he saw the black outline of a figure coming
+way he had come. The steps got louder and louder, he saw the black outline of a figure coming
</text:span>
</text:p>
</draw:text-box>
@@ -277,7 +277,7 @@ way he had come. The steps got louder and louder, he saw the black outline of a
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-around the corner. Is this the end of the line? he thought pressing himself back against the wall
+around the corner. Is this the end of the line? he thought pressing himself back against the wall
</text:span>
</text:p>
</draw:text-box>
@@ -286,7 +286,7 @@ around the corner. Is this the end of the line? he thought pressing himself back
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-trying to make himself invisible in the dark, was all that planning and energy wasted? He was
+trying to make himself invisible in the dark, was all that planning and energy wasted? He was
</text:span>
</text:p>
</draw:text-box>
@@ -295,7 +295,7 @@ trying to make himself invisible in the dark, was all that planning and energy w
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
+dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
</text:span>
</text:p>
</draw:text-box>
@@ -304,7 +304,7 @@ dripping with sweat now, cold and wet, he could smell the fear coming off his cl
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
+next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
</text:span>
</text:p>
</draw:text-box>
@@ -313,7 +313,7 @@ next to him, with a barely noticeable squeak, a door swung quietly to and fro in
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
+Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
</text:span>
</text:p>
</draw:text-box>
diff --git a/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_draw.xml b/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_draw.xml
index da1251864b43..c86473047278 100644
--- a/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_draw.xml
+++ b/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_draw.xml
@@ -36,73 +36,73 @@
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -112,24 +112,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -143,19 +143,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -164,33 +164,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -201,7 +201,7 @@ u
l
a
r
-
+
m
o
m
@@ -209,36 +209,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -250,40 +250,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -295,17 +295,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -313,32 +313,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -352,19 +352,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -373,15 +373,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -389,63 +389,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -459,44 +459,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -505,38 +505,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -544,10 +544,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -562,35 +562,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -598,10 +598,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -611,18 +611,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -630,7 +630,7 @@ u
n
d
.
-
+
S
u
d
@@ -639,18 +639,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -665,12 +665,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -680,37 +680,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -722,7 +722,7 @@ a
r
e
d
-
+
b
e
t
@@ -730,15 +730,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -749,14 +749,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -772,53 +772,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -828,19 +828,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -850,19 +850,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -876,19 +876,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -897,11 +897,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -910,7 +910,7 @@ e
n
l
y
-
+
s
t
i
@@ -921,16 +921,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -940,36 +940,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -981,45 +981,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -1027,24 +1027,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -1052,26 +1052,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1086,11 +1086,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -1098,39 +1098,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -1138,7 +1138,7 @@ u
g
h
t
-
+
p
r
e
@@ -1147,7 +1147,7 @@ s
i
n
g
-
+
h
i
m
@@ -1155,12 +1155,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -1168,16 +1168,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1192,15 +1192,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -1208,7 +1208,7 @@ s
e
l
f
-
+
i
n
v
@@ -1218,33 +1218,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -1253,18 +1253,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -1272,14 +1272,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1296,76 +1296,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -1374,7 +1374,7 @@ h
e
s
.
-
+
S
u
d
@@ -1383,7 +1383,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1396,29 +1396,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -1429,7 +1429,7 @@ a
b
l
e
-
+
s
q
u
@@ -1437,20 +1437,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -1458,25 +1458,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -1484,7 +1484,7 @@ h
t
'
s
-
+
b
r
e
@@ -1492,7 +1492,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1506,74 +1506,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -1582,7 +1582,7 @@ s
i
n
g
-
+
h
i
m
@@ -1590,16 +1590,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1612,83 +1612,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
@@ -1704,73 +1704,73 @@ e
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -1780,24 +1780,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1811,19 +1811,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -1832,33 +1832,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -1869,7 +1869,7 @@ u
l
a
r
-
+
m
o
m
@@ -1877,36 +1877,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1918,40 +1918,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -1963,17 +1963,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -1981,32 +1981,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2020,19 +2020,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -2041,15 +2041,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -2057,63 +2057,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2127,44 +2127,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -2173,38 +2173,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -2212,10 +2212,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2230,35 +2230,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -2266,10 +2266,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -2279,18 +2279,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -2298,7 +2298,7 @@ u
n
d
.
-
+
S
u
d
@@ -2307,18 +2307,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2333,12 +2333,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -2348,37 +2348,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -2390,7 +2390,7 @@ a
r
e
d
-
+
b
e
t
@@ -2398,15 +2398,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -2417,14 +2417,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2440,53 +2440,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -2496,19 +2496,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -2518,19 +2518,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2544,19 +2544,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -2565,11 +2565,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -2578,7 +2578,7 @@ e
n
l
y
-
+
s
t
i
@@ -2589,16 +2589,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -2608,36 +2608,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2649,45 +2649,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -2695,24 +2695,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -2720,26 +2720,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2754,11 +2754,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -2766,39 +2766,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -2806,7 +2806,7 @@ u
g
h
t
-
+
p
r
e
@@ -2815,7 +2815,7 @@ s
i
n
g
-
+
h
i
m
@@ -2823,12 +2823,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -2836,16 +2836,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2860,15 +2860,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -2876,7 +2876,7 @@ s
e
l
f
-
+
i
n
v
@@ -2886,33 +2886,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -2921,18 +2921,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -2940,14 +2940,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2964,76 +2964,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -3042,7 +3042,7 @@ h
e
s
.
-
+
S
u
d
@@ -3051,7 +3051,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3064,29 +3064,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -3097,7 +3097,7 @@ a
b
l
e
-
+
s
q
u
@@ -3105,20 +3105,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -3126,25 +3126,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -3152,7 +3152,7 @@ h
t
'
s
-
+
b
r
e
@@ -3160,7 +3160,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3174,74 +3174,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -3250,7 +3250,7 @@ s
i
n
g
-
+
h
i
m
@@ -3258,16 +3258,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3280,83 +3280,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
diff --git a/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_impress.xml b/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_impress.xml
index a57b2bc750de..eb0bedc3fd69 100644
--- a/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_impress.xml
+++ b/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_impress.xml
@@ -36,73 +36,73 @@
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -112,24 +112,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -143,19 +143,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -164,33 +164,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -201,7 +201,7 @@ u
l
a
r
-
+
m
o
m
@@ -209,36 +209,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -250,40 +250,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -295,17 +295,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -313,32 +313,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -352,19 +352,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -373,15 +373,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -389,63 +389,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -459,44 +459,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -505,38 +505,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -544,10 +544,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -562,35 +562,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -598,10 +598,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -611,18 +611,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -630,7 +630,7 @@ u
n
d
.
-
+
S
u
d
@@ -639,18 +639,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -665,12 +665,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -680,37 +680,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -722,7 +722,7 @@ a
r
e
d
-
+
b
e
t
@@ -730,15 +730,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -749,14 +749,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -772,53 +772,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -828,19 +828,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -850,19 +850,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -876,19 +876,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -897,11 +897,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -910,7 +910,7 @@ e
n
l
y
-
+
s
t
i
@@ -921,16 +921,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -940,36 +940,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -981,45 +981,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -1027,24 +1027,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -1052,26 +1052,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1086,11 +1086,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -1098,39 +1098,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -1138,7 +1138,7 @@ u
g
h
t
-
+
p
r
e
@@ -1147,7 +1147,7 @@ s
i
n
g
-
+
h
i
m
@@ -1155,12 +1155,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -1168,16 +1168,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1192,15 +1192,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -1208,7 +1208,7 @@ s
e
l
f
-
+
i
n
v
@@ -1218,33 +1218,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -1253,18 +1253,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -1272,14 +1272,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1296,76 +1296,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -1374,7 +1374,7 @@ h
e
s
.
-
+
S
u
d
@@ -1383,7 +1383,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1396,29 +1396,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -1429,7 +1429,7 @@ a
b
l
e
-
+
s
q
u
@@ -1437,20 +1437,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -1458,25 +1458,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -1484,7 +1484,7 @@ h
t
'
s
-
+
b
r
e
@@ -1492,7 +1492,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1506,74 +1506,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -1582,7 +1582,7 @@ s
i
n
g
-
+
h
i
m
@@ -1590,16 +1590,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1612,83 +1612,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
@@ -1704,73 +1704,73 @@ e
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -1780,24 +1780,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1811,19 +1811,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -1832,33 +1832,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -1869,7 +1869,7 @@ u
l
a
r
-
+
m
o
m
@@ -1877,36 +1877,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1918,40 +1918,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -1963,17 +1963,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -1981,32 +1981,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2020,19 +2020,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -2041,15 +2041,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -2057,63 +2057,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2127,44 +2127,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -2173,38 +2173,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -2212,10 +2212,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2230,35 +2230,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -2266,10 +2266,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -2279,18 +2279,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -2298,7 +2298,7 @@ u
n
d
.
-
+
S
u
d
@@ -2307,18 +2307,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2333,12 +2333,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -2348,37 +2348,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -2390,7 +2390,7 @@ a
r
e
d
-
+
b
e
t
@@ -2398,15 +2398,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -2417,14 +2417,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2440,53 +2440,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -2496,19 +2496,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -2518,19 +2518,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2544,19 +2544,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -2565,11 +2565,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -2578,7 +2578,7 @@ e
n
l
y
-
+
s
t
i
@@ -2589,16 +2589,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -2608,36 +2608,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2649,45 +2649,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -2695,24 +2695,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -2720,26 +2720,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2754,11 +2754,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -2766,39 +2766,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -2806,7 +2806,7 @@ u
g
h
t
-
+
p
r
e
@@ -2815,7 +2815,7 @@ s
i
n
g
-
+
h
i
m
@@ -2823,12 +2823,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -2836,16 +2836,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2860,15 +2860,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -2876,7 +2876,7 @@ s
e
l
f
-
+
i
n
v
@@ -2886,33 +2886,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -2921,18 +2921,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -2940,14 +2940,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2964,76 +2964,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -3042,7 +3042,7 @@ h
e
s
.
-
+
S
u
d
@@ -3051,7 +3051,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3064,29 +3064,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -3097,7 +3097,7 @@ a
b
l
e
-
+
s
q
u
@@ -3105,20 +3105,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -3126,25 +3126,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -3152,7 +3152,7 @@ h
t
'
s
-
+
b
r
e
@@ -3160,7 +3160,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3174,74 +3174,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -3250,7 +3250,7 @@ s
i
n
g
-
+
h
i
m
@@ -3258,16 +3258,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3280,83 +3280,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
diff --git a/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_writer.xml b/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_writer.xml
index 955b81b73a36..75d8958f3a92 100644
--- a/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_writer.xml
+++ b/sdext/source/pdfimport/test/testdocs/txtpic_pdfi_unittest_writer.xml
@@ -36,7 +36,7 @@
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
+He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
</text:span>
</text:p>
</draw:text-box>
@@ -45,7 +45,7 @@ He heard quiet steps behind him. That didn't bode well. Who could be following h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
+night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
</text:span>
</text:p>
</draw:text-box>
@@ -54,7 +54,7 @@ night and in this deadbeat part of town? And at this particular moment, just aft
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-big time and was making off with the greenbacks. Was there another crook who'd had the same
+big time and was making off with the greenbacks. Was there another crook who'd had the same
</text:span>
</text:p>
</draw:text-box>
@@ -63,7 +63,7 @@ big time and was making off with the greenbacks. Was there another crook who'd h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
+idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
</text:span>
</text:p>
</draw:text-box>
@@ -72,7 +72,7 @@ idea, and was now watching him and waiting for a chance to grab the fruit of his
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-steps behind him mean that one of many law officers in town was on to him and just waiting to
+steps behind him mean that one of many law officers in town was on to him and just waiting to
</text:span>
</text:p>
</draw:text-box>
@@ -81,7 +81,7 @@ steps behind him mean that one of many law officers in town was on to him and ju
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
+pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
</text:span>
</text:p>
</draw:text-box>
@@ -90,7 +90,7 @@ pounce and snap those cuffs on his wrists? He nervously looked all around. Sudde
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
+alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
</text:span>
</text:p>
</draw:text-box>
@@ -99,7 +99,7 @@ alley. Like lightning he darted off to the left and disappeared between the two
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
+falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
</text:span>
</text:p>
</draw:text-box>
@@ -108,7 +108,7 @@ falling over the trash can lying in the middle of the sidewalk. He tried to nerv
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
+along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
</text:span>
</text:p>
</draw:text-box>
@@ -117,7 +117,7 @@ along in the inky darkness and suddenly stiffened: it was a dead-end, he would h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-way he had come. The steps got louder and louder, he saw the black outline of a figure coming
+way he had come. The steps got louder and louder, he saw the black outline of a figure coming
</text:span>
</text:p>
</draw:text-box>
@@ -126,7 +126,7 @@ way he had come. The steps got louder and louder, he saw the black outline of a
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-around the corner. Is this the end of the line? he thought pressing himself back against the wall
+around the corner. Is this the end of the line? he thought pressing himself back against the wall
</text:span>
</text:p>
</draw:text-box>
@@ -135,7 +135,7 @@ around the corner. Is this the end of the line? he thought pressing himself back
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-trying to make himself invisible in the dark, was all that planning and energy wasted? He was
+trying to make himself invisible in the dark, was all that planning and energy wasted? He was
</text:span>
</text:p>
</draw:text-box>
@@ -144,7 +144,7 @@ trying to make himself invisible in the dark, was all that planning and energy w
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
+dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
</text:span>
</text:p>
</draw:text-box>
@@ -153,7 +153,7 @@ dripping with sweat now, cold and wet, he could smell the fear coming off his cl
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
+next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
</text:span>
</text:p>
</draw:text-box>
@@ -162,7 +162,7 @@ next to him, with a barely noticeable squeak, a door swung quietly to and fro in
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
+Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
</text:span>
</text:p>
</draw:text-box>
@@ -180,7 +180,7 @@ more into the wall, into the dark, away from his enemy. Would this door save his
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
+He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
</text:span>
</text:p>
</draw:text-box>
@@ -189,7 +189,7 @@ He heard quiet steps behind him. That didn't bode well. Who could be following h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
+night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
</text:span>
</text:p>
</draw:text-box>
@@ -198,7 +198,7 @@ night and in this deadbeat part of town? And at this particular moment, just aft
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-big time and was making off with the greenbacks. Was there another crook who'd had the same
+big time and was making off with the greenbacks. Was there another crook who'd had the same
</text:span>
</text:p>
</draw:text-box>
@@ -207,7 +207,7 @@ big time and was making off with the greenbacks. Was there another crook who'd h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
+idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
</text:span>
</text:p>
</draw:text-box>
@@ -216,7 +216,7 @@ idea, and was now watching him and waiting for a chance to grab the fruit of his
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-steps behind him mean that one of many law officers in town was on to him and just waiting to
+steps behind him mean that one of many law officers in town was on to him and just waiting to
</text:span>
</text:p>
</draw:text-box>
@@ -225,7 +225,7 @@ steps behind him mean that one of many law officers in town was on to him and ju
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
+pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
</text:span>
</text:p>
</draw:text-box>
@@ -234,7 +234,7 @@ pounce and snap those cuffs on his wrists? He nervously looked all around. Sudde
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
+alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
</text:span>
</text:p>
</draw:text-box>
@@ -243,7 +243,7 @@ alley. Like lightning he darted off to the left and disappeared between the two
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
+falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
</text:span>
</text:p>
</draw:text-box>
@@ -252,7 +252,7 @@ falling over the trash can lying in the middle of the sidewalk. He tried to nerv
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
+along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
</text:span>
</text:p>
</draw:text-box>
@@ -261,7 +261,7 @@ along in the inky darkness and suddenly stiffened: it was a dead-end, he would h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-way he had come. The steps got louder and louder, he saw the black outline of a figure coming
+way he had come. The steps got louder and louder, he saw the black outline of a figure coming
</text:span>
</text:p>
</draw:text-box>
@@ -270,7 +270,7 @@ way he had come. The steps got louder and louder, he saw the black outline of a
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-around the corner. Is this the end of the line? he thought pressing himself back against the wall
+around the corner. Is this the end of the line? he thought pressing himself back against the wall
</text:span>
</text:p>
</draw:text-box>
@@ -279,7 +279,7 @@ around the corner. Is this the end of the line? he thought pressing himself back
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-trying to make himself invisible in the dark, was all that planning and energy wasted? He was
+trying to make himself invisible in the dark, was all that planning and energy wasted? He was
</text:span>
</text:p>
</draw:text-box>
@@ -288,7 +288,7 @@ trying to make himself invisible in the dark, was all that planning and energy w
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
+dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
</text:span>
</text:p>
</draw:text-box>
@@ -297,7 +297,7 @@ dripping with sweat now, cold and wet, he could smell the fear coming off his cl
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
+next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
</text:span>
</text:p>
</draw:text-box>
@@ -306,7 +306,7 @@ next to him, with a barely noticeable squeak, a door swung quietly to and fro in
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
+Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
</text:span>
</text:p>
</draw:text-box>
diff --git a/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_draw.xml b/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_draw.xml
index 01cdab8eaf68..afb83c75e754 100644
--- a/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_draw.xml
+++ b/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_draw.xml
@@ -36,73 +36,73 @@
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -112,24 +112,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -143,19 +143,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -164,33 +164,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -201,7 +201,7 @@ u
l
a
r
-
+
m
o
m
@@ -209,36 +209,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -250,40 +250,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -295,17 +295,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -313,32 +313,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -352,19 +352,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -373,15 +373,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -389,63 +389,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -459,44 +459,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -505,38 +505,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -544,10 +544,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -562,35 +562,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -598,10 +598,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -611,18 +611,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -630,7 +630,7 @@ u
n
d
.
-
+
S
u
d
@@ -639,18 +639,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -665,12 +665,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -680,37 +680,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -722,7 +722,7 @@ a
r
e
d
-
+
b
e
t
@@ -730,15 +730,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -749,14 +749,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -772,53 +772,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -828,19 +828,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -850,19 +850,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -876,19 +876,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -897,11 +897,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -910,7 +910,7 @@ e
n
l
y
-
+
s
t
i
@@ -921,16 +921,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -940,36 +940,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -981,45 +981,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -1027,24 +1027,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -1052,26 +1052,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1086,11 +1086,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -1098,39 +1098,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -1138,7 +1138,7 @@ u
g
h
t
-
+
p
r
e
@@ -1147,7 +1147,7 @@ s
i
n
g
-
+
h
i
m
@@ -1155,12 +1155,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -1168,16 +1168,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1192,15 +1192,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -1208,7 +1208,7 @@ s
e
l
f
-
+
i
n
v
@@ -1218,33 +1218,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -1253,18 +1253,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -1272,14 +1272,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1296,76 +1296,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -1374,7 +1374,7 @@ h
e
s
.
-
+
S
u
d
@@ -1383,7 +1383,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1396,29 +1396,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -1429,7 +1429,7 @@ a
b
l
e
-
+
s
q
u
@@ -1437,20 +1437,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -1458,25 +1458,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -1484,7 +1484,7 @@ h
t
'
s
-
+
b
r
e
@@ -1492,7 +1492,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1506,74 +1506,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -1582,7 +1582,7 @@ s
i
n
g
-
+
h
i
m
@@ -1590,16 +1590,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1612,83 +1612,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
@@ -1704,73 +1704,73 @@ e
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -1780,24 +1780,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1811,19 +1811,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -1832,33 +1832,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -1869,7 +1869,7 @@ u
l
a
r
-
+
m
o
m
@@ -1877,36 +1877,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1918,40 +1918,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -1963,17 +1963,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -1981,32 +1981,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2020,19 +2020,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -2041,15 +2041,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -2057,63 +2057,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2127,44 +2127,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -2173,38 +2173,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -2212,10 +2212,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2230,35 +2230,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -2266,10 +2266,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -2279,18 +2279,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -2298,7 +2298,7 @@ u
n
d
.
-
+
S
u
d
@@ -2307,18 +2307,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2333,12 +2333,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -2348,37 +2348,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -2390,7 +2390,7 @@ a
r
e
d
-
+
b
e
t
@@ -2398,15 +2398,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -2417,14 +2417,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2440,53 +2440,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -2496,19 +2496,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -2518,19 +2518,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2551,19 +2551,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -2572,11 +2572,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -2585,7 +2585,7 @@ e
n
l
y
-
+
s
t
i
@@ -2596,16 +2596,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -2615,36 +2615,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2656,45 +2656,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -2702,24 +2702,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -2727,26 +2727,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2761,11 +2761,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -2773,39 +2773,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -2813,7 +2813,7 @@ u
g
h
t
-
+
p
r
e
@@ -2822,7 +2822,7 @@ s
i
n
g
-
+
h
i
m
@@ -2830,12 +2830,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -2843,16 +2843,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2867,15 +2867,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -2883,7 +2883,7 @@ s
e
l
f
-
+
i
n
v
@@ -2893,33 +2893,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -2928,18 +2928,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -2947,14 +2947,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2971,76 +2971,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -3049,7 +3049,7 @@ h
e
s
.
-
+
S
u
d
@@ -3058,7 +3058,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3071,29 +3071,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -3104,7 +3104,7 @@ a
b
l
e
-
+
s
q
u
@@ -3112,20 +3112,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -3133,25 +3133,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -3159,7 +3159,7 @@ h
t
'
s
-
+
b
r
e
@@ -3167,7 +3167,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3181,74 +3181,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -3257,7 +3257,7 @@ s
i
n
g
-
+
h
i
m
@@ -3265,16 +3265,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3287,83 +3287,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
diff --git a/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_impress.xml b/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_impress.xml
index b4e9bfdc2468..b24a1ed4df12 100644
--- a/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_impress.xml
+++ b/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_impress.xml
@@ -36,73 +36,73 @@
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -112,24 +112,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -143,19 +143,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -164,33 +164,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -201,7 +201,7 @@ u
l
a
r
-
+
m
o
m
@@ -209,36 +209,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -250,40 +250,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -295,17 +295,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -313,32 +313,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -352,19 +352,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -373,15 +373,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -389,63 +389,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -459,44 +459,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -505,38 +505,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -544,10 +544,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -562,35 +562,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -598,10 +598,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -611,18 +611,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -630,7 +630,7 @@ u
n
d
.
-
+
S
u
d
@@ -639,18 +639,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -665,12 +665,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -680,37 +680,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -722,7 +722,7 @@ a
r
e
d
-
+
b
e
t
@@ -730,15 +730,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -749,14 +749,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -772,53 +772,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -828,19 +828,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -850,19 +850,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -876,19 +876,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -897,11 +897,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -910,7 +910,7 @@ e
n
l
y
-
+
s
t
i
@@ -921,16 +921,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -940,36 +940,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -981,45 +981,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -1027,24 +1027,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -1052,26 +1052,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1086,11 +1086,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -1098,39 +1098,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -1138,7 +1138,7 @@ u
g
h
t
-
+
p
r
e
@@ -1147,7 +1147,7 @@ s
i
n
g
-
+
h
i
m
@@ -1155,12 +1155,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -1168,16 +1168,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1192,15 +1192,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -1208,7 +1208,7 @@ s
e
l
f
-
+
i
n
v
@@ -1218,33 +1218,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -1253,18 +1253,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -1272,14 +1272,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1296,76 +1296,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -1374,7 +1374,7 @@ h
e
s
.
-
+
S
u
d
@@ -1383,7 +1383,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1396,29 +1396,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -1429,7 +1429,7 @@ a
b
l
e
-
+
s
q
u
@@ -1437,20 +1437,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -1458,25 +1458,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -1484,7 +1484,7 @@ h
t
'
s
-
+
b
r
e
@@ -1492,7 +1492,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1506,74 +1506,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -1582,7 +1582,7 @@ s
i
n
g
-
+
h
i
m
@@ -1590,16 +1590,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1612,83 +1612,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
@@ -1704,73 +1704,73 @@ e
<text:span text:style-name="text7" >
H
e
-
+
h
e
a
r
d
-
+
q
u
i
e
t
-
+
s
t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
.
-
+
T
h
a
t
-
+
d
i
d
n
'
t
-
+
b
o
d
e
-
+
w
e
l
l
.
-
+
W
h
o
-
+
c
o
u
l
d
-
+
b
e
-
+
f
o
l
@@ -1780,24 +1780,24 @@ w
i
n
g
-
+
h
i
m
-
+
t
h
i
s
-
+
l
a
t
e
-
+
a
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1811,19 +1811,19 @@ i
g
h
t
-
+
a
n
d
-
+
i
n
-
+
t
h
i
s
-
+
d
e
a
@@ -1832,33 +1832,33 @@ b
e
a
t
-
+
p
a
r
t
-
+
o
f
-
+
t
o
w
n
?
-
+
A
n
d
-
+
a
t
-
+
t
h
i
s
-
+
p
a
r
@@ -1869,7 +1869,7 @@ u
l
a
r
-
+
m
o
m
@@ -1877,36 +1877,36 @@ e
n
t
,
-
+
j
u
s
t
-
+
a
f
t
e
r
-
+
h
e
-
+
p
u
l
l
e
d
-
+
o
f
f
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -1918,40 +1918,40 @@ e
b
i
g
-
+
t
i
m
e
-
+
a
n
d
-
+
w
a
s
-
+
m
a
k
i
n
g
-
+
o
f
f
-
+
w
i
t
h
-
+
t
h
e
-
+
g
r
e
@@ -1963,17 +1963,17 @@ c
k
s
.
-
+
W
a
s
-
+
t
h
e
r
e
-
+
a
n
o
@@ -1981,32 +1981,32 @@ t
h
e
r
-
+
c
r
o
o
k
-
+
w
h
o
'
d
-
+
h
a
d
-
+
t
h
e
-
+
s
a
m
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2020,19 +2020,19 @@ d
e
a
,
-
+
a
n
d
-
+
w
a
s
-
+
n
o
w
-
+
w
a
t
@@ -2041,15 +2041,15 @@ h
i
n
g
-
+
h
i
m
-
+
a
n
d
-
+
w
a
i
@@ -2057,63 +2057,63 @@ t
i
n
g
-
+
f
o
r
-
+
a
-
+
c
h
a
n
c
e
-
+
t
o
-
+
g
r
a
b
-
+
t
h
e
-
+
f
r
u
i
t
-
+
o
f
-
+
h
i
s
-
+
l
a
b
o
r
?
-
+
O
r
-
+
d
i
d
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2127,44 +2127,44 @@ t
e
p
s
-
+
b
e
h
i
n
d
-
+
h
i
m
-
+
m
e
a
n
-
+
t
h
a
t
-
+
o
n
e
-
+
o
f
-
+
m
a
n
y
-
+
l
a
w
-
+
o
f
f
@@ -2173,38 +2173,38 @@ c
e
r
s
-
+
i
n
-
+
t
o
w
n
-
+
w
a
s
-
+
o
n
-
+
t
o
-
+
h
i
m
-
+
a
n
d
-
+
j
u
s
t
-
+
w
a
i
@@ -2212,10 +2212,10 @@ t
i
n
g
-
+
t
o
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2230,35 +2230,35 @@ u
n
c
e
-
+
a
n
d
-
+
s
n
a
p
-
+
t
h
o
s
e
-
+
c
u
f
f
s
-
+
o
n
-
+
h
i
s
-
+
w
r
i
@@ -2266,10 +2266,10 @@ s
t
s
?
-
+
H
e
-
+
n
e
r
@@ -2279,18 +2279,18 @@ u
s
l
y
-
+
l
o
o
k
e
d
-
+
a
l
l
-
+
a
r
o
@@ -2298,7 +2298,7 @@ u
n
d
.
-
+
S
u
d
@@ -2307,18 +2307,18 @@ e
n
l
y
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2333,12 +2333,12 @@ l
e
y
.
-
+
L
i
k
e
-
+
l
i
g
@@ -2348,37 +2348,37 @@ n
i
n
g
-
+
h
e
-
+
d
a
r
t
e
d
-
+
o
f
f
-
+
t
o
-
+
t
h
e
-
+
l
e
f
t
-
+
a
n
d
-
+
d
i
s
@@ -2390,7 +2390,7 @@ a
r
e
d
-
+
b
e
t
@@ -2398,15 +2398,15 @@ w
e
e
n
-
+
t
h
e
-
+
t
w
o
-
+
w
a
r
@@ -2417,14 +2417,14 @@ u
s
e
s
-
+
a
l
m
o
s
t
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2440,53 +2440,53 @@ l
i
n
g
-
+
o
v
e
r
-
+
t
h
e
-
+
t
r
a
s
h
-
+
c
a
n
-
+
l
y
i
n
g
-
+
i
n
-
+
t
h
e
-
+
m
i
d
d
l
e
-
+
o
f
-
+
t
h
e
-
+
s
i
d
@@ -2496,19 +2496,19 @@ a
l
k
.
-
+
H
e
-
+
t
r
i
e
d
-
+
t
o
-
+
n
e
r
@@ -2518,19 +2518,19 @@ u
s
l
y
-
+
t
a
p
-
+
h
i
s
-
+
w
a
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2551,19 +2551,19 @@ l
o
n
g
-
+
i
n
-
+
t
h
e
-
+
i
n
k
y
-
+
d
a
r
@@ -2572,11 +2572,11 @@ n
e
s
s
-
+
a
n
d
-
+
s
u
d
@@ -2585,7 +2585,7 @@ e
n
l
y
-
+
s
t
i
@@ -2596,16 +2596,16 @@ n
e
d
:
-
+
i
t
-
+
w
a
s
-
+
a
-
+
d
e
a
@@ -2615,36 +2615,36 @@ e
n
d
,
-
+
h
e
-
+
w
o
u
l
d
-
+
h
a
v
e
-
+
t
o
-
+
g
o
-
+
b
a
c
k
-
+
t
h
e
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2656,45 +2656,45 @@ e
w
a
y
-
+
h
e
-
+
h
a
d
-
+
c
o
m
e
.
-
+
T
h
e
-
+
s
t
e
p
s
-
+
g
o
t
-
+
l
o
u
d
e
r
-
+
a
n
d
-
+
l
o
u
@@ -2702,24 +2702,24 @@ d
e
r
,
-
+
h
e
-
+
s
a
w
-
+
t
h
e
-
+
b
l
a
c
k
-
+
o
u
t
@@ -2727,26 +2727,26 @@ l
i
n
e
-
+
o
f
-
+
a
-
+
f
i
g
u
r
e
-
+
c
o
m
i
n
g
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2761,11 +2761,11 @@ o
u
n
d
-
+
t
h
e
-
+
c
o
r
@@ -2773,39 +2773,39 @@ n
e
r
.
-
+
I
s
-
+
t
h
i
s
-
+
t
h
e
-
+
e
n
d
-
+
o
f
-
+
t
h
e
-
+
l
i
n
e
?
-
+
h
e
-
+
t
h
o
@@ -2813,7 +2813,7 @@ u
g
h
t
-
+
p
r
e
@@ -2822,7 +2822,7 @@ s
i
n
g
-
+
h
i
m
@@ -2830,12 +2830,12 @@ s
e
l
f
-
+
b
a
c
k
-
+
a
g
a
@@ -2843,16 +2843,16 @@ i
n
s
t
-
+
t
h
e
-
+
w
a
l
l
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2867,15 +2867,15 @@ y
i
n
g
-
+
t
o
-
+
m
a
k
e
-
+
h
i
m
@@ -2883,7 +2883,7 @@ s
e
l
f
-
+
i
n
v
@@ -2893,33 +2893,33 @@ i
b
l
e
-
+
i
n
-
+
t
h
e
-
+
d
a
r
k
,
-
+
w
a
s
-
+
a
l
l
-
+
t
h
a
t
-
+
p
l
a
@@ -2928,18 +2928,18 @@ n
i
n
g
-
+
a
n
d
-
+
e
n
e
r
g
y
-
+
w
a
s
@@ -2947,14 +2947,14 @@ t
e
d
?
-
+
H
e
-
+
w
a
s
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -2971,76 +2971,76 @@ p
i
n
g
-
+
w
i
t
h
-
+
s
w
e
a
t
-
+
n
o
w
,
-
+
c
o
l
d
-
+
a
n
d
-
+
w
e
t
,
-
+
h
e
-
+
c
o
u
l
d
-
+
s
m
e
l
l
-
+
t
h
e
-
+
f
e
a
r
-
+
c
o
m
i
n
g
-
+
o
f
f
-
+
h
i
s
-
+
c
l
o
@@ -3049,7 +3049,7 @@ h
e
s
.
-
+
S
u
d
@@ -3058,7 +3058,7 @@ e
n
l
y
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3071,29 +3071,29 @@ n
e
x
t
-
+
t
o
-
+
h
i
m
,
-
+
w
i
t
h
-
+
a
-
+
b
a
r
e
l
y
-
+
n
o
t
@@ -3104,7 +3104,7 @@ a
b
l
e
-
+
s
q
u
@@ -3112,20 +3112,20 @@ e
a
k
,
-
+
a
-
+
d
o
o
r
-
+
s
w
u
n
g
-
+
q
u
i
@@ -3133,25 +3133,25 @@ e
t
l
y
-
+
t
o
-
+
a
n
d
-
+
f
r
o
-
+
i
n
-
+
t
h
e
-
+
n
i
g
@@ -3159,7 +3159,7 @@ h
t
'
s
-
+
b
r
e
@@ -3167,7 +3167,7 @@ e
z
e
.
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3181,74 +3181,74 @@ o
u
l
d
-
+
t
h
i
s
-
+
b
e
-
+
t
h
e
-
+
h
a
v
e
n
-
+
h
e
'
d
-
+
p
r
a
y
e
d
-
+
f
o
r
?
-
+
S
l
o
w
l
y
-
+
h
e
-
+
s
l
i
d
-
+
t
o
w
a
r
d
-
+
t
h
e
-
+
d
o
o
r
,
-
+
p
r
e
@@ -3257,7 +3257,7 @@ s
i
n
g
-
+
h
i
m
@@ -3265,16 +3265,16 @@ s
e
l
f
-
+
m
o
r
e
-
+
a
n
d
-
+
</text:span>
</text:p>
</draw:text-box>
@@ -3287,83 +3287,83 @@ m
o
r
e
-
+
i
n
t
o
-
+
t
h
e
-
+
w
a
l
l
,
-
+
i
n
t
o
-
+
t
h
e
-
+
d
a
r
k
,
-
+
a
w
a
y
-
+
f
r
o
m
-
+
h
i
s
-
+
e
n
e
m
y
.
-
+
W
o
u
l
d
-
+
t
h
i
s
-
+
d
o
o
r
-
+
s
a
v
e
-
+
h
i
s
-
+
h
i
d
diff --git a/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_writer.xml b/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_writer.xml
index 2b68f12e6bb5..fda03d3589de 100644
--- a/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_writer.xml
+++ b/sdext/source/pdfimport/test/testdocs/txtpictxt_pdfi_unittest_writer.xml
@@ -36,7 +36,7 @@
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
+He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
</text:span>
</text:p>
</draw:text-box>
@@ -45,7 +45,7 @@ He heard quiet steps behind him. That didn't bode well. Who could be following h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
+night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
</text:span>
</text:p>
</draw:text-box>
@@ -54,7 +54,7 @@ night and in this deadbeat part of town? And at this particular moment, just aft
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-big time and was making off with the greenbacks. Was there another crook who'd had the same
+big time and was making off with the greenbacks. Was there another crook who'd had the same
</text:span>
</text:p>
</draw:text-box>
@@ -63,7 +63,7 @@ big time and was making off with the greenbacks. Was there another crook who'd h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
+idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
</text:span>
</text:p>
</draw:text-box>
@@ -72,7 +72,7 @@ idea, and was now watching him and waiting for a chance to grab the fruit of his
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-steps behind him mean that one of many law officers in town was on to him and just waiting to
+steps behind him mean that one of many law officers in town was on to him and just waiting to
</text:span>
</text:p>
</draw:text-box>
@@ -81,7 +81,7 @@ steps behind him mean that one of many law officers in town was on to him and ju
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
+pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
</text:span>
</text:p>
</draw:text-box>
@@ -90,7 +90,7 @@ pounce and snap those cuffs on his wrists? He nervously looked all around. Sudde
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
+alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
</text:span>
</text:p>
</draw:text-box>
@@ -99,7 +99,7 @@ alley. Like lightning he darted off to the left and disappeared between the two
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
+falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
</text:span>
</text:p>
</draw:text-box>
@@ -108,7 +108,7 @@ falling over the trash can lying in the middle of the sidewalk. He tried to nerv
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
+along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
</text:span>
</text:p>
</draw:text-box>
@@ -117,7 +117,7 @@ along in the inky darkness and suddenly stiffened: it was a dead-end, he would h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-way he had come. The steps got louder and louder, he saw the black outline of a figure coming
+way he had come. The steps got louder and louder, he saw the black outline of a figure coming
</text:span>
</text:p>
</draw:text-box>
@@ -126,7 +126,7 @@ way he had come. The steps got louder and louder, he saw the black outline of a
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-around the corner. Is this the end of the line? he thought pressing himself back against the wall
+around the corner. Is this the end of the line? he thought pressing himself back against the wall
</text:span>
</text:p>
</draw:text-box>
@@ -135,7 +135,7 @@ around the corner. Is this the end of the line? he thought pressing himself back
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-trying to make himself invisible in the dark, was all that planning and energy wasted? He was
+trying to make himself invisible in the dark, was all that planning and energy wasted? He was
</text:span>
</text:p>
</draw:text-box>
@@ -144,7 +144,7 @@ trying to make himself invisible in the dark, was all that planning and energy w
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
+dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
</text:span>
</text:p>
</draw:text-box>
@@ -153,7 +153,7 @@ dripping with sweat now, cold and wet, he could smell the fear coming off his cl
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
+next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
</text:span>
</text:p>
</draw:text-box>
@@ -162,7 +162,7 @@ next to him, with a barely noticeable squeak, a door swung quietly to and fro in
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
+Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
</text:span>
</text:p>
</draw:text-box>
@@ -180,7 +180,7 @@ more into the wall, into the dark, away from his enemy. Would this door save his
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
+He heard quiet steps behind him. That didn't bode well. Who could be following him this late at
</text:span>
</text:p>
</draw:text-box>
@@ -189,7 +189,7 @@ He heard quiet steps behind him. That didn't bode well. Who could be following h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
+night and in this deadbeat part of town? And at this particular moment, just after he pulled off the
</text:span>
</text:p>
</draw:text-box>
@@ -198,7 +198,7 @@ night and in this deadbeat part of town? And at this particular moment, just aft
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-big time and was making off with the greenbacks. Was there another crook who'd had the same
+big time and was making off with the greenbacks. Was there another crook who'd had the same
</text:span>
</text:p>
</draw:text-box>
@@ -207,7 +207,7 @@ big time and was making off with the greenbacks. Was there another crook who'd h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
+idea, and was now watching him and waiting for a chance to grab the fruit of his labor? Or did the
</text:span>
</text:p>
</draw:text-box>
@@ -216,7 +216,7 @@ idea, and was now watching him and waiting for a chance to grab the fruit of his
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-steps behind him mean that one of many law officers in town was on to him and just waiting to
+steps behind him mean that one of many law officers in town was on to him and just waiting to
</text:span>
</text:p>
</draw:text-box>
@@ -225,7 +225,7 @@ steps behind him mean that one of many law officers in town was on to him and ju
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
+pounce and snap those cuffs on his wrists? He nervously looked all around. Suddenly he saw the
</text:span>
</text:p>
</draw:text-box>
@@ -234,7 +234,7 @@ pounce and snap those cuffs on his wrists? He nervously looked all around. Sudde
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
+alley. Like lightning he darted off to the left and disappeared between the two warehouses almost
</text:span>
</text:p>
</draw:text-box>
@@ -243,7 +243,7 @@ alley. Like lightning he darted off to the left and disappeared between the two
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
+falling over the trash can lying in the middle of the sidewalk. He tried to nervously tap his way
</text:span>
</text:p>
</draw:text-box>
@@ -259,7 +259,7 @@ UDYKMTAwIDQwCjI1NQr/////////////////////////////////////////////////////////////
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
+along in the inky darkness and suddenly stiffened: it was a dead-end, he would have to go back the
</text:span>
</text:p>
</draw:text-box>
@@ -268,7 +268,7 @@ along in the inky darkness and suddenly stiffened: it was a dead-end, he would h
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-way he had come. The steps got louder and louder, he saw the black outline of a figure coming
+way he had come. The steps got louder and louder, he saw the black outline of a figure coming
</text:span>
</text:p>
</draw:text-box>
@@ -277,7 +277,7 @@ way he had come. The steps got louder and louder, he saw the black outline of a
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-around the corner. Is this the end of the line? he thought pressing himself back against the wall
+around the corner. Is this the end of the line? he thought pressing himself back against the wall
</text:span>
</text:p>
</draw:text-box>
@@ -286,7 +286,7 @@ around the corner. Is this the end of the line? he thought pressing himself back
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-trying to make himself invisible in the dark, was all that planning and energy wasted? He was
+trying to make himself invisible in the dark, was all that planning and energy wasted? He was
</text:span>
</text:p>
</draw:text-box>
@@ -295,7 +295,7 @@ trying to make himself invisible in the dark, was all that planning and energy w
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
+dripping with sweat now, cold and wet, he could smell the fear coming off his clothes. Suddenly
</text:span>
</text:p>
</draw:text-box>
@@ -304,7 +304,7 @@ dripping with sweat now, cold and wet, he could smell the fear coming off his cl
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
+next to him, with a barely noticeable squeak, a door swung quietly to and fro in the night's breeze.
</text:span>
</text:p>
</draw:text-box>
@@ -313,7 +313,7 @@ next to him, with a barely noticeable squeak, a door swung quietly to and fro in
<draw:text-box >
<text:p >
<text:span text:style-name="text7" >
-Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
+Could this be the haven he'd prayed for? Slowly he slid toward the door, pressing himself more and
</text:span>
</text:p>
</draw:text-box>
diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/source/pdfimport/test/tests.cxx
index 63cdaa88466a..cccff7dc441e 100644
--- a/sdext/source/pdfimport/test/tests.cxx
+++ b/sdext/source/pdfimport/test/tests.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index bc24000025c2..bb6c6c6d3451 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,19 +80,19 @@ const ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator >
return mxBreakIter;
}
-void DrawXmlEmitter::visit( HyperlinkElement& elem, const std::list< Element* >::const_iterator& )
-{
+void DrawXmlEmitter::visit( HyperlinkElement& elem, const std::list< Element* >::const_iterator& )
+{
if( elem.Children.empty() )
return;
-
+
const char* pType = dynamic_cast<DrawElement*>(elem.Children.front()) ? "draw:a" : "text:a";
-
+
PropertyMap aProps;
aProps[ USTR( "xlink:type" ) ] = USTR( "simple" );
aProps[ USTR( "xlink:href" ) ] = elem.URI;
aProps[ USTR( "office:target-frame-name" ) ] = USTR( "_blank" );
aProps[ USTR( "xlink:show" ) ] = USTR( "new" );
-
+
m_rEmitContext.rEmitter.beginTag( pType, aProps );
std::list< Element* >::iterator this_it = elem.Children.begin();
while( this_it !=elem.Children.end() && *this_it != &elem )
@@ -103,18 +103,18 @@ void DrawXmlEmitter::visit( HyperlinkElement& elem, const std::list< Element* >:
m_rEmitContext.rEmitter.endTag( pType );
}
-void DrawXmlEmitter::visit( TextElement& elem, const std::list< Element* >::const_iterator& )
+void DrawXmlEmitter::visit( TextElement& elem, const std::list< Element* >::const_iterator& )
{
if( ! elem.Text.getLength() )
return;
-
+
rtl::OUString strSpace(32);
rtl::OUString strNbSpace(160);
rtl::OUString tabSpace(0x09);
PropertyMap aProps;
if( elem.StyleId != -1 )
{
- aProps[ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "text:style-name" ) ) ] =
+ aProps[ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "text:style-name" ) ) ] =
m_rEmitContext.rStyles.getStyleName( elem.StyleId );
}
@@ -127,7 +127,7 @@ void DrawXmlEmitter::visit( TextElement& elem, const std::list< Element* >::cons
sal_Int16 nType = GetBreakIterator()->getScriptType( str, i + 1);
if (nType == ::com::sun::star::i18n::ScriptType::COMPLEX)
isComplex = true;
- }
+ }
m_rEmitContext.rEmitter.beginTag( "text:span", aProps );
@@ -152,7 +152,7 @@ void DrawXmlEmitter::visit( TextElement& elem, const std::list< Element* >::cons
m_rEmitContext.rEmitter.write( strToken );
}
}
- }
+ }
std::list< Element* >::iterator this_it = elem.Children.begin();
while( this_it !=elem.Children.end() && *this_it != &elem )
@@ -160,7 +160,7 @@ void DrawXmlEmitter::visit( TextElement& elem, const std::list< Element* >::cons
(*this_it)->visitedBy( *this, this_it );
this_it++;
}
-
+
m_rEmitContext.rEmitter.endTag( "text:span" );
}
@@ -175,28 +175,28 @@ void DrawXmlEmitter::visit( ParagraphElement& elem, const std::list< Element* >:
if( elem.Type == elem.Headline )
pTagType = "text:h";
m_rEmitContext.rEmitter.beginTag( pTagType, aProps );
-
+
std::list< Element* >::iterator this_it = elem.Children.begin();
while( this_it !=elem.Children.end() && *this_it != &elem )
{
(*this_it)->visitedBy( *this, this_it );
this_it++;
}
-
+
m_rEmitContext.rEmitter.endTag( pTagType );
}
-void DrawXmlEmitter::fillFrameProps( DrawElement& rElem,
- PropertyMap& rProps,
+void DrawXmlEmitter::fillFrameProps( DrawElement& rElem,
+ PropertyMap& rProps,
const EmitContext& rEmitContext )
{
double rel_x = rElem.x, rel_y = rElem.y;
-
+
rProps[ USTR( "draw:z-index" ) ] = rtl::OUString::valueOf( rElem.ZOrder );
rProps[ USTR( "draw:style-name" )] = rEmitContext.rStyles.getStyleName( rElem.StyleId );
rProps[ USTR( "svg:width" ) ] = convertPixelToUnitString( rElem.w );
rProps[ USTR( "svg:height" ) ] = convertPixelToUnitString( rElem.h );
-
+
const GraphicsContext& rGC =
rEmitContext.rProcessor.getGraphicsContext( rElem.GCId );
if( rGC.Transformation.isIdentity() )
@@ -208,14 +208,14 @@ void DrawXmlEmitter::fillFrameProps( DrawElement& rElem,
{
basegfx::B2DTuple aScale, aTranslation;
double fRotate, fShearX;
-
+
rGC.Transformation.decompose( aScale, aTranslation, fRotate, fShearX );
-
+
rtl::OUStringBuffer aBuf( 256 );
- // TODO(F2): general transformation case missing; if implemented, note
+ // TODO(F2): general transformation case missing; if implemented, note
// that ODF rotation is oriented the other way
-
+
// vertical mirroring is done by horizontally mirroring and rotaing 180 degree
// quaint !
if( rElem.MirrorVertical )
@@ -244,36 +244,36 @@ void DrawXmlEmitter::fillFrameProps( DrawElement& rElem,
aBuf.append( sal_Unicode(' ') );
aBuf.append( convertPixelToUnitString( rel_y ) );
aBuf.appendAscii( " )" );
-
+
rProps[ USTR( "draw:transform" ) ] = aBuf.makeStringAndClear();
}
}
-void DrawXmlEmitter::visit( FrameElement& elem, const std::list< Element* >::const_iterator& )
-{
+void DrawXmlEmitter::visit( FrameElement& elem, const std::list< Element* >::const_iterator& )
+{
if( elem.Children.empty() )
return;
-
+
bool bTextBox = (dynamic_cast<ParagraphElement*>(elem.Children.front()) != NULL);
PropertyMap aFrameProps;
fillFrameProps( elem, aFrameProps, m_rEmitContext );
m_rEmitContext.rEmitter.beginTag( "draw:frame", aFrameProps );
if( bTextBox )
m_rEmitContext.rEmitter.beginTag( "draw:text-box", PropertyMap() );
-
+
std::list< Element* >::iterator this_it = elem.Children.begin();
while( this_it !=elem.Children.end() && *this_it != &elem )
{
(*this_it)->visitedBy( *this, this_it );
this_it++;
}
-
+
if( bTextBox )
m_rEmitContext.rEmitter.endTag( "draw:text-box" );
m_rEmitContext.rEmitter.endTag( "draw:frame" );
}
-void DrawXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >::const_iterator& )
+void DrawXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >::const_iterator& )
{
elem.updateGeometry();
/* note:
@@ -287,44 +287,44 @@ void DrawXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >::
{
basegfx::B2DPolygon b2dPolygon;
b2dPolygon = elem.PolyPoly.getB2DPolygon( i );
-
+
for ( sal_uInt32 j = 0; j< b2dPolygon.count(); j++ )
{
basegfx::B2DPoint point;
basegfx::B2DPoint nextPoint;
point = b2dPolygon.getB2DPoint( j );
-
+
basegfx::B2DPoint prevPoint;
prevPoint = b2dPolygon.getPrevControlPoint( j ) ;
-
- point.setX( convPx2mmPrec2( point.getX() )*100.0 );
+
+ point.setX( convPx2mmPrec2( point.getX() )*100.0 );
point.setY( convPx2mmPrec2( point.getY() )*100.0 );
-
+
if ( b2dPolygon.isPrevControlPointUsed( j ) )
{
- prevPoint.setX( convPx2mmPrec2( prevPoint.getX() )*100.0 );
+ prevPoint.setX( convPx2mmPrec2( prevPoint.getX() )*100.0 );
prevPoint.setY( convPx2mmPrec2( prevPoint.getY() )*100.0 );
}
-
+
if ( b2dPolygon.isNextControlPointUsed( j ) )
{
nextPoint = b2dPolygon.getNextControlPoint( j ) ;
- nextPoint.setX( convPx2mmPrec2( nextPoint.getX() )*100.0 );
+ nextPoint.setX( convPx2mmPrec2( nextPoint.getX() )*100.0 );
nextPoint.setY( convPx2mmPrec2( nextPoint.getY() )*100.0 );
- }
-
+ }
+
b2dPolygon.setB2DPoint( j, point );
-
+
if ( b2dPolygon.isPrevControlPointUsed( j ) )
b2dPolygon.setPrevControlPoint( j , prevPoint ) ;
-
+
if ( b2dPolygon.isNextControlPointUsed( j ) )
b2dPolygon.setNextControlPoint( j , nextPoint ) ;
}
-
+
elem.PolyPoly.setB2DPolygon( i, b2dPolygon );
}
-
+
PropertyMap aProps;
fillFrameProps( elem, aProps, m_rEmitContext );
rtl::OUStringBuffer aBuf( 64 );
@@ -334,14 +334,14 @@ void DrawXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >::
aBuf.append( convPx2mmPrec2(elem.h)*100.0 );
aProps[ USTR( "svg:viewBox" ) ] = aBuf.makeStringAndClear();
aProps[ USTR( "svg:d" ) ] = basegfx::tools::exportToSvgD( elem.PolyPoly );
-
+
m_rEmitContext.rEmitter.beginTag( "draw:path", aProps );
m_rEmitContext.rEmitter.endTag( "draw:path" );
}
-void DrawXmlEmitter::visit( ImageElement& elem, const std::list< Element* >::const_iterator& )
+void DrawXmlEmitter::visit( ImageElement& elem, const std::list< Element* >::const_iterator& )
{
- PropertyMap aImageProps;
+ PropertyMap aImageProps;
m_rEmitContext.rEmitter.beginTag( "draw:image", aImageProps );
m_rEmitContext.rEmitter.beginTag( "office:binary-data", PropertyMap() );
m_rEmitContext.rImages.writeBase64EncodedStream( elem.Image, m_rEmitContext);
@@ -353,9 +353,9 @@ void DrawXmlEmitter::visit( PageElement& elem, const std::list< Element* >::cons
{
PropertyMap aPageProps;
aPageProps[ USTR( "draw:master-page-name" ) ] = m_rEmitContext.rStyles.getStyleName( elem.StyleId );
-
+
m_rEmitContext.rEmitter.beginTag("draw:page", aPageProps);
-
+
if( m_rEmitContext.xStatusIndicator.is() )
m_rEmitContext.xStatusIndicator->setValue( elem.PageNumber );
@@ -365,23 +365,23 @@ void DrawXmlEmitter::visit( PageElement& elem, const std::list< Element* >::cons
(*this_it)->visitedBy( *this, this_it );
this_it++;
}
-
+
m_rEmitContext.rEmitter.endTag("draw:page");
}
-
+
void DrawXmlEmitter::visit( DocumentElement& elem, const std::list< Element* >::const_iterator&)
{
m_rEmitContext.rEmitter.beginTag( "office:body", PropertyMap() );
- m_rEmitContext.rEmitter.beginTag( m_bWriteDrawDocument ? "office:drawing" : "office:presentation",
+ m_rEmitContext.rEmitter.beginTag( m_bWriteDrawDocument ? "office:drawing" : "office:presentation",
PropertyMap() );
-
+
std::list< Element* >::iterator this_it = elem.Children.begin();
while( this_it !=elem.Children.end() && *this_it != &elem )
{
(*this_it)->visitedBy( *this, this_it );
this_it++;
}
-
+
m_rEmitContext.rEmitter.endTag( m_bWriteDrawDocument ? "office:drawing" : "office:presentation" );
m_rEmitContext.rEmitter.endTag( "office:body" );
}
@@ -412,12 +412,12 @@ void DrawXmlOptimizer::visit( PolyPolyElement& elem, const std::list< Element* >
* the other is a fill
*/
if( elem.Parent )
- {
- // find following PolyPolyElement in parent's children list
+ {
+ // find following PolyPolyElement in parent's children list
std::list< Element* >::iterator this_it = elem.Parent->Children.begin();
while( this_it != elem.Parent->Children.end() && *this_it != &elem )
++this_it;
-
+
if( this_it != elem.Parent->Children.end() )
{
std::list< Element* >::iterator next_it = this_it;
@@ -477,15 +477,15 @@ void DrawXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::co
if( m_rProcessor.getStatusIndicator().is() )
m_rProcessor.getStatusIndicator()->setValue( elem.PageNumber );
- // resolve hyperlinks
+ // resolve hyperlinks
elem.resolveHyperlinks();
-
+
elem.resolveFontStyles( m_rProcessor ); // underlines and such
-
- // FIXME: until hyperlinks and font effects are adjusted for
- // geometrical search handle them before sorting
+
+ // FIXME: until hyperlinks and font effects are adjusted for
+ // geometrical search handle them before sorting
m_rProcessor.sortElements( &elem );
-
+
// find paragraphs in text
ParagraphElement* pCurPara = NULL;
std::list< Element* >::iterator page_element, next_page_element;
@@ -514,7 +514,7 @@ void DrawXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::co
fCurLineHeight = (fCurLineHeight*double(nCurLineElements) + pTestText->h)/double(nCurLineElements+1);
nCurLineElements++;
}
- }
+ }
continue;
}
@@ -525,7 +525,7 @@ void DrawXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::co
if( pDraw )
{
// insert small drawing objects as character, else leave them page bound
-
+
bool bInsertToParagraph = false;
// first check if this is either inside the paragraph
if( pCurPara && pDraw->y < pCurPara->y + pCurPara->h )
@@ -568,14 +568,14 @@ void DrawXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::co
pDraw->isCharacter = true;
}
}
-
+
if( ! bInsertToParagraph )
{
pCurPara = NULL;
continue;
}
}
-
+
TextElement* pText = dynamic_cast<TextElement*>(*page_element);
if( ! pText && pLink && ! pLink->Children.empty() )
pText = dynamic_cast<TextElement*>(pLink->Children.front());
@@ -604,10 +604,10 @@ void DrawXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::co
}
}
-
+
}
-
+
// update line height/width
if( pCurPara )
{
@@ -626,8 +626,8 @@ void DrawXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::co
line_right = pGeo->x + pGeo->w;
}
}
-
-
+
+
// move element to current paragraph
if (! pCurPara ) // new paragraph, insert one
{
@@ -662,7 +662,7 @@ bool isSpaces(TextElement* pTextElem)
rtl::OUString strToken = ouTxt2.copy(i,1) ;
if( !strSpace.equals(strToken) )
return false;
- }
+ }
return true;
}
@@ -672,7 +672,7 @@ bool notTransformed(GraphicsContext GC)
GC.Transformation.get(0,0) == 100.00 &&
GC.Transformation.get(1,0) == 0.00 &&
GC.Transformation.get(0,1) == 0.00 &&
- GC.Transformation.get(1,1) == -100.00
+ GC.Transformation.get(1,1) == -100.00
);
}
@@ -683,7 +683,7 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
OSL_ENSURE( 0, "empty paragraph optimized" );
return;
}
-
+
// concatenate child elements with same font id
std::list< Element* >::iterator next = rParent.Children.begin();
std::list< Element* >::iterator it = next++;
@@ -705,12 +705,12 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
TextElement* pNext = dynamic_cast<TextElement*>(*next);
bool isComplex = false;
rtl::OUString str(pCur->Text.getStr());
- for(int i=0; i< str.getLength(); i++)
+ for(int i=0; i< str.getLength(); i++)
{
sal_Int16 nType = GetBreakIterator()->getScriptType( str, i );
if (nType == ::com::sun::star::i18n::ScriptType::COMPLEX)
isComplex = true;
- }
+ }
bool bPara = strspn("ParagraphElement", typeid(rParent).name());
ParagraphElement* pPara = dynamic_cast<ParagraphElement*>(&rParent);
if (bPara && isComplex)
@@ -719,9 +719,9 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
{
const GraphicsContext& rCurGC = m_rProcessor.getGraphicsContext( pCur->GCId );
const GraphicsContext& rNextGC = m_rProcessor.getGraphicsContext( pNext->GCId );
-
+
// line and space optimization; works only in strictly horizontal mode
-
+
// concatenate consecutive text elements unless there is a
// font or text color or matrix change, leave a new span in that case
if( (pCur->FontId == pNext->FontId || isSpaces(pNext)) &&
@@ -729,7 +729,7 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
rCurGC.FillColor.Green == rNextGC.FillColor.Green &&
rCurGC.FillColor.Blue == rNextGC.FillColor.Blue &&
rCurGC.FillColor.Alpha == rNextGC.FillColor.Alpha &&
- (rCurGC.Transformation == rNextGC.Transformation || notTransformed(rNextGC))
+ (rCurGC.Transformation == rNextGC.Transformation || notTransformed(rNextGC))
)
{
pCur->updateGeometryWith( pNext );
@@ -737,7 +737,7 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
pCur->Text.append( pNext->Text.getStr(), pNext->Text.getLength() );
str = pCur->Text.getStr();
- for(int i=0; i< str.getLength(); i++)
+ for(int i=0; i< str.getLength(); i++)
{
sal_Int16 nType = GetBreakIterator()->getScriptType( str, i );
if (nType == ::com::sun::star::i18n::ScriptType::COMPLEX)
@@ -761,7 +761,7 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
if ( bConcat )
next = it;
else
- ++it;
+ ++it;
++next;
}
}
@@ -783,7 +783,7 @@ void DrawXmlFinalizer::visit( PolyPolyElement& elem, const std::list< Element* >
aProps[ USTR( "style:parent-style-name") ] = USTR( "standard" );
// generate standard graphic style if necessary
m_rStyleContainer.getStandardStyleId( "graphic" );
-
+
PropertyMap aGCProps;
// TODO(F3): proper dash emulation
@@ -821,7 +821,7 @@ void DrawXmlFinalizer::visit( PolyPolyElement& elem, const std::list< Element* >
StyleContainer::Style aStyle( "style:style", aProps );
StyleContainer::Style aSubStyle( "style:graphic-properties", aGCProps );
aStyle.SubStyles.push_back( &aSubStyle );
-
+
elem.StyleId = m_rStyleContainer.getStyleId( aStyle );
}
@@ -830,22 +830,22 @@ void DrawXmlFinalizer::visit( HyperlinkElement&, const std::list< Element* >::co
}
void DrawXmlFinalizer::visit( TextElement& elem, const std::list< Element* >::const_iterator& )
-{
+{
const FontAttributes& rFont = m_rProcessor.getFont( elem.FontId );
PropertyMap aProps;
aProps[ USTR( "style:family" ) ] = USTR( "text" );
PropertyMap aFontProps;
-
+
// family name
aFontProps[ USTR( "fo:font-family" ) ] = rFont.familyName;
aFontProps[ USTR( "style:font-family-complex" ) ] = rFont.familyName;
-
+
// bold
if( rFont.isBold )
{
aFontProps[ USTR( "fo:font-weight" ) ] = USTR( "bold" );
- aFontProps[ USTR( "fo:font-weight-asian" ) ] = USTR( "bold" );
+ aFontProps[ USTR( "fo:font-weight-asian" ) ] = USTR( "bold" );
aFontProps[ USTR( "style:font-weight-complex" ) ] = USTR( "bold" );
}
// italic
@@ -853,7 +853,7 @@ void DrawXmlFinalizer::visit( TextElement& elem, const std::list< Element* >::co
{
aFontProps[ USTR( "fo:font-style" ) ] = USTR( "italic" );
aFontProps[ USTR( "fo:font-style-asian" ) ] = USTR( "italic" );
- aFontProps[ USTR( "style:font-style-complex" ) ] = USTR( "italic" );
+ aFontProps[ USTR( "style:font-style-complex" ) ] = USTR( "italic" );
}
// underline
if( rFont.isUnderline )
@@ -878,7 +878,7 @@ void DrawXmlFinalizer::visit( TextElement& elem, const std::list< Element* >::co
// color
const GraphicsContext& rGC = m_rProcessor.getGraphicsContext( elem.GCId );
aFontProps[ USTR( "fo:color" ) ] = getColorString( rFont.isOutline ? rGC.LineColor : rGC.FillColor );
-
+
StyleContainer::Style aStyle( "style:style", aProps );
StyleContainer::Style aSubStyle( "style:text-properties", aFontProps );
aStyle.SubStyles.push_back( &aSubStyle );
@@ -886,13 +886,13 @@ void DrawXmlFinalizer::visit( TextElement& elem, const std::list< Element* >::co
}
void DrawXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element* >::const_iterator& )
-{
+{
PropertyMap aProps;
aProps[ USTR( "style:family" ) ] = USTR( "paragraph" );
// generate standard paragraph style if necessary
m_rStyleContainer.getStandardStyleId( "paragraph" );
-
+
PropertyMap aParProps;
aParProps[ USTR("fo:text-align")] = USTR("start");
@@ -900,11 +900,11 @@ void DrawXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element*
aParProps[ USTR("style:writing-mode")] = USTR("rl-tb");
else
aParProps[ USTR("style:writing-mode")] = USTR("lr-tb");
-
+
StyleContainer::Style aStyle( "style:style", aProps );
StyleContainer::Style aSubStyle( "style:paragraph-properties", aParProps );
aStyle.SubStyles.push_back( &aSubStyle );
-
+
elem.StyleId = m_rStyleContainer.getStyleId( aStyle );
// update page boundaries
@@ -916,7 +916,7 @@ void DrawXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element*
double p_y = elem.Parent->y;
double p_w = elem.Parent->w;
double p_h = elem.Parent->h;
-
+
PageElement* pPage = dynamic_cast<PageElement*>(elem.Parent);
if( pPage )
{
@@ -937,7 +937,7 @@ void DrawXmlFinalizer::visit( FrameElement& elem, const std::list< Element* >::c
aProps[ USTR( "style:parent-style-name") ] = USTR( "standard" );
// generate standard graphic style if necessary
m_rStyleContainer.getStandardStyleId( "graphic" );
-
+
PropertyMap aGCProps;
aGCProps[ USTR("draw:stroke") ] = USTR("none");
@@ -952,18 +952,18 @@ void DrawXmlFinalizer::visit( FrameElement& elem, const std::list< Element* >::c
aGCProps[ USTR("fo:padding-left") ] = USTR("0cm");
aGCProps[ USTR("fo:padding-right") ] = USTR("0cm");
aGCProps[ USTR("fo:padding-bottom") ] = USTR("0cm");
-
+
// remark: vertical mirroring is done in current OOO by
// mirroring horzontally and rotating 180 degrees
// this is quaint, but unfortunately it seems
// mirror=vertical is defined but not implemented in current code
if( elem.MirrorVertical )
aGCProps[ USTR("style:mirror") ] = USTR("horizontal");
-
+
StyleContainer::Style aStyle( "style:style", aProps );
StyleContainer::Style aSubStyle( "style:graphic-properties", aGCProps );
aStyle.SubStyles.push_back( &aSubStyle );
-
+
elem.StyleId = m_rStyleContainer.getStyleId( aStyle );
elem.applyToChildren(*this);
}
@@ -976,10 +976,10 @@ void DrawXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::co
{
if( m_rProcessor.getStatusIndicator().is() )
m_rProcessor.getStatusIndicator()->setValue( elem.PageNumber );
-
+
// transform from pixel to mm
double page_width = convPx2mm( elem.w ), page_height = convPx2mm( elem.h );
-
+
// calculate page margins out of the relevant children (paragraphs)
elem.TopMargin = elem.h, elem.BottomMargin = 0, elem.LeftMargin = elem.w, elem.RightMargin = 0;
@@ -994,20 +994,20 @@ void DrawXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::co
if( (*it)->y + (*it)->h > elem.BottomMargin )
elem.BottomMargin = ((*it)->y + (*it)->h);
}
-
+
// transform margins to mm
double left_margin = convPx2mm( elem.LeftMargin );
double right_margin = convPx2mm( elem.RightMargin );
double top_margin = convPx2mm( elem.TopMargin );
double bottom_margin = convPx2mm( elem.BottomMargin );
-
+
// round left/top margin to nearest mm
left_margin = rtl_math_round( left_margin, 0, rtl_math_RoundingMode_Floor );
top_margin = rtl_math_round( top_margin, 0, rtl_math_RoundingMode_Floor );
// round (fuzzy) right/bottom margin to nearest cm
right_margin = rtl_math_round( right_margin, right_margin >= 10 ? -1 : 0, rtl_math_RoundingMode_Floor );
- bottom_margin = rtl_math_round( bottom_margin, bottom_margin >= 10 ? -1 : 0, rtl_math_RoundingMode_Floor );
-
+ bottom_margin = rtl_math_round( bottom_margin, bottom_margin >= 10 ? -1 : 0, rtl_math_RoundingMode_Floor );
+
// set reasonable default in case of way too large margins
// e.g. no paragraph case
if( left_margin > page_width/2.0 - 10 )
@@ -1018,7 +1018,7 @@ void DrawXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::co
top_margin = 10;
if( bottom_margin > page_height/2.0 - 10 )
bottom_margin = 10;
-
+
// catch the weird cases
if( left_margin < 0 )
left_margin = 0;
@@ -1028,16 +1028,16 @@ void DrawXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::co
top_margin = 0;
if( bottom_margin < 0 )
bottom_margin = 0;
-
+
// widely differing margins are unlikely to be correct
if( right_margin > left_margin*1.5 )
right_margin = left_margin;
-
+
elem.LeftMargin = convmm2Px( left_margin );
elem.RightMargin = convmm2Px( right_margin );
elem.TopMargin = convmm2Px( top_margin );
elem.BottomMargin = convmm2Px( bottom_margin );
-
+
// get styles for paragraphs
PropertyMap aPageProps;
PropertyMap aPageLayoutProps;
@@ -1048,26 +1048,26 @@ void DrawXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::co
aPageLayoutProps[ USTR( "fo:margin-right" ) ] = unitMMString( right_margin );
aPageLayoutProps[ USTR( "fo:page-width" ) ] = unitMMString( page_width );
aPageLayoutProps[ USTR( "fo:page-height" ) ] = unitMMString( page_height );
- aPageLayoutProps[ USTR( "style:print-orientation" ) ]= elem.w < elem.h ? USTR( "portrait" ) : USTR( "landscape" );
+ aPageLayoutProps[ USTR( "style:print-orientation" ) ]= elem.w < elem.h ? USTR( "portrait" ) : USTR( "landscape" );
aPageLayoutProps[ USTR( "style:writing-mode" ) ]= USTR( "lr-tb" );
-
- StyleContainer::Style aStyle( "style:page-layout", aPageProps);
- StyleContainer::Style aSubStyle( "style:page-layout-properties", aPageLayoutProps);
+
+ StyleContainer::Style aStyle( "style:page-layout", aPageProps);
+ StyleContainer::Style aSubStyle( "style:page-layout-properties", aPageLayoutProps);
aStyle.SubStyles.push_back(&aSubStyle);
sal_Int32 nPageStyle = m_rStyleContainer.impl_getStyleId( aStyle, false );
// create master page
rtl::OUString aMasterPageLayoutName = m_rStyleContainer.getStyleName( nPageStyle );
- aPageProps[ USTR( "style:page-layout-name" ) ] = aMasterPageLayoutName;
-
- StyleContainer::Style aMPStyle( "style:master-page", aPageProps);
-
+ aPageProps[ USTR( "style:page-layout-name" ) ] = aMasterPageLayoutName;
+
+ StyleContainer::Style aMPStyle( "style:master-page", aPageProps);
+
StyleContainer::Style aHeaderStyle( "style:header", PropertyMap() );
StyleContainer::Style aFooterStyle( "style:footer", PropertyMap() );
elem.StyleId = m_rStyleContainer.impl_getStyleId( aMPStyle,false );
-
+
rtl::OUString aMasterPageName = m_rStyleContainer.getStyleName( elem.StyleId );
// create styles for children
@@ -1075,7 +1075,7 @@ void DrawXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::co
}
void DrawXmlFinalizer::visit( DocumentElement& elem, const std::list< Element* >::const_iterator& )
-{
+{
elem.applyToChildren(*this);
}
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.hxx b/sdext/source/pdfimport/tree/drawtreevisiting.hxx
index cc41e76c5065..1671b93e808f 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.hxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ namespace pdfi
virtual void visit( PageElement&, const std::list< Element* >::const_iterator& );
virtual void visit( DocumentElement&, const std::list< Element* >::const_iterator& );
};
-
+
class DrawXmlFinalizer : public ElementTreeVisitor
{
private:
@@ -83,7 +83,7 @@ namespace pdfi
virtual void visit( PageElement&, const std::list< Element* >::const_iterator& );
virtual void visit( DocumentElement&, const std::list< Element* >::const_iterator& );
};
-
+
class DrawXmlEmitter : public ElementTreeVisitor
{
private:
@@ -95,8 +95,8 @@ namespace pdfi
/// writes Impress doc when false
const bool m_bWriteDrawDocument;
- void fillFrameProps( DrawElement& rElem,
- PropertyMap& rProps,
+ void fillFrameProps( DrawElement& rElem,
+ PropertyMap& rProps,
const EmitContext& rEmitContext );
public:
@@ -115,7 +115,7 @@ namespace pdfi
virtual void visit( ImageElement&, const std::list< Element* >::const_iterator& );
virtual void visit( PageElement&, const std::list< Element* >::const_iterator& );
virtual void visit( DocumentElement&, const std::list< Element* >::const_iterator& );
- };
+ };
}
#endif
diff --git a/sdext/source/pdfimport/tree/genericelements.cxx b/sdext/source/pdfimport/tree/genericelements.cxx
index e6a50a0331db..d8696ddcb850 100644
--- a/sdext/source/pdfimport/tree/genericelements.cxx
+++ b/sdext/source/pdfimport/tree/genericelements.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
#include "pdfiprocessor.hxx"
#include "pdfihelper.hxx"
#include "style.hxx"
-
+
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <basegfx/range/b2drange.hxx>
@@ -55,7 +55,7 @@ Element::~Element()
Children.pop_front();
}
}
-
+
void Element::applyToChildren( ElementTreeVisitor& rVisitor )
{
for( std::list< Element* >::iterator it = Children.begin(); it != Children.end(); ++it )
@@ -124,7 +124,7 @@ void HyperlinkElement::visitedBy( ElementTreeVisitor& r
{
rVisitor.visit(*this,rParentIt);
}
-
+
void TextElement::visitedBy( ElementTreeVisitor& rVisitor,
const std::list< Element* >::const_iterator& rParentIt )
{
@@ -142,8 +142,8 @@ void ImageElement::visitedBy( ElementTreeVisitor& rVisi
{
rVisitor.visit( *this, rParentIt);
}
-
-PolyPolyElement::PolyPolyElement( Element* pParent,
+
+PolyPolyElement::PolyPolyElement( Element* pParent,
sal_Int32 nGCId,
const basegfx::B2DPolyPolygon& rPolyPoly,
sal_Int8 nAction )
@@ -214,7 +214,7 @@ bool ParagraphElement::isSingleLined( PDFIProcessor& rProc ) const
// a paragraph containing subparagraphs cannot be single lined
if( dynamic_cast< ParagraphElement* >(*it) != NULL )
return false;
-
+
pText = dynamic_cast< TextElement* >(*it);
if( pText )
{
@@ -232,7 +232,7 @@ bool ParagraphElement::isSingleLined( PDFIProcessor& rProc ) const
}
++it;
}
-
+
// a paragraph without a single text is not considered single lined
return pLastText != NULL;
}
@@ -281,7 +281,7 @@ PageElement::~PageElement()
if( FooterElement )
delete FooterElement;
}
-
+
void PageElement::visitedBy( ElementTreeVisitor& rVisitor,
const std::list< Element* >::const_iterator& rParentIt )
{
@@ -323,7 +323,7 @@ bool PageElement::resolveHyperlink( std::list<Element*>::iterator link_it, std::
HyperlinkElement* pLink = dynamic_cast<HyperlinkElement*>(*link_it);
if( ! pLink ) // sanity check
return false;
-
+
for( std::list<Element*>::iterator it = rElements.begin(); it != rElements.end(); ++it )
{
if( (*it)->x >= pLink->x && (*it)->x + (*it)->w <= pLink->x + pLink->w &&
@@ -391,7 +391,7 @@ void PageElement::resolveUnderlines( PDFIProcessor& rProc )
{
// FIXME: currently the algorithm used is quadratic
// this could be solved by some sorting beforehand
-
+
std::list< Element* >::iterator poly_it = Children.begin();
while( poly_it != Children.end() )
{
@@ -415,7 +415,7 @@ void PageElement::resolveUnderlines( PDFIProcessor& rProc )
++poly_it;
continue;
}
-
+
bool bRemovePoly = false;
basegfx::B2DPolygon aPoly = pPoly->PolyPoly.getB2DPolygon(0);
if( aPoly.count() != 2 ||
@@ -489,7 +489,7 @@ void DocumentElement::visitedBy( ElementTreeVisitor& rV
{
rVisitor.visit(*this, rParentIt);
}
-
+
}
diff --git a/sdext/source/pdfimport/tree/genericelements.hxx b/sdext/source/pdfimport/tree/genericelements.hxx
index b2122a6c7cc2..158f251a8ef5 100644
--- a/sdext/source/pdfimport/tree/genericelements.hxx
+++ b/sdext/source/pdfimport/tree/genericelements.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ namespace pdfi
class ImageContainer;
class PDFIProcessor;
class ElementFactory;
-
+
struct EmitContext
{
@@ -58,7 +58,7 @@ namespace pdfi
ImageContainer& _rImages,
PDFIProcessor& _rProcessor,
const com::sun::star::uno::Reference<
- com::sun::star::task::XStatusIndicator>& _xStatusIndicator,
+ com::sun::star::task::XStatusIndicator>& _xStatusIndicator,
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > xContext)
:
rEmitter(_rEmitter),
@@ -75,7 +75,7 @@ namespace pdfi
PDFIProcessor& rProcessor;
com::sun::star::uno::Reference<
com::sun::star::task::XStatusIndicator> xStatusIndicator;
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > m_xContext;
};
@@ -105,20 +105,20 @@ namespace pdfi
pNewParent must not be NULL
*/
static void setParent( std::list<Element*>::iterator& el, Element* pNewParent );
-
+
double x, y, w, h;
sal_Int32 StyleId;
Element* Parent;
std::list<Element*> Children;
};
-
+
struct ListElement : public Element
{
ListElement() : Element( NULL ) {}
// ElementTreeVisitable
virtual void visitedBy( ElementTreeVisitor&, const std::list< Element* >::const_iterator& );
};
-
+
struct HyperlinkElement : public Element
{
friend class ElementFactory;
@@ -131,10 +131,10 @@ namespace pdfi
rtl::OUString URI;
};
-
+
struct GraphicalElement : public Element
{
- protected:
+ protected:
GraphicalElement( Element* pParent, sal_Int32 nGCId )
: Element( pParent ), GCId( nGCId ), MirrorVertical( false ) {}
@@ -142,7 +142,7 @@ namespace pdfi
sal_Int32 GCId;
bool MirrorVertical;
};
-
+
struct DrawElement : public GraphicalElement
{
protected:
@@ -153,7 +153,7 @@ namespace pdfi
bool isCharacter;
sal_Int32 ZOrder;
};
-
+
struct FrameElement : public DrawElement
{
friend class ElementFactory;
@@ -165,7 +165,7 @@ namespace pdfi
// ElementTreeVisitable
virtual void visitedBy( ElementTreeVisitor&, const std::list< Element* >::const_iterator& );
};
-
+
struct TextElement : public GraphicalElement
{
friend class ElementFactory;
@@ -176,7 +176,7 @@ namespace pdfi
public:
// ElementTreeVisitable
virtual void visitedBy( ElementTreeVisitor&, const std::list< Element* >::const_iterator& );
-
+
rtl::OUStringBuffer Text;
sal_Int32 FontId;
};
@@ -190,7 +190,7 @@ namespace pdfi
public:
// ElementTreeVisitable
virtual void visitedBy( ElementTreeVisitor&, const std::list< Element* >::const_iterator& rParentIt );
-
+
// returns true only if only a single line is contained
bool isSingleLined( PDFIProcessor& rProc ) const;
// returns the highest line height of the contained textelements
@@ -198,13 +198,13 @@ namespace pdfi
double getLineHeight( PDFIProcessor& rProc ) const;
// returns the first text element child; does not recurse through subparagraphs
TextElement* getFirstTextChild() const;
-
+
enum ParagraphType { Normal, Headline };
ParagraphType Type;
bool bRtl;
};
- struct PolyPolyElement : public DrawElement
+ struct PolyPolyElement : public DrawElement
{
friend class ElementFactory;
protected:
@@ -214,17 +214,17 @@ namespace pdfi
public:
// ElementTreeVisitable
virtual void visitedBy( ElementTreeVisitor&, const std::list< Element* >::const_iterator& rParentIt );
-
+
void updateGeometry();
#if OSL_DEBUG_LEVEL > 1
virtual void emitStructure( int nLevel );
#endif
-
+
basegfx::B2DPolyPolygon PolyPoly;
sal_Int8 Action;
};
-
+
struct ImageElement : public DrawElement
{
friend class ElementFactory;
@@ -235,7 +235,7 @@ namespace pdfi
public:
// ElementTreeVisitable
virtual void visitedBy( ElementTreeVisitor&, const std::list< Element* >::const_iterator& );
-
+
ImageId Image;
};
@@ -256,13 +256,13 @@ namespace pdfi
// ElementTreeVisitable
virtual void visitedBy( ElementTreeVisitor&, const std::list< Element* >::const_iterator& rParentIt );
-
- void emitPageAnchoredElements( EmitContext& rEmitContext );
+
+ void emitPageAnchoredElements( EmitContext& rEmitContext );
static void updateParagraphGeometry( Element* pEle );
void resolveHyperlinks();
void resolveFontStyles( PDFIProcessor& rProc );
void resolveUnderlines( PDFIProcessor& rProc );
-
+
sal_Int32 PageNumber;
ListElement Hyperlinks; // contains not yet realized links on this page
double TopMargin;
@@ -280,12 +280,12 @@ namespace pdfi
DocumentElement() : Element( NULL ) {}
public:
virtual ~DocumentElement();
-
+
// ElementTreeVisitable
- virtual void visitedBy( ElementTreeVisitor&, const std::list< Element* >::const_iterator& );
-
+ virtual void visitedBy( ElementTreeVisitor&, const std::list< Element* >::const_iterator& );
+
};
-
+
// this class is the differentiator of document types: it will create
// Element objects with an optimize() method suitable for the document type
class ElementFactory
@@ -293,15 +293,15 @@ namespace pdfi
public:
ElementFactory() {}
virtual ~ElementFactory();
-
+
virtual HyperlinkElement* createHyperlinkElement( Element* pParent, const rtl::OUString& rURI )
{ return new HyperlinkElement( pParent, rURI ); }
-
+
virtual TextElement* createTextElement( Element* pParent, sal_Int32 nGCId, sal_Int32 nFontId )
{ return new TextElement( pParent, nGCId, nFontId ); }
virtual ParagraphElement* createParagraphElement( Element* pParent )
{ return new ParagraphElement( pParent ); }
-
+
virtual FrameElement* createFrameElement( Element* pParent, sal_Int32 nGCId )
{ return new FrameElement( pParent, nGCId ); }
virtual PolyPolyElement*
@@ -312,13 +312,13 @@ namespace pdfi
{ return new PolyPolyElement( pParent, nGCId, rPolyPoly, nAction ); }
virtual ImageElement* createImageElement( Element* pParent, sal_Int32 nGCId, ImageId nImage )
{ return new ImageElement( pParent, nGCId, nImage ); }
-
+
virtual PageElement* createPageElement( Element* pParent,
sal_Int32 nPageNr )
{ return new PageElement( pParent, nPageNr ); }
virtual DocumentElement* createDocumentElement()
{ return new DocumentElement(); }
- };
+ };
}
#endif
diff --git a/sdext/source/pdfimport/tree/imagecontainer.cxx b/sdext/source/pdfimport/tree/imagecontainer.cxx
index 308e89ae3314..9329ed2f5d4e 100644
--- a/sdext/source/pdfimport/tree/imagecontainer.cxx
+++ b/sdext/source/pdfimport/tree/imagecontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/pdfimport/tree/imagecontainer.hxx b/sdext/source/pdfimport/tree/imagecontainer.hxx
index c22b7ace6034..30b869d388d1 100644
--- a/sdext/source/pdfimport/tree/imagecontainer.hxx
+++ b/sdext/source/pdfimport/tree/imagecontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@
namespace pdfi
{
struct EmitContext;
-
+
class ImageContainer
{
private:
@@ -51,11 +51,11 @@ namespace pdfi
public:
ImageContainer();
-
+
ImageId addImage( const ::com::sun::star::uno::Sequence<
::com::sun::star::beans::PropertyValue>& xBitmap );
void writeBase64EncodedStream( ImageId nImageId, EmitContext& rContext );
- };
+ };
}
#endif
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
index 8db28d929184..cd94b97094d0 100644
--- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx
+++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,9 +63,9 @@ namespace pdfi
{
PDFIProcessor::PDFIProcessor( const uno::Reference< task::XStatusIndicator >& xStat ,
- com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > xContext) :
+ com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > xContext) :
- m_xContext(xContext),
+ m_xContext(xContext),
fYPrevTextPosition(-10000.0),
fPrevTextHeight(0.0),
fXPrevTextPosition(0.0),
@@ -457,32 +457,32 @@ void PDFIProcessor::drawGlyphLine( const rtl::OUString& rGlyphs,
{
processGlyphLine();
}
-
+
CharGlyph aGlyph;
-
+
aGlyph.setGlyph ( rGlyphs );
aGlyph.setRect ( rRect );
aGlyph.setFontMatrix ( rFontMatrix );
aGlyph.setGraphicsContext ( getCurrentContext() );
getGCId(getCurrentContext());
aGlyph.setCurElement( m_pCurElement );
-
+
aGlyph.setYPrevGlyphPosition( fYPrevTextPosition );
aGlyph.setXPrevGlyphPosition( fXPrevTextPosition );
aGlyph.setPrevGlyphHeight ( fPrevTextHeight );
aGlyph.setPrevGlyphWidth ( fPrevTextWidth );
-
+
m_GlyphsList.push_back( aGlyph );
-
+
fYPrevTextPosition = rRect.Y1;
fXPrevTextPosition = rRect.X2;
fPrevTextHeight = rRect.Y2-rRect.Y1;
fPrevTextWidth = rRect.X2-rRect.X1;
-
+
if( !m_bIsWhiteSpaceInLine )
{
static rtl::OUString tempWhiteSpaceStr( 0x20 );
- static rtl::OUString tempWhiteSpaceNonBreakingStr( 0xa0 );
+ static rtl::OUString tempWhiteSpaceNonBreakingStr( 0xa0 );
m_bIsWhiteSpaceInLine=(rGlyphs.equals( tempWhiteSpaceStr ) || rGlyphs.equals( tempWhiteSpaceNonBreakingStr ));
}
}
@@ -579,7 +579,7 @@ void PDFIProcessor::setupImage(ImageId nImage)
// TODDO(F4): correcting rotation when fShearX != 0 ?
if( fRotate != 0.0 )
{
-
+
// try to create a Transformation that corrects for the wrong rotation
aTrans.identity();
aTrans.scale( aScale.getX(), aScale.getY() );
@@ -587,7 +587,7 @@ void PDFIProcessor::setupImage(ImageId nImage)
basegfx::B2DRange aRect( 0, 0, 1, 1 );
aRect.transform( aTrans );
-
+
// TODO(F3) treat translation correctly
// the corrections below work for multiples of 90 degree
// which is a common case (landscape/portrait/seascape)
@@ -609,7 +609,7 @@ void PDFIProcessor::setupImage(ImageId nImage)
aTrans.translate( aTranslation.getX(),
aTranslation.getY() );
}
-
+
bool bMirrorVertical = aScale.getY() > 0;
// transform unit rect to determine view box
@@ -625,7 +625,7 @@ void PDFIProcessor::setupImage(ImageId nImage)
pFrame->w = pImageElement->w = aRect.getWidth();
pFrame->h = pImageElement->h = aRect.getHeight();
pFrame->ZOrder = m_nNextZOrder++;
-
+
if( bMirrorVertical )
{
pFrame->MirrorVertical = pImageElement->MirrorVertical = true;
@@ -802,7 +802,7 @@ void PDFIProcessor::startPage( const geometry::RealSize2D& rSize )
{
// initial clip is to page bounds
getCurrentContext().Clip = basegfx::B2DPolyPolygon(
- basegfx::tools::createPolygonFromRect(
+ basegfx::tools::createPolygonFromRect(
basegfx::B2DRange( 0, 0, rSize.Width, rSize.Height )));
sal_Int32 nNextPageNr = m_pCurPage ? m_pCurPage->PageNumber+1 : 1;
@@ -815,10 +815,10 @@ void PDFIProcessor::startPage( const geometry::RealSize2D& rSize )
m_pCurPage = m_pElFactory->createPageElement(m_pDocument.get(), nNextPageNr);
m_pCurElement = m_pCurPage;
m_pCurPage->w = rSize.Width;
- m_pCurPage->h = rSize.Height;
+ m_pCurPage->h = rSize.Height;
m_nNextZOrder = 1;
-
+
}
void PDFIProcessor::emit( XmlEmitter& rEmitter,
@@ -833,7 +833,7 @@ void PDFIProcessor::emit( XmlEmitter& rEmitter,
// FIXME: localization
startIndicator( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " " ) ) );
m_pDocument->visitedBy( *optimizingVisitor, std::list<Element*>::iterator());
-
+
#if OSL_DEBUG_LEVEL > 1
m_pDocument->emitStructure( 0 );
#endif
@@ -843,13 +843,13 @@ void PDFIProcessor::emit( XmlEmitter& rEmitter,
ElementTreeVisitorSharedPtr finalizingVisitor(
rVisitorFactory.createStyleCollectingVisitor(aStyles,*this));
// FIXME: localization
-
+
m_pDocument->visitedBy( *finalizingVisitor, std::list<Element*>::iterator() );
-
+
EmitContext aContext( rEmitter, aStyles, m_aImages, *this, m_xStatusIndicator, m_xContext );
ElementTreeVisitorSharedPtr aEmittingVisitor(
rVisitorFactory.createEmittingVisitor(aContext));
-
+
PropertyMap aProps;
// document prolog
#define OASIS_STR "urn:oasis:names:tc:opendocument:xmlns:"
@@ -878,7 +878,7 @@ void PDFIProcessor::emit( XmlEmitter& rEmitter,
// emit style list
aStyles.emit( aContext, *aEmittingVisitor );
-
+
m_pDocument->visitedBy( *aEmittingVisitor, std::list<Element*>::iterator() );
aContext.rEmitter.endTag( "office:document" );
endIndicator();
@@ -957,7 +957,7 @@ static bool lr_tb_sort( Element* pLeft, Element* pRight )
// then left is definitely not smaller
if( pRight->x+pRight->w < pLeft->x )
return false;
-
+
// here we have established vertical and horizontal overlap
// so sort left first, top second
if( pLeft->x < pRight->x )
@@ -966,7 +966,7 @@ static bool lr_tb_sort( Element* pLeft, Element* pRight )
return false;
if( pLeft->y < pRight->y )
return true;
-
+
return false;
}
@@ -974,7 +974,7 @@ void PDFIProcessor::sortElements( Element* pEle, bool bDeep )
{
if( pEle->Children.empty() )
return;
-
+
if( bDeep )
{
for( std::list< Element* >::iterator it = pEle->Children.begin();
@@ -1009,9 +1009,9 @@ void PDFIProcessor::sortElements( Element* pEle, bool bDeep )
}
-::basegfx::B2DRange& PDFIProcessor::calcTransformedRectBounds( ::basegfx::B2DRange& outRect,
- const ::basegfx::B2DRange& inRect,
- const ::basegfx::B2DHomMatrix& transformation )
+::basegfx::B2DRange& PDFIProcessor::calcTransformedRectBounds( ::basegfx::B2DRange& outRect,
+ const ::basegfx::B2DRange& inRect,
+ const ::basegfx::B2DHomMatrix& transformation )
{
outRect.reset();
@@ -1020,7 +1020,7 @@ void PDFIProcessor::sortElements( Element* pEle, bool bDeep )
// transform all four extremal points of the rectangle,
// take bounding rect of those.
-
+
// transform left-top point
outRect.expand( transformation * inRect.getMinimum() );
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.hxx b/sdext/source/pdfimport/tree/pdfiprocessor.hxx
index 16d60cd5a8bf..55a5f66cafcd 100644
--- a/sdext/source/pdfimport/tree/pdfiprocessor.hxx
+++ b/sdext/source/pdfimport/tree/pdfiprocessor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,7 +73,7 @@ namespace pdfi
class PDFIProcessor : public ContentSink
{
public:
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > m_xContext;
double fYPrevTextPosition;
double fPrevTextHeight;
@@ -205,17 +205,17 @@ namespace pdfi
typedef std::hash_map<sal_Int32,FontAttributes> IdToFontMap;
typedef std::hash_map<FontAttributes,sal_Int32,FontAttrHash> FontToIdMap;
-
+
typedef std::hash_map<sal_Int32,GraphicsContext> IdToGCMap;
typedef std::hash_map<GraphicsContext,sal_Int32,GraphicsContextHash> GCToIdMap;
typedef std::vector<GraphicsContext> GraphicsContextStack;
- ::basegfx::B2DRange& calcTransformedRectBounds( ::basegfx::B2DRange& outRect,
- const ::basegfx::B2DRange& inRect,
- const ::basegfx::B2DHomMatrix& transformation );
+ ::basegfx::B2DRange& calcTransformedRectBounds( ::basegfx::B2DRange& outRect,
+ const ::basegfx::B2DRange& inRect,
+ const ::basegfx::B2DHomMatrix& transformation );
std::vector<CharGlyph> m_GlyphsList;
-
+
boost::shared_ptr<ElementFactory> m_pElFactory;
boost::shared_ptr<DocumentElement> m_pDocument;
PageElement* m_pCurPage;
@@ -223,22 +223,22 @@ namespace pdfi
sal_Int32 m_nNextFontId;
IdToFontMap m_aIdToFont;
FontToIdMap m_aFontToId;
-
+
GraphicsContextStack m_aGCStack;
GraphicsContext m_prev_aGC;
sal_Int32 m_nNextGCId;
IdToGCMap m_aIdToGC;
GCToIdMap m_aGCToId;
-
+
ImageContainer m_aImages;
-
+
DocumentTextDirecion m_eTextDirection;
- sal_Int32 m_nPages;
+ sal_Int32 m_nPages;
sal_Int32 m_nNextZOrder;
double m_fWordSpace;
bool m_bIsWhiteSpaceInLine;
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::task::XStatusIndicator >
m_xStatusIndicator;
@@ -249,33 +249,33 @@ namespace pdfi
public:
CharGlyph(){};
virtual ~CharGlyph(){};
- rtl::OUString& getGlyph(){ return m_rGlyphs; }
- com::sun::star::geometry::RealRectangle2D& getRect(){ return m_rRect; }
- com::sun::star::geometry::Matrix2D& getFontMatrix(){ return m_rFontMatrix; }
- GraphicsContext& getGC(){ return m_rCurrentContext; }
- Element* getCurElement(){ return m_pCurElement; }
-
- void setGlyph (const rtl::OUString& rGlyphs ){ m_rGlyphs=rGlyphs; }
- void setRect (const ::com::sun::star::geometry::RealRectangle2D& rRect ){ m_rRect=rRect; }
- void setFontMatrix (const ::com::sun::star::geometry::Matrix2D& rFontMatrix ){ m_rFontMatrix= rFontMatrix; }
- void setGraphicsContext (GraphicsContext& rCurrentContext ){ m_rCurrentContext= rCurrentContext; }
- void setCurElement( Element* pCurElement ){ m_pCurElement= pCurElement; }
-
- double getYPrevGlyphPosition(){ return m_fYPrevGlyphPosition; }
- double getXPrevGlyphPosition(){ return m_fXPrevGlyphPosition; }
- double getPrevGlyphHeight(){ return m_fPrevGlyphHeight; }
- double getPrevGlyphWidth (){ return m_fPrevGlyphWidth; }
+ rtl::OUString& getGlyph(){ return m_rGlyphs; }
+ com::sun::star::geometry::RealRectangle2D& getRect(){ return m_rRect; }
+ com::sun::star::geometry::Matrix2D& getFontMatrix(){ return m_rFontMatrix; }
+ GraphicsContext& getGC(){ return m_rCurrentContext; }
+ Element* getCurElement(){ return m_pCurElement; }
+
+ void setGlyph (const rtl::OUString& rGlyphs ){ m_rGlyphs=rGlyphs; }
+ void setRect (const ::com::sun::star::geometry::RealRectangle2D& rRect ){ m_rRect=rRect; }
+ void setFontMatrix (const ::com::sun::star::geometry::Matrix2D& rFontMatrix ){ m_rFontMatrix= rFontMatrix; }
+ void setGraphicsContext (GraphicsContext& rCurrentContext ){ m_rCurrentContext= rCurrentContext; }
+ void setCurElement( Element* pCurElement ){ m_pCurElement= pCurElement; }
+
+ double getYPrevGlyphPosition(){ return m_fYPrevGlyphPosition; }
+ double getXPrevGlyphPosition(){ return m_fXPrevGlyphPosition; }
+ double getPrevGlyphHeight(){ return m_fPrevGlyphHeight; }
+ double getPrevGlyphWidth (){ return m_fPrevGlyphWidth; }
double getPrevGlyphsSpace() { if( (m_rRect.X1-m_fXPrevGlyphPosition)<0 )
return 0;
else
return m_rRect.X1-m_fXPrevGlyphPosition;
}
- void setYPrevGlyphPosition( double fYPrevTextPosition ){ m_fYPrevGlyphPosition= fYPrevTextPosition; }
- void setXPrevGlyphPosition( double fXPrevTextPosition ){ m_fXPrevGlyphPosition= fXPrevTextPosition; }
- void setPrevGlyphHeight ( double fPrevTextHeight ){ m_fPrevGlyphHeight= fPrevTextHeight; }
- void setPrevGlyphWidth ( double fPrevTextWidth ){ m_fPrevGlyphWidth= fPrevTextWidth; }
-
+ void setYPrevGlyphPosition( double fYPrevTextPosition ){ m_fYPrevGlyphPosition= fYPrevTextPosition; }
+ void setXPrevGlyphPosition( double fXPrevTextPosition ){ m_fXPrevGlyphPosition= fXPrevTextPosition; }
+ void setPrevGlyphHeight ( double fPrevTextHeight ){ m_fPrevGlyphHeight= fPrevTextHeight; }
+ void setPrevGlyphWidth ( double fPrevTextWidth ){ m_fPrevGlyphWidth= fPrevTextWidth; }
+
private:
double m_fYPrevGlyphPosition ;
diff --git a/sdext/source/pdfimport/tree/style.cxx b/sdext/source/pdfimport/tree/style.cxx
index 01585029049a..1a2f43ca0fc5 100644
--- a/sdext/source/pdfimport/tree/style.cxx
+++ b/sdext/source/pdfimport/tree/style.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ StyleContainer::StyleContainer() :
sal_Int32 StyleContainer::impl_getStyleId( const Style& rStyle, bool bSubStyle )
{
sal_Int32 nRet = -1;
-
+
// construct HashedStyle to find or insert
HashedStyle aSearchStyle;
aSearchStyle.Name = rStyle.Name;
@@ -59,10 +59,10 @@ sal_Int32 StyleContainer::impl_getStyleId( const Style& rStyle, bool bSubStyle )
aSearchStyle.ContainedElement = rStyle.ContainedElement;
for( unsigned int n = 0; n < rStyle.SubStyles.size(); ++n )
aSearchStyle.SubStyles.push_back( impl_getStyleId( *rStyle.SubStyles[n], true ) );
-
+
std::hash_map< HashedStyle, sal_Int32, StyleHash >::iterator it =
m_aStyleToId.find( aSearchStyle );
-
+
if( it != m_aStyleToId.end() )
{
nRet = it->second;
@@ -132,7 +132,7 @@ sal_Int32 StyleContainer::setProperties( sal_Int32 nStyleId, const PropertyMap&
aSearchStyle.ContainedElement = it->second.ContainedElement;
aSearchStyle.SubStyles = it->second.SubStyles;
aSearchStyle.IsSubStyle = it->second.IsSubStyle;
-
+
// find out whether this new style already exists
std::hash_map< HashedStyle, sal_Int32, StyleHash >::iterator new_it =
m_aStyleToId.find( aSearchStyle );
@@ -159,13 +159,13 @@ sal_Int32 StyleContainer::setProperties( sal_Int32 nStyleId, const PropertyMap&
OUString StyleContainer::getStyleName( sal_Int32 nStyle ) const
{
OUStringBuffer aRet( 64 );
-
+
std::hash_map< sal_Int32, HashedStyle >::const_iterator style_it =
m_aIdToStyle.find( nStyle );
if( style_it != m_aIdToStyle.end() )
{
const HashedStyle& rStyle = style_it->second;
-
+
PropertyMap::const_iterator name_it = rStyle.Properties.find( USTR("style:name") );
if( name_it != rStyle.Properties.end() )
aRet.append( name_it->second );
@@ -193,8 +193,8 @@ OUString StyleContainer::getStyleName( sal_Int32 nStyle ) const
return aRet.makeStringAndClear();
}
-void StyleContainer::impl_emitStyle( sal_Int32 nStyleId,
- EmitContext& rContext,
+void StyleContainer::impl_emitStyle( sal_Int32 nStyleId,
+ EmitContext& rContext,
ElementTreeVisitor& rContainedElemVisitor )
{
std::hash_map< sal_Int32, HashedStyle >::const_iterator it = m_aIdToStyle.find( nStyleId );
@@ -211,7 +211,7 @@ void StyleContainer::impl_emitStyle( sal_Int32 nStyleId,
if( rStyle.Contents )
rContext.rEmitter.write( rStyle.Contents );
if( rStyle.ContainedElement )
- rStyle.ContainedElement->visitedBy( rContainedElemVisitor,
+ rStyle.ContainedElement->visitedBy( rContainedElemVisitor,
std::list<Element*>::iterator() );
rContext.rEmitter.endTag( rStyle.Name.getStr() );
}
@@ -234,14 +234,14 @@ void StyleContainer::emit( EmitContext& rContext,
aAutomaticStyleSection.push_back( it->first );
}
}
-
+
if( ! aMasterPageSection.empty() )
std::stable_sort( aMasterPageSection.begin(), aMasterPageSection.end(), StyleIdNameSort(&m_aIdToStyle) );
if( ! aAutomaticStyleSection.empty() )
std::stable_sort( aAutomaticStyleSection.begin(), aAutomaticStyleSection.end(), StyleIdNameSort(&m_aIdToStyle) );
if( ! aOfficeStyleSection.empty() )
std::stable_sort( aOfficeStyleSection.begin(), aOfficeStyleSection.end(), StyleIdNameSort(&m_aIdToStyle) );
-
+
int n = 0, nElements = 0;
rContext.rEmitter.beginTag( "office:styles", PropertyMap() );
for( n = 0, nElements = aOfficeStyleSection.size(); n < nElements; n++ )
diff --git a/sdext/source/pdfimport/tree/style.hxx b/sdext/source/pdfimport/tree/style.hxx
index 8b79bfaa89ce..94571cafc0b1 100644
--- a/sdext/source/pdfimport/tree/style.hxx
+++ b/sdext/source/pdfimport/tree/style.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ namespace pdfi
struct Element;
struct EmitContext;
struct ElementTreeVisitable;
-
+
class StyleContainer
{
public:
@@ -52,7 +52,7 @@ namespace pdfi
rtl::OUString Contents;
Element* ContainedElement;
std::vector< Style* > SubStyles;
-
+
Style() : ContainedElement( NULL ) {}
Style( const rtl::OString& rName, const PropertyMap& rProps ) :
Name( rName ),
@@ -60,7 +60,7 @@ namespace pdfi
ContainedElement( NULL )
{}
};
-
+
private:
struct HashedStyle
{
@@ -69,12 +69,12 @@ namespace pdfi
rtl::OUString Contents;
Element* ContainedElement;
std::vector<sal_Int32> SubStyles;
-
+
bool IsSubStyle;
sal_Int32 RefCount;
-
+
HashedStyle() : ContainedElement( NULL ), IsSubStyle( true ), RefCount( 0 ) {}
-
+
HashedStyle( const HashedStyle& rRight ) :
Name( rRight.Name ),
Properties( rRight.Properties ),
@@ -100,7 +100,7 @@ namespace pdfi
nRet ^= size_t(SubStyles[n]);
return nRet;
}
-
+
bool operator==(const HashedStyle& rRight) const
{
if( Name != rRight.Name ||
@@ -128,13 +128,13 @@ namespace pdfi
return rStyle.hashCode();
}
};
-
+
struct StyleIdNameSort;
friend struct StyleIdNameSort;
struct StyleIdNameSort
{
const std::hash_map< sal_Int32, HashedStyle >* m_pMap;
-
+
StyleIdNameSort( const std::hash_map< sal_Int32, HashedStyle >* pMap ) :
m_pMap(pMap)
{}
@@ -152,15 +152,15 @@ namespace pdfi
return left_it->second.Name < right_it->second.Name;
}
};
-
+
sal_Int32 m_nNextId;
std::hash_map< sal_Int32, HashedStyle > m_aIdToStyle;
std::hash_map< HashedStyle, sal_Int32, StyleHash > m_aStyleToId;
-
- void impl_emitStyle( sal_Int32 nStyleId,
+
+ void impl_emitStyle( sal_Int32 nStyleId,
EmitContext& rContext,
ElementTreeVisitor& rContainedElemVisitor );
-
+
public:
StyleContainer();
@@ -171,7 +171,7 @@ namespace pdfi
sal_Int32 getStyleId( const Style& rStyle )
{ return impl_getStyleId( rStyle, false ); }
sal_Int32 getStandardStyleId( const rtl::OString& rFamily );
-
+
// returns NULL for an invalid style id
const PropertyMap* getProperties( sal_Int32 nStyleId ) const;
sal_Int32 setProperties( sal_Int32 nStyleId, const PropertyMap &rNewProps );
diff --git a/sdext/source/pdfimport/tree/treevisiting.hxx b/sdext/source/pdfimport/tree/treevisiting.hxx
index b62340a7b9f8..8bd4926a126e 100644
--- a/sdext/source/pdfimport/tree/treevisiting.hxx
+++ b/sdext/source/pdfimport/tree/treevisiting.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ namespace pdfi
struct DocumentElement;
struct EmitContext;
struct Element;
-
+
/** To be visited by all tree element types
Visitor interface from the "visitor pattern". Implementor gets
diff --git a/sdext/source/pdfimport/tree/treevisitorfactory.cxx b/sdext/source/pdfimport/tree/treevisitorfactory.cxx
index 58cc091c707d..02f7896a7ac2 100644
--- a/sdext/source/pdfimport/tree/treevisitorfactory.cxx
+++ b/sdext/source/pdfimport/tree/treevisitorfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ namespace pdfi
}
virtual boost::shared_ptr<ElementTreeVisitor> createStyleCollectingVisitor(
- StyleContainer& rStyles,
+ StyleContainer& rStyles,
PDFIProcessor& rProc ) const
{
return boost::shared_ptr<ElementTreeVisitor>(new WriterXmlFinalizer(rStyles,rProc));
@@ -67,7 +67,7 @@ namespace pdfi
}
virtual boost::shared_ptr<ElementTreeVisitor> createStyleCollectingVisitor(
- StyleContainer& rStyles,
+ StyleContainer& rStyles,
PDFIProcessor& rProc ) const
{
return boost::shared_ptr<ElementTreeVisitor>(new DrawXmlFinalizer(rStyles,rProc));
@@ -90,7 +90,7 @@ namespace pdfi
}
virtual boost::shared_ptr<ElementTreeVisitor> createStyleCollectingVisitor(
- StyleContainer& rStyles,
+ StyleContainer& rStyles,
PDFIProcessor& rProc ) const
{
return boost::shared_ptr<ElementTreeVisitor>(new DrawXmlFinalizer(rStyles,rProc));
@@ -103,16 +103,16 @@ namespace pdfi
}
};
- TreeVisitorFactorySharedPtr createWriterTreeVisitorFactory()
- {
+ TreeVisitorFactorySharedPtr createWriterTreeVisitorFactory()
+ {
return TreeVisitorFactorySharedPtr(new WriterTreeVisitorFactory());
}
TreeVisitorFactorySharedPtr createImpressTreeVisitorFactory()
- {
+ {
return TreeVisitorFactorySharedPtr(new ImpressTreeVisitorFactory());
}
TreeVisitorFactorySharedPtr createDrawTreeVisitorFactory()
- {
+ {
return TreeVisitorFactorySharedPtr(new DrawTreeVisitorFactory());
}
}
diff --git a/sdext/source/pdfimport/tree/writertreevisiting.cxx b/sdext/source/pdfimport/tree/writertreevisiting.cxx
index 12f9d02a8607..6db1f0e171f0 100644
--- a/sdext/source/pdfimport/tree/writertreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/writertreevisiting.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,19 +44,19 @@
namespace pdfi
{
-void WriterXmlEmitter::visit( HyperlinkElement& elem, const std::list< Element* >::const_iterator& )
-{
+void WriterXmlEmitter::visit( HyperlinkElement& elem, const std::list< Element* >::const_iterator& )
+{
if( elem.Children.empty() )
return;
-
+
const char* pType = dynamic_cast<DrawElement*>(elem.Children.front()) ? "draw:a" : "text:a";
-
+
PropertyMap aProps;
aProps[ USTR( "xlink:type" ) ] = USTR( "simple" );
aProps[ USTR( "xlink:href" ) ] = elem.URI;
aProps[ USTR( "office:target-frame-name" ) ] = USTR( "_blank" );
aProps[ USTR( "xlink:show" ) ] = USTR( "new" );
-
+
m_rEmitContext.rEmitter.beginTag( pType, aProps );
std::list< Element* >::iterator this_it = elem.Children.begin();
while( this_it !=elem.Children.end() && *this_it != &elem )
@@ -67,18 +67,18 @@ void WriterXmlEmitter::visit( HyperlinkElement& elem, const std::list< Element*
m_rEmitContext.rEmitter.endTag( pType );
}
-void WriterXmlEmitter::visit( TextElement& elem, const std::list< Element* >::const_iterator& )
+void WriterXmlEmitter::visit( TextElement& elem, const std::list< Element* >::const_iterator& )
{
if( ! elem.Text.getLength() )
return;
-
+
PropertyMap aProps;
if( elem.StyleId != -1 )
{
- aProps[ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "text:style-name" ) ) ] =
+ aProps[ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "text:style-name" ) ) ] =
m_rEmitContext.rStyles.getStyleName( elem.StyleId );
}
-
+
m_rEmitContext.rEmitter.beginTag( "text:span", aProps );
m_rEmitContext.rEmitter.write( elem.Text.makeStringAndClear() );
std::list< Element* >::iterator this_it = elem.Children.begin();
@@ -87,7 +87,7 @@ void WriterXmlEmitter::visit( TextElement& elem, const std::list< Element* >::co
(*this_it)->visitedBy( *this, this_it );
this_it++;
}
-
+
m_rEmitContext.rEmitter.endTag( "text:span" );
}
@@ -102,23 +102,23 @@ void WriterXmlEmitter::visit( ParagraphElement& elem, const std::list< Element*
if( elem.Type == elem.Headline )
pTagType = "text:h";
m_rEmitContext.rEmitter.beginTag( pTagType, aProps );
-
+
std::list< Element* >::iterator this_it = elem.Children.begin();
while( this_it !=elem.Children.end() && *this_it != &elem )
{
(*this_it)->visitedBy( *this, this_it );
this_it++;
}
-
+
m_rEmitContext.rEmitter.endTag( pTagType );
}
-void WriterXmlEmitter::fillFrameProps( DrawElement& rElem,
- PropertyMap& rProps,
+void WriterXmlEmitter::fillFrameProps( DrawElement& rElem,
+ PropertyMap& rProps,
const EmitContext& rEmitContext )
{
double rel_x = rElem.x, rel_y = rElem.y;
-
+
// find anchor type by recursing though parents
Element* pAnchor = rElem.Parent;
while( pAnchor &&
@@ -148,7 +148,7 @@ void WriterXmlEmitter::fillFrameProps( DrawElement& rElem,
rProps[ USTR( "draw:style-name" )] = rEmitContext.rStyles.getStyleName( rElem.StyleId );
rProps[ USTR( "svg:width" ) ] = convertPixelToUnitString( rElem.w );
rProps[ USTR( "svg:height" ) ] = convertPixelToUnitString( rElem.h );
-
+
const GraphicsContext& rGC =
rEmitContext.rProcessor.getGraphicsContext( rElem.GCId );
if( rGC.Transformation.isIdentity() )
@@ -163,12 +163,12 @@ void WriterXmlEmitter::fillFrameProps( DrawElement& rElem,
{
basegfx::B2DTuple aScale, aTranslation;
double fRotate, fShearX;
-
+
rGC.Transformation.decompose( aScale, aTranslation, fRotate, fShearX );
-
+
rtl::OUStringBuffer aBuf( 256 );
- // TODO(F2): general transformation case missing; if implemented, note
+ // TODO(F2): general transformation case missing; if implemented, note
// that ODF rotation is oriented the other way
// build transformation string
@@ -197,36 +197,36 @@ void WriterXmlEmitter::fillFrameProps( DrawElement& rElem,
aBuf.append( convertPixelToUnitString( rel_y ) );
aBuf.appendAscii( " )" );
}
-
+
rProps[ USTR( "draw:transform" ) ] = aBuf.makeStringAndClear();
}
}
-void WriterXmlEmitter::visit( FrameElement& elem, const std::list< Element* >::const_iterator& )
-{
+void WriterXmlEmitter::visit( FrameElement& elem, const std::list< Element* >::const_iterator& )
+{
if( elem.Children.empty() )
return;
-
+
bool bTextBox = (dynamic_cast<ParagraphElement*>(elem.Children.front()) != NULL);
PropertyMap aFrameProps;
fillFrameProps( elem, aFrameProps, m_rEmitContext );
m_rEmitContext.rEmitter.beginTag( "draw:frame", aFrameProps );
if( bTextBox )
m_rEmitContext.rEmitter.beginTag( "draw:text-box", PropertyMap() );
-
+
std::list< Element* >::iterator this_it = elem.Children.begin();
while( this_it !=elem.Children.end() && *this_it != &elem )
{
(*this_it)->visitedBy( *this, this_it );
this_it++;
}
-
+
if( bTextBox )
m_rEmitContext.rEmitter.endTag( "draw:text-box" );
m_rEmitContext.rEmitter.endTag( "draw:frame" );
}
-void WriterXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >::const_iterator& )
+void WriterXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >::const_iterator& )
{
elem.updateGeometry();
/* note:
@@ -240,44 +240,44 @@ void WriterXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >
{
basegfx::B2DPolygon b2dPolygon;
b2dPolygon = elem.PolyPoly.getB2DPolygon( i );
-
+
for ( sal_uInt32 j = 0; j< b2dPolygon.count(); j++ )
{
basegfx::B2DPoint point;
basegfx::B2DPoint nextPoint;
point = b2dPolygon.getB2DPoint( j );
-
+
basegfx::B2DPoint prevPoint;
prevPoint = b2dPolygon.getPrevControlPoint( j ) ;
-
- point.setX( convPx2mmPrec2( point.getX() )*100.0 );
+
+ point.setX( convPx2mmPrec2( point.getX() )*100.0 );
point.setY( convPx2mmPrec2( point.getY() )*100.0 );
-
+
if ( b2dPolygon.isPrevControlPointUsed( j ) )
{
- prevPoint.setX( convPx2mmPrec2( prevPoint.getX() )*100.0 );
+ prevPoint.setX( convPx2mmPrec2( prevPoint.getX() )*100.0 );
prevPoint.setY( convPx2mmPrec2( prevPoint.getY() )*100.0 );
}
-
+
if ( b2dPolygon.isNextControlPointUsed( j ) )
{
nextPoint = b2dPolygon.getNextControlPoint( j ) ;
- nextPoint.setX( convPx2mmPrec2( nextPoint.getX() )*100.0 );
+ nextPoint.setX( convPx2mmPrec2( nextPoint.getX() )*100.0 );
nextPoint.setY( convPx2mmPrec2( nextPoint.getY() )*100.0 );
- }
-
+ }
+
b2dPolygon.setB2DPoint( j, point );
-
+
if ( b2dPolygon.isPrevControlPointUsed( j ) )
b2dPolygon.setPrevControlPoint( j , prevPoint ) ;
-
+
if ( b2dPolygon.isNextControlPointUsed( j ) )
b2dPolygon.setNextControlPoint( j , nextPoint ) ;
}
-
+
elem.PolyPoly.setB2DPolygon( i, b2dPolygon );
}
-
+
PropertyMap aProps;
fillFrameProps( elem, aProps, m_rEmitContext );
rtl::OUStringBuffer aBuf( 64 );
@@ -287,14 +287,14 @@ void WriterXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >
aBuf.append( convPx2mmPrec2(elem.h)*100.0 );
aProps[ USTR( "svg:viewBox" ) ] = aBuf.makeStringAndClear();
aProps[ USTR( "svg:d" ) ] = basegfx::tools::exportToSvgD( elem.PolyPoly );
-
+
m_rEmitContext.rEmitter.beginTag( "draw:path", aProps );
m_rEmitContext.rEmitter.endTag( "draw:path" );
}
-void WriterXmlEmitter::visit( ImageElement& elem, const std::list< Element* >::const_iterator& )
+void WriterXmlEmitter::visit( ImageElement& elem, const std::list< Element* >::const_iterator& )
{
- PropertyMap aImageProps;
+ PropertyMap aImageProps;
m_rEmitContext.rEmitter.beginTag( "draw:image", aImageProps );
m_rEmitContext.rEmitter.beginTag( "office:binary-data", PropertyMap() );
m_rEmitContext.rImages.writeBase64EncodedStream( elem.Image, m_rEmitContext);
@@ -314,12 +314,12 @@ void WriterXmlEmitter::visit( PageElement& elem, const std::list< Element* >::co
this_it++;
}
}
-
+
void WriterXmlEmitter::visit( DocumentElement& elem, const std::list< Element* >::const_iterator&)
{
m_rEmitContext.rEmitter.beginTag( "office:body", PropertyMap() );
m_rEmitContext.rEmitter.beginTag( "office:text", PropertyMap() );
-
+
for( std::list< Element* >::iterator it = elem.Children.begin(); it != elem.Children.end(); ++it )
{
PageElement* pPage = dynamic_cast<PageElement*>(*it);
@@ -343,7 +343,7 @@ void WriterXmlEmitter::visit( DocumentElement& elem, const std::list< Element* >
if( dynamic_cast<DrawElement*>(*it) == NULL )
(*it)->visitedBy( *this, it );
}
-
+
m_rEmitContext.rEmitter.endTag( "office:text" );
m_rEmitContext.rEmitter.endTag( "office:body" );
}
@@ -374,12 +374,12 @@ void WriterXmlOptimizer::visit( PolyPolyElement& elem, const std::list< Element*
* the other is a fill
*/
if( elem.Parent )
- {
- // find following PolyPolyElement in parent's children list
+ {
+ // find following PolyPolyElement in parent's children list
std::list< Element* >::iterator this_it = elem.Parent->Children.begin();
while( this_it != elem.Parent->Children.end() && *this_it != &elem )
++this_it;
-
+
if( this_it != elem.Parent->Children.end() )
{
std::list< Element* >::iterator next_it = this_it;
@@ -426,7 +426,7 @@ void WriterXmlOptimizer::visit( ParagraphElement& elem, const std::list< Element
optimizeTextElements( elem );
elem.applyToChildren(*this);
-
+
if( elem.Parent && rParentIt != elem.Parent->Children.end() )
{
// find if there is a previous paragraph that might be a heading for this one
@@ -483,15 +483,15 @@ void WriterXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::
if( m_rProcessor.getStatusIndicator().is() )
m_rProcessor.getStatusIndicator()->setValue( elem.PageNumber );
- // resolve hyperlinks
+ // resolve hyperlinks
elem.resolveHyperlinks();
-
+
elem.resolveFontStyles( m_rProcessor ); // underlines and such
-
+
// FIXME: until hyperlinks and font effects are adjusted for
- // geometrical search handle them before sorting
+ // geometrical search handle them before sorting
m_rProcessor.sortElements( &elem );
-
+
// find paragraphs in text
ParagraphElement* pCurPara = NULL;
std::list< Element* >::iterator page_element, next_page_element;
@@ -520,7 +520,7 @@ void WriterXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::
fCurLineHeight = (fCurLineHeight*double(nCurLineElements) + pTestText->h)/double(nCurLineElements+1);
nCurLineElements++;
}
- }
+ }
continue;
}
@@ -531,7 +531,7 @@ void WriterXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::
if( pDraw )
{
// insert small drawing objects as character, else leave them page bound
-
+
bool bInsertToParagraph = false;
// first check if this is either inside the paragraph
if( pCurPara && pDraw->y < pCurPara->y + pCurPara->h )
@@ -574,14 +574,14 @@ void WriterXmlOptimizer::visit( PageElement& elem, const std::list< Element* >::
pDraw->isCharacter = true;
}
}
-
+
if( ! bInsertToParagraph )
{
pCurPara = NULL;
continue;
}
}
-
+
TextElement* pText = dynamic_cast<TextElement*>(*page_element);
if( ! pText && pLink && ! pLink->Children.empty() )
pText = dynamic_cast<TextElement*>(pLink->Children.front());
@@ -662,12 +662,12 @@ void WriterXmlOptimizer::checkHeaderAndFooter( PageElement& rElem )
/* indicators for a header:
* - single line paragrah at top of page ( inside 15% page height)
* - at least linheight above the next paragr aph
- *
- * indicators for a footer likewise:
- * - single line paragraph at bottom of page (inside 15% page height)
- * - at least lineheight below the previous paragraph
+ *
+ * indicators for a footer likewise:
+ * - single line paragraph at bottom of page (inside 15% page height)
+ * - at least lineheight below the previous paragraph
*/
-
+
// detect header
// Note: the following assumes that the pages' chiuldren have been
// sorted geometrically
@@ -696,7 +696,7 @@ void WriterXmlOptimizer::checkHeaderAndFooter( PageElement& rElem )
}
++it;
}
-
+
// detect footer
std::list< Element* >::reverse_iterator rit = rElem.Children.rbegin();
while( rit != rElem.Children.rend() )
@@ -732,7 +732,7 @@ void WriterXmlOptimizer::optimizeTextElements(Element& rParent)
OSL_ENSURE( 0, "empty paragraph optimized" );
return;
}
-
+
// concatenate child elements with same font id
std::list< Element* >::iterator next = rParent.Children.begin();
std::list< Element* >::iterator it = next++;
@@ -755,9 +755,9 @@ void WriterXmlOptimizer::optimizeTextElements(Element& rParent)
{
const GraphicsContext& rCurGC = m_rProcessor.getGraphicsContext( pCur->GCId );
const GraphicsContext& rNextGC = m_rProcessor.getGraphicsContext( pNext->GCId );
-
+
// line and space optimization; works only in strictly horizontal mode
-
+
if( !bRotatedFrame
&& ! rCurGC.isRotatedOrSkewed()
&& ! rNextGC.isRotatedOrSkewed()
@@ -850,7 +850,7 @@ void WriterXmlFinalizer::visit( PolyPolyElement& elem, const std::list< Element*
const GraphicsContext& rGC = m_rProcessor.getGraphicsContext(elem.GCId );
PropertyMap aProps;
aProps[ USTR( "style:family" ) ] = USTR( "graphic" );
-
+
PropertyMap aGCProps;
// TODO(F3): proper dash emulation
@@ -888,7 +888,7 @@ void WriterXmlFinalizer::visit( PolyPolyElement& elem, const std::list< Element*
StyleContainer::Style aStyle( "style:style", aProps );
StyleContainer::Style aSubStyle( "style:graphic-properties", aGCProps );
aStyle.SubStyles.push_back( &aSubStyle );
-
+
elem.StyleId = m_rStyleContainer.getStyleId( aStyle );
}
@@ -897,13 +897,13 @@ void WriterXmlFinalizer::visit( HyperlinkElement&, const std::list< Element* >::
}
void WriterXmlFinalizer::visit( TextElement& elem, const std::list< Element* >::const_iterator& )
-{
+{
const FontAttributes& rFont = m_rProcessor.getFont( elem.FontId );
PropertyMap aProps;
aProps[ USTR( "style:family" ) ] = USTR( "text" );
PropertyMap aFontProps;
-
+
// family name
aFontProps[ USTR( "fo:font-family" ) ] = rFont.familyName;
// bold
@@ -943,7 +943,7 @@ void WriterXmlFinalizer::visit( TextElement& elem, const std::list< Element* >::
// color
const GraphicsContext& rGC = m_rProcessor.getGraphicsContext( elem.GCId );
aFontProps[ USTR( "fo:color" ) ] = getColorString( rFont.isOutline ? rGC.LineColor : rGC.FillColor );
-
+
StyleContainer::Style aStyle( "style:style", aProps );
StyleContainer::Style aSubStyle( "style:text-properties", aFontProps );
aStyle.SubStyles.push_back( &aSubStyle );
@@ -951,9 +951,9 @@ void WriterXmlFinalizer::visit( TextElement& elem, const std::list< Element* >::
}
void WriterXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element* >::const_iterator& rParentIt )
-{
+{
PropertyMap aParaProps;
-
+
if( elem.Parent )
{
// check for center alignement
@@ -962,7 +962,7 @@ void WriterXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element
double p_y = elem.Parent->y;
double p_w = elem.Parent->w;
double p_h = elem.Parent->h;
-
+
PageElement* pPage = dynamic_cast<PageElement*>(elem.Parent);
if( pPage )
{
@@ -994,7 +994,7 @@ void WriterXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element
aBuf.appendAscii( "mm" );
aParaProps[ USTR( "fo:margin-left" ) ] = aBuf.makeStringAndClear();
}
-
+
// check whether to leave some space to next paragraph
// find wether there is a next paragraph
std::list< Element* >::const_iterator it = rParentIt;
@@ -1012,7 +1012,7 @@ void WriterXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element
}
}
}
-
+
if( ! aParaProps.empty() )
{
PropertyMap aProps;
@@ -1030,16 +1030,16 @@ void WriterXmlFinalizer::visit( FrameElement& elem, const std::list< Element* >:
{
PropertyMap aProps;
aProps[ USTR( "style:family" ) ] = USTR( "graphic" );
-
+
PropertyMap aGCProps;
aGCProps[ USTR("draw:stroke") ] = USTR("none");
aGCProps[ USTR("draw:fill") ] = USTR("none");
-
+
StyleContainer::Style aStyle( "style:style", aProps );
StyleContainer::Style aSubStyle( "style:graphic-properties", aGCProps );
aStyle.SubStyles.push_back( &aSubStyle );
-
+
elem.StyleId = m_rStyleContainer.getStyleId( aStyle );
elem.applyToChildren(*this);
}
@@ -1049,7 +1049,7 @@ void WriterXmlFinalizer::visit( ImageElement&, const std::list< Element* >::cons
}
void WriterXmlFinalizer::setFirstOnPage( ParagraphElement& rElem,
- StyleContainer& rStyles,
+ StyleContainer& rStyles,
const rtl::OUString& rMasterPageName )
{
PropertyMap aProps;
@@ -1062,7 +1062,7 @@ void WriterXmlFinalizer::setFirstOnPage( ParagraphElement& rElem,
aProps[ USTR( "style:family" ) ] = USTR( "paragraph" );
aProps[ USTR( "style:master-page-name" ) ] = rMasterPageName;
-
+
if( rElem.StyleId != -1 )
rElem.StyleId = rStyles.setProperties( rElem.StyleId, aProps );
else
@@ -1076,10 +1076,10 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::
{
if( m_rProcessor.getStatusIndicator().is() )
m_rProcessor.getStatusIndicator()->setValue( elem.PageNumber );
-
+
// transform from pixel to mm
double page_width = convPx2mm( elem.w ), page_height = convPx2mm( elem.h );
-
+
// calculate page margins out of the relevant children (paragraphs)
elem.TopMargin = elem.h, elem.BottomMargin = 0, elem.LeftMargin = elem.w, elem.RightMargin = 0;
// first element should be a paragraphy
@@ -1104,7 +1104,7 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::
elem.TopMargin = elem.HeaderElement->y;
if( elem.FooterElement && elem.FooterElement->y+elem.FooterElement->h > elem.h - elem.BottomMargin )
elem.BottomMargin = elem.h - (elem.FooterElement->y + elem.FooterElement->h);
-
+
// transform margins to mm
double left_margin = convPx2mm( elem.LeftMargin );
double right_margin = convPx2mm( elem.RightMargin );
@@ -1118,14 +1118,14 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::
top_margin = 10;
bottom_margin = 10;
}
-
+
// round left/top margin to nearest mm
left_margin = rtl_math_round( left_margin, 0, rtl_math_RoundingMode_Floor );
top_margin = rtl_math_round( top_margin, 0, rtl_math_RoundingMode_Floor );
// round (fuzzy) right/bottom margin to nearest cm
right_margin = rtl_math_round( right_margin, right_margin >= 10 ? -1 : 0, rtl_math_RoundingMode_Floor );
- bottom_margin = rtl_math_round( bottom_margin, bottom_margin >= 10 ? -1 : 0, rtl_math_RoundingMode_Floor );
-
+ bottom_margin = rtl_math_round( bottom_margin, bottom_margin >= 10 ? -1 : 0, rtl_math_RoundingMode_Floor );
+
// set reasonable default in case of way too large margins
// e.g. no paragraph case
if( left_margin > page_width/2.0 - 10 )
@@ -1136,7 +1136,7 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::
top_margin = 10;
if( bottom_margin > page_height/2.0 - 10 )
bottom_margin = 10;
-
+
// catch the weird cases
if( left_margin < 0 )
left_margin = 0;
@@ -1146,16 +1146,16 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::
top_margin = 0;
if( bottom_margin < 0 )
bottom_margin = 0;
-
+
// widely differing margins are unlikely to be correct
if( right_margin > left_margin*1.5 )
right_margin = left_margin;
-
+
elem.LeftMargin = convmm2Px( left_margin );
elem.RightMargin = convmm2Px( right_margin );
elem.TopMargin = convmm2Px( top_margin );
elem.BottomMargin = convmm2Px( bottom_margin );
-
+
// get styles for paragraphs
PropertyMap aPageProps;
PropertyMap aPageLayoutProps;
@@ -1169,9 +1169,9 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::
aPageLayoutProps[ USTR( "fo:margin-left" ) ] = unitMMString( left_margin );
aPageLayoutProps[ USTR( "fo:margin-right" ) ] = unitMMString( right_margin );
aPageLayoutProps[ USTR( "style:writing-mode" ) ]= USTR( "lr-tb" );
-
- StyleContainer::Style aStyle( "style:page-layout", aPageProps);
- StyleContainer::Style aSubStyle( "style:page-layout-properties", aPageLayoutProps);
+
+ StyleContainer::Style aStyle( "style:page-layout", aPageProps);
+ StyleContainer::Style aSubStyle( "style:page-layout-properties", aPageLayoutProps);
aStyle.SubStyles.push_back(&aSubStyle);
sal_Int32 nPageStyle = m_rStyleContainer.impl_getStyleId( aStyle, false );
@@ -1195,12 +1195,12 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::
}
elem.StyleId = m_rStyleContainer.impl_getStyleId( aMPStyle,false );
-
+
rtl::OUString aMasterPageName = m_rStyleContainer.getStyleName( elem.StyleId );
// create styles for children
elem.applyToChildren(*this);
-
+
// no paragraph or other elements before the first paragraph
if( ! pFirstPara )
{
@@ -1212,7 +1212,7 @@ void WriterXmlFinalizer::visit( PageElement& elem, const std::list< Element* >::
}
void WriterXmlFinalizer::visit( DocumentElement& elem, const std::list< Element* >::const_iterator& )
-{
+{
elem.applyToChildren(*this);
}
diff --git a/sdext/source/pdfimport/tree/writertreevisiting.hxx b/sdext/source/pdfimport/tree/writertreevisiting.hxx
index b280b6aa011a..2c9e875f4b4f 100644
--- a/sdext/source/pdfimport/tree/writertreevisiting.hxx
+++ b/sdext/source/pdfimport/tree/writertreevisiting.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ namespace pdfi
explicit WriterXmlOptimizer(PDFIProcessor& rProcessor) :
m_rProcessor(rProcessor)
{}
- virtual ~WriterXmlOptimizer()
+ virtual ~WriterXmlOptimizer()
{}
virtual void visit( HyperlinkElement&, const std::list< Element* >::const_iterator& );
@@ -58,7 +58,7 @@ namespace pdfi
virtual void visit( PageElement&, const std::list< Element* >::const_iterator& );
virtual void visit( DocumentElement&, const std::list< Element* >::const_iterator& );
};
-
+
class WriterXmlFinalizer : public ElementTreeVisitor
{
private:
@@ -66,7 +66,7 @@ namespace pdfi
PDFIProcessor& m_rProcessor;
void setFirstOnPage( ParagraphElement& rElem,
- StyleContainer& rStyles,
+ StyleContainer& rStyles,
const rtl::OUString& rMasterPageName );
public:
@@ -75,7 +75,7 @@ namespace pdfi
m_rStyleContainer(rStyleContainer),
m_rProcessor(rProcessor)
{}
- virtual ~WriterXmlFinalizer()
+ virtual ~WriterXmlFinalizer()
{}
virtual void visit( HyperlinkElement&, const std::list< Element* >::const_iterator& );
@@ -87,20 +87,20 @@ namespace pdfi
virtual void visit( PageElement&, const std::list< Element* >::const_iterator& );
virtual void visit( DocumentElement&, const std::list< Element* >::const_iterator& );
};
-
+
class WriterXmlEmitter : public ElementTreeVisitor
{
private:
EmitContext& m_rEmitContext ;
- void fillFrameProps( DrawElement& rElem,
- PropertyMap& rProps,
+ void fillFrameProps( DrawElement& rElem,
+ PropertyMap& rProps,
const EmitContext& rEmitContext );
public:
explicit WriterXmlEmitter(EmitContext& rEmitContext) :
m_rEmitContext(rEmitContext)
{}
- virtual ~WriterXmlEmitter()
+ virtual ~WriterXmlEmitter()
{}
virtual void visit( HyperlinkElement&, const std::list< Element* >::const_iterator& );
@@ -111,7 +111,7 @@ namespace pdfi
virtual void visit( ImageElement&, const std::list< Element* >::const_iterator& );
virtual void visit( PageElement&, const std::list< Element* >::const_iterator& );
virtual void visit( DocumentElement&, const std::list< Element* >::const_iterator& );
- };
+ };
}
#endif
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx
index dcc9dd01daf3..cf07a7121b8d 100644
--- a/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -185,9 +185,9 @@ class Parser
void readLink();
void readMaskedImage();
void readSoftMaskedImage();
- int parseFontCheckForString( const sal_Unicode* pCopy, const char* str, sal_Int32& nLen,
+ int parseFontCheckForString( const sal_Unicode* pCopy, const char* str, sal_Int32& nLen,
FontAttributes& aResult, bool bItalic, bool bBold);
- int parseFontRemoveSuffix( const sal_Unicode* pCopy, const char* s, sal_Int32& nLen);
+ int parseFontRemoveSuffix( const sal_Unicode* pCopy, const char* s, sal_Int32& nLen);
public:
@@ -464,7 +464,7 @@ rendering::ARGBColor Parser::readColor()
return aRes;
}
-int Parser::parseFontCheckForString( const sal_Unicode* pCopy, const char* s, sal_Int32& nLen,
+int Parser::parseFontCheckForString( const sal_Unicode* pCopy, const char* s, sal_Int32& nLen,
FontAttributes& aResult, bool bItalic, bool bBold)
{
int l = strlen(s);
@@ -484,7 +484,7 @@ int Parser::parseFontCheckForString( const sal_Unicode* pCopy, const char* s, sa
int Parser::parseFontRemoveSuffix( const sal_Unicode* pCopy, const char* s, sal_Int32& nLen)
{
int l = strlen(s);
- if (nLen < l)
+ if (nLen < l)
return 0;
for (int i = 0; i < l; i++)
if ( pCopy[nLen - l + i] != s[i] )
@@ -510,7 +510,7 @@ void Parser::parseFontFamilyName( FontAttributes& aResult )
{
if (parseFontRemoveSuffix( pCopy, "PSMT", nLen)) {}
else if (parseFontRemoveSuffix( pCopy, "MT", nLen)) {}
-
+
if (parseFontCheckForString( pCopy, "Italic", nLen, aResult, true, false)) {}
else if (parseFontCheckForString( pCopy, "-Bold", nLen, aResult, false, true)) {}
else if (parseFontCheckForString( pCopy, "Bold", nLen, aResult, false, true)) {}
@@ -630,13 +630,13 @@ uno::Sequence<beans::PropertyValue> Parser::readImageImpl()
static const rtl::OString aPbmMarker( "PBM" );
static const rtl::OString aPpmMarker( "PPM" );
static const rtl::OString aPngMarker( "PNG" );
- static const rtl::OUString aJpegFile(
+ static const rtl::OUString aJpegFile(
RTL_CONSTASCII_USTRINGPARAM( "DUMMY.JPEG" ));
static const rtl::OUString aPbmFile(
RTL_CONSTASCII_USTRINGPARAM( "DUMMY.PBM" ));
static const rtl::OUString aPpmFile(
RTL_CONSTASCII_USTRINGPARAM( "DUMMY.PPM" ));
- static const rtl::OUString aPngFile(
+ static const rtl::OUString aPngFile(
RTL_CONSTASCII_USTRINGPARAM( "DUMMY.PNG" ));
rtl::OString aToken = readNextToken();
@@ -776,7 +776,7 @@ void Parser::parseLine( const ::rtl::OString& rLine )
OSL_PRECOND( m_pSink, "Invalid sink" );
OSL_PRECOND( m_pErr, "Invalid filehandle" );
OSL_PRECOND( m_xContext.is(), "Invalid service factory" );
-
+
m_nNextToken = 0; m_nCharIndex = 0; m_aLine = rLine;
uno::Reference<rendering::XPolyPolygon2D> xPoly;
const ::rtl::OString& rCmd = readNextToken();
@@ -869,23 +869,23 @@ oslFileError readLine( oslFileHandle pFile, ::rtl::OStringBuffer& line )
oslFileError nRes;
// skip garbage \r \n at start of line
- while( osl_File_E_None == (nRes=osl_readFile(pFile, &aChar, 1, &nBytesRead)) &&
- nBytesRead == 1 &&
+ while( osl_File_E_None == (nRes=osl_readFile(pFile, &aChar, 1, &nBytesRead)) &&
+ nBytesRead == 1 &&
(aChar == '\n' || aChar == '\r') ) ;
if( aChar != '\n' && aChar != '\r' )
line.append( aChar );
- while( osl_File_E_None == (nRes=osl_readFile(pFile, &aChar, 1, &nBytesRead)) &&
+ while( osl_File_E_None == (nRes=osl_readFile(pFile, &aChar, 1, &nBytesRead)) &&
nBytesRead == 1 && aChar != '\n' && aChar != '\r' )
{
line.append( aChar );
}
-
+
return nRes;
}
-} // namespace
+} // namespace
static bool checkEncryption( const rtl::OUString& i_rPath,
const uno::Reference< task::XInteractionHandler >& i_xIHdl,
@@ -897,7 +897,7 @@ static bool checkEncryption( const rtl::OUString&
bool bSuccess = false;
rtl::OString aPDFFile;
aPDFFile = rtl::OUStringToOString( i_rPath, osl_getThreadTextEncoding() );
-
+
pdfparse::PDFReader aParser;
boost::scoped_ptr<pdfparse::PDFEntry> pEntry( aParser.read( aPDFFile.getStr() ));
if( pEntry )
@@ -911,7 +911,7 @@ static bool checkEncryption( const rtl::OUString&
bool bAuthenticated = false;
if( io_rPwd.getLength() )
{
- rtl::OString aIsoPwd = rtl::OUStringToOString( io_rPwd,
+ rtl::OString aIsoPwd = rtl::OUStringToOString( io_rPwd,
RTL_TEXTENCODING_ISO_8859_1 );
bAuthenticated = pPDFFile->setupDecryptionData( aIsoPwd.getStr() );
}
@@ -925,12 +925,12 @@ static bool checkEncryption( const rtl::OUString&
do
{
bEntered = getPassword( i_xIHdl, io_rPwd, ! bEntered, i_rDocName );
- rtl::OString aIsoPwd = rtl::OUStringToOString( io_rPwd,
+ rtl::OString aIsoPwd = rtl::OUStringToOString( io_rPwd,
RTL_TEXTENCODING_ISO_8859_1 );
bAuthenticated = pPDFFile->setupDecryptionData( aIsoPwd.getStr() );
} while( bEntered && ! bAuthenticated );
}
-
+
OSL_TRACE( "password: %s\n", bAuthenticated ? "matches" : "does not match" );
bSuccess = bAuthenticated;
}
@@ -954,7 +954,7 @@ bool xpdf_ImportFromFile( const ::rtl::OUString& rUR
if( osl_getSystemPathFromFileURL( rURL.pData, &aSysUPath.pData ) != osl_File_E_None )
return false;
rtl::OUString aDocName( rURL.copy( rURL.lastIndexOf( sal_Unicode('/') )+1 ) );
-
+
// check for encryption, if necessary get password
rtl::OUString aPwd( rPwd );
bool bIsEncrypted = false;
@@ -965,19 +965,19 @@ bool xpdf_ImportFromFile( const ::rtl::OUString& rUR
// retrieve package location url (xpdfimport executable is located there)
// ---------------------------------------------------
- uno::Reference<deployment::XPackageInformationProvider> xProvider(
- xContext->getValueByName(
+ uno::Reference<deployment::XPackageInformationProvider> xProvider(
+ xContext->getValueByName(
rtl::OUString::createFromAscii("/singletons/com.sun.star.deployment.PackageInformationProvider" )),
uno::UNO_QUERY);
if( xProvider.is() )
{
converterURL.insert(
- 0,
+ 0,
rtl::OUString::createFromAscii("/"));
converterURL.insert(
- 0,
- xProvider->getPackageLocation(
- rtl::OUString::createFromAscii(
+ 0,
+ xProvider->getPackageLocation(
+ rtl::OUString::createFromAscii(
BOOST_PP_STRINGIZE(PDFI_IMPL_IDENTIFIER))));
}
@@ -1001,18 +1001,18 @@ bool xpdf_ImportFromFile( const ::rtl::OUString& rUR
rtl_uString* args[] = { aSysUPath.pData };
sal_Int32 nArgs = 1;
-
+
oslProcess aProcess;
oslFileHandle pIn = NULL;
oslFileHandle pOut = NULL;
oslFileHandle pErr = NULL;
- const oslProcessError eErr =
- osl_executeProcess_WithRedirectedIO(converterURL.makeStringAndClear().pData,
- args,
- nArgs,
- osl_Process_SEARCHPATH|osl_Process_HIDDEN,
- osl_getCurrentSecurity(),
- 0, ppEnv, nEnv,
+ const oslProcessError eErr =
+ osl_executeProcess_WithRedirectedIO(converterURL.makeStringAndClear().pData,
+ args,
+ nArgs,
+ osl_Process_SEARCHPATH|osl_Process_HIDDEN,
+ osl_getCurrentSecurity(),
+ 0, ppEnv, nEnv,
&aProcess, &pIn, &pOut, &pErr);
bool bRet=true;
@@ -1020,18 +1020,18 @@ bool xpdf_ImportFromFile( const ::rtl::OUString& rUR
{
if( eErr!=osl_Process_E_None )
return false;
-
+
if( pIn )
{
rtl::OStringBuffer aBuf(256);
if( bIsEncrypted )
aBuf.append( rtl::OUStringToOString( aPwd, RTL_TEXTENCODING_ISO_8859_1 ) );
aBuf.append( '\n' );
-
+
sal_uInt64 nWritten = 0;
osl_writeFile( pIn, aBuf.getStr(), sal_uInt64(aBuf.getLength()), &nWritten );
}
-
+
if( pOut && pErr )
{
// read results of PDF parser. One line - one call to
@@ -1041,7 +1041,7 @@ bool xpdf_ImportFromFile( const ::rtl::OUString& rUR
::rtl::OStringBuffer line;
while( osl_File_E_None == readLine(pOut, line) && line.getLength() )
aParser.parseLine(line.makeStringAndClear());
- }
+ }
}
catch( uno::Exception& )
{
@@ -1049,7 +1049,7 @@ bool xpdf_ImportFromFile( const ::rtl::OUString& rUR
bRet = false;
}
- if( pIn )
+ if( pIn )
osl_closeFile(pIn);
if( pOut )
osl_closeFile(pOut);
@@ -1066,7 +1066,7 @@ bool xpdf_ImportFromStream( const uno::Reference< io::XInputStream >& xI
const rtl::OUString& rPwd,
const uno::Reference< uno::XComponentContext >& xContext )
{
- OSL_ASSERT(xInput.is());
+ OSL_ASSERT(xInput.is());
OSL_ASSERT(rSink);
// convert XInputStream to local temp file
@@ -1101,7 +1101,7 @@ bool xpdf_ImportFromStream( const uno::Reference< io::XInputStream >& xI
break;
}
}
- }
+ }
while( nBytes == nBufSize );
osl_closeFile( aFile );
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
index 829ada5c155d..4280ce1cf601 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
@@ -16,12 +16,12 @@
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
@@ -39,7 +39,7 @@
#include <vector>
#include <boost/shared_array.hpp>
-
+
#if defined __SUNPRO_CC
#pragma disable_warn
#elif defined _MSC_VER
@@ -59,7 +59,7 @@
#endif
-/* SYNC STREAMS
+/* SYNC STREAMS
============
We stream human-readble tokens to stdout, and binary data (fonts,
@@ -90,7 +90,7 @@ boost::shared_array<char> lcl_escapeLineFeeds(const char* const i_pStr)
{
size_t nLength(strlen(i_pStr));
char* pBuffer = new char[2*nLength+1];
-
+
const char* pRead = i_pStr;
char* pWrite = pBuffer;
while( nLength-- )
@@ -139,7 +139,7 @@ void writeBinaryBuffer( const OutputBuffer& rBuffer )
// put buffer to stderr
if( !rBuffer.empty() )
- if( fwrite(&rBuffer[0], sizeof(char),
+ if( fwrite(&rBuffer[0], sizeof(char),
rBuffer.size(), g_binary_out) != (size_t)rBuffer.size() )
exit(1); // error
@@ -195,12 +195,12 @@ void writePbm_(OutputBuffer& o_rOutputBuf, Stream* str, int width, int height, b
// copy the raw stream
if( bInvert )
{
- for( int i=0; i<size; ++i)
+ for( int i=0; i<size; ++i)
o_rOutputBuf.push_back(static_cast<char>(str->getChar() ^ 0xff));
}
else
{
- for( int i=0; i<size; ++i)
+ for( int i=0; i<size; ++i)
o_rOutputBuf.push_back(static_cast<char>(str->getChar()));
}
@@ -213,7 +213,7 @@ void writePpm_( OutputBuffer& o_rOutputBuf,
int height,
GfxImageColorMap* colorMap,
bool bWithLinefeed )
-{
+{
// write as PPM (char by char, to avoid stdlib lineend messing)
o_rOutputBuf.clear();
o_rOutputBuf.resize(WRITE_BUFFER_SIZE);
@@ -244,28 +244,28 @@ void writePpm_( OutputBuffer& o_rOutputBuf,
Guchar *p;
GfxRGB rgb;
ImageStream* imgStr =
- new ImageStream(str,
- width,
+ new ImageStream(str,
+ width,
colorMap->getNumPixelComps(),
colorMap->getBits());
imgStr->reset();
- for( int y=0; y<height; ++y)
+ for( int y=0; y<height; ++y)
{
p = imgStr->getLine();
- for( int x=0; x<width; ++x)
+ for( int x=0; x<width; ++x)
{
colorMap->getRGB(p, &rgb);
o_rOutputBuf.push_back(colToByte(rgb.r));
o_rOutputBuf.push_back(colToByte(rgb.g));
o_rOutputBuf.push_back(colToByte(rgb.b));
-
+
p +=colorMap->getNumPixelComps();
}
}
delete imgStr;
-
+
}
// call this only for 1 bit image streams !
@@ -277,11 +277,11 @@ void writePng_( OutputBuffer& o_rOutputBuf,
GfxRGB& oneColor,
bool bIsMask,
bool bWithLinefeed )
-{
+{
o_rOutputBuf.clear();
-
+
// get png image
- PngHelper::createPng( o_rOutputBuf, str, width, height, zeroColor, oneColor, bIsMask );
+ PngHelper::createPng( o_rOutputBuf, str, width, height, zeroColor, oneColor, bIsMask );
printf( " PNG %d", (int)o_rOutputBuf.size() );
if( bWithLinefeed )
@@ -294,11 +294,11 @@ void writePng_( OutputBuffer& o_rOutputBuf,
Stream* maskStr,
int maskWidth, int maskHeight, GfxImageColorMap* maskColorMap,
bool bWithLinefeed )
-{
+{
o_rOutputBuf.clear();
-
+
// get png image
- PngHelper::createPng( o_rOutputBuf, str, width, height, colorMap, maskStr, maskWidth, maskHeight, maskColorMap );
+ PngHelper::createPng( o_rOutputBuf, str, width, height, colorMap, maskStr, maskWidth, maskHeight, maskColorMap );
printf( " PNG %d", (int)o_rOutputBuf.size() );
if( bWithLinefeed )
@@ -311,11 +311,11 @@ void writePng_( OutputBuffer& o_rOutputBuf,
Stream* maskStr,
int maskWidth, int maskHeight, bool maskInvert,
bool bWithLinefeed )
-{
+{
o_rOutputBuf.clear();
-
+
// get png image
- PngHelper::createPng( o_rOutputBuf, str, width, height, colorMap, maskStr, maskWidth, maskHeight, maskInvert );
+ PngHelper::createPng( o_rOutputBuf, str, width, height, colorMap, maskStr, maskWidth, maskHeight, maskInvert );
printf( " PNG %d", (int)o_rOutputBuf.size() );
if( bWithLinefeed )
@@ -327,7 +327,7 @@ void writeMask_( OutputBuffer& o_rOutputBuf, Stream* str, int width, int height,
{
if( str->getKind() == strDCT )
writeJpeg_(o_rOutputBuf, str, bWithLinefeed);
- else
+ else
writePbm_(o_rOutputBuf, str, width, height, bWithLinefeed, bInvert );
}
@@ -336,17 +336,17 @@ void writeImage_( OutputBuffer& o_rOutputBuf,
int width,
int height,
GfxImageColorMap* colorMap,
- bool bWithLinefeed )
+ bool bWithLinefeed )
{
// dump JPEG file
if( str->getKind() == strDCT &&
(colorMap->getNumPixelComps() == 1 ||
- colorMap->getNumPixelComps() == 3) )
+ colorMap->getNumPixelComps() == 3) )
{
writeJpeg_(o_rOutputBuf, str, bWithLinefeed);
- }
+ }
else if (colorMap->getNumPixelComps() == 1 &&
- colorMap->getBits() == 1)
+ colorMap->getBits() == 1)
{
// this is a two color bitmap, write a png
// provide default colors
@@ -360,7 +360,7 @@ void writeImage_( OutputBuffer& o_rOutputBuf,
colorMap->getRGB( &nIndex, &oneColor );
}
writePng_( o_rOutputBuf, str, width, height, zeroColor, oneColor, false, bWithLinefeed );
- }
+ }
else
writePpm_( o_rOutputBuf, str, width, height, colorMap, bWithLinefeed );
}
@@ -443,12 +443,12 @@ void PDFOutDev::writeFontFile( GfxFont* gfxFont ) const
fflush(stdout);
if( fwrite(pBuf, sizeof(char), nSize, g_binary_out) != (size_t)nSize )
- exit(1); // error
+ exit(1); // error
- // ---sync point--- see SYNC STREAMS above
+ // ---sync point--- see SYNC STREAMS above
fflush(g_binary_out);
}
-
+
void PDFOutDev::printPath( GfxPath* pPath ) const
{
int nSubPaths = pPath ? pPath->getNumSubpaths() : 0;
@@ -456,13 +456,13 @@ void PDFOutDev::printPath( GfxPath* pPath ) const
{
GfxSubpath* pSub = pPath->getSubpath( i );
const int nPoints = pSub->getNumPoints();
-
+
printf( " subpath %d", pSub->isClosed() );
for( int n=0; n<nPoints; ++n )
{
- printf( " %f %f %d",
- normalize(pSub->getX(n)),
+ printf( " %f %f %d",
+ normalize(pSub->getX(n)),
normalize(pSub->getY(n)),
pSub->getCurve(n) );
}
@@ -480,7 +480,7 @@ void PDFOutDev::startPage(int /*pageNum*/, GfxState* state)
{
assert(state);
printf("startPage %f %f\n",
- normalize(state->getPageWidth()),
+ normalize(state->getPageWidth()),
normalize(state->getPageHeight()));
}
@@ -500,13 +500,13 @@ void PDFOutDev::processLink(Link* link, Catalog*)
if( pAction->getKind() == actionURI )
{
const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->getCString();
-
+
boost::shared_array<char> pEsc( lcl_escapeLineFeeds(pURI) );
- printf( "drawLink %f %f %f %f %s\n",
- normalize(x1),
- normalize(y1),
- normalize(x2),
+ printf( "drawLink %f %f %f %f %s\n",
+ normalize(x1),
+ normalize(y1),
+ normalize(x2),
normalize(y2),
pEsc.get() );
}
@@ -537,9 +537,9 @@ void PDFOutDev::setDefaultCTM(double *pMat)
normalize(pMat[5]) );
}
-void PDFOutDev::updateCTM(GfxState* state,
- double, double,
+void PDFOutDev::updateCTM(GfxState* state,
double, double,
+ double, double,
double, double)
{
assert(state);
@@ -575,13 +575,13 @@ void PDFOutDev::updateLineDash(GfxState *state)
void PDFOutDev::updateFlatness(GfxState *state)
{
- assert(state);
+ assert(state);
printf( "updateFlatness %d\n", state->getFlatness() );
}
void PDFOutDev::updateLineJoin(GfxState *state)
{
- assert(state);
+ assert(state);
printf( "updateLineJoin %d\n", state->getLineJoin() );
}
@@ -611,8 +611,8 @@ void PDFOutDev::updateFillColor(GfxState *state)
state->getFillRGB( &aRGB );
printf( "updateFillColor %f %f %f %f\n",
- normalize(colToDbl(aRGB.r)),
- normalize(colToDbl(aRGB.g)),
+ normalize(colToDbl(aRGB.r)),
+ normalize(colToDbl(aRGB.g)),
normalize(colToDbl(aRGB.b)),
normalize(state->getFillOpacity()) );
}
@@ -623,10 +623,10 @@ void PDFOutDev::updateStrokeColor(GfxState *state)
GfxRGB aRGB;
state->getStrokeRGB( &aRGB );
-
+
printf( "updateStrokeColor %f %f %f %f\n",
- normalize(colToDbl(aRGB.r)),
- normalize(colToDbl(aRGB.g)),
+ normalize(colToDbl(aRGB.r)),
+ normalize(colToDbl(aRGB.g)),
normalize(colToDbl(aRGB.b)),
normalize(state->getFillOpacity()) );
}
@@ -673,14 +673,14 @@ void PDFOutDev::updateFont(GfxState *state)
printf( " %lld", fontID );
aFont = it->second;
-
+
boost::shared_array<char> pEsc( lcl_escapeLineFeeds(aFont.familyName.getCString()) );
printf( " %d %d %d %d %f %d %s",
aFont.isEmbedded,
- aFont.isBold,
- aFont.isItalic,
- aFont.isUnderline,
- normalize(state->getTransformedFontSize()),
+ aFont.isBold,
+ aFont.isItalic,
+ aFont.isUnderline,
+ normalize(state->getTransformedFontSize()),
nEmbedSize,
pEsc.get() );
}
@@ -694,7 +694,7 @@ void PDFOutDev::updateFont(GfxState *state)
void PDFOutDev::updateRender(GfxState *state)
{
assert(state);
-
+
printf( "setTextRenderMode %d\n", state->getRender() );
}
@@ -742,7 +742,7 @@ void PDFOutDev::eoClip(GfxState *state)
printPath( state->getPath() );
printf( "\n" );
}
-
+
/** Output one glyph
@@ -771,44 +771,44 @@ void PDFOutDev::drawChar(GfxState *state, double x, double y,
if( u == NULL )
return;
-
+
// normalize coordinates: correct from baseline-relative to upper
// left corner of glyphs
- double x2(0.0), y2(0.0);
- state->textTransformDelta( 0.0,
- state->getFont()->getAscent(),
+ double x2(0.0), y2(0.0);
+ state->textTransformDelta( 0.0,
+ state->getFont()->getAscent(),
&x2, &y2 );
const double fFontSize(state->getFontSize());
x += x2*fFontSize;
y += y2*fFontSize;
-
+
const double aPositionX(x-originX);
const double aPositionY(y-originY);
// TODO(F2): use leading here, when set
const double nWidth(dx != 0.0 ? dx : fFontSize);
const double nHeight(dy != 0.0 ? dy : fFontSize);
-
+
const double* pTextMat=state->getTextMat();
printf( "drawChar %f %f %f %f %f %f %f %f ",
- normalize(aPositionX),
+ normalize(aPositionX),
normalize(aPositionY),
- normalize(aPositionX+nWidth),
+ normalize(aPositionX+nWidth),
normalize(aPositionY-nHeight),
- normalize(pTextMat[0]),
- normalize(pTextMat[2]),
- normalize(pTextMat[1]),
+ normalize(pTextMat[0]),
+ normalize(pTextMat[2]),
+ normalize(pTextMat[1]),
normalize(pTextMat[3]) );
// silence spurious warning
(void)&mapUCS2;
char buf[9];
- for( int i=0; i<uLen; ++i )
+ for( int i=0; i<uLen; ++i )
{
buf[ m_pUtf8Map->mapUnicode(u[i], buf, sizeof(buf)-1) ] = 0;
boost::shared_array<char> pEsc( lcl_escapeLineFeeds(buf) );
printf( "%s", pEsc.get() );
- }
+ }
printf( "\n" );
}
@@ -822,7 +822,7 @@ void PDFOutDev::endTextObject(GfxState*)
{
printf( "endTextObject\n" );
}
-
+
void PDFOutDev::drawImageMask(GfxState* pState, Object*, Stream* str,
int width, int height, GBool invert,
GBool /*inlineImg*/ )
@@ -870,13 +870,13 @@ void PDFOutDev::drawImage(GfxState*, Object*, Stream* str,
else
{
GfxRGB aMinRGB;
- colorMap->getColorSpace()->getRGB(
- (GfxColor*)maskColors,
+ colorMap->getColorSpace()->getRGB(
+ (GfxColor*)maskColors,
&aMinRGB );
GfxRGB aMaxRGB;
- colorMap->getColorSpace()->getRGB(
- (GfxColor*)maskColors+gfxColorMaxComps,
+ colorMap->getColorSpace()->getRGB(
+ (GfxColor*)maskColors+gfxColorMaxComps,
&aMaxRGB );
aMaskBuf.push_back( colToByte(aMinRGB.r) );
@@ -897,7 +897,7 @@ void PDFOutDev::drawImage(GfxState*, Object*, Stream* str,
void PDFOutDev::drawMaskedImage(GfxState*, Object*, Stream* str,
int width, int height,
GfxImageColorMap* colorMap,
- Stream* maskStr,
+ Stream* maskStr,
int maskWidth, int maskHeight,
GBool maskInvert)
{
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
index 79c9f1b4d163..8ab3c9aa6788 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -16,12 +16,12 @@
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
@@ -140,14 +140,14 @@ namespace pdfi
bool isBold;
bool isItalic;
bool isUnderline;
- double size;
+ double size;
};
class PDFOutDev : public OutputDev
{
// not owned by this class
PDFDoc* m_pDoc;
- mutable std::hash_map< long long,
+ mutable std::hash_map< long long,
FontAttributes > m_aFontMap;
UnicodeMap* m_pUtf8Map;
@@ -157,50 +157,50 @@ namespace pdfi
public:
explicit PDFOutDev( PDFDoc* pDoc );
-
+
//----- get info about output device
-
+
// Does this device use upside-down coordinates?
// (Upside-down means (0,0) is the top left corner of the page.)
virtual GBool upsideDown() { return gTrue; }
-
+
// Does this device use drawChar() or drawString()?
virtual GBool useDrawChar() { return gTrue; }
-
+
// Does this device use beginType3Char/endType3Char? Otherwise,
// text in Type 3 fonts will be drawn with drawChar/drawString.
virtual GBool interpretType3Chars() { return gFalse; }
-
+
// Does this device need non-text content?
virtual GBool needNonText() { return gTrue; }
-
+
//----- initialization and control
-
+
// Set default transform matrix.
virtual void setDefaultCTM(double *ctm);
-
+
// Start a page.
virtual void startPage(int pageNum, GfxState *state);
-
+
// End a page.
virtual void endPage();
-
+
// Dump page contents to display.
// virtual void dump() {}
-
+
//----- coordinate conversion
-
+
// Convert between device and user coordinates.
// virtual void cvtDevToUser(double dx, double dy, double *ux, double *uy);
// virtual void cvtUserToDev(double ux, double uy, int *dx, int *dy);
-
+
//----- link borders
virtual void processLink(Link *link, Catalog *catalog);
-
+
//----- save/restore graphics state
virtual void saveState(GfxState *state);
virtual void restoreState(GfxState *state);
-
+
//----- update graphics state
// virtual void updateAll(GfxState *state);
virtual void updateCTM(GfxState *state, double m11, double m12,
@@ -216,7 +216,7 @@ namespace pdfi
virtual void updateFillOpacity(GfxState *state);
virtual void updateStrokeOpacity(GfxState *state);
virtual void updateBlendMode(GfxState *state);
-
+
//----- update text state
virtual void updateFont(GfxState *state);
// virtual void updateTextMat(GfxState *state);
@@ -227,16 +227,16 @@ namespace pdfi
// virtual void updateHorizScaling(GfxState *state) {}
// virtual void updateTextPos(GfxState *state) {}
// virtual void updateTextShift(GfxState *state, double shift) {}
-
+
//----- path painting
virtual void stroke(GfxState *state);
virtual void fill(GfxState *state);
virtual void eoFill(GfxState *state);
-
+
//----- path clipping
virtual void clip(GfxState *state);
virtual void eoClip(GfxState *state);
-
+
//----- text drawing
virtual void drawChar(GfxState *state, double x, double y,
double dx, double dy,
@@ -244,7 +244,7 @@ namespace pdfi
CharCode code, int nBytes, Unicode *u, int uLen);
virtual void drawString(GfxState *state, GooString *s);
virtual void endTextObject(GfxState *state);
-
+
//----- image drawing
virtual void drawImageMask(GfxState *state, Object *ref, Stream *str,
int width, int height, GBool invert,
@@ -263,18 +263,18 @@ namespace pdfi
Stream *maskStr,
int maskWidth, int maskHeight,
GfxImageColorMap *maskColorMap);
-
+
//----- OPI functions
// virtual void opiBegin(GfxState *state, Dict *opiDict);
// virtual void opiEnd(GfxState *state, Dict *opiDict);
-
+
//----- Type 3 font operators
// virtual void type3D0(GfxState *state, double wx, double wy) {}
// virtual void type3D1(GfxState *state, double wx, double wy,
// double llx, double lly, double urx, double ury) {}
-
+
//----- PostScript XObjects
- // virtual void psXObject(Stream *psStream, Stream *level1Stream) {}
+ // virtual void psXObject(Stream *psStream, Stream *level1Stream) {}
void setPageNum( int nNumPages );
};
diff --git a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
index a28a676bcf79..8bf3952eb8d0 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
@@ -16,12 +16,12 @@
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
@@ -44,10 +44,10 @@ using namespace pdfi;
/* Table of CRCs of all 8-bit messages. */
sal_uInt32 PngHelper::crc_table[256];
-
+
/* Flag: has the table been computed? Initially false. */
bool PngHelper::bCRCTableInit = true;
-
+
/* Make the table for a fast CRC. */
void PngHelper::initCRCTable()
{
@@ -65,7 +65,7 @@ void PngHelper::initCRCTable()
}
bCRCTableInit = false;
}
-
+
/* Update a running CRC with the bytes buf[0..len-1]--the CRC
should be initialized to all 1's, and the transmitted value
is the 1's complement of the final running CRC (see the
@@ -75,7 +75,7 @@ void PngHelper::updateCRC( sal_uInt32& io_rCRC, const sal_uInt8* i_pBuf, size_t
{
if( bCRCTableInit )
initCRCTable();
-
+
sal_uInt32 nCRC = io_rCRC;
for( size_t n = 0; n < i_nLen; n++ )
nCRC = crc_table[(nCRC ^ i_pBuf[n]) & 0xff] ^ (nCRC >> 8);
@@ -92,7 +92,7 @@ sal_uInt32 PngHelper::getCRC( const sal_uInt8* i_pBuf, size_t i_nLen )
sal_uInt32 PngHelper::deflateBuffer( const Output_t* i_pBuf, size_t i_nLen, OutputBuffer& o_rOut )
{
size_t nOrigSize = o_rOut.size();
-
+
// prepare z stream
z_stream aStream;
aStream.zalloc = Z_NULL;
@@ -101,7 +101,7 @@ sal_uInt32 PngHelper::deflateBuffer( const Output_t* i_pBuf, size_t i_nLen, Outp
deflateInit( &aStream, Z_BEST_COMPRESSION );
aStream.avail_in = uInt(i_nLen);
aStream.next_in = (Bytef*)i_pBuf;
-
+
sal_uInt8 aOutBuf[ 32768 ];
do
{
@@ -115,17 +115,17 @@ sal_uInt32 PngHelper::deflateBuffer( const Output_t* i_pBuf, size_t i_nLen, Outp
o_rOut.resize( nOrigSize );
return 0;
}
-
+
// append compressed bytes
sal_uInt32 nCompressedBytes = sizeof( aOutBuf ) - aStream.avail_out;
if( nCompressedBytes )
o_rOut.insert( o_rOut.end(), aOutBuf, aOutBuf+nCompressedBytes );
} while( aStream.avail_out == 0 );
-
+
// cleanup
deflateEnd( &aStream );
-
+
return sal_uInt32( o_rOut.size() - nOrigSize );
}
@@ -159,12 +159,12 @@ void PngHelper::endChunk( size_t nStart, OutputBuffer& o_rOutputBuf )
{
if( nStart+8 > o_rOutputBuf.size() )
return; // something broken is going on
-
+
// update chunk length
size_t nLen = o_rOutputBuf.size() - nStart;
sal_uInt32 nDataLen = sal_uInt32(nLen)-8;
set( nDataLen, o_rOutputBuf, nStart );
-
+
// append chunk crc
sal_uInt32 nChunkCRC = getCRC( (sal_uInt8*)&o_rOutputBuf[nStart+4], nLen-4 );
append( nChunkCRC, o_rOutputBuf );
@@ -186,7 +186,7 @@ void PngHelper::appendIHDR( OutputBuffer& o_rOutputBuf, int width, int height, i
void PngHelper::appendIEND( OutputBuffer& o_rOutputBuf )
{
size_t nStart = startChunk( "IEND", o_rOutputBuf );
- endChunk( nStart, o_rOutputBuf );
+ endChunk( nStart, o_rOutputBuf );
}
void PngHelper::createPng( OutputBuffer& o_rOutputBuf,
@@ -200,8 +200,8 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf,
{
appendFileHeader( o_rOutputBuf );
appendIHDR( o_rOutputBuf, width, height, 1, 3 );
-
- // write palette
+
+ // write palette
size_t nIdx = startChunk( "PLTE", o_rOutputBuf );
// write colors 0 and 1
o_rOutputBuf.push_back(colToByte(zeroColor.r));
@@ -212,7 +212,7 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf,
o_rOutputBuf.push_back(colToByte(oneColor.b));
// end PLTE chunk
endChunk( nIdx, o_rOutputBuf );
-
+
if( bIsMask )
{
// write tRNS chunk
@@ -236,14 +236,14 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf,
for( int x = 0; x < nLineSize; x++ )
aScanlines.push_back( str->getChar() );
}
-
+
// begin IDAT chunk for scanline data
nIdx = startChunk( "IDAT", o_rOutputBuf );
// compress scanlines
- deflateBuffer( &aScanlines[0], aScanlines.size(), o_rOutputBuf );
+ deflateBuffer( &aScanlines[0], aScanlines.size(), o_rOutputBuf );
// end IDAT chunk
endChunk( nIdx, o_rOutputBuf );
-
+
// output IEND
appendIEND( o_rOutputBuf );
}
@@ -256,14 +256,14 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf,
{
appendFileHeader( o_rOutputBuf );
appendIHDR( o_rOutputBuf, width, height, 8, 6 ); // RGBA image
-
+
// initialize stream
Guchar *p, *pm;
GfxRGB rgb;
GfxGray alpha;
ImageStream* imgStr =
- new ImageStream(str,
- width,
+ new ImageStream(str,
+ width,
colorMap->getNumPixelComps(),
colorMap->getBits());
imgStr->reset();
@@ -272,34 +272,34 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf,
OutputBuffer aScanlines;
aScanlines.reserve( width*height*4 + height );
- for( int y=0; y<height; ++y)
+ for( int y=0; y<height; ++y)
{
aScanlines.push_back( 0 );
p = imgStr->getLine();
- for( int x=0; x<width; ++x)
+ for( int x=0; x<width; ++x)
{
colorMap->getRGB(p, &rgb);
aScanlines.push_back(colToByte(rgb.r));
aScanlines.push_back(colToByte(rgb.g));
aScanlines.push_back(colToByte(rgb.b));
aScanlines.push_back( 0xff );
-
+
p +=colorMap->getNumPixelComps();
}
}
// now fill in the mask data
-
+
// CAUTION: originally this was done in one single loop
// it caused merry chaos; the reason is that maskStr and str are
// not independent streams, it happens that reading one advances
// the other, too. Hence the two passes are imperative !
-
+
// initialize mask stream
ImageStream* imgStrMask =
- new ImageStream(maskStr,
- maskWidth,
+ new ImageStream(maskStr,
+ maskWidth,
maskColorMap->getNumPixelComps(),
maskColorMap->getBits());
@@ -320,7 +320,7 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf,
delete imgStr;
delete imgStrMask;
-
+
// begind IDAT chunk for scanline data
size_t nIdx = startChunk( "IDAT", o_rOutputBuf );
// compress scanlines
@@ -342,13 +342,13 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf,
{
appendFileHeader( o_rOutputBuf );
appendIHDR( o_rOutputBuf, width, height, 8, 6 ); // RGBA image
-
+
// initialize stream
Guchar *p;
GfxRGB rgb;
ImageStream* imgStr =
- new ImageStream(str,
- width,
+ new ImageStream(str,
+ width,
colorMap->getNumPixelComps(),
colorMap->getBits());
imgStr->reset();
@@ -357,30 +357,30 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf,
OutputBuffer aScanlines;
aScanlines.reserve( width*height*4 + height );
- for( int y=0; y<height; ++y)
+ for( int y=0; y<height; ++y)
{
aScanlines.push_back( 0 );
p = imgStr->getLine();
- for( int x=0; x<width; ++x)
+ for( int x=0; x<width; ++x)
{
colorMap->getRGB(p, &rgb);
aScanlines.push_back(colToByte(rgb.r));
aScanlines.push_back(colToByte(rgb.g));
aScanlines.push_back(colToByte(rgb.b));
aScanlines.push_back( 0xff );
-
+
p +=colorMap->getNumPixelComps();
}
}
// now fill in the mask data
-
+
// CAUTION: originally this was done in one single loop
// it caused merry chaos; the reason is that maskStr and str are
// not independent streams, it happens that reading one advances
// the other, too. Hence the two passes are imperative !
-
+
// initialize mask stream
ImageStream* imgStrMask =
new ImageStream(maskStr, maskWidth, 1, 1);
@@ -404,7 +404,7 @@ void PngHelper::createPng( OutputBuffer& o_rOutputBuf,
delete imgStr;
delete imgStrMask;
-
+
// begind IDAT chunk for scanline data
size_t nIdx = startChunk( "IDAT", o_rOutputBuf );
// compress scanlines
diff --git a/sdext/source/pdfimport/xpdfwrapper/pnghelper.hxx b/sdext/source/pdfimport/xpdfwrapper/pnghelper.hxx
index c7b050869554..07b70ede7c4a 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pnghelper.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pnghelper.hxx
@@ -16,12 +16,12 @@
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
@@ -41,12 +41,12 @@ namespace pdfi
{
static sal_uInt32 crc_table[ 256 ];
static bool bCRCTableInit;
-
+
static void initCRCTable();
static void appendFileHeader( OutputBuffer& o_rOutputBuf );
static size_t startChunk( const char* pChunkName, OutputBuffer& o_rOut );
static void endChunk( size_t nStart, OutputBuffer& o_rOut );
-
+
static void set( sal_uInt32 i_nValue, OutputBuffer& o_rOutputBuf, size_t i_nIndex );
static void append( sal_uInt32 i_nValue, OutputBuffer& o_rOutputBuf )
{
@@ -54,18 +54,18 @@ namespace pdfi
o_rOutputBuf.insert( o_rOutputBuf.end(), 4, (Output_t)0 );
set( i_nValue, o_rOutputBuf, nCur );
}
-
+
static void appendIHDR( OutputBuffer& o_rOutputBuf, int width, int height, int depth, int colortype );
static void appendIEND( OutputBuffer& o_rOutputBuf );
-
+
public:
static void updateCRC( sal_uInt32& io_rCRC, const sal_uInt8* i_pBuf, size_t i_nLen );
static sal_uInt32 getCRC( const sal_uInt8* i_pBuf, size_t i_nLen );
-
+
// deflates the passed buff i_pBuf and appends it to the output vector
// returns the number of bytes added to the output
static sal_uInt32 deflateBuffer( const Output_t* i_pBuf, size_t i_nLen, OutputBuffer& o_rOut );
-
+
static void createPng( OutputBuffer& o_rOutputBuf,
Stream* str,
int width,
diff --git a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
index 26011cc08c64..fd75becc8a12 100644
--- a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
@@ -16,12 +16,12 @@
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
@@ -123,15 +123,15 @@ int main(int argc, char **argv)
}
}
}
-
+
// PDFDoc takes over ownership for all strings below
GooString* pFileName = new GooString(argv[1]);
GooString* pTempErrFileName = new GooString("_err.pdf");
GooString* pTempErrFileNamePath = new GooString(argv[0]);
GooString* pErrFileName = new GooString(pTempErrFileNamePath,pTempErrFileName);
-
-
+
+
// check for password string(s)
GooString* pOwnerPasswordStr( ownerPassword[0] != '\001'
? new GooString(ownerPassword)
@@ -153,12 +153,12 @@ int main(int argc, char **argv)
PDFDoc aDoc( pFileName,
pOwnerPasswordStr,
pUserPasswordStr );
-
+
PDFDoc aErrDoc( pErrFileName,
pOwnerPasswordStr,
pUserPasswordStr );
-
-
+
+
// Check various permissions.
if ( !aDoc.isOk() )
{
@@ -175,17 +175,17 @@ int main(int argc, char **argv)
// do the conversion
for( int i=1; i<=nPages; ++i )
{
- aErrDoc.displayPage( pOutDev,
- i,
- PDFI_OUTDEV_RESOLUTION,
+ aErrDoc.displayPage( pOutDev,
+ i,
+ PDFI_OUTDEV_RESOLUTION,
PDFI_OUTDEV_RESOLUTION,
0, gTrue, gTrue, gTrue );
aErrDoc.processLinks( pOutDev, i );
}
}
else
- {
-
+ {
+
pdfi::PDFOutDev* pOutDev( new pdfi::PDFOutDev(&aDoc) );
// tell receiver early - needed for proper progress calculation
@@ -198,9 +198,9 @@ int main(int argc, char **argv)
const int nPages = aDoc.getNumPages();
for( int i=1; i<=nPages; ++i )
{
- aDoc.displayPage( pOutDev,
- i,
- PDFI_OUTDEV_RESOLUTION,
+ aDoc.displayPage( pOutDev,
+ i,
+ PDFI_OUTDEV_RESOLUTION,
PDFI_OUTDEV_RESOLUTION,
0, gTrue, gTrue, gTrue );
aDoc.processLinks( pOutDev, i );
diff --git a/sdext/source/presenter/PresenterAccessibility.cxx b/sdext/source/presenter/PresenterAccessibility.cxx
index 02bd3c6b46b1..60791edc3583 100644
--- a/sdext/source/presenter/PresenterAccessibility.cxx
+++ b/sdext/source/presenter/PresenterAccessibility.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -109,14 +109,14 @@ public:
const sal_Int16 nEventId,
const cssu::Any& rOldValue,
const cssu::Any& rNewValue);
-
+
void UpdateStateSet (void);
-
+
//----- XAccessible -------------------------------------------------------
virtual cssu::Reference<cssa::XAccessibleContext> SAL_CALL
- getAccessibleContext (void)
+ getAccessibleContext (void)
throw (cssu::RuntimeException);
@@ -132,7 +132,7 @@ public:
virtual cssu::Reference< cssa::XAccessible> SAL_CALL getAccessibleParent (void)
throw (cssu::RuntimeException);
- virtual sal_Int32 SAL_CALL getAccessibleIndexInParent (void)
+ virtual sal_Int32 SAL_CALL getAccessibleIndexInParent (void)
throw (cssu::RuntimeException);
virtual sal_Int16 SAL_CALL getAccessibleRole (void)
@@ -156,48 +156,48 @@ public:
throw (cssu::RuntimeException,
cssa::IllegalAccessibleComponentStateException);
-
+
//----- XAccessibleComponent --------------------------------------------
virtual sal_Bool SAL_CALL containsPoint (
- const css::awt::Point& aPoint)
+ const css::awt::Point& aPoint)
throw (cssu::RuntimeException);
- virtual cssu::Reference<cssa::XAccessible> SAL_CALL
+ virtual cssu::Reference<cssa::XAccessible> SAL_CALL
getAccessibleAtPoint (
- const css::awt::Point& aPoint)
+ const css::awt::Point& aPoint)
throw (cssu::RuntimeException);
virtual css::awt::Rectangle SAL_CALL getBounds (void)
throw (cssu::RuntimeException);
- virtual css::awt::Point SAL_CALL getLocation (void)
+ virtual css::awt::Point SAL_CALL getLocation (void)
throw (cssu::RuntimeException);
- virtual css::awt::Point SAL_CALL getLocationOnScreen (void)
+ virtual css::awt::Point SAL_CALL getLocationOnScreen (void)
throw (cssu::RuntimeException);
- virtual css::awt::Size SAL_CALL getSize (void)
+ virtual css::awt::Size SAL_CALL getSize (void)
throw (cssu::RuntimeException);
- virtual void SAL_CALL grabFocus (void)
+ virtual void SAL_CALL grabFocus (void)
throw (cssu::RuntimeException);
- virtual sal_Int32 SAL_CALL getForeground (void)
+ virtual sal_Int32 SAL_CALL getForeground (void)
throw (cssu::RuntimeException);
- virtual sal_Int32 SAL_CALL getBackground (void)
+ virtual sal_Int32 SAL_CALL getBackground (void)
throw (cssu::RuntimeException);
//----- XAccessibleEventBroadcaster --------------------------------------
virtual void SAL_CALL addEventListener (
- const cssu::Reference<cssa::XAccessibleEventListener>& rxListener)
+ const cssu::Reference<cssa::XAccessibleEventListener>& rxListener)
throw (cssu::RuntimeException);
- virtual void SAL_CALL removeEventListener (
- const cssu::Reference<cssa::XAccessibleEventListener>& rxListener)
+ virtual void SAL_CALL removeEventListener (
+ const cssu::Reference<cssa::XAccessibleEventListener>& rxListener)
throw (cssu::RuntimeException);
using PresenterAccessibleObjectInterfaceBase::addEventListener;
@@ -234,14 +234,14 @@ protected:
bool mbIsFocused;
cssu::Reference<cssa::XAccessible> mxParentAccessible;
::std::vector<rtl::Reference<AccessibleObject> > maChildren;
- ::std::vector<Reference<XAccessibleEventListener> > maListeners;
+ ::std::vector<Reference<XAccessibleEventListener> > maListeners;
virtual awt::Point GetRelativeLocation (void);
virtual awt::Size GetSize (void);
virtual awt::Point GetAbsoluteParentLocation (void);
virtual bool GetWindowState (const sal_Int16 nType) const;
-
+
void UpdateState (const sal_Int16 aState, const bool bValue);
sal_Bool IsDisposed (void) const;
@@ -369,74 +369,74 @@ public:
getAccessibleRelationSet (void)
throw (cssu::RuntimeException);
-
+
//----- XAccessibleText ---------------------------------------------------
-
+
virtual sal_Int32 SAL_CALL getCaretPosition (void)
throw (cssu::RuntimeException);
-
+
virtual sal_Bool SAL_CALL setCaretPosition (sal_Int32 nIndex)
throw (::com::sun::star::lang::IndexOutOfBoundsException, cssu::RuntimeException);
-
+
virtual sal_Unicode SAL_CALL getCharacter (sal_Int32 nIndex)
throw (::com::sun::star::lang::IndexOutOfBoundsException, cssu::RuntimeException);
-
+
virtual cssu::Sequence<css::beans::PropertyValue> SAL_CALL
getCharacterAttributes (
::sal_Int32 nIndex,
const cssu::Sequence<rtl::OUString>& rRequestedAttributes)
throw (css::lang::IndexOutOfBoundsException, cssu::RuntimeException);
-
+
virtual css::awt::Rectangle SAL_CALL getCharacterBounds (sal_Int32 nIndex)
throw (css::lang::IndexOutOfBoundsException, cssu::RuntimeException);
-
+
virtual sal_Int32 SAL_CALL getCharacterCount (void)
throw (cssu::RuntimeException);
-
+
virtual sal_Int32 SAL_CALL getIndexAtPoint (const css::awt::Point& rPoint)
throw (cssu::RuntimeException);
-
+
virtual ::rtl::OUString SAL_CALL getSelectedText (void)
throw (cssu::RuntimeException);
-
+
virtual sal_Int32 SAL_CALL getSelectionStart (void)
throw (cssu::RuntimeException);
virtual sal_Int32 SAL_CALL getSelectionEnd (void)
throw (cssu::RuntimeException);
-
+
virtual sal_Bool SAL_CALL setSelection (sal_Int32 nStartIndex, sal_Int32 nEndIndex)
throw (css::lang::IndexOutOfBoundsException, cssu::RuntimeException);
virtual ::rtl::OUString SAL_CALL getText (void)
throw (cssu::RuntimeException);
-
+
virtual ::rtl::OUString SAL_CALL getTextRange (
sal_Int32 nStartIndex,
sal_Int32 nEndIndex)
throw (css::lang::IndexOutOfBoundsException, cssu::RuntimeException);
-
+
virtual cssa::TextSegment SAL_CALL getTextAtIndex (
sal_Int32 nIndex,
sal_Int16 nTextType)
throw (css::lang::IndexOutOfBoundsException,
css::lang::IllegalArgumentException,
cssu::RuntimeException);
-
+
virtual cssa::TextSegment SAL_CALL getTextBeforeIndex (
sal_Int32 nIndex,
sal_Int16 nTextType)
throw (css::lang::IndexOutOfBoundsException,
css::lang::IllegalArgumentException,
cssu::RuntimeException);
-
+
virtual cssa::TextSegment SAL_CALL getTextBehindIndex (
sal_Int32 nIndex,
sal_Int16 nTextType)
throw (css::lang::IndexOutOfBoundsException,
css::lang::IllegalArgumentException,
cssu::RuntimeException);
-
+
virtual ::sal_Bool SAL_CALL copyText (sal_Int32 nStartIndex, sal_Int32 nEndIndex)
throw (css::lang::IndexOutOfBoundsException, cssu::RuntimeException);
@@ -505,7 +505,7 @@ public:
aConfiguration.GetConfigurationNode(A2S("Presenter/Accessibility/Preview/String"))
>>= sName;
}
-
+
rtl::Reference<PresenterAccessible::AccessibleObject> pObject (
new PresenterAccessible::AccessibleObject(
aLocale,
@@ -531,7 +531,7 @@ public:
const css::lang::Locale aLocale,
const sal_Int16 nRole,
const ::rtl::OUString& rsName);
-
+
static rtl::Reference<PresenterAccessible::AccessibleObject> Create (
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
@@ -539,7 +539,7 @@ public:
const Reference<awt::XWindow>& rxContentWindow,
const Reference<awt::XWindow>& rxBorderWindow,
const ::boost::shared_ptr<PresenterTextView>& rpTextView);
-
+
void SetTextView (const ::boost::shared_ptr<PresenterTextView>& rpTextView);
virtual void SetWindow (
@@ -626,11 +626,11 @@ PresenterPaneContainer::SharedPaneDescriptor PresenterAccessible::GetPreviewPane
if ( ! mpPresenterController.is())
return pPreviewPane;
-
+
rtl::Reference<PresenterPaneContainer> pContainer (mpPresenterController->GetPaneContainer());
if ( ! pContainer.is())
return pPreviewPane;
-
+
pPreviewPane = pContainer->FindPaneURL(PresenterPaneFactory::msCurrentSlidePreviewPaneURL);
Reference<drawing::framework::XPane> xPreviewPane;
if (pPreviewPane)
@@ -669,7 +669,7 @@ void PresenterAccessible::UpdateAccessibilityHierarchy (void)
Reference<drawing::framework::XPane> xPreviewPane;
if (pPreviewPane)
xPreviewPane = pPreviewPane->mxPane.get();
-
+
// Get the notes pane.
PresenterPaneContainer::SharedPaneDescriptor pNotesPane(
pPaneContainer->FindPaneURL(PresenterPaneFactory::msNotesPaneURL));
@@ -809,7 +809,7 @@ void SAL_CALL PresenterAccessible::disposing (void)
if (mxMainPane.is())
mxMainPane->setAccessible(NULL);
}
-
+
mpAccessiblePreview = NULL;
mpAccessibleNotes = NULL;
mpAccessibleConsole = NULL;
@@ -820,7 +820,7 @@ void SAL_CALL PresenterAccessible::disposing (void)
//----- XAccessible -----------------------------------------------------------
-Reference<XAccessibleContext> SAL_CALL PresenterAccessible::getAccessibleContext (void)
+Reference<XAccessibleContext> SAL_CALL PresenterAccessible::getAccessibleContext (void)
throw (cssu::RuntimeException)
{
if ( ! mpAccessibleConsole.is())
@@ -857,7 +857,7 @@ void SAL_CALL PresenterAccessible::focusGained (const css::awt::FocusEvent& rEve
OSL_TRACE("PresenterAccessible::focusGained at %x and window %x\r", this,
mxMainWindow.get());
#endif
-
+
AccessibleFocusManager::Instance()->FocusObject(mpAccessibleConsole);
}
@@ -872,7 +872,7 @@ void SAL_CALL PresenterAccessible::focusLost (const css::awt::FocusEvent& rEvent
#ifdef VERBOSE
OSL_TRACE("PresenterAccessible::focusLost at %x\r", this);
#endif
-
+
AccessibleFocusManager::Instance()->FocusObject(NULL);
}
@@ -957,7 +957,7 @@ void PresenterAccessible::AccessibleObject::SetWindow (
{
mxContentWindow->removeWindowListener(this);
}
-
+
mxContentWindow = xContentWindow;
mxBorderWindow = Reference<awt::XWindow2>(rxBorderWindow, UNO_QUERY);
@@ -994,7 +994,7 @@ void SAL_CALL PresenterAccessible::AccessibleObject::disposing (void)
//----- XAccessible -------------------------------------------------------
Reference<XAccessibleContext> SAL_CALL
- PresenterAccessible::AccessibleObject::getAccessibleContext (void)
+ PresenterAccessible::AccessibleObject::getAccessibleContext (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1013,7 +1013,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getAccessibleChildCoun
ThrowIfDisposed();
const sal_Int32 nChildCount (maChildren.size());
-
+
return nChildCount;
}
@@ -1065,7 +1065,7 @@ sal_Int32 SAL_CALL
return nIndex;
}
}
-
+
return 0;
}
@@ -1154,7 +1154,7 @@ lang::Locale SAL_CALL
//----- XAccessibleComponent ------------------------------------------------
sal_Bool SAL_CALL PresenterAccessible::AccessibleObject::containsPoint (
- const awt::Point& rPoint)
+ const awt::Point& rPoint)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1174,7 +1174,7 @@ sal_Bool SAL_CALL PresenterAccessible::AccessibleObject::containsPoint (
-Reference<XAccessible> SAL_CALL
+Reference<XAccessible> SAL_CALL
PresenterAccessible::AccessibleObject::getAccessibleAtPoint (const awt::Point& rPoint)
throw (RuntimeException)
{
@@ -1196,14 +1196,14 @@ awt::Rectangle SAL_CALL PresenterAccessible::AccessibleObject::getBounds (void)
const awt::Point aLocation (GetRelativeLocation());
const awt::Size aSize (GetSize());
-
+
return awt::Rectangle (aLocation.X, aLocation.Y, aSize.Width, aSize.Height);
}
-awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocation (void)
+awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocation (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1216,7 +1216,7 @@ awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocation (void)
-awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocationOnScreen (void)
+awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocationOnScreen (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1226,13 +1226,13 @@ awt::Point SAL_CALL PresenterAccessible::AccessibleObject::getLocationOnScreen (
return awt::Point(
aRelativeLocation.X + aParentLocationOnScreen.X,
- aRelativeLocation.Y + aParentLocationOnScreen.Y);
+ aRelativeLocation.Y + aParentLocationOnScreen.Y);
}
-awt::Size SAL_CALL PresenterAccessible::AccessibleObject::getSize (void)
+awt::Size SAL_CALL PresenterAccessible::AccessibleObject::getSize (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1245,7 +1245,7 @@ awt::Size SAL_CALL PresenterAccessible::AccessibleObject::getSize (void)
-void SAL_CALL PresenterAccessible::AccessibleObject::grabFocus (void)
+void SAL_CALL PresenterAccessible::AccessibleObject::grabFocus (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1258,7 +1258,7 @@ void SAL_CALL PresenterAccessible::AccessibleObject::grabFocus (void)
-sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getForeground (void)
+sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getForeground (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1269,11 +1269,11 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getForeground (void)
-sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getBackground (void)
+sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getBackground (void)
throw (RuntimeException)
{
ThrowIfDisposed();
-
+
return 0x00000000;
}
@@ -1283,7 +1283,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleObject::getBackground (void)
//----- XAccessibleEventBroadcaster -------------------------------------------
void SAL_CALL PresenterAccessible::AccessibleObject::addEventListener (
- const Reference<XAccessibleEventListener>& rxListener)
+ const Reference<XAccessibleEventListener>& rxListener)
throw (RuntimeException)
{
if (rxListener.is())
@@ -1305,8 +1305,8 @@ void SAL_CALL PresenterAccessible::AccessibleObject::addEventListener (
-void SAL_CALL PresenterAccessible::AccessibleObject::removeEventListener (
- const Reference<XAccessibleEventListener>& rxListener)
+void SAL_CALL PresenterAccessible::AccessibleObject::removeEventListener (
+ const Reference<XAccessibleEventListener>& rxListener)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -1399,7 +1399,7 @@ bool PresenterAccessible::AccessibleObject::GetWindowState (const sal_Int16 nTyp
case AccessibleStateType::FOCUSABLE:
return true;
-
+
case AccessibleStateType::FOCUSED:
return mbIsFocused;
@@ -1797,7 +1797,7 @@ AccessibleRelation SAL_CALL AccessibleRelationSet::getRelationByType (sal_Int16
//===== PresenterAccessible::AccessibleParagraph ==============================
-
+
PresenterAccessible::AccessibleParagraph::AccessibleParagraph (
const lang::Locale aLocale,
const sal_Int16 nRole,
@@ -1839,7 +1839,7 @@ Reference<XAccessibleRelationSet> SAL_CALL
pSet->AddRelation(
AccessibleRelationType::CONTENT_FLOWS_FROM,
xParentContext->getAccessibleChild(mnParagraphIndex-1));
-
+
if (mnParagraphIndex<xParentContext->getAccessibleChildCount()-1)
pSet->AddRelation(
AccessibleRelationType::CONTENT_FLOWS_TO,
@@ -1966,7 +1966,7 @@ awt::Rectangle SAL_CALL PresenterAccessible::AccessibleParagraph::getCharacterBo
return aCharacterBox;
}
-
+
@@ -1981,7 +1981,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleParagraph::getCharacterCount (
return nCount;
}
-
+
@@ -1997,7 +1997,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleParagraph::getIndexAtPoint (
return nIndex;
}
-
+
@@ -2008,7 +2008,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleParagraph::getIndexAtPoint (
return getTextRange(getSelectionStart(), getSelectionEnd());
}
-
+
@@ -2030,7 +2030,7 @@ sal_Int32 SAL_CALL PresenterAccessible::AccessibleParagraph::getSelectionEnd (vo
return getCaretPosition();
}
-
+
@@ -2056,7 +2056,7 @@ sal_Bool SAL_CALL PresenterAccessible::AccessibleParagraph::setSelection (
::rtl::OUString sText;
if (mpParagraph)
sText = mpParagraph->GetText();
-
+
return sText;
}
@@ -2218,7 +2218,7 @@ bool PresenterAccessible::AccessibleParagraph::GetWindowState (const sal_Int16 n
case AccessibleStateType::ACTIVE:
return true;
-
+
default:
return AccessibleObject::GetWindowState(nType);
}
@@ -2239,7 +2239,7 @@ AccessibleNotes::AccessibleNotes (
mpTextView()
{
}
-
+
@@ -2275,7 +2275,7 @@ rtl::Reference<PresenterAccessible::AccessibleObject> AccessibleNotes::Create (
-
+
void AccessibleNotes::SetTextView (
const ::boost::shared_ptr<PresenterTextView>& rpTextView)
{
@@ -2289,7 +2289,7 @@ void AccessibleNotes::SetTextView (
mpTextView->SetTextChangeBroadcaster(
::boost::function<void(void)>());
}
-
+
mpTextView = rpTextView;
if (mpTextView)
@@ -2371,7 +2371,7 @@ void AccessibleNotes::NotifyCaretChange (
AccessibleFocusManager::Instance()->FocusObject(
nNewParagraphIndex >= 0
? maChildren[nNewParagraphIndex]
- : this);
+ : this);
if (nOldParagraphIndex != nNewParagraphIndex)
{
diff --git a/sdext/source/presenter/PresenterAccessibility.hxx b/sdext/source/presenter/PresenterAccessibility.hxx
index 16e19abc1695..f6f2aafafd61 100644
--- a/sdext/source/presenter/PresenterAccessibility.hxx
+++ b/sdext/source/presenter/PresenterAccessibility.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,7 +80,7 @@ public:
void SetAccessibleParent (const cssu::Reference<cssa::XAccessible>& rxAccessibleParent);
void UpdateAccessibilityHierarchy (void);
-
+
void NotifyCurrentSlideChange (
const sal_Int32 nCurrentSlideIndex,
const sal_Int32 nSlideCount);
@@ -96,7 +96,7 @@ public:
//----- XAccessible -------------------------------------------------------
virtual cssu::Reference<cssa::XAccessibleContext> SAL_CALL
- getAccessibleContext (void)
+ getAccessibleContext (void)
throw (cssu::RuntimeException);
@@ -108,7 +108,7 @@ public:
virtual void SAL_CALL focusLost (const css::awt::FocusEvent& rEvent)
throw (cssu::RuntimeException);
-
+
//----- XEventListener ----------------------------------------------------
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
@@ -120,7 +120,7 @@ public:
virtual void SAL_CALL initialize (const cssu::Sequence<cssu::Any>& rArguments)
throw (cssu::RuntimeException);
-
+
class AccessibleObject;
class AccessibleParagraph;
diff --git a/sdext/source/presenter/PresenterAnimation.cxx b/sdext/source/presenter/PresenterAnimation.cxx
index 0be27e813b38..2fcf0a75d901 100644
--- a/sdext/source/presenter/PresenterAnimation.cxx
+++ b/sdext/source/presenter/PresenterAnimation.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterAnimation.hxx b/sdext/source/presenter/PresenterAnimation.hxx
index 76d102a20758..36c0cb0e02d3 100644
--- a/sdext/source/presenter/PresenterAnimation.hxx
+++ b/sdext/source/presenter/PresenterAnimation.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterAnimator.cxx b/sdext/source/presenter/PresenterAnimator.cxx
index d16528f658e3..557fbf671afd 100644
--- a/sdext/source/presenter/PresenterAnimator.cxx
+++ b/sdext/source/presenter/PresenterAnimator.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,11 +80,11 @@ void PresenterAnimator::Process (void)
::osl::MutexGuard aGuard (m_aMutex);
mnNextTime = 0;
-
+
const sal_uInt64 nCurrentTime (GetCurrentTime());
ActivateAnimations(nCurrentTime);
-
+
while ( ! maActiveAnimations.empty())
{
sal_uInt64 nRequestedTime (maActiveAnimations.begin()->first);
@@ -92,9 +92,9 @@ void PresenterAnimator::Process (void)
if (nRequestedTime > nCurrentTime)
break;
-
+
maActiveAnimations.erase(maActiveAnimations.begin());
-
+
const double nTotalDuration (double(pAnimation->GetEndTime() - pAnimation->GetStartTime()));
double nProgress (nTotalDuration > 0 ? (nCurrentTime - pAnimation->GetStartTime()) / nTotalDuration : 1);
if (nProgress <= 0)
@@ -105,7 +105,7 @@ void PresenterAnimator::Process (void)
OSL_TRACE("running animation step at %f (requested was %f) %f\n",
nCurrentTime/1e6, nRequestedTime/1e6, nProgress);
pAnimation->Run(nProgress, nCurrentTime);
-
+
if (nCurrentTime < pAnimation->GetEndTime())
maActiveAnimations.insert(
AnimationList::value_type(
diff --git a/sdext/source/presenter/PresenterAnimator.hxx b/sdext/source/presenter/PresenterAnimator.hxx
index 073592b69947..7c14256f55a2 100644
--- a/sdext/source/presenter/PresenterAnimator.hxx
+++ b/sdext/source/presenter/PresenterAnimator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterBitmapContainer.cxx b/sdext/source/presenter/PresenterBitmapContainer.cxx
index 1422ac3509dc..ed452c7df904 100644
--- a/sdext/source/presenter/PresenterBitmapContainer.cxx
+++ b/sdext/source/presenter/PresenterBitmapContainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,7 +83,7 @@ PresenterBitmapContainer::PresenterBitmapContainer (
mxPresenterHelper(rxPresenterHelper)
{
Initialize(rxComponentContext);
-
+
// Get access to the configuration.
PresenterConfigurationAccess aConfiguration (
rxComponentContext,
@@ -174,7 +174,7 @@ void PresenterBitmapContainer::LoadBitmaps (
if ( ! rxBitmapList.is())
return;
-
+
try
{
// Load all button bitmaps.
@@ -370,7 +370,7 @@ PresenterBitmapContainer::BitmapDescriptor::BitmapDescriptor (void)
mxMaskBitmap()
{
}
-
+
@@ -430,19 +430,19 @@ css::uno::Reference<css::rendering::XBitmap>
case Normal:
default:
return mxNormalBitmap;
-
+
case MouseOver:
if (mxMouseOverBitmap.is())
return mxMouseOverBitmap;
else if (bMissingDefaultsToNormal)
return mxNormalBitmap;
-
+
case ButtonDown:
if (mxButtonDownBitmap.is())
return mxButtonDownBitmap;
else if (bMissingDefaultsToNormal)
return mxNormalBitmap;
-
+
case Disabled:
if (mxDisabledBitmap.is())
return mxDisabledBitmap;
diff --git a/sdext/source/presenter/PresenterBitmapContainer.hxx b/sdext/source/presenter/PresenterBitmapContainer.hxx
index 500899992605..ca2c1666ef35 100644
--- a/sdext/source/presenter/PresenterBitmapContainer.hxx
+++ b/sdext/source/presenter/PresenterBitmapContainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ public:
public:
BitmapDescriptor (void);
BitmapDescriptor (const ::boost::shared_ptr<BitmapDescriptor>& rpDefault);
-
+
enum Mode {Normal, MouseOver, ButtonDown, Disabled, Mask};
css::uno::Reference<css::rendering::XBitmap> GetNormalBitmap (void) const;
css::uno::Reference<css::rendering::XBitmap> GetBitmap (
diff --git a/sdext/source/presenter/PresenterButton.cxx b/sdext/source/presenter/PresenterButton.cxx
index 055689e7d550..3f56aa3eee38 100644
--- a/sdext/source/presenter/PresenterButton.cxx
+++ b/sdext/source/presenter/PresenterButton.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -212,7 +212,7 @@ void PresenterButton::SetCenter (const css::geometry::RealPoint2D& rLocation)
maButtonSize.Width,
maButtonSize.Height,
awt::PosSize::POSSIZE);
-
+
Invalidate();
}
else
@@ -267,7 +267,7 @@ css::geometry::IntegerSize2D PresenterButton::GetSize (void)
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterButton::windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -278,7 +278,7 @@ void SAL_CALL PresenterButton::windowResized (const css::awt::WindowEvent& rEven
-
+
void SAL_CALL PresenterButton::windowMoved (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -324,7 +324,7 @@ void SAL_CALL PresenterButton::windowPaint (const css::awt::PaintEvent& rEvent)
xBitmap = mxNormalBitmap;
if ( ! xBitmap.is())
return;
-
+
rendering::ViewState aViewState(
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL);
@@ -344,7 +344,7 @@ void SAL_CALL PresenterButton::windowPaint (const css::awt::PaintEvent& rEvent)
-
+
//----- XMouseListener --------------------------------------------------------
void SAL_CALL PresenterButton::mousePressed (const css::awt::MouseEvent& rEvent)
@@ -404,7 +404,7 @@ void SAL_CALL PresenterButton::mouseExited (const css::awt::MouseEvent& rEvent)
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterButton::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -491,7 +491,7 @@ void PresenterButton::RenderButton (
PresenterCanvasHelper::SetDeviceColor(aRenderState, rpFont->mnColor);
aRenderState.AffineTransform.m02 = (rSize.Width - aTextBBox.X2 + aTextBBox.X1)/2;
aRenderState.AffineTransform.m12 = (rSize.Height - aTextBBox.Y2 + aTextBBox.Y1)/2 - aTextBBox.Y1;
-
+
rxCanvas->drawText(
aContext,
rpFont->mxFont,
diff --git a/sdext/source/presenter/PresenterButton.hxx b/sdext/source/presenter/PresenterButton.hxx
index b952a9bfa77c..b421b729802b 100644
--- a/sdext/source/presenter/PresenterButton.hxx
+++ b/sdext/source/presenter/PresenterButton.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,10 +86,10 @@ public:
css::geometry::IntegerSize2D GetSize (void);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -105,7 +105,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseListener
virtual void SAL_CALL mousePressed (const css::awt::MouseEvent& rEvent)
@@ -122,10 +122,10 @@ public:
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -176,7 +176,7 @@ private:
static css::uno::Reference<css::beans::XPropertySet> GetConfigurationProperties (
const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext,
const ::rtl::OUString& rsConfgurationName);
-
+
void ThrowIfDisposed (void) const
throw (::com::sun::star::lang::DisposedException);
};
diff --git a/sdext/source/presenter/PresenterCanvasHelper.cxx b/sdext/source/presenter/PresenterCanvasHelper.cxx
index f783b381a6e4..8060cc291053 100644
--- a/sdext/source/presenter/PresenterCanvasHelper.cxx
+++ b/sdext/source/presenter/PresenterCanvasHelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,7 +92,7 @@ void PresenterCanvasHelper::PaintRectangle (
if ( ! rxCanvas.is() || ! rxCanvas->getDevice().is())
return;
-
+
// Create a clip polypolygon that has the content box as hole.
::std::vector<awt::Rectangle> aRectangles;
aRectangles.reserve(2);
@@ -184,7 +184,7 @@ void PresenterCanvasHelper::PaintTiledBitmap (
/ aBitmapSize.Width) * aBitmapSize.Width;
const sal_Int32 nBottom = ((rRepaintBox.Y + rRepaintBox.Height - 1 + aBitmapSize.Height - 1)
/ aBitmapSize.Height) * aBitmapSize.Height;
-
+
for (sal_Int32 nY=nTop; nY<=nBottom; nY+=aBitmapSize.Height)
for (sal_Int32 nX=nLeft; nX<=nRight; nX+=aBitmapSize.Width)
{
@@ -234,7 +234,7 @@ void PresenterCanvasHelper::PaintBitmap (
rendering::RenderState aRenderState (rDefaultRenderState);
aRenderState.AffineTransform = geometry::AffineMatrix2D(1,0, rLocation.X, 0,1,rLocation.Y);
aRenderState.Clip = rxPolygon;
-
+
rxCanvas->drawBitmap(
rxBitmap,
aViewState,
@@ -266,7 +266,7 @@ void PresenterCanvasHelper::PaintColor (
// Setup the rendering state to use the given color.
rendering::RenderState aRenderState (rDefaultRenderState);
SetDeviceColor(aRenderState, nColor);
-
+
rxCanvas->fillPolyPolygon(
rxPolygon,
aViewState,
@@ -281,7 +281,7 @@ void PresenterCanvasHelper::SetDeviceColor(
const util::Color aColor)
{
// Other component counts then 4 (RGBA) are not accepted (anymore).
-
+
OSL_ASSERT(rRenderState.DeviceColor.getLength() == 4);
if (rRenderState.DeviceColor.getLength() == 4)
{
diff --git a/sdext/source/presenter/PresenterCanvasHelper.hxx b/sdext/source/presenter/PresenterCanvasHelper.hxx
index 58dde30788e6..b1d39e222fc7 100644
--- a/sdext/source/presenter/PresenterCanvasHelper.hxx
+++ b/sdext/source/presenter/PresenterCanvasHelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ class PresenterCanvasHelper
public:
PresenterCanvasHelper (void);
~PresenterCanvasHelper (void);
-
+
void Paint (
const SharedBitmapDescriptor& rpBitmap,
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
diff --git a/sdext/source/presenter/PresenterClock.cxx b/sdext/source/presenter/PresenterClock.cxx
index d220941843b4..8fdb852f69fb 100644
--- a/sdext/source/presenter/PresenterClock.cxx
+++ b/sdext/source/presenter/PresenterClock.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -153,7 +153,7 @@ namespace {
static const double mnRelativeSecondHandLength;
static const double mnRelativeSecondHandLength2;
static const double mnRelativeSecondHandWidth;
-
+
void PaintAngledLine (
const double nAngle,
const double nInnerRadius,
@@ -296,7 +296,7 @@ PresenterClock::PresenterClock (
mbIsShowSeconds(true)
{
SetMode(mnMode);
-
+
maViewState.AffineTransform = geometry::AffineMatrix2D(1,0,0, 0,1,0);
maRenderState.AffineTransform = geometry::AffineMatrix2D(1,0,0, 0,1,0);
maRenderState.DeviceColor = Sequence<double>(4);
@@ -487,7 +487,7 @@ void SAL_CALL PresenterClock::mouseReleased (const css::awt::MouseEvent& rEvent)
{
(void)rEvent;
}
-
+
@@ -496,7 +496,7 @@ void SAL_CALL PresenterClock::mouseEntered (const css::awt::MouseEvent& rEvent)
{
(void)rEvent;
}
-
+
@@ -565,10 +565,10 @@ void PresenterClock::Paint (const awt::Rectangle& rUpdateBox)
{
if (mbIsResizePending)
Resize();
-
+
Reference<rendering::XPolyPolygon2D> xUpdatePolygon (
PresenterGeometryHelper::CreatePolygon(rUpdateBox, mxCanvas->getDevice()));
-
+
Clear(xUpdatePolygon);
if (mpClockPainter.get() != NULL)
@@ -580,7 +580,7 @@ void PresenterClock::Paint (const awt::Rectangle& rUpdateBox)
mnMinute,
mnSecond,
mbIsShowSeconds);
-
+
if (mpClockPainter2.get() != NULL)
mpClockPainter2->Paint(
mxCanvas,
@@ -596,7 +596,7 @@ void PresenterClock::Paint (const awt::Rectangle& rUpdateBox)
{
(void)e;
}
-
+
// Make the back buffer visible.
Reference<rendering::XSpriteCanvas> xSpriteCanvas (mxCanvas, UNO_QUERY);
if (xSpriteCanvas.is())
@@ -947,7 +947,7 @@ void AnalogBitmapPainter::Paint (
(void)rBackgroundColor;
(void)nSecond;
(void)bShowSeconds;
-
+
if ( ! rxCanvas.is())
return;
@@ -1123,7 +1123,7 @@ void AnalogBitmapPainter::LoadBitmaps (
const Reference<rendering::XCanvas>& rxCanvas)
{
(void)rConfiguration;
-
+
// Get base path to bitmaps.
Reference<deployment::XPackageInformationProvider> xInformationProvider (
mxComponentContext->getValueByName(OUString::createFromAscii(
@@ -1150,7 +1150,7 @@ void AnalogBitmapPainter::LoadBitmaps (
if ( ! xBitmapLoader.is())
return;
-
+
// Iterate over all entries in the bitmap list and load the bitmaps.
Reference<container::XNameAccess> xBitmaps (
rxClockTheme->getByName(OUString::createFromAscii("Bitmaps")),
@@ -1188,14 +1188,14 @@ void AnalogBitmapPainter::LoadBitmap (
pDescriptor = &maHourHand;
else if (rsKey == OUString::createFromAscii("MinuteHand"))
pDescriptor = &maMinuteHand;
-
+
if (pDescriptor == NULL)
return;
-
+
OUString sFileName;
if ( ! (rValues[0] >>= sFileName))
return;
-
+
rValues[1] >>= pDescriptor->maOffset.X;
rValues[2] >>= pDescriptor->maOffset.Y;
@@ -1277,12 +1277,12 @@ void DigitalDefaultPainter::Paint (
{
(void)rBackgroundColor;
(void)rRenderState;
-
+
if ( ! mxFont.is())
CreateFont(rxCanvas,bIsShowSeconds);
if ( ! mxFont.is())
return;
-
+
OUString sText;
if (mbIs24HourFormat)
@@ -1322,7 +1322,7 @@ void DigitalDefaultPainter::Paint (
return;
}
}
-
+
rendering::StringContext aContext (
sText,
0,
@@ -1400,7 +1400,7 @@ void DigitalDefaultPainter::CreateFont (
sTimeTemplate,
0,
sTimeTemplate.getLength());
-
+
// When the font size is adapted to the window size (as large as
// possible without overlapping) then that is done in a four step
// process:
@@ -1428,7 +1428,7 @@ void DigitalDefaultPainter::CreateFont (
aContext,
rendering::TextDirection::WEAK_LEFT_TO_RIGHT,
0));
-
+
if ( ! xLayout.is())
break;
diff --git a/sdext/source/presenter/PresenterClock.hxx b/sdext/source/presenter/PresenterClock.hxx
index 352663309b75..169f4cf11ecb 100644
--- a/sdext/source/presenter/PresenterClock.hxx
+++ b/sdext/source/presenter/PresenterClock.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,7 +93,7 @@ public:
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
@@ -105,7 +105,7 @@ public:
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -126,13 +126,13 @@ public:
virtual void SAL_CALL mouseReleased (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseEntered (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XResourceId
@@ -158,7 +158,7 @@ private:
class Timer;
Timer* mpTimer;
::boost::scoped_ptr<Painter> mpClockPainter;
- /**
+ /**
This is used for debugging to show one clock atop another to compare
the output of the painters.
*/
diff --git a/sdext/source/presenter/PresenterComponent.cxx b/sdext/source/presenter/PresenterComponent.cxx
index 6fd91438d64e..b4dc2d909025 100644
--- a/sdext/source/presenter/PresenterComponent.cxx
+++ b/sdext/source/presenter/PresenterComponent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,7 +84,7 @@ static OUString gsBasePath;
}
}
}
-
+
return gsBasePath;
}
@@ -98,13 +98,13 @@ static struct ImplementationEntry gServiceEntries[] =
PresenterProtocolHandler::Create,
PresenterProtocolHandler::getImplementationName_static,
PresenterProtocolHandler::getSupportedServiceNames_static,
- createSingleComponentFactory, &g_moduleCount.modCnt, 0
+ createSingleComponentFactory, &g_moduleCount.modCnt, 0
},
{
PresenterScreenJob::Create,
PresenterScreenJob::getImplementationName_static,
PresenterScreenJob::getSupportedServiceNames_static,
- createSingleComponentFactory, 0, 0
+ createSingleComponentFactory, 0, 0
},
{ 0, 0, 0, 0, 0, 0 }
};
diff --git a/sdext/source/presenter/PresenterComponent.hxx b/sdext/source/presenter/PresenterComponent.hxx
index 4334d53f081d..518465976399 100644
--- a/sdext/source/presenter/PresenterComponent.hxx
+++ b/sdext/source/presenter/PresenterComponent.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterConfigurationAccess.cxx b/sdext/source/presenter/PresenterConfigurationAccess.cxx
index acba65b233a9..005a4888e95e 100644
--- a/sdext/source/presenter/PresenterConfigurationAccess.cxx
+++ b/sdext/source/presenter/PresenterConfigurationAccess.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,20 +62,20 @@ PresenterConfigurationAccess::PresenterConfigurationAccess (
Sequence<Any> aCreationArguments(3);
aCreationArguments[0] = makeAny(beans::PropertyValue(
A2S("nodepath"),
- 0,
- makeAny(rsRootName),
+ 0,
+ makeAny(rsRootName),
beans::PropertyState_DIRECT_VALUE));
aCreationArguments[1] = makeAny(beans::PropertyValue(
A2S("depth"),
- 0,
+ 0,
makeAny((sal_Int32)-1),
beans::PropertyState_DIRECT_VALUE));
aCreationArguments[2] = makeAny(beans::PropertyValue(
A2S("lazywrite"),
- 0,
+ 0,
makeAny(true),
beans::PropertyState_DIRECT_VALUE));
-
+
OUString sAccessService;
if (eMode == READ_ONLY)
sAccessService = A2S("com.sun.star.configuration.ConfigurationAccess");
@@ -165,11 +165,11 @@ bool PresenterConfigurationAccess::GoToChild (const Predicate& rPredicate)
{
if ( ! IsValid())
return false;
-
+
maNode = Find(Reference<container::XNameAccess>(maNode,UNO_QUERY), rPredicate);
if (Reference<XInterface>(maNode, UNO_QUERY).is())
return true;
-
+
mxRoot = NULL;
return false;
}
@@ -214,7 +214,7 @@ Any PresenterConfigurationAccess::GetConfigurationNode (
::rtl::OUStringToOString(sPathToNode, RTL_TEXTENCODING_UTF8).getStr(),
::rtl::OUStringToOString(rException.Message, RTL_TEXTENCODING_UTF8).getStr());
}
-
+
return Any();
}
diff --git a/sdext/source/presenter/PresenterConfigurationAccess.hxx b/sdext/source/presenter/PresenterConfigurationAccess.hxx
index 81f1130e696b..3a8d872777d4 100644
--- a/sdext/source/presenter/PresenterConfigurationAccess.hxx
+++ b/sdext/source/presenter/PresenterConfigurationAccess.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -143,7 +143,7 @@ public:
const ::rtl::OUString&,
const ::css::uno::Reference<css::beans::XPropertySet>&) > PropertySetProcessor;
- /** Execute a functor for all elements of the given container.
+ /** Execute a functor for all elements of the given container.
@param rxContainer
The container is a XNameAccess to a list of the configuration.
This can be a node returned by GetConfigurationNode().
@@ -187,7 +187,7 @@ public:
const ::rtl::OUString& rsValue,
const ::rtl::OUString& rsPropertyName,
const css::uno::Reference<css::beans::XPropertySet>& rxNode);
-
+
/** This method wraps a call to getPropertyValue() and returns an empty
Any instead of throwing an exception when the property does not
exist.
diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx
index 2dbe9cde966f..f11dba1300b0 100644
--- a/sdext/source/presenter/PresenterController.cxx
+++ b/sdext/source/presenter/PresenterController.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -225,7 +225,7 @@ PresenterController::~PresenterController (void)
void PresenterController::disposing (void)
{
maInstances.erase(mxController->getFrame());
-
+
if (mxMainWindow.is())
{
mxMainWindow->removeKeyListener(this);
@@ -242,7 +242,7 @@ void PresenterController::disposing (void)
mpWindowManager = NULL;
if (xWindowManagerComponent.is())
xWindowManagerComponent->dispose();
-
+
if (mxController.is())
{
Reference<frame::XFrame> xFrame (mxController->getFrame());
@@ -294,7 +294,7 @@ void PresenterController::UpdateCurrentSlide (const sal_Int32 nOffset)
GetSlides(nOffset);
UpdatePaneTitles();
UpdateViews();
-
+
// Update the accessibility object.
if (IsAccessibilityActive())
{
@@ -409,7 +409,7 @@ void PresenterController::UpdatePaneTitles (void)
for (iPane=mpPaneContainer->maPanes.begin(); iPane!=mpPaneContainer->maPanes.end(); ++iPane)
{
OSL_ASSERT((*iPane).get() != NULL);
-
+
OUString sTemplate (IsAccessibilityActive()
? (*iPane)->msAccessibleTitleTemplate
: (*iPane)->msTitleTemplate);
@@ -652,7 +652,7 @@ void PresenterController::DispatchUnoCommand (const OUString& rsCommand) const
util::URL aURL;
aURL.Complete = rsCommand;
- mxUrlTransformer->parseStrict(aURL);
+ mxUrlTransformer->parseStrict(aURL);
Reference<frame::XDispatch> xDispatch (GetDispatch(aURL));
if ( ! xDispatch.is())
@@ -668,7 +668,7 @@ Reference<css::frame::XDispatch> PresenterController::GetDispatch (const util::U
{
if ( ! mxController.is())
return NULL;
-
+
Reference<frame::XDispatchProvider> xDispatchProvider (mxController->getFrame(), UNO_QUERY);
if ( ! xDispatchProvider.is())
return NULL;
@@ -824,7 +824,7 @@ void SAL_CALL PresenterController::notifyConfigurationChange (
sal_Int32 nType (0);
if ( ! (rEvent.UserData >>= nType))
return;
-
+
switch (nType)
{
case ResourceActivationEventType:
@@ -841,7 +841,7 @@ void SAL_CALL PresenterController::notifyConfigurationChange (
{
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
mpPaneContainer->FindPaneId(xPane->getResourceId()));
-
+
// When there is a call out anchor location set then tell the
// window about it.
if (pDescriptor->mbHasCalloutAnchor)
@@ -1195,7 +1195,7 @@ void SAL_CALL PresenterController::mouseReleased (const css::awt::MouseEvent& rE
{
(void)rEvent;
}
-
+
@@ -1204,7 +1204,7 @@ void SAL_CALL PresenterController::mouseEntered (const css::awt::MouseEvent& rEv
{
(void)rEvent;
}
-
+
@@ -1218,7 +1218,7 @@ void SAL_CALL PresenterController::mouseExited (const css::awt::MouseEvent& rEve
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterController::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -1298,7 +1298,7 @@ void PresenterController::LoadTheme (const Reference<XPane>& rxPane)
double PresenterController::GetSlideAspectRatio (void) const
{
double nSlideAspectRatio (28.0/21.0);
-
+
try
{
if (mxController.is())
diff --git a/sdext/source/presenter/PresenterController.hxx b/sdext/source/presenter/PresenterController.hxx
index b0fe117a47b0..06795bc9f64b 100644
--- a/sdext/source/presenter/PresenterController.hxx
+++ b/sdext/source/presenter/PresenterController.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -169,7 +169,7 @@ public:
const css::frame::FrameActionEvent& rEvent)
throw (com::sun::star::uno::RuntimeException);
-
+
// XKeyListener
virtual void SAL_CALL keyPressed (const css::awt::KeyEvent& rEvent)
@@ -193,16 +193,16 @@ public:
virtual void SAL_CALL mouseReleased (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseEntered (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -238,7 +238,7 @@ private:
css::uno::Reference<css::util::XURLTransformer> mxUrlTransformer;
::rtl::Reference<PresenterAccessible> mpAccessibleObject;
bool mbIsAccessibilityActive;
-
+
void InitializePresenterScreen (void);
void InitializeSlideShowView (const css::uno::Reference<css::uno::XInterface>& rxView);
void GetSlides (const sal_Int32 nOffset);
@@ -258,7 +258,7 @@ private:
The modifier bit field as provided by the key up event.
*/
void HandleNumericKeyPress (const sal_Int32 nKey, const sal_Int32 nModifiers);
-
+
void ThrowIfDisposed (void) const throw (::com::sun::star::lang::DisposedException);
};
diff --git a/sdext/source/presenter/PresenterCurrentSlideObserver.cxx b/sdext/source/presenter/PresenterCurrentSlideObserver.cxx
index 90e55b219390..c471fa223ab3 100644
--- a/sdext/source/presenter/PresenterCurrentSlideObserver.cxx
+++ b/sdext/source/presenter/PresenterCurrentSlideObserver.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterCurrentSlideObserver.hxx b/sdext/source/presenter/PresenterCurrentSlideObserver.hxx
index fc9a5fe18b7a..94c4cf3085c2 100644
--- a/sdext/source/presenter/PresenterCurrentSlideObserver.hxx
+++ b/sdext/source/presenter/PresenterCurrentSlideObserver.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterFrameworkObserver.cxx b/sdext/source/presenter/PresenterFrameworkObserver.cxx
index 3142d7606fb2..0e6819d288c3 100644
--- a/sdext/source/presenter/PresenterFrameworkObserver.cxx
+++ b/sdext/source/presenter/PresenterFrameworkObserver.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ PresenterFrameworkObserver::PresenterFrameworkObserver (
{
if ( ! mxConfigurationController.is())
throw lang::IllegalArgumentException();
-
+
if (mxConfigurationController->hasPendingRequests())
{
if (rsEventName.getLength() > 0)
@@ -171,7 +171,7 @@ void SAL_CALL PresenterFrameworkObserver::disposing (const lang::EventObject& rE
{
if ( ! rEvent.Source.is())
return;
-
+
if (rEvent.Source == mxConfigurationController)
{
mxConfigurationController = NULL;
@@ -188,7 +188,7 @@ void SAL_CALL PresenterFrameworkObserver::notifyConfigurationChange (
throw (RuntimeException)
{
bool bDispose(false);
-
+
Action aAction (maAction);
Predicate aPredicate (maPredicate);
if (rEvent.Type.equals(A2S("ConfigurationUpdateEnd")))
diff --git a/sdext/source/presenter/PresenterFrameworkObserver.hxx b/sdext/source/presenter/PresenterFrameworkObserver.hxx
index 422055830d6e..3c59a800e3f6 100644
--- a/sdext/source/presenter/PresenterFrameworkObserver.hxx
+++ b/sdext/source/presenter/PresenterFrameworkObserver.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ public:
static void RunOnUpdateEnd (
const css::uno::Reference<css::drawing::framework::XConfigurationController>&rxController,
const Action& rAction);
-
+
virtual void SAL_CALL disposing (void);
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException);
@@ -108,7 +108,7 @@ private:
virtual ~PresenterFrameworkObserver (void);
void Shutdown (void);
-
+
/** Predicate that returns true when the specified resource is active
with respect to the given configuration controller.
*/
diff --git a/sdext/source/presenter/PresenterGeometryHelper.cxx b/sdext/source/presenter/PresenterGeometryHelper.cxx
index 2fdc0ea004ea..4d00b9cd14ab 100644
--- a/sdext/source/presenter/PresenterGeometryHelper.cxx
+++ b/sdext/source/presenter/PresenterGeometryHelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -128,7 +128,7 @@ geometry::RealRectangle2D PresenterGeometryHelper::ConvertRectangle (
-
+
awt::Rectangle PresenterGeometryHelper::TranslateRectangle (
const css::awt::Rectangle& rBox,
const sal_Int32 nXOffset,
@@ -136,7 +136,7 @@ awt::Rectangle PresenterGeometryHelper::TranslateRectangle (
{
return awt::Rectangle(rBox.X + nXOffset, rBox.Y + nYOffset, rBox.Width, rBox.Height);
}
-
+
@@ -208,7 +208,7 @@ awt::Rectangle PresenterGeometryHelper::Union (
return rBox2;
else if (rBox2.Width<=0 || rBox2.Height<=0)
return rBox1;
-
+
const sal_Int32 nLeft (::std::min(rBox1.X, rBox2.X));
const sal_Int32 nTop (::std::min(rBox1.Y, rBox2.Y));
const sal_Int32 nRight (::std::max(Right(rBox1), Right(rBox2)));
@@ -320,7 +320,7 @@ Reference<rendering::XPolyPolygon2D> PresenterGeometryHelper::CreatePolygon(
aPoints[nIndex][2] = geometry::RealPoint2D(rBox.X+rBox.Width, rBox.Y+rBox.Height);
aPoints[nIndex][3] = geometry::RealPoint2D(rBox.X+rBox.Width, rBox.Y);
}
-
+
Reference<rendering::XLinePolyPolygon2D> xPolygon (
rxDevice->createCompatibleLinePolyPolygon(aPoints));
Reference<rendering::XPolyPolygon2D> xRectangle (xPolygon, UNO_QUERY);
diff --git a/sdext/source/presenter/PresenterGeometryHelper.hxx b/sdext/source/presenter/PresenterGeometryHelper.hxx
index b5901a68fd8d..3ed7c6f6b1d5 100644
--- a/sdext/source/presenter/PresenterGeometryHelper.hxx
+++ b/sdext/source/presenter/PresenterGeometryHelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,12 +69,12 @@ public:
// static css::awt::Size ConvertSize (
// const css::geometry::RealSize2D& rSize);
-
+
static css::awt::Rectangle TranslateRectangle (
const css::awt::Rectangle& rBox,
const sal_Int32 nXOffset,
const sal_Int32 nYOffset);
-
+
static css::awt::Rectangle Intersection (
const css::awt::Rectangle& rBox1,
const css::awt::Rectangle& rBox2);
diff --git a/sdext/source/presenter/PresenterHelpView.cxx b/sdext/source/presenter/PresenterHelpView.cxx
index efab952846b7..8b9c84807caf 100644
--- a/sdext/source/presenter/PresenterHelpView.cxx
+++ b/sdext/source/presenter/PresenterHelpView.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -161,7 +161,7 @@ PresenterHelpView::PresenterHelpView (
mxWindow = mxPane->getWindow();
ProvideCanvas();
-
+
mxWindow->addWindowListener(this);
mxWindow->addPaintListener(this);
Reference<awt::XWindowPeer> xPeer (mxWindow, UNO_QUERY);
@@ -251,7 +251,7 @@ void SAL_CALL PresenterHelpView::disposing (const lang::EventObject& rEventObjec
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterHelpView::windowResized (const awt::WindowEvent& rEvent)
throw (uno::RuntimeException)
{
@@ -332,7 +332,7 @@ void PresenterHelpView::Paint (const awt::Rectangle& rUpdateBox)
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
PresenterCanvasHelper::SetDeviceColor(aRenderState, mpFont->mnColor);
-
+
mxCanvas->drawLine(
geometry::RealPoint2D(aWindowBox.Width/2, gnVerticalBorder),
geometry::RealPoint2D(aWindowBox.Width/2, mnSeparatorY - gnVerticalBorder),
@@ -427,7 +427,7 @@ void PresenterHelpView::CheckFontSize (void)
{
if (mpFont.get() == NULL)
return;
-
+
const awt::Rectangle aWindowBox (mxWindow->getPosSize());
if (aWindowBox.Width<=0 || aWindowBox.Height<=0)
return;
@@ -454,7 +454,7 @@ void PresenterHelpView::CheckFontSize (void)
// too much space below the help text.
return;
}
-
+
// Font is too large. Make it smaller.
// Use a simple linear transformation to calculate initial guess of
@@ -469,7 +469,7 @@ void PresenterHelpView::CheckFontSize (void)
mpFont->mnSize = nFontSizeGuess;
mpFont->mxFont = NULL;
mpFont->PrepareFont(mxCanvas);
-
+
// Reformat blocks.
for (iBlock=mpTextContainer->begin(); iBlock!=iBlockEnd; ++iBlock)
(*iBlock)->Update(mpFont->mxFont, mnMaximalWidth);
@@ -480,7 +480,7 @@ void PresenterHelpView::CheckFontSize (void)
mpFont->mnSize = nBestSize;
mpFont->mxFont = NULL;
mpFont->PrepareFont(mxCanvas);
-
+
// Reformat blocks.
for (TextContainer::iterator
iBlock (mpTextContainer->begin()),
@@ -556,7 +556,7 @@ void PresenterHelpView::Resize (void)
CheckFontSize();
}
}
-
+
@@ -653,7 +653,7 @@ double LineDescriptorList::Paint(
{
if ( ! rxCanvas.is())
return 0;
-
+
double nY (rBBox.Y1);
vector<LineDescriptor>::const_iterator iLine (mpLineDescriptors->begin());
vector<LineDescriptor>::const_iterator iEnd (mpLineDescriptors->end());
diff --git a/sdext/source/presenter/PresenterHelpView.hxx b/sdext/source/presenter/PresenterHelpView.hxx
index 2d5e0efdcfc2..dca6ded59049 100644
--- a/sdext/source/presenter/PresenterHelpView.hxx
+++ b/sdext/source/presenter/PresenterHelpView.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@
namespace css = ::com::sun::star;
namespace {
- typedef cppu::WeakComponentImplHelper3<
+ typedef cppu::WeakComponentImplHelper3<
css::drawing::framework::XView,
css::awt::XWindowListener,
css::awt::XPaintListener
@@ -71,13 +71,13 @@ public:
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -131,7 +131,7 @@ private:
time.
*/
void CheckFontSize (void);
-
+
/** This method throws a DisposedException when the object has already been
disposed.
*/
diff --git a/sdext/source/presenter/PresenterHelper.cxx b/sdext/source/presenter/PresenterHelper.cxx
index 9e7001de426d..5f005c6b01a2 100644
--- a/sdext/source/presenter/PresenterHelper.cxx
+++ b/sdext/source/presenter/PresenterHelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ Reference<presentation::XSlideShowController> PresenterHelper::GetSlideShowContr
const Reference<frame::XController>& rxController)
{
Reference<presentation::XSlideShowController> xSlideShowController;
-
+
if( rxController.is() ) try
{
Reference<XPresentationSupplier> xPS ( rxController->getModel(), UNO_QUERY_THROW);
diff --git a/sdext/source/presenter/PresenterHelper.hxx b/sdext/source/presenter/PresenterHelper.hxx
index 75f4cbdd9f0c..54c6d7b8db54 100644
--- a/sdext/source/presenter/PresenterHelper.hxx
+++ b/sdext/source/presenter/PresenterHelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterNotesView.cxx b/sdext/source/presenter/PresenterNotesView.cxx
index 9cbf93543ef5..a7cbc5e8e607 100644
--- a/sdext/source/presenter/PresenterNotesView.cxx
+++ b/sdext/source/presenter/PresenterNotesView.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -108,7 +108,7 @@ PresenterNotesView::PresenterNotesView (
rxComponentContext,
mxCanvas,
mpPresenterController->GetPaintManager()->GetInvalidator(mxParentWindow)));
-
+
const OUString sResourceURL (mxViewId->getResourceURL());
mpFont.reset(new PresenterTheme::FontDescriptor(
rpPresenterController->GetViewFont(sResourceURL)));
@@ -199,7 +199,7 @@ void SAL_CALL PresenterNotesView::disposing (void)
if (xComponent.is())
xComponent->dispose();
}
-
+
// Create the tool bar.
mpScrollBar = NULL;
@@ -221,7 +221,7 @@ void PresenterNotesView::CreateToolBar (
rpPresenterController->GetPresenterHelper());
if ( ! xPresenterHelper.is())
return;
-
+
// Create a new window as container of the tool bar.
mxToolBarWindow = xPresenterHelper->createWindow(
mxParentWindow,
@@ -266,7 +266,7 @@ void PresenterNotesView::SetSlide (const Reference<drawing::XDrawPage>& rxNotesP
sal_Int32 nCount (xIndexAccess->getCount());
for (sal_Int32 nIndex=0; nIndex<nCount; ++nIndex)
{
-
+
Reference<lang::XServiceName> xServiceName (
xIndexAccess->getByIndex(nIndex), UNO_QUERY);
if (xServiceName.is()
@@ -306,7 +306,7 @@ void PresenterNotesView::SetSlide (const Reference<drawing::XDrawPage>& rxNotesP
mpScrollBar->SetThumbPosition(0, false);
UpdateScrollBar();
}
-
+
Invalidate();
}
}
@@ -327,7 +327,7 @@ void SAL_CALL PresenterNotesView::disposing (const lang::EventObject& rEventObje
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterNotesView::windowResized (const awt::WindowEvent& rEvent)
throw (RuntimeException)
{
@@ -374,7 +374,7 @@ void SAL_CALL PresenterNotesView::windowPaint (const awt::PaintEvent& rEvent)
if ( ! mbIsPresenterViewActive)
return;
-
+
::osl::MutexGuard aSolarGuard (::osl::Mutex::getGlobalMutex());
Paint(rEvent.UpdateRect);
}
@@ -496,7 +496,7 @@ void PresenterNotesView::Layout (void)
{
if ( ! mxParentWindow.is())
return;
-
+
awt::Rectangle aWindowBox (mxParentWindow->getPosSize());
geometry::RealRectangle2D aNewTextBoundingBox (0,0,aWindowBox.Width, aWindowBox.Height);
@@ -549,7 +549,7 @@ void PresenterNotesView::Layout (void)
aNewTextBoundingBox.Y2));
if ( ! bShowVerticalScrollbar)
mpScrollBar->SetThumbPosition(0, false);
-
+
UpdateScrollBar();
}
@@ -605,7 +605,7 @@ void PresenterNotesView::Paint (const awt::Rectangle& rUpdateBox)
void PresenterNotesView::PaintToolBar (const awt::Rectangle& rUpdateBox)
{
awt::Rectangle aWindowBox (mxParentWindow->getPosSize());
-
+
rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL);
@@ -625,7 +625,7 @@ void PresenterNotesView::PaintToolBar (const awt::Rectangle& rUpdateBox)
awt::Rectangle(0,sal_Int32(maTextBoundingBox.Y2),aWindowBox.Width,aWindowBox.Height),
awt::Rectangle());
}
-
+
// Paint the horizontal separator.
OSL_ASSERT(mxViewId.is());
PresenterCanvasHelper::SetDeviceColor(aRenderState, maSeparatorColor);
@@ -647,7 +647,7 @@ void PresenterNotesView::PaintText (const awt::Rectangle& rUpdateBox)
if (aBox.Width <= 0 || aBox.Height <= 0)
return;
-
+
rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
PresenterGeometryHelper::CreatePolygon(aBox, mxCanvas->getDevice()));
diff --git a/sdext/source/presenter/PresenterNotesView.hxx b/sdext/source/presenter/PresenterNotesView.hxx
index 282f86465dc6..b0c313ffc9bb 100644
--- a/sdext/source/presenter/PresenterNotesView.hxx
+++ b/sdext/source/presenter/PresenterNotesView.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@
namespace css = ::com::sun::star;
namespace {
- typedef cppu::WeakComponentImplHelper5<
+ typedef cppu::WeakComponentImplHelper5<
css::awt::XWindowListener,
css::awt::XPaintListener,
css::drawing::framework::XView,
@@ -99,16 +99,16 @@ public:
::boost::shared_ptr<PresenterTextView> GetTextView (void) const;
-
+
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -127,7 +127,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XResourceId
virtual css::uno::Reference<css::drawing::framework::XResourceId> SAL_CALL getResourceId (void)
@@ -136,7 +136,7 @@ public:
virtual sal_Bool SAL_CALL isAnchorOnly (void)
throw (com::sun::star::uno::RuntimeException);
-
+
// XDrawView
virtual void SAL_CALL setCurrentPage (
@@ -146,7 +146,7 @@ public:
virtual css::uno::Reference<css::drawing::XDrawPage> SAL_CALL getCurrentPage (void)
throw (css::uno::RuntimeException);
-
+
// XKeyListener
virtual void SAL_CALL keyPressed (const css::awt::KeyEvent& rEvent)
@@ -172,7 +172,7 @@ private:
double mnTop;
PresenterTheme::SharedFontDescriptor mpFont;
::boost::shared_ptr<PresenterTextView> mpTextView;
-
+
void CreateToolBar (
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
const ::rtl::Reference<PresenterController>& rpPresenterController);
diff --git a/sdext/source/presenter/PresenterPaintManager.cxx b/sdext/source/presenter/PresenterPaintManager.cxx
index e934130d9ec2..643db9fa6559 100644
--- a/sdext/source/presenter/PresenterPaintManager.cxx
+++ b/sdext/source/presenter/PresenterPaintManager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,7 +81,7 @@ void PresenterPaintManager::Invalidate (
sal_Int16 nInvalidateMode (awt::InvalidateStyle::CHILDREN);
if (bSynchronous)
nInvalidateMode |= awt::InvalidateStyle::UPDATE;
-
+
PresenterPaneContainer::SharedPaneDescriptor pDescriptor(
mpPaneContainer->FindContentWindow(rxWindow));
if (pDescriptor.get()==NULL || ! pDescriptor->mbIsOpaque)
@@ -129,7 +129,7 @@ void PresenterPaintManager::Invalidate (
sal_Int16 nInvalidateMode (awt::InvalidateStyle::CHILDREN);
if (bSynchronous)
nInvalidateMode |= awt::InvalidateStyle::UPDATE;
-
+
PresenterPaneContainer::SharedPaneDescriptor pDescriptor(
mpPaneContainer->FindContentWindow(rxWindow));
if (pDescriptor.get()==NULL || ! pDescriptor->mbIsOpaque)
diff --git a/sdext/source/presenter/PresenterPaintManager.hxx b/sdext/source/presenter/PresenterPaintManager.hxx
index 421edbeb171b..379788847d2d 100644
--- a/sdext/source/presenter/PresenterPaintManager.hxx
+++ b/sdext/source/presenter/PresenterPaintManager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterPane.cxx b/sdext/source/presenter/PresenterPane.cxx
index 65380f40b790..c47ee2fce5dd 100644
--- a/sdext/source/presenter/PresenterPane.cxx
+++ b/sdext/source/presenter/PresenterPane.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -103,7 +103,7 @@ void SAL_CALL PresenterPane::windowResized (const awt::WindowEvent& rEvent)
PresenterPaneBase::windowResized(rEvent);
Invalidate(maBoundingBox);
-
+
LayoutContextWindow();
ToTop();
@@ -193,7 +193,7 @@ void PresenterPane::CreateCanvases (
return;
if ( ! rxParentCanvas.is())
return;
-
+
mxBorderCanvas = mxPresenterHelper->createSharedCanvas(
rxParentCanvas,
rxParentWindow,
diff --git a/sdext/source/presenter/PresenterPane.hxx b/sdext/source/presenter/PresenterPane.hxx
index 303bb0c6f5ed..456ead7c2ce5 100644
--- a/sdext/source/presenter/PresenterPane.hxx
+++ b/sdext/source/presenter/PresenterPane.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,7 +68,7 @@ public:
const css::uno::Reference<css::uno::XComponentContext>& rxContext)
SAL_THROW((css::uno::Exception));
-
+
// XPane
css::uno::Reference<css::awt::XWindow> SAL_CALL getWindow (void)
@@ -77,9 +77,9 @@ public:
css::uno::Reference<css::rendering::XCanvas> SAL_CALL getCanvas (void)
throw (css::uno::RuntimeException);
-
+
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -98,7 +98,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
private:
/** Store the bounding box so that when the window is resized or moved
we still know the old position and size.
diff --git a/sdext/source/presenter/PresenterPaneAnimator.cxx b/sdext/source/presenter/PresenterPaneAnimator.cxx
index ecf7989bf5b2..fe4ad2046552 100644
--- a/sdext/source/presenter/PresenterPaneAnimator.cxx
+++ b/sdext/source/presenter/PresenterPaneAnimator.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,7 +82,7 @@ namespace {
const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId);
void RestoreFrozenWindows (void);
void FreezePanes (const Reference<rendering::XSpriteCanvas>& rxCanvas);
-
+
protected:
::rtl::Reference<PresenterController> mpPresenterController;
::rtl::Reference<PresenterPaneContainer> mpPaneContainer;
@@ -92,7 +92,7 @@ namespace {
bool mbDoAnimation;
EndActions maShowEndActions;
EndActions maHideEndActions;
-
+
void DeactivatePanes (void);
void ResizePane (
const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
@@ -111,9 +111,9 @@ namespace {
const bool bAnimate,
const EndActions& rShowEndActions,
const EndActions& rEndEndActions);
-
+
virtual ~UnfoldInCenterAnimator (void);
-
+
virtual void ShowPane (void);
virtual void HidePane (void);
@@ -137,10 +137,10 @@ namespace {
const EndActions& rShowEndActions,
const EndActions& rEndEndActions);
virtual ~MoveInFromBottomAnimator (void);
-
+
virtual void ShowPane (void);
virtual void HidePane (void);
-
+
private:
::boost::shared_ptr<PresenterSprite> maNewPaneSprite;
geometry::RealRectangle2D maCenterPaneBox;
@@ -165,10 +165,10 @@ namespace {
const EndActions& rShowEndActions,
const EndActions& rEndEndActions);
virtual ~TransparentOverlayAnimator (void);
-
+
virtual void ShowPane (void);
virtual void HidePane (void);
-
+
private:
PresenterSprite maBackgroundSprite;
void CreateBackgroundSprite (void);
@@ -227,7 +227,7 @@ namespace {
awt::Rectangle maOriginalBoundingBox;
css::geometry::RealRectangle2D maCurrentBoundingBox;
::boost::shared_ptr<PresenterSprite> mpSubstitution;
-
+
};
typedef ::boost::shared_ptr<PaneGroup> SharedPaneGroup;
@@ -388,7 +388,7 @@ void PresenterPaneAnimatorBase::DeactivatePanes (void)
(*iGroup)->DeactivatePanes();
(*iGroup)->HidePanes();
}
-
+
mpWindowManager->Update();
}
@@ -512,9 +512,9 @@ void UnfoldInCenterAnimator::ShowPane (void)
// Create two pane groups that will be moved together. One contains the
// notes view, the other group contains all other panes.
SetupPaneGroups();
-
+
// Setup the places where the two pane groups are moved to.
- maCenterPaneBox
+ maCenterPaneBox
= MovePanesAway(geometry::RealRectangle2D(0,200,aWindowBox.Width, aWindowBox.Height-200));
// Setup the final size of the new pane so that it fits into the space
@@ -583,7 +583,7 @@ void UnfoldInCenterAnimator::ShowPane (void)
nY0,
maCenterPaneBox.Y1,
_1));
-
+
// Call updateScreen after each animation step.
if (xCanvas.is())
pMultiAnimation->AddAnimation(
@@ -610,14 +610,14 @@ void UnfoldInCenterAnimator::ShowPane (void)
void UnfoldInCenterAnimator::HidePane (void)
{
OSL_ASSERT(mpWindowManager.get()!=NULL);
-
+
Reference<awt::XWindow> xParentWindow (mpWindowManager->GetParentWindow(), UNO_QUERY);
if ( ! xParentWindow.is())
return;
DeactivatePanes();
DeactivatePane(mxCenterPaneId);
-
+
::boost::shared_ptr<PresenterAnimator> pAnimator (mpPresenterController->GetAnimator());
const awt::Rectangle aWindowBox (xParentWindow->getPosSize());
const rendering::ViewState aViewState (
@@ -628,7 +628,7 @@ void UnfoldInCenterAnimator::HidePane (void)
NULL,
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
-
+
// Animate the uppder and lower window bitmaps.
Reference<rendering::XSpriteCanvas> xSpriteCanvas (mpWindowManager->GetParentCanvas(), UNO_QUERY);
::boost::shared_ptr<MultiAnimation> pMultiAnimation (new MultiAnimation(mbDoAnimation ? 500 : 1));
@@ -645,7 +645,7 @@ void UnfoldInCenterAnimator::HidePane (void)
GetLocation((*iGroup)->GetCurrentBoundingBox()),
GetLocation((*iGroup)->GetOriginalBoundingBox())));
}
-
+
// Animate the new center pane to collapse.
const double nY0 ((maPaneGroups[0]->GetOriginalBoundingBox().Y2
+ maPaneGroups[1]->GetOriginalBoundingBox().Y1) / 2);
@@ -672,7 +672,7 @@ void UnfoldInCenterAnimator::HidePane (void)
EndActions::const_iterator iAction;
for (iAction=maHideEndActions.begin(); iAction!=maHideEndActions.end(); ++iAction)
pMultiAnimation->AddEndCallback(*iAction);
-
+
pAnimator->AddAnimation(SharedPresenterAnimation(pMultiAnimation));
}
@@ -710,7 +710,7 @@ geometry::RealRectangle2D UnfoldInCenterAnimator::MovePanesAway (
{
SharedPaneGroup aUpperPanes = maPaneGroups[0];
SharedPaneGroup aLowerPanes = maPaneGroups[1];
-
+
// Move upper pane group out of the way.
const double nTop (rFreeCenterArea.Y1);
const double nUpperVerticalOffset (nTop - aUpperPanes->GetOriginalBoundingBox().Y2);
@@ -797,7 +797,7 @@ void MoveInFromBottomAnimator::ShowPane (void)
geometry::RealPoint2D aStartLocation (maCenterPaneBox.X1, aWindowBox.Height);
geometry::RealPoint2D aEndLocation (maCenterPaneBox.X1, maCenterPaneBox.Y1);
-
+
// Get the sprite of the new pane, make it visible and move it to the
// start location.
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
@@ -806,7 +806,7 @@ void MoveInFromBottomAnimator::ShowPane (void)
{
if (pDescriptor->mxBorderWindow.is())
pDescriptor->mxBorderWindow->setVisible(sal_True);
-
+
maNewPaneSprite = pDescriptor->maSpriteProvider();
if (maNewPaneSprite.get() != NULL)
{
@@ -833,7 +833,7 @@ void MoveInFromBottomAnimator::ShowPane (void)
void MoveInFromBottomAnimator::HidePane (void)
{
OSL_ASSERT(mpWindowManager.get()!=NULL);
-
+
Reference<awt::XWindow> xParentWindow (mpWindowManager->GetParentWindow(), UNO_QUERY);
if ( ! xParentWindow.is())
return;
@@ -846,13 +846,13 @@ void MoveInFromBottomAnimator::HidePane (void)
DeactivatePane(mxCenterPaneId);
SharedPaneGroup aPanes (maPaneGroups[0]);
-
+
aPanes->ShowPanes();
::boost::shared_ptr<MultiAnimation> pMultiAnimation (
new MultiAnimation(mbDoAnimation ? 500 : 0));
awt::Rectangle aWindowBox (xParentWindow->getPosSize());
-
+
// Animate the new center pane to collapse.
pMultiAnimation->AddAnimation(
::boost::bind(
@@ -872,7 +872,7 @@ void MoveInFromBottomAnimator::HidePane (void)
EndActions::const_iterator iAction;
for (iAction=maHideEndActions.begin(); iAction!=maHideEndActions.end(); ++iAction)
pMultiAnimation->AddEndCallback(*iAction);
-
+
::boost::shared_ptr<PresenterAnimator> pAnimator (mpPresenterController->GetAnimator());
pAnimator->AddAnimation(SharedPresenterAnimation(pMultiAnimation));
}
@@ -979,7 +979,7 @@ void TransparentOverlayAnimator::ShowPane (void)
pAllPanes->DeactivatePanes();
mpWindowManager->Update();
}
-
+
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
mpPaneContainer->FindPaneId(mxCenterPaneId));
if (pDescriptor.get() != NULL)
@@ -1039,7 +1039,7 @@ void TransparentOverlayAnimator::CreateBackgroundSprite (void)
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
PresenterCanvasHelper::SetDeviceColor(aRenderState, util::Color(0x80808080));
-
+
Reference<rendering::XPolyPolygon2D> xPolygon (
PresenterGeometryHelper::CreatePolygon(aWindowBox, xCanvas->getDevice()));
if (xPolygon.is())
@@ -1113,7 +1113,7 @@ void PaneGroup::CreateSubstitution (const Reference<rendering::XSpriteCanvas>& r
NULL,
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
-
+
Reference<rendering::XCanvas> xSpriteCanvas (mpSubstitution->GetCanvas());
if (xSpriteCanvas.is())
xSpriteCanvas->drawBitmap(xBackgroundBitmap, aViewState, aRenderState);
@@ -1324,7 +1324,7 @@ template<typename T>
const T aFinalValue)
{
const double nQ (1 - nP);
-
+
rSetter(T(nQ * aInitialValue + nP * aFinalValue));
}
@@ -1343,7 +1343,7 @@ void SpriteTransform(
const double nP)
{
OSL_ASSERT(rpPaintManager.get()!=NULL);
-
+
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
rpPaneContainer->FindPaneId(rxPaneId));
if (pDescriptor.get() != NULL
@@ -1364,7 +1364,7 @@ void SpriteTransform(
sal::static_int_cast<sal_Int32>(pSprite->GetLocation().Y),
sal::static_int_cast<sal_Int32>(pSprite->GetSize().Width),
sal::static_int_cast<sal_Int32>(pSprite->GetSize().Height)));
-
+
const double nYScale (bAppear ? nP : 1-nP);
pSprite->Transform(geometry::AffineMatrix2D(
1, 0, 0,
diff --git a/sdext/source/presenter/PresenterPaneAnimator.hxx b/sdext/source/presenter/PresenterPaneAnimator.hxx
index 1e044b4a647b..9ab5dc6d69a2 100644
--- a/sdext/source/presenter/PresenterPaneAnimator.hxx
+++ b/sdext/source/presenter/PresenterPaneAnimator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterPaneBase.cxx b/sdext/source/presenter/PresenterPaneBase.cxx
index 4003c79e4bb9..1b22381fd6b7 100644
--- a/sdext/source/presenter/PresenterPaneBase.cxx
+++ b/sdext/source/presenter/PresenterPaneBase.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -131,10 +131,10 @@ void PresenterPaneBase::disposing (void)
void PresenterPaneBase::SetTitle (const OUString& rsTitle)
{
msTitle = rsTitle;
-
+
OSL_ASSERT(mpPresenterController.get()!=NULL);
OSL_ASSERT(mpPresenterController->GetPaintManager().get()!=NULL);
-
+
mpPresenterController->GetPaintManager()->Invalidate(mxBorderWindow);
}
@@ -254,7 +254,7 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments)
static_cast<XWeak*>(this),
2);
}
-
+
if ( ! (rArguments[3] >>= msTitle))
{
throw lang::IllegalArgumentException(
@@ -281,13 +281,13 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments)
}
CreateWindows(mxParentWindow, bIsWindowVisibleOnCreation);
-
+
if (mxBorderWindow.is())
{
mxBorderWindow->addWindowListener(this);
mxBorderWindow->addPaintListener(this);
}
-
+
CreateCanvases(mxParentWindow, xParentCanvas);
// Raise new windows.
@@ -398,7 +398,7 @@ void PresenterPaneBase::CreateWindows (
{
if (mxPresenterHelper.is() && rxParentWindow.is())
{
-
+
mxBorderWindow = mxPresenterHelper->createWindow(
rxParentWindow,
sal_False,
@@ -483,7 +483,7 @@ void PresenterPaneBase::PaintBorder (const awt::Rectangle& rUpdateBox)
awt::Rectangle aLocalBorderBox (0,0, aBorderBox.Width, aBorderBox.Height);
PaintBorderBackground(aLocalBorderBox, rUpdateBox);
-
+
if (mbHasCallout)
mxBorderPainter->paintBorderWithCallout(
mxPaneId->getResourceURL(),
diff --git a/sdext/source/presenter/PresenterPaneBase.hxx b/sdext/source/presenter/PresenterPaneBase.hxx
index 16ea4e515299..1b64eae2a747 100644
--- a/sdext/source/presenter/PresenterPaneBase.hxx
+++ b/sdext/source/presenter/PresenterPaneBase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -96,11 +96,11 @@ public:
::boost::shared_ptr<PresenterTextView> GetTextViewForTitle (void);
// XInitialization
-
+
virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments)
throw (css::uno::Exception, css::uno::RuntimeException);
-
+
// XResourceId
virtual css::uno::Reference<css::drawing::framework::XResourceId> SAL_CALL getResourceId (void)
@@ -109,9 +109,9 @@ public:
virtual sal_Bool SAL_CALL isAnchorOnly (void)
throw (com::sun::star::uno::RuntimeException);
-
+
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
diff --git a/sdext/source/presenter/PresenterPaneBorderManager.cxx b/sdext/source/presenter/PresenterPaneBorderManager.cxx
index 8b8be6fb072c..af3e124c2a64 100644
--- a/sdext/source/presenter/PresenterPaneBorderManager.cxx
+++ b/sdext/source/presenter/PresenterPaneBorderManager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -220,25 +220,25 @@ PresenterPaneBorderManager::BorderElement
case mnTop | mnLeft:
return TopLeft;
-
+
case mnTop | mnRight:
return TopRight;
-
+
case mnTop | mnHorizontalCenter:
return Top;
-
+
case mnBottom | mnLeft:
return BottomLeft;
-
+
case mnBottom | mnRight:
return BottomRight;
-
+
case mnBottom | mnHorizontalCenter:
return Bottom;
-
+
case mnVerticalCenter | mnLeft:
return Left;
-
+
case mnVerticalCenter | mnRight:
return Right;
}
@@ -360,12 +360,12 @@ void SAL_CALL PresenterPaneBorderManager::mouseExited (const css::awt::MouseEven
mxOuterDragWindow = NULL;
mxInnerDragWindow = NULL;
}
-
+
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterPaneBorderManager::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -408,7 +408,7 @@ void SAL_CALL PresenterPaneBorderManager::mouseMoved (const css::awt::MouseEvent
case PresenterPaneBorderManager::Bottom:
mnPointerType = awt::SystemPointer::WINDOW_SSIZE;
break;
-
+
case PresenterPaneBorderManager::Content:
case PresenterPaneBorderManager::Outside:
default:
@@ -451,7 +451,7 @@ void SAL_CALL PresenterPaneBorderManager::mouseDragged (const css::awt::MouseEve
const sal_Int32 nOldRight = aOldBox.X + aOldBox.Width;
const sal_Int32 nOldBottom = aOldBox.Y + aOldBox.Height;
-
+
awt::Rectangle aBox (aOldBox);
sal_Int32 nRight = aBox.X + aBox.Width;
sal_Int32 nBottom = aBox.Y + aBox.Height;
@@ -487,7 +487,7 @@ void SAL_CALL PresenterPaneBorderManager::mouseDragged (const css::awt::MouseEve
break;
default: break;
}
-
+
aBox.Width = nRight - aBox.X;
aBox.Height = nBottom - aBox.Y;
if (aBox.Width > 20
diff --git a/sdext/source/presenter/PresenterPaneBorderManager.hxx b/sdext/source/presenter/PresenterPaneBorderManager.hxx
index b9b25f330cfa..cb73ebee39d6 100644
--- a/sdext/source/presenter/PresenterPaneBorderManager.hxx
+++ b/sdext/source/presenter/PresenterPaneBorderManager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,11 +94,11 @@ public:
// XInitialization
-
+
virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments)
throw (css::uno::Exception, css::uno::RuntimeException);
-
+
// XMouseListener
virtual void SAL_CALL mousePressed (const css::awt::MouseEvent& rEvent)
@@ -106,28 +106,28 @@ public:
virtual void SAL_CALL mouseReleased (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseEntered (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// lang::XEventListener
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException);
-
+
private:
enum BorderElement { Top, TopLeft, TopRight, Left, Right, BottomLeft, BottomRight, Bottom,
Content, Outside };
diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.cxx b/sdext/source/presenter/PresenterPaneBorderPainter.cxx
index 0765ffef4c97..0f36a42d3ce6 100644
--- a/sdext/source/presenter/PresenterPaneBorderPainter.cxx
+++ b/sdext/source/presenter/PresenterPaneBorderPainter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,7 +87,7 @@ namespace {
drawing::framework::BorderType eBorderType) const;
const Reference<rendering::XCanvasFont> GetFont (
const Reference<rendering::XCanvas>& rxCanvas) const;
-
+
SharedBitmapDescriptor mpTopLeft;
SharedBitmapDescriptor mpTop;
SharedBitmapDescriptor mpTopRight;
@@ -125,7 +125,7 @@ public:
const Reference<XComponentContext>& rxContext,
const ::boost::shared_ptr<PresenterTheme>& rpTheme);
~Renderer (void);
-
+
void SetCanvas (const Reference<rendering::XCanvas>& rxCanvas);
void PaintBorder (
const OUString& rsTitle,
@@ -146,7 +146,7 @@ public:
::boost::shared_ptr<RendererPaneStyle> GetRendererPaneStyle (const OUString& rsResourceURL);
void SetCalloutAnchor (
const awt::Point& rCalloutAnchor);
-
+
private:
::boost::shared_ptr<PresenterTheme> mpTheme;
typedef ::std::map<OUString, ::boost::shared_ptr<RendererPaneStyle> > RendererPaneStyleContainer;
@@ -157,7 +157,7 @@ private:
Reference<rendering::XPolyPolygon2D> mxViewStateClip;
bool mbHasCallout;
awt::Point maCalloutAnchor;
-
+
void PaintBitmap(
const awt::Rectangle& rBox,
const awt::Rectangle& rUpdateBox,
@@ -174,7 +174,7 @@ private:
// ===== PresenterPaneBorderPainter ===========================================
-
+
PresenterPaneBorderPainter::PresenterPaneBorderPainter (
const Reference<XComponentContext>& rxContext)
: PresenterPaneBorderPainterInterfaceBase(m_aMutex),
@@ -203,7 +203,7 @@ awt::Rectangle SAL_CALL PresenterPaneBorderPainter::addBorder (
throw(css::uno::RuntimeException)
{
ThrowIfDisposed();
-
+
ProvideTheme();
return AddBorder(rsPaneBorderStyleName, rRectangle, eBorderType);
@@ -219,7 +219,7 @@ awt::Rectangle SAL_CALL PresenterPaneBorderPainter::removeBorder (
throw(css::uno::RuntimeException)
{
ThrowIfDisposed();
-
+
ProvideTheme();
return RemoveBorder(rsPaneBorderStyleName, rRectangle, eBorderType);
@@ -247,7 +247,7 @@ void SAL_CALL PresenterPaneBorderPainter::paintBorder (
return;
}
ProvideTheme(rxCanvas);
-
+
if (mpRenderer.get() != NULL)
{
mpRenderer->SetCanvas(rxCanvas);
@@ -286,7 +286,7 @@ void SAL_CALL PresenterPaneBorderPainter::paintBorderWithCallout (
return;
}
ProvideTheme(rxCanvas);
-
+
if (mpRenderer.get() != NULL)
{
mpRenderer->SetCanvas(rxCanvas);
@@ -337,7 +337,7 @@ awt::Point SAL_CALL PresenterPaneBorderPainter::getCalloutOffset (
bool PresenterPaneBorderPainter::ProvideTheme (const Reference<rendering::XCanvas>& rxCanvas)
{
bool bModified (false);
-
+
if ( ! mxContext.is())
return false;
@@ -512,12 +512,12 @@ void PresenterPaneBorderPainter::Renderer::PaintBorder (
{
if ( ! mxCanvas.is())
return;
-
+
// Create the outer and inner border of the, ahm, border.
::boost::shared_ptr<RendererPaneStyle> pStyle (GetRendererPaneStyle(rsPaneURL));
if (pStyle.get() == NULL)
return;
-
+
awt::Rectangle aOuterBox (rBBox);
awt::Rectangle aCenterBox (
pStyle->RemoveBorder(aOuterBox, drawing::framework::BorderType_OUTER_BORDER));
@@ -594,14 +594,14 @@ void PresenterPaneBorderPainter::Renderer::PaintTitle (
{
if ( ! mxCanvas.is())
return;
-
+
if (rsTitle.getLength() == 0)
return;
Reference<rendering::XCanvasFont> xFont (rpStyle->GetFont(mxCanvas));
if ( ! xFont.is())
return;
-
+
rendering::StringContext aContext (
rsTitle,
0,
@@ -636,7 +636,7 @@ void PresenterPaneBorderPainter::Renderer::PaintTitle (
}
nX += rpStyle->mnFontXOffset;
nY += rpStyle->mnFontYOffset;
-
+
if (rUpdateBox.X >= nX+nTextWidth
|| rUpdateBox.Y >= nY+nTextHeight
|| rUpdateBox.X+rUpdateBox.Width <= nX
@@ -644,13 +644,13 @@ void PresenterPaneBorderPainter::Renderer::PaintTitle (
{
return;
}
-
+
rendering::RenderState aRenderState(
geometry::AffineMatrix2D(1,0,nX, 0,1,nY),
NULL,
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
-
+
if (bPaintBackground)
{
PresenterCanvasHelper::SetDeviceColor(aRenderState, util::Color(0x00ffffff));
@@ -700,7 +700,7 @@ void PresenterPaneBorderPainter::Renderer::PaintTitle (
const OUString sStyleName (mpTheme->GetStyleName(rsResourceURL));
if (sStyleName.getLength() > 0)
sPaneStyleName = sStyleName;
-
+
// Create a new pane style object and initialize it with bitmaps.
::boost::shared_ptr<RendererPaneStyle> pStyle (
new RendererPaneStyle(mpTheme,sPaneStyleName));
@@ -738,7 +738,7 @@ void PresenterPaneBorderPainter::Renderer::PaintBitmap(
const SharedBitmapDescriptor& rpBackgroundBitmap)
{
(void)rpBackgroundBitmap;
-
+
bool bUseCanvas (mxCanvas.is());
if ( ! bUseCanvas)
return;
@@ -870,7 +870,7 @@ void PresenterPaneBorderPainter::Renderer::SetupClipping (
mxViewStateClip->setFillRule(rendering::FillRule_EVEN_ODD);
}
maViewState.Clip = mxViewStateClip;
-}
+}
@@ -951,7 +951,7 @@ RendererPaneStyle::RendererPaneStyle (
mpBottomRight = GetBitmap(rpTheme, rsStyleName, A2S("BottomRight"));
mpBottomCallout = GetBitmap(rpTheme, rsStyleName, A2S("BottomCallout"));
mpBackground = GetBitmap(rpTheme, OUString(), A2S("Background"));
-
+
// Get font description.
mpFont = rpTheme->GetFont(rsStyleName);
@@ -993,7 +993,7 @@ RendererPaneStyle::RendererPaneStyle (
{
OSL_ASSERT(false);
}
-
+
UpdateBorderSizes();
}
}
diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.hxx b/sdext/source/presenter/PresenterPaneBorderPainter.hxx
index 0084d567e478..14286546ac62 100644
--- a/sdext/source/presenter/PresenterPaneBorderPainter.hxx
+++ b/sdext/source/presenter/PresenterPaneBorderPainter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -106,7 +106,7 @@ public:
class Renderer;
// XPaneBorderPainter
-
+
virtual css::awt::Rectangle SAL_CALL addBorder (
const rtl::OUString& rsPaneBorderStyleName,
const css::awt::Rectangle& rRectangle,
@@ -126,7 +126,7 @@ public:
const css::awt::Rectangle& rRepaintArea,
const rtl::OUString& rsTitle)
throw(css::uno::RuntimeException);
-
+
virtual void SAL_CALL paintBorderWithCallout (
const rtl::OUString& rsPaneBorderStyleName,
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
diff --git a/sdext/source/presenter/PresenterPaneContainer.cxx b/sdext/source/presenter/PresenterPaneContainer.cxx
index e9b5cbb95622..98e95d7f560e 100644
--- a/sdext/source/presenter/PresenterPaneContainer.cxx
+++ b/sdext/source/presenter/PresenterPaneContainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -160,7 +160,7 @@ PresenterPaneContainer::SharedPaneDescriptor
pDescriptor->mxPaneId = xPaneId;
pDescriptor->mxPane = rxPane;
pDescriptor->mxPane->SetTitle(pDescriptor->msTitle);
-
+
// When there is a call out anchor location set then tell the
// window about it.
if (pDescriptor->mbHasCalloutAnchor)
@@ -187,7 +187,7 @@ PresenterPaneContainer::SharedPaneDescriptor
OUString sPaneURL;
if (rxPaneId.is())
sPaneURL = rxPaneId->getResourceURL();
-
+
SharedPaneDescriptor pDescriptor (FindPaneURL(sPaneURL));
if (pDescriptor.get() != NULL)
{
@@ -207,7 +207,7 @@ PresenterPaneContainer::SharedPaneDescriptor
const SharedBitmapDescriptor& rpViewBackground)
{
SharedPaneDescriptor pDescriptor;
-
+
if (rxView.is())
{
OUString sPaneURL;
@@ -229,7 +229,7 @@ PresenterPaneContainer::SharedPaneDescriptor
{
if ( ! pDescriptor->maViewInitialization.empty())
pDescriptor->maViewInitialization(rxView);
-
+
// Activate or deactivate the pane/view.
if ( ! pDescriptor->maActivator.empty())
pDescriptor->maActivator(pDescriptor->mbIsActive);
@@ -272,7 +272,7 @@ PresenterPaneContainer::SharedPaneDescriptor
PresenterPaneContainer::RemoveView (const Reference<XView>& rxView)
{
SharedPaneDescriptor pDescriptor;
-
+
if (rxView.is())
{
OUString sPaneURL;
@@ -407,7 +407,7 @@ void PresenterPaneContainer::ToTop (const SharedPaneDescriptor& rpDescriptor)
OSL_ASSERT(iPane!=iEnd);
if (iPane == iEnd)
return;
-
+
if (mxPresenterHelper.is())
mxPresenterHelper->toTop(rpDescriptor->mxBorderWindow);
diff --git a/sdext/source/presenter/PresenterPaneContainer.hxx b/sdext/source/presenter/PresenterPaneContainer.hxx
index 3c837ffc8a9b..c016b390c1bb 100644
--- a/sdext/source/presenter/PresenterPaneContainer.hxx
+++ b/sdext/source/presenter/PresenterPaneContainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ public:
virtual ~PresenterPaneContainer (void);
virtual void SAL_CALL disposing (void);
-
+
typedef ::boost::function1<void, const css::uno::Reference<css::drawing::framework::XView>&>
ViewInitializationFunction;
@@ -140,7 +140,7 @@ public:
SharedPaneDescriptor StoreBorderWindow(
const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
const css::uno::Reference<css::awt::XWindow>& rxBorderWindow);
-
+
SharedPaneDescriptor StoreView (
const css::uno::Reference<css::drawing::framework::XView>& rxView,
const SharedBitmapDescriptor& rpViewBackground);
@@ -150,7 +150,7 @@ public:
SharedPaneDescriptor RemoveView (
const css::uno::Reference<css::drawing::framework::XView>& rxView);
-
+
void CreateBorderWindow (PaneDescriptor& rDescriptor);
/** Find the pane whose border window is identical to the given border
@@ -179,7 +179,7 @@ public:
::rtl::OUString GetPaneURLForViewURL (const ::rtl::OUString& rsViewURL);
void ToTop (const SharedPaneDescriptor& rpDescriptor);
-
+
// XEventListener
diff --git a/sdext/source/presenter/PresenterPaneFactory.cxx b/sdext/source/presenter/PresenterPaneFactory.cxx
index 4763893698df..bd6c7c4e0894 100644
--- a/sdext/source/presenter/PresenterPaneFactory.cxx
+++ b/sdext/source/presenter/PresenterPaneFactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -149,7 +149,7 @@ void SAL_CALL PresenterPaneFactory::disposing (void)
if (xCC.is())
xCC->removeResourceFactoryForReference(this);
mxConfigurationControllerWeak = WeakReference<XConfigurationController>();
-
+
// Dispose the panes in the cache.
if (mpResourceCache.get() != NULL)
{
@@ -169,7 +169,7 @@ void SAL_CALL PresenterPaneFactory::disposing (void)
//----- XPaneFactory ----------------------------------------------------------
-
+
Reference<XResource> SAL_CALL PresenterPaneFactory::createResource (
const Reference<XResourceId>& rxPaneId)
throw (RuntimeException, IllegalArgumentException, WrappedTargetException)
@@ -260,11 +260,11 @@ Reference<XResource> PresenterPaneFactory::CreatePane (
{
if ( ! rxPaneId.is())
return NULL;
-
+
Reference<XConfigurationController> xCC (mxConfigurationControllerWeak);
if ( ! xCC.is())
return NULL;
-
+
Reference<XComponentContext> xContext (mxComponentContextWeak);
if ( ! xContext.is())
return NULL;
@@ -329,7 +329,7 @@ Reference<XResource> PresenterPaneFactory::CreatePane (
UNO_QUERY);
aArguments[5] <<= bIsSpritePane ? false : true;
xPane->initialize(aArguments);
-
+
// Store pane and canvases and windows in container.
::rtl::Reference<PresenterPaneContainer> pContainer (
mpPresenterController->GetPaneContainer());
diff --git a/sdext/source/presenter/PresenterPaneFactory.hxx b/sdext/source/presenter/PresenterPaneFactory.hxx
index 136d47ec645b..6e381fd6c106 100644
--- a/sdext/source/presenter/PresenterPaneFactory.hxx
+++ b/sdext/source/presenter/PresenterPaneFactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ namespace {
/** The PresenerPaneFactory provides a fixed set of panes.
-
+
In order to make the presener screen more easily extendable in the
future the set of supported panes could be made extendable on demand.
*/
@@ -95,7 +95,7 @@ public:
throw (css::uno::RuntimeException);
// XResourceFactory
-
+
virtual css::uno::Reference<css::drawing::framework::XResource>
SAL_CALL createResource (
const ::com::sun::star::uno::Reference<
@@ -122,7 +122,7 @@ private:
const ::rtl::Reference<PresenterController>& rpPresenterController);
void Register (const css::uno::Reference<css::frame::XController>& rxController);
-
+
css::uno::Reference<css::drawing::framework::XResource> CreatePane (
const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
const ::rtl::OUString& rsTitle);
diff --git a/sdext/source/presenter/PresenterProtocolHandler.cxx b/sdext/source/presenter/PresenterProtocolHandler.cxx
index 7c4829ac81fd..0b87adfec200 100644
--- a/sdext/source/presenter/PresenterProtocolHandler.cxx
+++ b/sdext/source/presenter/PresenterProtocolHandler.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -174,7 +174,7 @@ namespace {
};
} // end of anonymous namespace
-
+
namespace {
typedef ::cppu::WeakComponentImplHelper2 <
@@ -213,24 +213,24 @@ public:
const css::uno::Reference<css::frame::XStatusListener>& rxListener,
const css::util::URL& rURL)
throw(css::uno::RuntimeException);
-
+
virtual void SAL_CALL removeStatusListener (
const css::uno::Reference<css::frame::XStatusListener>& rxListener,
const css::util::URL& rURL)
throw(css::uno::RuntimeException);
-
+
// document::XEventListener
virtual void SAL_CALL notifyEvent (const css::document::EventObject& rEvent)
throw(css::uno::RuntimeException);
-
+
// lang::XEventListener
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw(css::uno::RuntimeException);
-
+
private:
OUString msURLPath;
::boost::scoped_ptr<Command> mpCommand;
@@ -243,7 +243,7 @@ private:
const OUString& rsURLPath,
const ::rtl::Reference<PresenterController>& rpPresenterController);
virtual ~Dispatch (void);
-
+
void ThrowIfDisposed (void) const throw (css::lang::DisposedException);
};
@@ -384,7 +384,7 @@ void PresenterProtocolHandler::ThrowIfDisposed (void) const
-
+
//===== PresenterProtocolHandler::Dispatch ====================================
Reference<frame::XDispatch> PresenterProtocolHandler::Dispatch::Create (
@@ -476,12 +476,12 @@ Command* PresenterProtocolHandler::Dispatch::CreateCommand (
if (rsURLPath == A2S("ShowNotes"))
return new SetNotesViewCommand(true, rpPresenterController);
break;
-
+
case sal_Char('S'):
if (rsURLPath == A2S("ShowSlideSorter"))
return new SetSlideSorterCommand(true, rpPresenterController);
break;
-
+
case sal_Char('H'):
if (rsURLPath == A2S("ShowHelp"))
return new SetHelpViewCommand(true, rpPresenterController);
@@ -572,7 +572,7 @@ void SAL_CALL PresenterProtocolHandler::Dispatch::addStatusListener(
else
throw RuntimeException();
}
-
+
@@ -614,7 +614,7 @@ void PresenterProtocolHandler::Dispatch::ThrowIfDisposed (void) const
-
+
//----- document::XEventListener ----------------------------------------------
void SAL_CALL PresenterProtocolHandler::Dispatch::notifyEvent (
@@ -962,7 +962,7 @@ NotesFontSizeCommand::NotesFontSizeCommand(
{
if (mpPresenterController.get() == NULL)
return NULL;
-
+
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
mpPresenterController->GetPaneContainer()->FindViewURL(
PresenterViewFactory::msNotesViewURL));
diff --git a/sdext/source/presenter/PresenterProtocolHandler.hxx b/sdext/source/presenter/PresenterProtocolHandler.hxx
index b4b35c8fe666..4ddb244c4994 100644
--- a/sdext/source/presenter/PresenterProtocolHandler.hxx
+++ b/sdext/source/presenter/PresenterProtocolHandler.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,12 +71,12 @@ public:
// XInitialization
-
+
virtual void SAL_CALL initialize(
const css::uno::Sequence<css::uno::Any>& aArguments)
throw (css::uno::Exception, css::uno::RuntimeException);
-
+
// XDispatchProvider
virtual css::uno::Reference<css::frame::XDispatch > SAL_CALL
@@ -91,7 +91,7 @@ public:
const css::uno::Sequence< css::frame::DispatchDescriptor>& rDescriptors)
throw(css::uno::RuntimeException);
-
+
private:
class Dispatch;
::rtl::Reference<PresenterController> mpPresenterController;
diff --git a/sdext/source/presenter/PresenterScreen.cxx b/sdext/source/presenter/PresenterScreen.cxx
index 951c4610b8be..89f8fd3a3da6 100644
--- a/sdext/source/presenter/PresenterScreen.cxx
+++ b/sdext/source/presenter/PresenterScreen.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,11 +88,11 @@ namespace {
virtual void SAL_CALL disposing (void);
// document::XEventListener
-
+
virtual void SAL_CALL notifyEvent( const css::document::EventObject& Event ) throw (css::uno::RuntimeException);
// XEventListener
-
+
virtual void SAL_CALL disposing ( const css::lang::EventObject& rEvent) throw (css::uno::RuntimeException);
private:
@@ -251,7 +251,7 @@ void SAL_CALL PresenterScreenListener::disposing (void)
xDocBroadcaster->removeEventListener(
Reference<document::XEventListener>(
static_cast<document::XEventListener*>(this), UNO_QUERY));
-
+
if (mpPresenterScreen.is())
{
mpPresenterScreen->RequestShutdownPresenterScreen();
@@ -263,7 +263,7 @@ void SAL_CALL PresenterScreenListener::disposing (void)
// document::XEventListener
-
+
void SAL_CALL PresenterScreenListener::notifyEvent( const css::document::EventObject& Event ) throw (css::uno::RuntimeException)
{
ThrowIfDisposed();
@@ -287,12 +287,12 @@ void SAL_CALL PresenterScreenListener::notifyEvent( const css::document::EventOb
// XEventListener
-
+
void SAL_CALL PresenterScreenListener::disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException)
{
(void)rEvent;
-
+
if (mpPresenterScreen.is())
{
mpPresenterScreen->RequestShutdownPresenterScreen();
@@ -510,7 +510,7 @@ sal_Int32 PresenterScreen::GetScreenNumber (
UNO_QUERY);
if ( ! xDisplayProperties.is())
return -1;
-
+
if (nDisplayNumber > 0)
{
nScreenNumber = nDisplayNumber - 1;
@@ -523,7 +523,7 @@ sal_Int32 PresenterScreen::GetScreenNumber (
if (nDisplayNumber <= 0 && xDisplayProperties.is())
xDisplayProperties->getPropertyValue(A2S("DefaultDisplay")) >>= nScreenNumber;
}
-
+
// We still have to determine the number of screens to decide
// whether the presenter screen may be shown at all.
Reference<container::XIndexAccess> xIndexAccess (xDisplayProperties, UNO_QUERY);
@@ -572,7 +572,7 @@ Reference<drawing::framework::XResourceId> PresenterScreen::GetMainPaneId (
const sal_Int32 nScreenNumber(GetScreenNumber(rxPresentation));
if (nScreenNumber < 0)
return NULL;
-
+
// Setup the resource id of the full screen background pane so that
// it is displayed on another screen than the presentation.
sal_Int32 nPresenterScreenNumber (1);
@@ -585,7 +585,7 @@ Reference<drawing::framework::XResourceId> PresenterScreen::GetMainPaneId (
case 1:
nPresenterScreenNumber = 0;
break;
-
+
default:
// When the full screen presentation is displayed on a screen
// other than 0 or 1 then place the presenter on the first
@@ -593,7 +593,7 @@ Reference<drawing::framework::XResourceId> PresenterScreen::GetMainPaneId (
nPresenterScreenNumber = 0;
break;
}
-
+
return ResourceId::create(
Reference<XComponentContext>(mxContextWeak),
PresenterHelper::msFullScreenPaneURL
@@ -639,7 +639,7 @@ void PresenterScreen::ShutdownPresenterScreen (void)
if (xViewFactoryComponent.is())
xViewFactoryComponent->dispose();
mxViewFactory = NULL;
-
+
Reference<lang::XComponent> xPaneFactoryComponent (mxPaneFactory, UNO_QUERY);
if (xPaneFactoryComponent.is())
xPaneFactoryComponent->dispose();
@@ -713,7 +713,7 @@ void PresenterScreen::SetupConfiguration (
}
catch (RuntimeException&)
{
- }
+ }
}
@@ -770,7 +770,7 @@ void PresenterScreen::ProcessLayout (
}
catch (RuntimeException&)
{
- }
+ }
}
@@ -799,7 +799,7 @@ void PresenterScreen::ProcessViewDescriptions (
catch (RuntimeException&)
{
OSL_ASSERT(false);
- }
+ }
}
diff --git a/sdext/source/presenter/PresenterScreen.hxx b/sdext/source/presenter/PresenterScreen.hxx
index 7096c9f72fe6..457a2ba2b51e 100644
--- a/sdext/source/presenter/PresenterScreen.hxx
+++ b/sdext/source/presenter/PresenterScreen.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,13 +86,13 @@ public:
virtual void SAL_CALL disposing (void);
// XJob
-
+
virtual css::uno::Any SAL_CALL execute(
const css::uno::Sequence<css::beans::NamedValue >& Arguments)
throw (css::lang::IllegalArgumentException,
css::uno::Exception,
css::uno::RuntimeException);
-
+
private:
PresenterScreenJob (const css::uno::Reference<css::uno::XComponentContext>& rxContext);
virtual ~PresenterScreenJob (void);
@@ -139,9 +139,9 @@ public:
// XEventListener
-
+
virtual void SAL_CALL disposing ( const css::lang::EventObject& rEvent) throw (css::uno::RuntimeException);
-
+
private:
css::uno::Reference<css::frame::XModel2 > mxModel;
css::uno::Reference<css::frame::XController> mxController;
@@ -210,7 +210,7 @@ private:
*/
void ProcessViewDescriptions (
PresenterConfigurationAccess& rConfiguration);
-
+
/** Called by ProcessViewDescriptions for a single entry.
*/
void ProcessViewDescription (
diff --git a/sdext/source/presenter/PresenterScrollBar.cxx b/sdext/source/presenter/PresenterScrollBar.cxx
index 5786ccba2a2f..95361d0f6ed3 100644
--- a/sdext/source/presenter/PresenterScrollBar.cxx
+++ b/sdext/source/presenter/PresenterScrollBar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -171,14 +171,14 @@ PresenterScrollBar::~PresenterScrollBar (void)
void SAL_CALL PresenterScrollBar::disposing (void)
{
mpMousePressRepeater->Dispose();
-
+
if (mxWindow.is())
{
mxWindow->removeWindowListener(this);
mxWindow->removePaintListener(this);
mxWindow->removeMouseListener(this);
mxWindow->removeMouseMotionListener(this);
-
+
Reference<lang::XComponent> xComponent (mxWindow, UNO_QUERY);
mxWindow = NULL;
if (xComponent.is())
@@ -323,7 +323,7 @@ void PresenterScrollBar::SetCanvas (const Reference<css::rendering::XCanvas>& rx
{
mxCanvas = rxCanvas;
if (mxCanvas.is())
- {
+ {
if (mpBitmaps.get()==NULL)
{
if (mpSharedBitmaps.expired())
@@ -422,7 +422,7 @@ void PresenterScrollBar::Paint (
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterScrollBar::windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -432,7 +432,7 @@ void SAL_CALL PresenterScrollBar::windowResized (const css::awt::WindowEvent& rE
-
+
void SAL_CALL PresenterScrollBar::windowMoved (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -481,7 +481,7 @@ void SAL_CALL PresenterScrollBar::windowPaint (const css::awt::PaintEvent& rEven
-
+
//----- XMouseListener --------------------------------------------------------
void SAL_CALL PresenterScrollBar::mousePressed (const css::awt::MouseEvent& rEvent)
@@ -541,7 +541,7 @@ void SAL_CALL PresenterScrollBar::mouseExited (const css::awt::MouseEvent& rEven
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterScrollBar::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -568,7 +568,7 @@ void SAL_CALL PresenterScrollBar::mouseDragged (const css::awt::MouseEvent& rEve
return;
mpMousePressRepeater->Stop();
-
+
if (mxPresenterHelper.is())
mxPresenterHelper->captureMouse(mxWindow);
@@ -653,7 +653,7 @@ void PresenterScrollBar::PaintBitmap(
aBox.Y2 += aWindowBox.Y;
Reference<rendering::XBitmap> xBitmap (GetBitmap(eArea,rpBitmaps));
-
+
if (xBitmap.is())
{
Reference<rendering::XPolyPolygon2D> xClipPolygon (
@@ -661,11 +661,11 @@ void PresenterScrollBar::PaintBitmap(
PresenterGeometryHelper::Intersection(rUpdateBox,
PresenterGeometryHelper::ConvertRectangle(aBox)),
mxCanvas->getDevice()));
-
+
const rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
xClipPolygon);
-
+
const geometry::IntegerSize2D aBitmapSize (xBitmap->getSize());
rendering::RenderState aRenderState (
geometry::AffineMatrix2D(
@@ -698,7 +698,7 @@ void PresenterScrollBar::NotifyThumbPositionChange (void)
catch (Exception&)
{
}
-
+
mbIsNotificationActive = false;
}
}
@@ -709,7 +709,7 @@ void PresenterScrollBar::NotifyThumbPositionChange (void)
PresenterScrollBar::Area PresenterScrollBar::GetArea (const double nX, const double nY) const
{
const geometry::RealPoint2D aPoint(nX, nY);
-
+
if (PresenterGeometryHelper::IsInside(GetRectangle(Pager), aPoint))
{
if (PresenterGeometryHelper::IsInside(GetRectangle(Thumb), aPoint))
@@ -883,7 +883,7 @@ void PresenterVerticalScrollBar::UpdateBorders (void)
{
const awt::Rectangle aWindowBox (mxWindow->getPosSize());
double nBottom = aWindowBox.Height;
-
+
if (mpNextButtonDescriptor.get() != NULL)
{
Reference<rendering::XBitmap> xBitmap (mpNextButtonDescriptor->GetNormalBitmap());
@@ -912,7 +912,7 @@ void PresenterVerticalScrollBar::UpdateBorders (void)
if (mnTotalSize < 1)
{
maBox[Thumb] = maBox[Pager];
-
+
// Set up the enabled/disabled states.
maEnabledState[PrevButton] = false;
maEnabledState[PagerUp] = false;
@@ -926,7 +926,7 @@ void PresenterVerticalScrollBar::UpdateBorders (void)
const double nThumbPosition = ::std::min(::std::max(0.0,mnThumbPosition), mnTotalSize - nThumbSize);
maBox[Thumb] = geometry::RealRectangle2D(
0, nThumbPosition / mnTotalSize * nPagerHeight,
- aWindowBox.Width,
+ aWindowBox.Width,
(nThumbPosition+nThumbSize) / mnTotalSize * nPagerHeight);
// Set up the enabled/disabled states.
@@ -1106,7 +1106,7 @@ void PresenterHorizontalScrollBar::UpdateBorders (void)
const awt::Rectangle aWindowBox (mxWindow->getPosSize());
double nRight = aWindowBox.Width;
const double nGap (2);
-
+
if (mpNextButtonDescriptor.get() != NULL)
{
Reference<rendering::XBitmap> xBitmap (mpNextButtonDescriptor->GetNormalBitmap());
@@ -1129,14 +1129,14 @@ void PresenterHorizontalScrollBar::UpdateBorders (void)
nRight -= aSize.Width + nGap;
}
}
-
+
const double nPagerWidth (nRight);
maBox[Pager] = geometry::RealRectangle2D(
0,0, nRight, aWindowBox.Height);
if (mnTotalSize == 0)
{
maBox[Thumb] = maBox[Pager];
-
+
// Set up the enabled/disabled states.
maEnabledState[PrevButton] = false;
maEnabledState[PagerUp] = false;
@@ -1302,7 +1302,7 @@ void PresenterScrollBar::MousePressRepeater::SetMouseArea(const PresenterScrollB
void PresenterScrollBar::MousePressRepeater::Callback (const TimeValue& rCurrentTime)
{
(void)rCurrentTime;
-
+
if (mpScrollBar.get() == NULL)
{
Stop();
@@ -1323,7 +1323,7 @@ void PresenterScrollBar::MousePressRepeater::Execute (void)
case PrevButton:
mpScrollBar->SetThumbPosition(nThumbPosition - mpScrollBar->GetLineHeight(), true);
break;
-
+
case NextButton:
mpScrollBar->SetThumbPosition(nThumbPosition + mpScrollBar->GetLineHeight(), true);
break;
diff --git a/sdext/source/presenter/PresenterScrollBar.hxx b/sdext/source/presenter/PresenterScrollBar.hxx
index bd2462387078..b0b0567efab3 100644
--- a/sdext/source/presenter/PresenterScrollBar.hxx
+++ b/sdext/source/presenter/PresenterScrollBar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -113,21 +113,21 @@ public:
move the thumb to a valid position.
*/
void CheckValues (void);
-
+
/** On some occasions it is necessary to trigger the painting of a
scrollbar from the outside.
*/
virtual void Paint (
const css::awt::Rectangle& rUpdateBox,
bool bNoClip = false);
-
+
virtual sal_Int32 GetSize (void) const = 0;
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -143,7 +143,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseListener
virtual void SAL_CALL mousePressed (const css::awt::MouseEvent& rEvent)
@@ -160,10 +160,10 @@ public:
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -172,7 +172,7 @@ public:
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException);
-
+
enum Area { Total, Pager, Thumb, PagerUp, PagerDown, PrevButton, NextButton, None,
__AreaCount__ = None };
@@ -204,7 +204,7 @@ protected:
SharedBitmapDescriptor mpThumbCenterDescriptor;
SharedBitmapDescriptor mpThumbEndDescriptor;
bool maEnabledState[__AreaCount__];
-
+
virtual css::geometry::RealRectangle2D GetRectangle (const Area eArea) const;
virtual double GetDragDistance (const sal_Int32 nX, const sal_Int32 nY) const = 0;
virtual void UpdateDragAnchor (const double nDragDistance) = 0;
diff --git a/sdext/source/presenter/PresenterSlidePreview.cxx b/sdext/source/presenter/PresenterSlidePreview.cxx
index 3954a5ff1ed8..5556324ab48a 100644
--- a/sdext/source/presenter/PresenterSlidePreview.cxx
+++ b/sdext/source/presenter/PresenterSlidePreview.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -95,10 +95,10 @@ PresenterSlidePreview::PresenterSlidePreview (
Reference<awt::XWindowPeer> xPeer (mxWindow, UNO_QUERY);
if (xPeer.is())
xPeer->setBackground(util::Color(0xff000000));
-
+
mxWindow->setVisible(sal_True);
}
-
+
if (mpPresenterController.get() != NULL)
mnSlideAspectRatio = mpPresenterController->GetSlideAspectRatio();
@@ -393,7 +393,7 @@ void PresenterSlidePreview::Resize (void)
{
const awt::Rectangle aWindowBox (mxWindow->getPosSize());
const awt::Size aNewPreviewSize (mxPreviewRenderer->calculatePreviewSize(
- mnSlideAspectRatio,
+ mnSlideAspectRatio,
awt::Size(aWindowBox.Width, aWindowBox.Height)));
const geometry::IntegerSize2D aPreviewSize (mxPreview->getSize());
if (aNewPreviewSize.Width==aPreviewSize.Width
diff --git a/sdext/source/presenter/PresenterSlidePreview.hxx b/sdext/source/presenter/PresenterSlidePreview.hxx
index 57b9f9794b95..f38f2e7a5ee2 100644
--- a/sdext/source/presenter/PresenterSlidePreview.hxx
+++ b/sdext/source/presenter/PresenterSlidePreview.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,7 +91,7 @@ public:
throw (com::sun::star::uno::RuntimeException);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -110,7 +110,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// lang::XEventListener
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException);
diff --git a/sdext/source/presenter/PresenterSlideShowView.cxx b/sdext/source/presenter/PresenterSlideShowView.cxx
index e63f22b5a84a..643978957a38 100644
--- a/sdext/source/presenter/PresenterSlideShowView.cxx
+++ b/sdext/source/presenter/PresenterSlideShowView.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@
#include <com/sun/star/rendering/TextDirection.hpp>
#include <com/sun/star/rendering/TexturingMode.hpp>
#include <osl/mutex.hxx>
-
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::drawing::framework;
@@ -139,7 +139,7 @@ void PresenterSlideShowView::LateInit (void)
mxWindow->addPaintListener(this);
mxWindow->addWindowListener(this);
}
-
+
// The window does not have to paint a background. We do
// that ourself.
Reference<awt::XWindowPeer> xPeer (mxWindow, UNO_QUERY);
@@ -152,7 +152,7 @@ void PresenterSlideShowView::LateInit (void)
mxViewWindow = CreateViewWindow(mxWindow);
mxViewCanvas = CreateViewCanvas(mxViewWindow);
-
+
if (mxViewWindow.is())
{
// Register listeners at window.
@@ -214,12 +214,12 @@ void PresenterSlideShowView::disposing (void)
// Tell all listeners that we are disposed.
lang::EventObject aEvent;
aEvent.Source = static_cast<XWeak*>(this);
-
+
::cppu::OInterfaceContainerHelper* pIterator
= maBroadcaster.getContainer(getCppuType((Reference<lang::XEventListener>*)NULL));
if (pIterator != NULL)
pIterator->disposeAndClear(aEvent);
-
+
// Do this for
// XPaintListener, XModifyListener,XMouseListener,XMouseMotionListener,XWindowListener?
@@ -687,7 +687,7 @@ void SAL_CALL PresenterSlideShowView::mouseExited (const awt::MouseEvent& rEvent
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterSlideShowView::mouseDragged (const awt::MouseEvent& rEvent)
throw (RuntimeException)
{
@@ -768,7 +768,7 @@ void SAL_CALL PresenterSlideShowView::windowHidden (const lang::EventObject& rEv
//----- XView -----------------------------------------------------------------
-
+
Reference<XResourceId> SAL_CALL PresenterSlideShowView::getResourceId (void)
throw(RuntimeException)
{
@@ -1069,7 +1069,7 @@ void PresenterSlideShowView::Resize (void)
{
pIterator->notifyEach(&util::XModifyListener::modified, aEvent);
}
-
+
// Due to constant aspect ratio resizing may lead a preview that changes
// its position but not its size. This invalidates the back buffer and
// we have to enforce a complete repaint.
diff --git a/sdext/source/presenter/PresenterSlideShowView.hxx b/sdext/source/presenter/PresenterSlideShowView.hxx
index bb91fb5e136c..494c76cf5c4c 100644
--- a/sdext/source/presenter/PresenterSlideShowView.hxx
+++ b/sdext/source/presenter/PresenterSlideShowView.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ namespace css = ::com::sun::star;
namespace sdext { namespace presenter {
namespace {
- typedef cppu::WeakComponentImplHelper7<
+ typedef cppu::WeakComponentImplHelper7<
css::presentation::XSlideShowView,
css::awt::XPaintListener,
css::awt::XMouseListener,
@@ -89,101 +89,101 @@ public:
// CachablePresenterView
virtual void ReleaseView (void);
-
-
+
+
// XSlideShowView
-
+
virtual css::uno::Reference<
css::rendering::XSpriteCanvas > SAL_CALL getCanvas (void)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL clear (void)
throw (css::uno::RuntimeException);
-
+
virtual css::geometry::AffineMatrix2D SAL_CALL getTransformation (void)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL addTransformationChangedListener(
const css::uno::Reference<
css::util::XModifyListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL removeTransformationChangedListener(
const css::uno::Reference<
css::util::XModifyListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL addPaintListener(
const css::uno::Reference<
css::awt::XPaintListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL removePaintListener(
const css::uno::Reference<
css::awt::XPaintListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL addMouseListener(
const css::uno::Reference<
css::awt::XMouseListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL removeMouseListener(
const css::uno::Reference<
css::awt::XMouseListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL addMouseMotionListener(
const css::uno::Reference<
css::awt::XMouseMotionListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL removeMouseMotionListener(
const css::uno::Reference<
css::awt::XMouseMotionListener >& xListener)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL setMouseCursor(::sal_Int16 nPointerShape)
throw (css::uno::RuntimeException);
virtual ::com::sun::star::awt::Rectangle SAL_CALL getCanvasArea( )
throw (::com::sun::star::uno::RuntimeException);
-
+
// lang::XEventListener
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw (css::uno::RuntimeException);
-
+
// XPaintListener
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseListener
virtual void SAL_CALL mousePressed (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
virtual void SAL_CALL mouseReleased (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseEntered (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -198,7 +198,7 @@ public:
// XView
-
+
virtual css::uno::Reference<css::drawing::framework::XResourceId> SAL_CALL
getResourceId (void)
throw(css::uno::RuntimeException);
@@ -216,11 +216,11 @@ public:
virtual css::uno::Reference<css::drawing::XDrawPage> SAL_CALL getCurrentPage (void)
throw (css::uno::RuntimeException);
-
+
// CachablePresenterView
-
+
virtual void ActivatePresenterView (void);
-
+
virtual void DeactivatePresenterView (void);
private:
@@ -275,7 +275,7 @@ private:
void PaintOuterWindow (const css::awt::Rectangle& rRepaintBox);
void PaintInnerWindow (const css::awt::PaintEvent& rEvent);
void PaintEndSlide (const css::awt::Rectangle& rRepaintBox);
-
+
/** The slide show relies on the back buffer of the canvas not being
modified. With a shared canvas there are times when that can not be
guaranteed.
diff --git a/sdext/source/presenter/PresenterSlideSorter.cxx b/sdext/source/presenter/PresenterSlideSorter.cxx
index 0f65c9331a1c..44a9a2ef6305 100644
--- a/sdext/source/presenter/PresenterSlideSorter.cxx
+++ b/sdext/source/presenter/PresenterSlideSorter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -144,7 +144,7 @@ public:
sal_Int32 mnLastVisibleColumn;
sal_Int32 mnFirstVisibleRow;
sal_Int32 mnLastVisibleRow;
-
+
private:
Orientation meOrientation;
::rtl::Reference<PresenterScrollBar> mpHorizontalScrollBar;
@@ -334,7 +334,7 @@ PresenterSlideSorter::PresenterSlideSorter (
// Set the orientation.
const bool bIsVertical (true);
-
+
// Create the scroll bar.
if (bIsVertical)
mpVerticalScrollBar = ::rtl::Reference<PresenterScrollBar>(
@@ -371,7 +371,7 @@ PresenterSlideSorter::PresenterSlideSorter (
Layout::Vertical,
mpHorizontalScrollBar,
mpVerticalScrollBar));
-
+
// Create the preview cache.
mxPreviewCache = Reference<drawing::XSlidePreviewCache>(
xFactory->createInstanceWithContext(
@@ -392,7 +392,7 @@ PresenterSlideSorter::PresenterSlideSorter (
mpPresenterController->GetTheme(),
mxWindow,
mpPresenterController->GetPaintManager()));
-
+
// Listen for changes of the current slide.
Reference<beans::XPropertySet> xControllerProperties (rxController, UNO_QUERY_THROW);
xControllerProperties->addPropertyChangeListener(
@@ -467,7 +467,7 @@ void SAL_CALL PresenterSlideSorter::disposing (void)
if (mxPreviewCache.is())
{
mxPreviewCache->removePreviewCreationNotifyListener(this);
-
+
Reference<XComponent> xComponent (mxPreviewCache, UNO_QUERY);
mxPreviewCache = NULL;
if (xComponent.is())
@@ -525,7 +525,7 @@ void SAL_CALL PresenterSlideSorter::disposing (const lang::EventObject& rEventOb
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterSlideSorter::windowResized (const awt::WindowEvent& rEvent)
throw (uno::RuntimeException)
{
@@ -653,7 +653,7 @@ void SAL_CALL PresenterSlideSorter::mouseExited (const css::awt::MouseEvent& rEv
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterSlideSorter::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -724,13 +724,13 @@ void SAL_CALL PresenterSlideSorter::propertyChange (
//----- XSlidePreviewCacheListener --------------------------------------------
-
+
void SAL_CALL PresenterSlideSorter::notifyPreviewCreation (
sal_Int32 nSlideIndex)
throw(css::uno::RuntimeException)
{
OSL_ASSERT(mpLayout.get()!=NULL);
-
+
awt::Rectangle aBBox (mpLayout->GetBoundingBox(nSlideIndex));
mpPresenterController->GetPaintManager()->Invalidate(mxWindow, aBBox, true);
}
@@ -744,7 +744,7 @@ void SAL_CALL PresenterSlideSorter::setCurrentPage (const Reference<drawing::XDr
throw (RuntimeException)
{
(void)rxSlide;
-
+
ThrowIfDisposed();
::osl::MutexGuard aGuard (::osl::Mutex::getGlobalMutex());
@@ -860,7 +860,7 @@ geometry::RealRectangle2D PresenterSlideSorter::PlaceScrollBars (
Reference<container::XIndexAccess> xSlides (mxSlideShowController, UNO_QUERY_THROW);
if (xSlides.is())
bIsScrollBarNeeded = mpLayout->IsScrollBarNeeded(xSlides->getCount());
-
+
if (mpLayout->GetOrientation() == Layout::Vertical)
{
if (mpVerticalScrollBar.get() != NULL)
@@ -900,7 +900,7 @@ geometry::RealRectangle2D PresenterSlideSorter::PlaceScrollBars (
rUpperBox.X2,
rUpperBox.Y2));
mpHorizontalScrollBar->SetVisible(true);
-
+
// Reduce area covered by the scroll bar from the available
// space.
return geometry::RealRectangle2D(
@@ -974,7 +974,7 @@ void PresenterSlideSorter::ClearBackground (
double PresenterSlideSorter::GetSlideAspectRatio (void) const
{
double nSlideAspectRatio (28.0/21.0);
-
+
try
{
Reference<container::XIndexAccess> xSlides(mxSlideShowController, UNO_QUERY_THROW);
@@ -1152,7 +1152,7 @@ void PresenterSlideSorter::Paint (const awt::Rectangle& rUpdateBox)
geometry::RealPoint2D(mxWindow->getPosSize().Width, mnSeparatorY),
rendering::ViewState(geometry::AffineMatrix2D(1,0,0, 0,1,0), NULL),
aRenderState);
-
+
// Paint the slides.
if ( ! PresenterGeometryHelper::AreRectanglesDisjoint(
rUpdateBox,
@@ -1286,7 +1286,7 @@ void PresenterSlideSorter::Layout::Update (
const double nSlideAspectRatio)
{
maBoundingBox = rBoundingBox;
-
+
mnHorizontalBorder = gnHorizontalBorder;
mnVerticalBorder = gnVerticalBorder;
@@ -1296,7 +1296,7 @@ void PresenterSlideSorter::Layout::Update (
return;
double nPreviewWidth;
-
+
// Determine column count, preview width, and horizontal gap (borders
// are half the gap). Try to use the preferred values. Try more to
// stay in the valid intervalls. This last constraint may be not
@@ -1404,7 +1404,7 @@ void PresenterSlideSorter::Layout::SetupVisibleArea (void)
mnFirstVisibleColumn = 0;
mnFirstVisibleRow = ::std::max(sal_Int32(0), GetRow(aPoint));
}
-
+
aPoint = GetLocalPosition(geometry::RealPoint2D( maBoundingBox.X2, maBoundingBox.Y2));
if (meOrientation == Horizontal)
{
@@ -1527,7 +1527,7 @@ geometry::RealPoint2D PresenterSlideSorter::Layout::GetPoint (
{
sal_Int32 nColumn (GetColumn(nSlideIndex));
sal_Int32 nRow (GetRow(nSlideIndex));
-
+
geometry::RealPoint2D aPosition (
mnHorizontalBorder + nColumn*(maPreviewSize.Width+mnHorizontalGap),
mnVerticalBorder + nRow*(maPreviewSize.Height+mnVerticalGap));
@@ -1657,7 +1657,7 @@ void PresenterSlideSorter::Layout::UpdateScrollBars (void)
nTotalColumnCount = mnColumnCount;
nTotalRowCount = sal_Int32(ceil(double(mnSlideCount) / double(mnColumnCount)));
}
-
+
if (mpHorizontalScrollBar.get() != NULL)
{
mpHorizontalScrollBar->SetTotalSize(
@@ -1679,7 +1679,7 @@ void PresenterSlideSorter::Layout::UpdateScrollBars (void)
mpVerticalScrollBar->SetLineHeight(maPreviewSize.Height);
}
-
+
// No place yet for the vertical scroll bar.
}
@@ -1771,7 +1771,7 @@ void PresenterSlideSorter::MouseOverManager::Paint (
{
if (nSlideIndex != mnSlideIndex)
return;
-
+
if (mxCanvas != rxCanvas)
SetCanvas(rxCanvas);
if (rxCanvas != NULL)
@@ -1825,7 +1825,7 @@ void PresenterSlideSorter::MouseOverManager::SetSlide (
maSlideBoundingBox = rBox;
mnSlideIndex = nSlideIndex;
-
+
if (nSlideIndex >= 0)
{
if (mxSlides.get() != NULL)
@@ -1871,18 +1871,18 @@ Reference<rendering::XBitmap> PresenterSlideSorter::MouseOverManager::CreateBitm
// bitmaps that are used to paints its background. The width is defined
// by the text.
geometry::IntegerSize2D aLabelSize (CalculateLabelSize(sText));
-
+
// Create a new bitmap that will contain the complete label.
Reference<rendering::XBitmap> xBitmap (
mxCanvas->getDevice()->createCompatibleAlphaBitmap(aLabelSize));
if ( ! xBitmap.is())
return NULL;
-
+
Reference<rendering::XBitmapCanvas> xBitmapCanvas (xBitmap, UNO_QUERY);
if ( ! xBitmapCanvas.is())
return NULL;
-
+
// Paint the background.
PaintButtonBackground(xBitmapCanvas, aLabelSize);
@@ -1902,7 +1902,7 @@ Reference<rendering::XBitmap> PresenterSlideSorter::MouseOverManager::CreateBitm
const rendering::ViewState aViewState(
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL);
-
+
rendering::RenderState aRenderState (
geometry::AffineMatrix2D(1,0,nXOffset, 0,1,nYOffset),
NULL,
@@ -1999,7 +1999,7 @@ geometry::IntegerSize2D PresenterSlideSorter::MouseOverManager::CalculateLabelSi
// Width is specified by text width and maximal width.
const geometry::RealSize2D aTextSize (
PresenterCanvasHelper::GetTextSize(mpFont->mxFont, rsText));
-
+
const sal_Int32 nWidth (round(aTextSize.Width + 2*gnHorizontalLabelPadding));
return geometry::IntegerSize2D(nWidth, nHeight);
@@ -2016,11 +2016,11 @@ void PresenterSlideSorter::MouseOverManager::PaintButtonBackground (
Reference<rendering::XBitmap> xLeftLabelBitmap;
if (mpLeftLabelBitmap.get() != NULL)
xLeftLabelBitmap = mpLeftLabelBitmap->GetNormalBitmap();
-
+
Reference<rendering::XBitmap> xCenterLabelBitmap;
if (mpCenterLabelBitmap.get() != NULL)
xCenterLabelBitmap = mpCenterLabelBitmap->GetNormalBitmap();
-
+
Reference<rendering::XBitmap> xRightLabelBitmap;
if (mpRightLabelBitmap.get() != NULL)
xRightLabelBitmap = mpRightLabelBitmap->GetNormalBitmap();
diff --git a/sdext/source/presenter/PresenterSlideSorter.hxx b/sdext/source/presenter/PresenterSlideSorter.hxx
index e3e6ebe8c031..01a28eb3a362 100644
--- a/sdext/source/presenter/PresenterSlideSorter.hxx
+++ b/sdext/source/presenter/PresenterSlideSorter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,16 +87,16 @@ public:
void SetActiveState (const bool bIsActive);
-
+
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -132,10 +132,10 @@ public:
// XMouseMotionListener
-
+
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -155,9 +155,9 @@ public:
const css::beans::PropertyChangeEvent& rEvent)
throw(css::uno::RuntimeException);
-
+
// XSlidePreviewCacheListener
-
+
virtual void SAL_CALL notifyPreviewCreation (
sal_Int32 nSlideIndex)
throw(css::uno::RuntimeException);
diff --git a/sdext/source/presenter/PresenterSprite.cxx b/sdext/source/presenter/PresenterSprite.cxx
index 467fb5830dd5..09d5cb018285 100644
--- a/sdext/source/presenter/PresenterSprite.cxx
+++ b/sdext/source/presenter/PresenterSprite.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sdext/source/presenter/PresenterSprite.hxx b/sdext/source/presenter/PresenterSprite.hxx
index e6be8e46ebad..cc266e9682c8 100644
--- a/sdext/source/presenter/PresenterSprite.hxx
+++ b/sdext/source/presenter/PresenterSprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ public:
*/
void SetFactory (
const ::css::uno::Reference<css::rendering::XSpriteCanvas>& rxSpriteFactory);
-
+
::css::uno::Reference<css::rendering::XCanvas> GetCanvas (void);
void Show (void);
@@ -66,19 +66,19 @@ public:
void SetPriority (const double nPriority);
double GetPriority (void) const;
-
+
void Resize (const css::geometry::RealSize2D& rSize);
css::geometry::RealSize2D GetSize (void) const;
-
+
void MoveTo (const css::geometry::RealPoint2D& rLocation);
css::geometry::RealPoint2D GetLocation (void) const;
-
+
void Transform (const css::geometry::AffineMatrix2D& rTransform);
css::geometry::AffineMatrix2D GetTransform (void) const;
void SetAlpha (const double nAlpha);
double GetAlpha (void) const;
-
+
void Update (void);
private:
diff --git a/sdext/source/presenter/PresenterSpritePane.cxx b/sdext/source/presenter/PresenterSpritePane.cxx
index 1f8ebdbbc35e..6f9216c6c529 100644
--- a/sdext/source/presenter/PresenterSpritePane.cxx
+++ b/sdext/source/presenter/PresenterSpritePane.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -251,7 +251,7 @@ void PresenterSpritePane::CreateCanvases (
const awt::Rectangle aBorderBox (mxBorderWindow->getPosSize());
mpSprite->Resize(geometry::RealSize2D(aBorderBox.Width, aBorderBox.Height));
}
-
+
UpdateCanvases();
}
diff --git a/sdext/source/presenter/PresenterSpritePane.hxx b/sdext/source/presenter/PresenterSpritePane.hxx
index 468f531f5e87..4056928daa65 100644
--- a/sdext/source/presenter/PresenterSpritePane.hxx
+++ b/sdext/source/presenter/PresenterSpritePane.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ public:
using css::lang::XEventListener::disposing;
::boost::shared_ptr<PresenterSprite> GetSprite (void);
-
+
static ::rtl::OUString getImplementationName_static (void);
static css::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static (void);
static css::uno::Reference<css::uno::XInterface> Create(
@@ -80,7 +80,7 @@ public:
SAL_THROW((css::uno::Exception));
void ShowTransparentBorder (void);
-
+
// XPane
virtual css::uno::Reference<css::awt::XWindow> SAL_CALL getWindow (void)
@@ -89,9 +89,9 @@ public:
virtual css::uno::Reference<css::rendering::XCanvas> SAL_CALL getCanvas (void)
throw (css::uno::RuntimeException);
-
+
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -110,7 +110,7 @@ public:
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
private:
css::uno::Reference<css::awt::XWindow> mxParentWindow;
css::uno::Reference<css::rendering::XSpriteCanvas> mxParentCanvas;
diff --git a/sdext/source/presenter/PresenterTextView.cxx b/sdext/source/presenter/PresenterTextView.cxx
index bf2de798a72e..7b177bd266b6 100644
--- a/sdext/source/presenter/PresenterTextView.cxx
+++ b/sdext/source/presenter/PresenterTextView.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -173,7 +173,7 @@ void PresenterTextView::SetText (const Reference<text::XText>& rxText)
Reference<container::XEnumerationAccess> xParagraphAccess (rxText, UNO_QUERY);
if ( ! xParagraphAccess.is())
return;
-
+
Reference<container::XEnumeration> xParagraphs (
xParagraphAccess->createEnumeration() , UNO_QUERY);
if ( ! xParagraphs.is())
@@ -248,7 +248,7 @@ void PresenterTextView::SetTextChangeBroadcaster (
void PresenterTextView::SetLocation (const css::geometry::RealPoint2D& rLocation)
{
maLocation = rLocation;
-
+
for (::std::vector<SharedPresenterTextParagraph>::iterator
iParagraph(maParagraphs.begin()),
iEnd(maParagraphs.end());
@@ -344,7 +344,7 @@ void PresenterTextView::MoveCaret (
case AccessibleTextType::CHARACTER:
nCharacterIndex += nDistance;
break;
-
+
case AccessibleTextType::WORD:
{
sal_Int32 nRemainingDistance (nDistance);
@@ -376,7 +376,7 @@ void PresenterTextView::MoveCaret (
else
{
nRemainingDistance -= nDelta;
-
+
// Move caret one character to the end of
// the previous or the start of the next paragraph.
pParagraph = GetParagraph(nParagraphIndex);
@@ -778,7 +778,7 @@ void PresenterTextParagraph::Format (
mnVerticalOffset = nY;
maWordBoundaries.clear();
maWordBoundaries.push_back(0);
-
+
const rendering::FontMetrics aMetrics (rpFont->mxFont->getFontMetrics());
mnAscent = aMetrics.Ascent;
mnDescent = aMetrics.Descent;
@@ -801,7 +801,7 @@ void PresenterTextParagraph::Format (
if (aWordBoundary.endPos>aWordBoundary.startPos)
AddWord(nWidth, aCurrentLine, aWordBoundary.endPos, rpFont);
-
+
if (aWordBoundary.startPos<0 || aWordBoundary.endPos<0)
break;
if (nPosition >= aWordBoundary.endPos)
@@ -831,7 +831,7 @@ sal_Int32 PresenterTextParagraph::GetWordBoundary(
else
return GetCharacterCount();
}
-
+
sal_Int32 nIndex (0);
for (sal_Int32 nCount (maWordBoundaries.size()); nIndex<nCount; ++nIndex)
{
@@ -922,7 +922,7 @@ void PresenterTextParagraph::AddWord (
nLineStart = rCurrentLine.startPos;
nLineEnd = rCurrentLine.endPos;
}
-
+
const ::rtl::OUString sLineCandidate (
msParagraphText.copy(nLineStart, nWordBoundary-nLineStart));
@@ -1077,7 +1077,7 @@ TextSegment PresenterTextParagraph::GetTextSegment (
if (mxBreakIterator.is())
return GetWordTextSegment(nOffset, nIndex);
break;
-
+
case AccessibleTextType::LINE:
{
for (::std::vector<Line>::const_iterator
diff --git a/sdext/source/presenter/PresenterTextView.hxx b/sdext/source/presenter/PresenterTextView.hxx
index d8bf260443c1..6805d4c96564 100644
--- a/sdext/source/presenter/PresenterTextView.hxx
+++ b/sdext/source/presenter/PresenterTextView.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ public:
const ::boost::function<void(const css::awt::Rectangle&)>&
rInvalidator);
~PresenterTextCaret (void);
-
+
void ShowCaret (void);
void HideCaret (void);
@@ -67,7 +67,7 @@ public:
void SetPosition (
const sal_Int32 nParagraphIndex,
const sal_Int32 nCharacterIndex);
-
+
bool IsVisible (void) const;
/** Set a (possibly empty) functor that broadcasts changes of the caret
@@ -193,7 +193,7 @@ private:
double mnBaseLine;
double mnWidth;
cssu::Sequence<css::geometry::RealRectangle2D> maCellBoxes;
-
+
sal_Int32 GetLength (void) const;
void ProvideLayoutedLine (
const ::rtl::OUString& rsParagraphText,
@@ -223,7 +223,7 @@ private:
/// the whole text.
sal_Int32 mnCharacterOffset;
::std::vector<Cell> maCells;
-
+
void AddWord (
const double nWidth,
css::i18n::Boundary& rCurrentLine,
@@ -259,11 +259,11 @@ public:
void SetText (const css::uno::Reference<css::text::XText>& rxText);
void SetText (const ::rtl::OUString& rsText);
void SetTextChangeBroadcaster (const ::boost::function<void(void)>& rBroadcaster);
-
+
void SetLocation (const css::geometry::RealPoint2D& rLocation);
void SetSize (const css::geometry::RealSize2D& rSize);
double GetTotalTextHeight (void);
-
+
void SetFont (const PresenterTheme::SharedFontDescriptor& rpFont);
void SetOffset (
@@ -281,7 +281,7 @@ public:
void MoveCaret (
const sal_Int32 nDistance,
const sal_Int16 nTextType);
-
+
void Paint (const css::awt::Rectangle& rUpdateBox);
SharedPresenterTextCaret GetCaret (void) const;
diff --git a/sdext/source/presenter/PresenterTheme.cxx b/sdext/source/presenter/PresenterTheme.cxx
index 0777d147cff9..c052e8212cc5 100644
--- a/sdext/source/presenter/PresenterTheme.cxx
+++ b/sdext/source/presenter/PresenterTheme.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,12 +61,12 @@ class BorderSize
{
public:
const static sal_Int32 mnInvalidValue = -10000;
-
+
BorderSize (void) : mnLeft(mnInvalidValue),
mnTop(mnInvalidValue),
mnRight(mnInvalidValue),
mnBottom(mnInvalidValue) {}
-
+
sal_Int32 mnLeft;
sal_Int32 mnTop;
sal_Int32 mnRight;
@@ -585,7 +585,7 @@ PresenterTheme::SharedFontDescriptor PresenterTheme::GetFont (
Theme::FontContainer::const_iterator iFont (pTheme->maFontContainer.find(rsStyleName));
if (iFont != pTheme->maFontContainer.end())
return iFont->second;
-
+
pTheme = pTheme->mpParentTheme;
}
}
@@ -649,7 +649,7 @@ bool PresenterTheme::FontDescriptor::PrepareFont (
const double nCellSize (GetCellSizeForDesignSize(rxCanvas, mnSize));
mxFont = CreateFont(rxCanvas, nCellSize);
-
+
return mxFont.is();
}
@@ -767,7 +767,7 @@ void PresenterTheme::Theme::Read (
{
rReadContext.SetBitmapSourceExtension(PresenterComponent::gsExtensionIdentifier);
}
-
+
// Background.
mpBackground = PresenterBitmapContainer::LoadBitmap(
mxThemeRoot,
@@ -782,7 +782,7 @@ void PresenterTheme::Theme::Read (
// Pane styles.
maPaneStyles.Read(rReadContext, mxThemeRoot);
-
+
// View styles.
maViewStyles.Read(rReadContext, mxThemeRoot);
@@ -895,7 +895,7 @@ PresenterTheme::SharedFontDescriptor ReadContext::ReadFont (
{
if ( ! rxNode.is())
return PresenterTheme::SharedFontDescriptor();
-
+
try
{
Reference<container::XHierarchicalNameAccess> xFont (
@@ -1080,7 +1080,7 @@ void PaneStyleContainer::ProcessPaneStyle(
return;
::boost::shared_ptr<PaneStyle> pStyle (new PaneStyle());
-
+
rValues[0] >>= pStyle->msStyleName;
OUString sParentStyleName;
@@ -1222,7 +1222,7 @@ void ViewStyleContainer::Read (
const Reference<container::XHierarchicalNameAccess>& rxThemeRoot)
{
(void)rReadContext;
-
+
Reference<container::XNameAccess> xViewStyleList (
PresenterConfigurationAccess::GetConfigurationNode(
rxThemeRoot,
@@ -1245,7 +1245,7 @@ void ViewStyleContainer::ProcessViewStyle(
const Reference<beans::XPropertySet>& rxProperties)
{
::boost::shared_ptr<ViewStyle> pStyle (new ViewStyle());
-
+
PresenterConfigurationAccess::GetProperty(rxProperties, A2S("StyleName"))
>>= pStyle->msStyleName;
@@ -1285,7 +1285,7 @@ void ViewStyleContainer::ProcessViewStyle(
SharedBitmapDescriptor()));
if (pBackground.get() != NULL && pBackground->GetNormalBitmap().is())
pStyle->mpBackground = pBackground;
-
+
push_back(pStyle);
}
diff --git a/sdext/source/presenter/PresenterTheme.hxx b/sdext/source/presenter/PresenterTheme.hxx
index e76cabcf28d0..b2b6aad9cf10 100644
--- a/sdext/source/presenter/PresenterTheme.hxx
+++ b/sdext/source/presenter/PresenterTheme.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,7 +64,7 @@ namespace sdext { namespace presenter {
For the offset of the bitmap you can call
Point aOffset = getPropertyValue(sStyleName + "_TopLeftOffset");
-
+
This is work in progress.
*/
class PresenterTheme
@@ -94,7 +94,7 @@ public:
public:
explicit FontDescriptor (void);
explicit FontDescriptor (const ::boost::shared_ptr<FontDescriptor>& rpDescriptor);
-
+
::rtl::OUString msFamilyName;
::rtl::OUString msStyleName;
sal_Int32 mnSize;
@@ -121,7 +121,7 @@ public:
SharedBitmapDescriptor GetBitmap (
const ::rtl::OUString& rsStyleName,
const ::rtl::OUString& rsBitmapName) const;
-
+
SharedBitmapDescriptor GetBitmap (
const ::rtl::OUString& rsBitmapName) const;
diff --git a/sdext/source/presenter/PresenterTimer.cxx b/sdext/source/presenter/PresenterTimer.cxx
index 8841d8234bd4..646c751d4674 100644
--- a/sdext/source/presenter/PresenterTimer.cxx
+++ b/sdext/source/presenter/PresenterTimer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,10 +91,10 @@ public:
const PresenterTimer::Task& rTask,
const TimeValue& rDueTime,
const sal_Int64 nRepeatIntervall);
-
+
void ScheduleTask (const SharedTimerTask& rpTask);
void CancelTask (const sal_Int32 nTaskId);
-
+
static bool GetCurrentTime (TimeValue& rCurrentTime);
static sal_Int64 GetTimeDifference (
const TimeValue& rTargetTime,
@@ -123,7 +123,7 @@ private:
virtual ~TimerScheduler (void);
class Deleter {public: void operator () (TimerScheduler* pScheduler) { delete pScheduler; } };
friend class Deleter;
-
+
virtual void SAL_CALL run (void);
virtual void SAL_CALL onTerminated (void);
};
@@ -141,7 +141,7 @@ sal_Int32 PresenterTimer::ScheduleSingleTaskRelative (
const Task& rTask,
const sal_Int64 nDelay)
{
- return ScheduleRepeatedTask(rTask, nDelay, 0);
+ return ScheduleRepeatedTask(rTask, nDelay, 0);
}
@@ -267,7 +267,7 @@ void TimerScheduler::ScheduleTask (const SharedTimerTask& rpTask)
osl::MutexGuard aGuard (maTaskContainerMutex);
maScheduledTasks.insert(rpTask);
-
+
if ( ! mbIsRunning)
{
mbIsRunning = true;
@@ -337,7 +337,7 @@ void SAL_CALL TimerScheduler::run (void)
sal_Int64 nDifference = 0;
{
::osl::MutexGuard aGuard (maTaskContainerMutex);
-
+
// There are no more scheduled task. Leave this loop, function and
// live of the TimerScheduler.
if (maScheduledTasks.empty())
@@ -352,7 +352,7 @@ void SAL_CALL TimerScheduler::run (void)
maScheduledTasks.erase(maScheduledTasks.begin());
}
}
-
+
// Acquire a reference to the current task.
{
::osl::MutexGuard aGuard (maCurrentTaskMutex);
@@ -384,7 +384,7 @@ void SAL_CALL TimerScheduler::run (void)
ScheduleTask(mpCurrentTask);
}
}
-
+
}
// Release reference to the current task.
@@ -478,7 +478,7 @@ TimerTask::TimerTask (
const css::uno::Reference<css::uno::XComponentContext>& rxContext)
{
::osl::MutexGuard aSolarGuard (::osl::Mutex::getGlobalMutex());
-
+
::rtl::Reference<PresenterClockTimer> pTimer;
if (mpInstance.is())
{
@@ -656,13 +656,13 @@ void SAL_CALL PresenterClockTimer::notify (const css::uno::Any& rUserData)
osl::MutexGuard aGuard (maMutex);
mbIsCallbackPending = false;
-
+
::std::copy(
maListeners.begin(),
maListeners.end(),
::std::back_inserter(aListenerCopy));
}
-
+
if (aListenerCopy.size() > 0)
{
ListenerContainer::const_iterator iListener;
diff --git a/sdext/source/presenter/PresenterTimer.hxx b/sdext/source/presenter/PresenterTimer.hxx
index 19d9e0637258..c79760c74224 100644
--- a/sdext/source/presenter/PresenterTimer.hxx
+++ b/sdext/source/presenter/PresenterTimer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ public:
typedef ::boost::function<void(const TimeValue&)> Task;
static const sal_Int32 NotAValidTaskId = 0;
-
+
static sal_Int32 ScheduleSingleTaskRelative (
const Task& rTask,
const sal_Int64 nDelay);
@@ -82,7 +82,7 @@ public:
-typedef cppu::WeakComponentImplHelper1<
+typedef cppu::WeakComponentImplHelper1<
css::awt::XCallback
> PresenterClockTimerInterfaceBase;
@@ -98,7 +98,7 @@ public:
virtual void TimeHasChanged (const oslDateTime& rCurrentTime) = 0;
};
typedef ::boost::shared_ptr<Listener> SharedListener;
-
+
static ::rtl::Reference<PresenterClockTimer> Instance (
const css::uno::Reference<css::uno::XComponentContext>& rxContext);
@@ -106,7 +106,7 @@ public:
void RemoveListener (const SharedListener& rListener);
static oslDateTime GetCurrentTime (void);
-
+
/** Return the difference between the two different times in
nanoseconds.
*/
@@ -131,7 +131,7 @@ private:
PresenterClockTimer (
const css::uno::Reference<css::uno::XComponentContext>& rxContext);
~PresenterClockTimer (void);
-
+
void CheckCurrentTime (const TimeValue& rCurrentTime);
};
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx
index ad5d6161eca8..a20c2871d9b2 100644
--- a/sdext/source/presenter/PresenterToolBar.cxx
+++ b/sdext/source/presenter/PresenterToolBar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -112,11 +112,11 @@ namespace {
{
public:
ElementMode (void);
-
+
SharedBitmapDescriptor mpIcon;
OUString msAction;
Text maText;
-
+
void ReadElementMode (
const Reference<beans::XPropertySet>& rxProperties,
const ::rtl::OUString& rsModeName,
@@ -137,13 +137,13 @@ public:
css::uno::Reference<css::rendering::XCanvas> mxCanvas;
};
-
+
//===== PresenterToolBar::Element =============================================
namespace {
- typedef cppu::WeakComponentImplHelper2<
+ typedef cppu::WeakComponentImplHelper2<
css::document::XEventListener,
css::frame::XStatusListener
> ElementInterfaceBase;
@@ -185,7 +185,7 @@ namespace {
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw(css::uno::RuntimeException);
-
+
// document::XEventListener
virtual void SAL_CALL notifyEvent (const css::document::EventObject& rEvent)
@@ -208,7 +208,7 @@ namespace {
bool mbIsOver;
bool mbIsPressed;
bool mbIsSelected;
-
+
virtual awt::Size CreateBoundingSize (
const Reference<rendering::XCanvas>& rxCanvas) = 0;
@@ -251,11 +251,11 @@ namespace {
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
throw(css::uno::RuntimeException);
-
+
protected:
virtual awt::Size CreateBoundingSize (
const Reference<rendering::XCanvas>& rxCanvas);
-
+
private:
bool mbIsListenerRegistered;
@@ -277,7 +277,7 @@ namespace {
{
public:
Label (const ::rtl::Reference<PresenterToolBar>& rpToolBar);
-
+
void SetText (const OUString& rsText);
virtual void Paint (
const Reference<rendering::XCanvas>& rxCanvas,
@@ -445,7 +445,7 @@ void PresenterToolBar::Initialize (
Reference<awt::XWindowPeer> xPeer (mxWindow, UNO_QUERY);
if (xPeer.is())
xPeer->setBackground(util::Color(0xff000000));
-
+
mxWindow->setVisible(sal_True);
}
@@ -614,7 +614,7 @@ void SAL_CALL PresenterToolBar::disposing (const lang::EventObject& rEventObject
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterToolBar::windowResized (const awt::WindowEvent& rEvent)
throw (RuntimeException)
{
@@ -670,7 +670,7 @@ void SAL_CALL PresenterToolBar::windowPaint (const css::awt::PaintEvent& rEvent)
if (mbIsLayoutPending)
Layout(mxCanvas);
-
+
Paint(rEvent.UpdateRect, aViewState);
// Make the back buffer visible.
@@ -721,7 +721,7 @@ void SAL_CALL PresenterToolBar::mouseExited (const css::awt::MouseEvent& rEvent)
//----- XMouseMotionListener --------------------------------------------------
-
+
void SAL_CALL PresenterToolBar::mouseMoved (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException)
{
@@ -774,7 +774,7 @@ void PresenterToolBar::CreateControls (
{
if ( ! mxWindow.is())
return;
-
+
// Expand the macro in the bitmap file names.
PresenterConfigurationAccess aConfiguration (
mxComponentContext,
@@ -890,7 +890,7 @@ void PresenterToolBar::Layout (
for (iPart=maElementContainer.begin(),nIndex=0; iPart!=iEnd; ++iPart,++nIndex)
{
geometry::RealSize2D aSize (CalculatePartSize(rxCanvas, *iPart, bIsHorizontal));
-
+
// Remember the size of each part for later.
aPartSizes[nIndex] = aSize;
@@ -900,7 +900,7 @@ void PresenterToolBar::Layout (
nTotalHorizontalGap += ((*iPart)->size() - 1) * gnGapSize;
nGapCount += (*iPart)->size()-1;
}
-
+
// Orientation changes for each part.
bIsHorizontal = !bIsHorizontal;
// Width is accumulated.
@@ -941,12 +941,12 @@ void PresenterToolBar::Layout (
// Place the parts.
double nY ((aWindowBox.Height - aTotalSize.Height) / 2);
bIsHorizontal = true;
-
+
maBoundingBox.X1 = nX;
maBoundingBox.Y1 = nY;
maBoundingBox.X2 = nX + aTotalSize.Width + nTotalHorizontalGap;
maBoundingBox.Y2 = nY + aTotalSize.Height;
-
+
for (iPart=maElementContainer.begin(), nIndex=0; iPart!=iEnd; ++iPart,++nIndex)
{
geometry::RealRectangle2D aBoundingBox(
@@ -1130,7 +1130,7 @@ void PresenterToolBar::CheckMouseOver (
{
if (iElement->get() == NULL)
continue;
-
+
awt::Rectangle aBox ((*iElement)->GetBoundingBox());
const bool bIsOver = bOverWindow
&& aBox.X <= rEvent.X
@@ -1202,7 +1202,7 @@ PresenterToolBarView::PresenterToolBarView (
Reference<awt::XWindowPeer> xPeer (mxWindow, UNO_QUERY);
if (xPeer.is())
xPeer->setBackground(util::Color(0xff000000));
-
+
mxWindow->setVisible(sal_True);
}
}
@@ -1229,7 +1229,7 @@ void SAL_CALL PresenterToolBarView::disposing (void)
mpToolBar = NULL;
if (xComponent.is())
xComponent->dispose();
-
+
if (mxWindow.is())
{
mxWindow->removePaintListener(this);
@@ -1449,7 +1449,7 @@ bool Element::SetState (
{
bool bModified (mbIsOver != bIsOver || mbIsPressed != bIsPressed);
bool bClicked (mbIsPressed && bIsOver && ! bIsPressed);
-
+
mbIsOver = bIsOver;
mbIsPressed = bIsPressed;
@@ -1472,7 +1472,7 @@ bool Element::SetState (
{
if (mpMode->msAction.getLength() <= 0)
break;
-
+
if (mpToolBar.get() == NULL)
break;
@@ -1573,7 +1573,7 @@ void SAL_CALL Element::disposing (const css::lang::EventObject& rEvent)
{
(void)rEvent;
}
-
+
@@ -1597,7 +1597,7 @@ void SAL_CALL Element::statusChanged (const css::frame::FeatureStateEvent& rEven
bool bIsSelected (mbIsSelected);
bool bIsEnabled (rEvent.IsEnabled);
rEvent.State >>= bIsSelected;
-
+
if (bIsSelected != mbIsSelected || bIsEnabled != mbIsEnabled)
{
mbIsEnabled = bIsEnabled;
@@ -1758,13 +1758,13 @@ void Button::Paint (
if (mpMode.get() == NULL)
return;
-
+
if (mpMode->mpIcon.get() == NULL)
return;
geometry::RealRectangle2D aTextBBox (mpMode->maText.GetBoundingBox(rxCanvas));
sal_Int32 nTextHeight (sal::static_int_cast<sal_Int32>(0.5 + aTextBBox.Y2 - aTextBBox.Y1));
-
+
PaintIcon(rxCanvas, nTextHeight, rViewState);
awt::Point aOffset(0,0);
if ( ! IsEnabled())
@@ -1814,7 +1814,7 @@ void Button::PaintIcon (
{
if (mpMode.get() == NULL)
return;
-
+
Reference<rendering::XBitmap> xBitmap (mpMode->mpIcon->GetBitmap(GetMode()));
if (xBitmap.is())
{
@@ -1858,7 +1858,7 @@ void SAL_CALL Button::disposing (const css::lang::EventObject& rEvent)
mbIsListenerRegistered = false;
Element::disposing(rEvent);
}
-
+
} // end of anonymous namespace
@@ -1881,13 +1881,13 @@ awt::Size Label::CreateBoundingSize (
{
if (mpMode.get() == NULL)
return awt::Size(0,0);
-
+
geometry::RealRectangle2D aTextBBox (mpMode->maText.GetBoundingBox(rxCanvas));
return awt::Size(
sal::static_int_cast<sal_Int32>(0.5 + aTextBBox.X2 - aTextBBox.X1),
sal::static_int_cast<sal_Int32>(0.5 + aTextBBox.Y2 - aTextBBox.Y1));
}
-
+
@@ -1920,7 +1920,7 @@ void Label::Paint (
OSL_ASSERT(rxCanvas.is());
if (mpMode.get() == NULL)
return;
-
+
mpMode->maText.Paint(rxCanvas, rViewState, GetBoundingBox(), awt::Point(0,0));
}
@@ -2035,7 +2035,7 @@ void Text::Paint (
Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
PresenterCanvasHelper::SetDeviceColor(aRenderState, mpFont->mnColor);
-
+
rxCanvas->drawText(
aContext,
mpFont->mxFont,
@@ -2125,7 +2125,7 @@ OUString TimeFormatter::FormatTime (const oslDateTime& rTime)
const sal_Int32 nHours (sal::static_int_cast<sal_Int32>(rTime.Hours));
const sal_Int32 nMinutes (sal::static_int_cast<sal_Int32>(rTime.Minutes));
const sal_Int32 nSeconds(sal::static_int_cast<sal_Int32>(rTime.Seconds));
-
+
// Hours
if (mbIs24HourFormat)
sText.append(OUString::valueOf(nHours));
@@ -2293,7 +2293,7 @@ void PresentationTimeLabel::TimeHasChanged (const oslDateTime& rCurrentTime)
maStartTimeValue.Seconds += 1;
maStartTimeValue.Nanosec = 0;
}
-
+
TimeValue aElapsedTimeValue;
aElapsedTimeValue.Seconds = aCurrentTimeValue.Seconds - maStartTimeValue.Seconds;
aElapsedTimeValue.Nanosec = aCurrentTimeValue.Nanosec - maStartTimeValue.Nanosec;
diff --git a/sdext/source/presenter/PresenterToolBar.hxx b/sdext/source/presenter/PresenterToolBar.hxx
index d4dbf2ac1048..eb6a526397a7 100644
--- a/sdext/source/presenter/PresenterToolBar.hxx
+++ b/sdext/source/presenter/PresenterToolBar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@
namespace css = ::com::sun::star;
namespace {
- typedef cppu::WeakComponentImplHelper5<
+ typedef cppu::WeakComponentImplHelper5<
css::awt::XWindowListener,
css::awt::XPaintListener,
css::awt::XMouseListener,
@@ -68,7 +68,7 @@ namespace {
css::drawing::XDrawView
> PresenterToolBarInterfaceBase;
- typedef cppu::WeakComponentImplHelper3<
+ typedef cppu::WeakComponentImplHelper3<
css::awt::XPaintListener,
css::drawing::framework::XView,
css::drawing::XDrawView
@@ -92,7 +92,7 @@ public:
typedef ::boost::function<void(void)> Action;
enum Anchor { Left, Center, Right };
-
+
PresenterToolBar (
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
const css::uno::Reference<css::awt::XWindow>& rxWindow,
@@ -117,16 +117,16 @@ public:
::rtl::Reference<PresenterController> GetPresenterController (void) const;
css::uno::Reference<css::awt::XWindow> GetWindow (void) const;
css::uno::Reference<css::uno::XComponentContext> GetComponentContext (void) const;
-
+
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -153,14 +153,14 @@ public:
virtual void SAL_CALL mouseReleased (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseEntered (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XMouseMotionListener
virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent)
@@ -262,16 +262,16 @@ public:
::rtl::Reference<PresenterToolBar> GetPresenterToolBar (void) const;
-
+
// XPaintListener
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// lang::XEventListener
- virtual void SAL_CALL
+ virtual void SAL_CALL
disposing (const css::lang::EventObject& rEventObject)
throw (css::uno::RuntimeException);
@@ -284,7 +284,7 @@ public:
virtual sal_Bool SAL_CALL isAnchorOnly (void)
throw (com::sun::star::uno::RuntimeException);
-
+
// XDrawView
virtual void SAL_CALL setCurrentPage (
diff --git a/sdext/source/presenter/PresenterUIPainter.cxx b/sdext/source/presenter/PresenterUIPainter.cxx
index d5a5066989d8..0b5b90daa117 100644
--- a/sdext/source/presenter/PresenterUIPainter.cxx
+++ b/sdext/source/presenter/PresenterUIPainter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ void PresenterUIPainter::PaintHorizontalBitmapComposite (
rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL);
-
+
rendering::RenderState aRenderState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL,
@@ -177,7 +177,7 @@ void PresenterUIPainter::PaintVerticalBitmapComposite (
rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL);
-
+
rendering::RenderState aRenderState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL,
diff --git a/sdext/source/presenter/PresenterUIPainter.hxx b/sdext/source/presenter/PresenterUIPainter.hxx
index 52cdd5d2f4ea..e640a35a9a0b 100644
--- a/sdext/source/presenter/PresenterUIPainter.hxx
+++ b/sdext/source/presenter/PresenterUIPainter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ class PresenterUIPainter
public:
PresenterUIPainter (void);
~PresenterUIPainter (void);
-
+
static void PaintHorizontalBitmapComposite (
const css::uno::Reference<css::rendering::XCanvas>& rxCanvas,
const css::awt::Rectangle& rRepaintBox,
diff --git a/sdext/source/presenter/PresenterViewFactory.cxx b/sdext/source/presenter/PresenterViewFactory.cxx
index 2a33a4230254..44c06ad3a328 100644
--- a/sdext/source/presenter/PresenterViewFactory.cxx
+++ b/sdext/source/presenter/PresenterViewFactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,7 +93,7 @@ public:
virtual Reference<XResourceId> SAL_CALL getResourceId (void) throw (RuntimeException)
{ return mxResourceId; };
-
+
private:
Reference<XResourceId> mxResourceId;
};
@@ -268,7 +268,7 @@ void SAL_CALL PresenterViewFactory::disposing (void)
//----- XViewFactory ----------------------------------------------------------
-
+
Reference<XResource> SAL_CALL PresenterViewFactory::createResource (
const Reference<XResourceId>& rxViewId)
throw (RuntimeException)
@@ -276,7 +276,7 @@ Reference<XResource> SAL_CALL PresenterViewFactory::createResource (
ThrowIfDisposed();
Reference<XResource> xView;
-
+
if (rxViewId.is())
{
Reference<XPane> xAnchorPane (
@@ -292,7 +292,7 @@ Reference<XResource> SAL_CALL PresenterViewFactory::createResource (
if (pDescriptor.get() != NULL)
pDescriptor->SetActivationState(true);
}
-
+
return xView;
}
@@ -398,7 +398,7 @@ Reference<XResource> PresenterViewFactory::CreateView(
const Reference<XPane>& rxAnchorPane)
{
Reference<XView> xView;
-
+
try
{
const OUString sResourceURL (rxViewId->getResourceURL());
@@ -427,7 +427,7 @@ Reference<XResource> PresenterViewFactory::CreateView(
{
xView = CreateHelpView(rxViewId);
}
-
+
// Activate it.
CachablePresenterView* pView = dynamic_cast<CachablePresenterView*>(xView.get());
if (pView != NULL)
@@ -448,12 +448,12 @@ Reference<XView> PresenterViewFactory::CreateSlideShowView(
const Reference<XResourceId>& rxViewId) const
{
Reference<XView> xView;
-
+
if ( ! mxConfigurationController.is())
return xView;
if ( ! mxComponentContext.is())
return xView;
-
+
try
{
rtl::Reference<PresenterSlideShowView> pShowView (
@@ -481,12 +481,12 @@ Reference<XView> PresenterViewFactory::CreateSlidePreviewView(
const Reference<XPane>& rxAnchorPane) const
{
Reference<XView> xView;
-
+
if ( ! mxConfigurationController.is())
return xView;
if ( ! mxComponentContext.is())
return xView;
-
+
try
{
xView = Reference<XView>(
@@ -527,12 +527,12 @@ Reference<XView> PresenterViewFactory::CreateNotesView(
{
(void)rxAnchorPane;
Reference<XView> xView;
-
+
if ( ! mxConfigurationController.is())
return xView;
if ( ! mxComponentContext.is())
return xView;
-
+
try
{
xView = Reference<XView>(static_cast<XWeak*>(
@@ -558,12 +558,12 @@ Reference<XView> PresenterViewFactory::CreateSlideSorterView(
const Reference<XResourceId>& rxViewId) const
{
Reference<XView> xView;
-
+
if ( ! mxConfigurationController.is())
return xView;
if ( ! mxComponentContext.is())
return xView;
-
+
try
{
rtl::Reference<PresenterSlideSorter> pView (
diff --git a/sdext/source/presenter/PresenterViewFactory.hxx b/sdext/source/presenter/PresenterViewFactory.hxx
index 5fab682dae8a..b38fbcae79d0 100644
--- a/sdext/source/presenter/PresenterViewFactory.hxx
+++ b/sdext/source/presenter/PresenterViewFactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ class CachablePresenterView
{
public:
virtual void ActivatePresenterView (void);
-
+
/** Called when the view is put into a cache. The view must not paint
itself while being deactive.
*/
@@ -123,7 +123,7 @@ public:
// XResourceFactory
-
+
virtual css::uno::Reference<css::drawing::framework::XResource>
SAL_CALL createResource (
const css::uno::Reference<css::drawing::framework::XResourceId>& rxViewId)
@@ -144,7 +144,7 @@ private:
css::uno::Reference<css::drawing::framework::XPane> > ViewResourceDescriptor;
typedef ::std::map<rtl::OUString, ViewResourceDescriptor> ResourceContainer;
::boost::scoped_ptr<ResourceContainer> mpResourceCache;
-
+
PresenterViewFactory (
const css::uno::Reference<css::uno::XComponentContext>& rxContext,
const css::uno::Reference<css::frame::XController>& rxController,
diff --git a/sdext/source/presenter/PresenterWindowManager.cxx b/sdext/source/presenter/PresenterWindowManager.cxx
index 821e927dcb5b..72cb68c0628c 100644
--- a/sdext/source/presenter/PresenterWindowManager.cxx
+++ b/sdext/source/presenter/PresenterWindowManager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -95,9 +95,9 @@ namespace {
const ::boost::shared_ptr<PresenterAnimator>& rpAnimator);
virtual ~ModeChangeAnimationStarter (void);
virtual void SAL_CALL disposing (void);
-
+
// XConfigurationChangeListener
-
+
virtual void SAL_CALL notifyConfigurationChange (
const com::sun::star::drawing::framework::ConfigurationChangeEvent& rEvent)
throw (com::sun::star::uno::RuntimeException);
@@ -202,7 +202,7 @@ void PresenterWindowManager::SetParentPane (
}
mxParentWindow = NULL;
mxParentCanvas = NULL;
-
+
if (rxPane.is())
{
mxParentWindow = rxPane->getWindow();
@@ -225,7 +225,7 @@ void PresenterWindowManager::SetParentPane (
if (xPeer.is())
xPeer->setBackground(util::Color(0xff000000));
}
-}
+}
@@ -235,7 +235,7 @@ void PresenterWindowManager::SetTheme (const ::boost::shared_ptr<PresenterTheme>
mpTheme = rpTheme;
// Get background bitmap or background color from the theme.
-
+
if (mpTheme.get() != NULL)
{
mpBackgroundBitmap = mpTheme->GetBitmap(OUString(), A2S("Background"));
@@ -266,7 +266,7 @@ void PresenterWindowManager::NotifyPaneCreation (
if (xBorderWindow.is() && ! rpDescriptor->mbIsSprite)
{
Invalidate();
-
+
xBorderWindow->addWindowListener(this);
xBorderWindow->addFocusListener(this);
#ifndef ENABLE_PANE_RESIZING
@@ -289,7 +289,7 @@ void PresenterWindowManager::NotifyViewCreation (const Reference<XView>& rxView)
if (pDescriptor.get() != NULL)
{
Layout();
-
+
mpPresenterController->GetPaintManager()->Invalidate(
pDescriptor->mxContentWindow,
(sal_Int16)(awt::InvalidateStyle::TRANSPARENT
@@ -365,7 +365,7 @@ void PresenterWindowManager::SetPaneBorderPainter (
//----- XWindowListener -------------------------------------------------------
-
+
void SAL_CALL PresenterWindowManager::windowResized (const awt::WindowEvent& rEvent)
throw (RuntimeException)
{
@@ -426,7 +426,7 @@ void SAL_CALL PresenterWindowManager::windowHidden (const lang::EventObject& rEv
//----- XPaintListener --------------------------------------------------------
-
+
void SAL_CALL PresenterWindowManager::windowPaint (const awt::PaintEvent& rEvent)
throw (RuntimeException)
{
@@ -555,7 +555,7 @@ void SAL_CALL PresenterWindowManager::disposing (const lang::EventObject& rEvent
bool PresenterWindowManager::PaintChildren (const awt::PaintEvent& rEvent) const
{
bool bChildInvalidated (false);
-
+
// Call windowPaint on all children that lie in or touch the
// update rectangle.
PresenterPaneContainer::PaneList::const_iterator iPane;
@@ -614,7 +614,7 @@ bool PresenterWindowManager::PaintChildren (const awt::PaintEvent& rEvent) const
void PresenterWindowManager::SetLayoutMode (const LayoutMode eMode)
{
OSL_ASSERT(mpPresenterController.get() != NULL);
-
+
if (meLayoutMode != eMode
|| mbIsSlideSorterActive
|| mbIsHelpViewActive)
@@ -763,15 +763,15 @@ void PresenterWindowManager::RestoreViewMode (void)
case 0:
SetViewMode(VM_Standard);
break;
-
+
case 1:
SetViewMode(VM_Notes);
break;
-
+
case 2:
SetViewMode(VM_SlideOverview);
break;
- }
+ }
}
@@ -864,7 +864,7 @@ void PresenterWindowManager::Layout (void)
default:
LayoutStandardMode();
break;
-
+
case LM_Notes:
LayoutNotesMode();
break;
@@ -910,7 +910,7 @@ void PresenterWindowManager::LayoutStandardMode (void)
aCurrentSlideOuterBox.Width,
aCurrentSlideOuterBox.Height);
}
-
+
// For the next slide view calculate the outer height from the outer
// width. This takes into acount the slide aspect ratio and thus has to
@@ -940,7 +940,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
awt::Rectangle aBox = mxParentWindow->getPosSize();
const geometry::RealRectangle2D aToolBarBox (LayoutToolBar());
-
+
const double nGoldenRatio ((1 + sqrt(5.0)) / 2);
const double nGap (20);
const double nPrimaryWidth (aBox.Width / nGoldenRatio);
@@ -948,7 +948,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
const double nTertiaryWidth (nSecondaryWidth / nGoldenRatio);
double nSlidePreviewTop (0);
double nNotesViewBottom (aToolBarBox.Y1 - nGap);
-
+
// The notes view has no fixed aspect ratio.
PresenterPaneContainer::SharedPaneDescriptor pPane (
mpPaneContainer->FindPaneURL(PresenterPaneFactory::msNotesPaneURL));
@@ -967,7 +967,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
aNotesViewOuterSize.Height);
nNotesViewBottom = nSlidePreviewTop + aNotesViewOuterSize.Height;
}
-
+
// For the current slide view calculate the outer height from the outer
// width. This takes into acount the slide aspect ratio and thus has to
// go over the inner pane size.
@@ -984,7 +984,7 @@ void PresenterWindowManager::LayoutNotesMode (void)
aCurrentSlideOuterBox.Width,
aCurrentSlideOuterBox.Height);
}
-
+
// For the next slide view calculate the outer height from the outer
// width. This takes into acount the slide aspect ratio and thus has to
@@ -1153,7 +1153,7 @@ void PresenterWindowManager::NotifyLayoutModeChange (void)
{
}
}
- }
+ }
}
@@ -1183,7 +1183,7 @@ void PresenterWindowManager::NotifyDisposing (void)
{
}
}
- }
+ }
}
@@ -1192,7 +1192,7 @@ void PresenterWindowManager::NotifyDisposing (void)
void PresenterWindowManager::LayoutUnknownMode (void)
{
awt::Rectangle aBox = mxParentWindow->getPosSize();
-
+
PresenterPaneContainer::PaneList::const_iterator iPane;
PresenterPaneContainer::PaneList::const_iterator iEnd (mpPaneContainer->maPanes.end());
for (iPane=mpPaneContainer->maPanes.begin(); iPane!=iEnd; ++iPane)
@@ -1261,7 +1261,7 @@ void PresenterWindowManager::PaintBackground (const awt::Rectangle& rUpdateBox)
Reference<rendering::XGraphicDevice> xDevice (mxParentCanvas->getDevice());
if ( ! xDevice.is())
return;
-
+
// Create a polygon for the background and for clipping.
Reference<rendering::XPolyPolygon2D> xBackgroundPolygon (
PresenterGeometryHelper::CreatePolygon(mxParentWindow->getPosSize(), xDevice));
@@ -1282,7 +1282,7 @@ void PresenterWindowManager::PaintBackground (const awt::Rectangle& rUpdateBox)
if (mpBackgroundBitmap.get() != NULL)
{
ProvideBackgroundBitmap();
-
+
if (mxScaledBackgroundBitmap.is())
{
Sequence<rendering::Texture> aTextures (1);
@@ -1411,7 +1411,7 @@ void PresenterWindowManager::UpdateWindowList (void)
Reference<lang::XComponent> xComponent (mxPaneBorderManager, UNO_QUERY);
if (xComponent.is())
xComponent->dispose();
-
+
Reference<lang::XMultiComponentFactory> xFactory (mxComponentContext->getServiceManager());
if (xFactory.is())
{
@@ -1560,7 +1560,7 @@ ModeChangeAnimationStarter::ModeChangeAnimationStarter (
mpSprite->SetFactory(rxCanvas);
mpSprite->Resize(geometry::RealSize2D(aWindowSize.Width, aWindowSize.Height));
mpSprite->SetPriority(10);
-
+
// Fill it with the background inside the bounding box.
const rendering::ViewState aViewState (
geometry::AffineMatrix2D(1,0,0, 0,1,0),
@@ -1612,7 +1612,7 @@ void SAL_CALL ModeChangeAnimationStarter::notifyConfigurationChange (
throw (com::sun::star::uno::RuntimeException)
{
(void)rEvent;
-
+
// Start the actual animation.
mpAnimator->AddAnimation(SharedPresenterAnimation(new ModeChangeAnimation(
mpSprite,
diff --git a/sdext/source/presenter/PresenterWindowManager.hxx b/sdext/source/presenter/PresenterWindowManager.hxx
index 997565bf0a8c..828b72b5f518 100644
--- a/sdext/source/presenter/PresenterWindowManager.hxx
+++ b/sdext/source/presenter/PresenterWindowManager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -109,7 +109,7 @@ public:
css::uno::Reference<css::rendering::XCanvas> GetParentCanvas (void) const;
void Update (void);
void Layout (void);
-
+
void SetSlideSorterState (bool bIsActive);
void SetHelpViewState (bool bIsActive);
@@ -138,12 +138,12 @@ public:
const css::uno::Reference<css::document::XEventListener>& rxListener);
void RemoveLayoutListener (
const css::uno::Reference<css::document::XEventListener>& rxListener);
-
+
// XWindowListener
-
+
virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -155,7 +155,7 @@ public:
// XPaintListener
-
+
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent)
throw (css::uno::RuntimeException);
@@ -182,7 +182,7 @@ public:
virtual void SAL_CALL focusLost (const css::awt::FocusEvent& rEvent)
throw (css::uno::RuntimeException);
-
+
// XEventListener
diff --git a/sdext/source/presenter/makefile.mk b/sdext/source/presenter/makefile.mk
index 696d0e5e764f..9e25e3468dbf 100755
--- a/sdext/source/presenter/makefile.mk
+++ b/sdext/source/presenter/makefile.mk
@@ -372,7 +372,7 @@ PHONYDESC=.PHONY
$(DESCRIPTION) $(PHONYDESC) : $$(@:f)
@-$(MKDIRHIER) $(@:d)
@echo LAST_WITH_LANG=$(WITH_LANG) > $(ZIP1DIR)_lang_track.mk
- $(TYPE) description.tmp | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@
+ $(TYPE) description.xml | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@
.ENDIF # "$(ENABLE_PRESENTER_SCREEN)" != "NO"
diff --git a/sdext/source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu b/sdext/source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu
index 22316392f807..d7400f55c52a 100644
--- a/sdext/source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu
+++ b/sdext/source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu
@@ -2,7 +2,7 @@
<!--***********************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@
</node>
</node>
</node>
- <node oor:name="b" oor:op="replace">
+ <node oor:name="b" oor:op="replace">
<prop oor:name="Name"><value>NextEffect</value></prop>
<prop oor:name="Type"><value>Button</value></prop>
<node oor:name="Normal">
@@ -91,7 +91,7 @@
</node>
</node>
</node>
- <node oor:name="c" oor:op="replace">
+ <node oor:name="c" oor:op="replace">
<prop oor:name="Name"><value>Notes</value></prop>
<prop oor:name="Type"><value>Button</value></prop>
<node oor:name="Normal">
@@ -199,7 +199,7 @@
</node>
</node>
</node>
- <node oor:name="i" oor:op="replace">
+ <node oor:name="i" oor:op="replace">
<prop oor:name="Type"><value>PresentationTimeLabel</value></prop>
<node oor:name="Normal">
<node oor:name="Font">