20#ifndef INCLUDED_SDEXT_SOURCE_MINIMIZER_GRAPHICCOLLECTOR_HXX
21#define INCLUDED_SDEXT_SOURCE_MINIMIZER_GRAPHICCOLLECTOR_HXX
23#include <com/sun/star/uno/XComponentContext.hpp>
24#include <com/sun/star/awt/DeviceInfo.hpp>
25#include <com/sun/star/text/GraphicCrop.hpp>
26#include <com/sun/star/drawing/XShape.hpp>
27#include <com/sun/star/beans/XPropertySet.hpp>
28#include <com/sun/star/awt/Size.hpp>
29#include <com/sun/star/graphic/XGraphic.hpp>
30#include <com/sun/star/frame/XModel.hpp>
42 GraphicSettings(
bool bJPEGCompression, sal_Int32 nJPEGQuality,
bool bRemoveCropArea,
43 sal_Int32 nImageResolution,
bool bEmbedLinkedGraphics )
57 css::uno::Reference< css::drawing::XShape >
mxShape;
60 css::uno::Reference< css::graphic::XGraphic >
mxGraphic;
80 static const css::awt::DeviceInfo&
GetDeviceInfo(
const css::uno::Reference< css::uno::XComponentContext >& rxFact );
81 static css::awt::Size
GetOriginalSize(
const css::uno::Reference< css::uno::XComponentContext >& rxMSF,
82 const css::uno::Reference< css::graphic::XGraphic >& rxGraphic );
85 static void CollectGraphics(
const css::uno::Reference< css::uno::XComponentContext >& rxMSF,
const css::uno::Reference< css::frame::XModel >& rxModel,
86 const GraphicSettings& rGraphicSettings, std::vector< GraphicEntity >& io_rGraphicList );
88 static void CountGraphics(
const css::uno::Reference< css::uno::XComponentContext >& rxMSF,
const css::uno::Reference< css::frame::XModel >& rxModel,
static css::awt::Size GetOriginalSize(const css::uno::Reference< css::uno::XComponentContext > &rxMSF, const css::uno::Reference< css::graphic::XGraphic > &rxGraphic)
static void CollectGraphics(const css::uno::Reference< css::uno::XComponentContext > &rxMSF, const css::uno::Reference< css::frame::XModel > &rxModel, const GraphicSettings &rGraphicSettings, std::vector< GraphicEntity > &io_rGraphicList)
static const css::awt::DeviceInfo & GetDeviceInfo(const css::uno::Reference< css::uno::XComponentContext > &rxFact)
static void CountGraphics(const css::uno::Reference< css::uno::XComponentContext > &rxMSF, const css::uno::Reference< css::frame::XModel > &rxModel, const GraphicSettings &rGraphicSettings, sal_Int32 &rGraphics)
std::vector< GraphicUser > maUser
css::awt::Size maLogicalSize
GraphicEntity(const GraphicUser &rUser)
css::text::GraphicCrop maGraphicCropLogic
css::uno::Reference< css::beans::XPropertySet > mxPagePropertySet
css::text::GraphicCrop maGraphicCropLogic
css::uno::Reference< css::graphic::XGraphic > mxGraphic
css::awt::Size maLogicalSize
css::uno::Reference< css::drawing::XShape > mxShape
css::uno::Reference< css::beans::XPropertySet > mxPropertySet
GraphicSettings(bool bJPEGCompression, sal_Int32 nJPEGQuality, bool bRemoveCropArea, sal_Int32 nImageResolution, bool bEmbedLinkedGraphics)
bool mbEmbedLinkedGraphics
sal_Int32 mnImageResolution