LibreOffice Module sdext (master)  1
Functions
impoptimizer.cxx File Reference
#include "impoptimizer.hxx"
#include "pppoptimizer.hxx"
#include "graphiccollector.hxx"
#include "pagecollector.hxx"
#include "informationdialog.hxx"
#include <vector>
#include <com/sun/star/util/URL.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/awt/XWindow.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/graphic/GraphicProvider.hpp>
#include <com/sun/star/graphic/XGraphicProvider.hpp>
#include <com/sun/star/drawing/XShapes.hpp>
#include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
#include <com/sun/star/drawing/XMasterPagesSupplier.hpp>
#include <com/sun/star/presentation/XPresentationPage.hpp>
#include <com/sun/star/document/XFilter.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/graphic/GraphicType.hpp>
#include <com/sun/star/io/XStream.hpp>
#include <com/sun/star/io/XSeekable.hpp>
#include <com/sun/star/io/TempFile.hpp>
#include <com/sun/star/frame/XComponentLoader.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
Include dependency graph for impoptimizer.cxx:

Go to the source code of this file.

Functions

static void ImpExtractCustomShow (const Reference< XModel > &rxModel, const OUString &rCustomShowName)
 
static void ImpDeleteUnusedMasterPages (const Reference< XModel > &rxModel)
 
static void ImpDeleteHiddenSlides (const Reference< XModel > &rxModel)
 
static void ImpDeleteNotesPages (const Reference< XModel > &rxModel)
 
static void ImpConvertOLE (const Reference< XModel > &rxModel, sal_Int32 nOLEOptimizationType)
 
static void ImpCompressGraphic (Reference< XGraphicProvider > const &rxGraphicProvider, const Reference< XGraphic > &rxGraphic, Reference< XOutputStream > const &rxOutputStream, const OUString &rDestMimeType, const awt::Size &rLogicalSize, sal_Int32 nJPEGQuality, sal_Int32 nImageResolution, bool bRemoveCropping, const text::GraphicCrop &rGraphicCropLogic)
 
static Reference< XGraphic > ImpCompressGraphic (const Reference< XComponentContext > &rxContext, const Reference< XGraphic > &xGraphic, const awt::Size &aLogicalSize, const text::GraphicCrop &aGraphicCropLogic, const GraphicSettings &rGraphicSettings)
 
static void CompressGraphics (ImpOptimizer &rOptimizer, const Reference< XComponentContext > &rxContext, const GraphicSettings &rGraphicSettings, std::vector< GraphicCollector::GraphicEntity > &rGraphicList)
 
static void DispatchURL (const Reference< XComponentContext > &xContext, const OUString &sURL, const Reference< XFrame > &xFrame)
 

Function Documentation

static void CompressGraphics ( ImpOptimizer rOptimizer,
const Reference< XComponentContext > &  rxContext,
const GraphicSettings rGraphicSettings,
std::vector< GraphicCollector::GraphicEntity > &  rGraphicList 
)
static
static void DispatchURL ( const Reference< XComponentContext > &  xContext,
const OUString &  sURL,
const Reference< XFrame > &  xFrame 
)
static

Definition at line 547 of file impoptimizer.cxx.

References Exception, and xDispatch.

static void ImpCompressGraphic ( Reference< XGraphicProvider > const &  rxGraphicProvider,
const Reference< XGraphic > &  rxGraphic,
Reference< XOutputStream > const &  rxOutputStream,
const OUString &  rDestMimeType,
const awt::Size rLogicalSize,
sal_Int32  nJPEGQuality,
sal_Int32  nImageResolution,
bool  bRemoveCropping,
const text::GraphicCrop &  rGraphicCropLogic 
)
static

Definition at line 198 of file impoptimizer.cxx.

References Exception.

Referenced by CompressGraphics(), and ImpCompressGraphic().

static Reference< XGraphic > ImpCompressGraphic ( const Reference< XComponentContext > &  rxContext,
const Reference< XGraphic > &  xGraphic,
const awt::Size aLogicalSize,
const text::GraphicCrop &  aGraphicCropLogic,
const GraphicSettings rGraphicSettings 
)
static
static void ImpConvertOLE ( const Reference< XModel > &  rxModel,
sal_Int32  nOLEOptimizationType 
)
static

Definition at line 150 of file impoptimizer.cxx.

References Any, Exception, i, and xGraphic.

Referenced by ImpOptimizer::Optimize().

static void ImpDeleteHiddenSlides ( const Reference< XModel > &  rxModel)
static

Definition at line 100 of file impoptimizer.cxx.

References bVisible, Exception, and i.

Referenced by ImpOptimizer::Optimize().

static void ImpDeleteNotesPages ( const Reference< XModel > &  rxModel)
static

Definition at line 127 of file impoptimizer.cxx.

References Any, Exception, and i.

Referenced by ImpOptimizer::Optimize().

static void ImpDeleteUnusedMasterPages ( const Reference< XModel > &  rxModel)
static

Definition at line 85 of file impoptimizer.cxx.

References PageCollector::CollectMasterPages().

Referenced by ImpOptimizer::Optimize().

static void ImpExtractCustomShow ( const Reference< XModel > &  rxModel,
const OUString &  rCustomShowName 
)
static

Definition at line 68 of file impoptimizer.cxx.

References PageCollector::CollectNonCustomShowPages(), and Exception.

Referenced by ImpOptimizer::Optimize().