diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-09-15 12:23:31 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-09-15 12:24:25 +0100 |
commit | 06853ea625b81fa8635da4bbbdb86e54eecc603d (patch) | |
tree | 8eef5fef8cfddd36526bbfa4efe1858102f04243 /filter | |
parent | ditch ByteString::Fill (diff) | |
download | core-06853ea625b81fa8635da4bbbdb86e54eecc603d.tar.gz core-06853ea625b81fa8635da4bbbdb86e54eecc603d.zip |
always show option for ODF inside PDF, even if import not installed
As everyone knows ODF is good for your soul, so this must be the
right approach.
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/pdf/impdialog.cxx | 48 |
1 files changed, 4 insertions, 44 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx index 597c8ba2723e..67ba921c15ae 100644 --- a/filter/source/pdf/impdialog.cxx +++ b/filter/source/pdf/impdialog.cxx @@ -579,50 +579,10 @@ void ImpPDFTabGeneralPage::SetFilterConfigItem( const ImpPDFTabDialog* paParent maCbExportEmptyPages.Check( !paParent->mbIsSkipEmptyPages ); - Reference< XMultiServiceFactory > xFactory = paParent->getServiceFactory(); - Reference< XInterface > xIfc; - if( xFactory.is() ) - { - xIfc = xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.documents.PDFDetector" ) ) ); - } - if( xIfc.is() ) - { - maCbAddStream.Show( sal_True ); - maCbAddStream.Check( paParent->mbAddStream ); - maFtAddStreamDescription.Show( sal_True ); - } - else - { - maCbAddStream.Show( sal_False ); - maCbAddStream.Check( sal_False ); - maFtAddStreamDescription.Show( sal_False ); - //Move all following elements up... - long nAddStreamHeight = - maCbAddStream.LogicToPixel( Size( 13, 13 ), MAP_APPFONT ).Height() - + maFtAddStreamDescription.LogicToPixel( Size( 11, 11 ), MAP_APPFONT ).Height(); - Point aPos = maCbPDFA1b.GetPosPixel(); - maCbPDFA1b.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - aPos = maCbTaggedPDF.GetPosPixel(); - maCbTaggedPDF.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - aPos = maCbExportFormFields.GetPosPixel(); - maCbExportFormFields.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - aPos = maFtFormsFormat.GetPosPixel(); - maFtFormsFormat.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - aPos = maLbFormsFormat.GetPosPixel(); - maLbFormsFormat.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - aPos = maCbAllowDuplicateFieldNames.GetPosPixel(); - maCbAllowDuplicateFieldNames.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - aPos = maCbExportBookmarks.GetPosPixel(); - maCbExportBookmarks.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - aPos = maCbExportNotes.GetPosPixel(); - maCbExportNotes.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - aPos = maCbExportNotesPages.GetPosPixel(); - maCbExportNotesPages.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - aPos = maCbExportEmptyPages.GetPosPixel(); - maCbExportEmptyPages.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - aPos = maCbEmbedStandardFonts.GetPosPixel(); - maCbEmbedStandardFonts.SetPosPixel( Point( aPos.X(), aPos.Y() - nAddStreamHeight ) ); - } + maCbAddStream.Show( sal_True ); + maCbAddStream.Check( paParent->mbAddStream ); + maFtAddStreamDescription.Show( sal_True ); + maCbAddStream.SetToggleHdl( LINK( this, ImpPDFTabGeneralPage, ToggleAddStreamHdl ) ); // init addstream dependencies ToggleAddStreamHdl( NULL ); |