diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-14 22:35:37 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-12-14 22:35:37 +0100 |
commit | 0d14248a51a3995171d9295d55a465072775e305 (patch) | |
tree | 57df235e81e5ba31f07bd6da027ac66a18f6c932 /svx | |
parent | Remove some newly tagged unused methods (diff) | |
download | core-0d14248a51a3995171d9295d55a465072775e305.tar.gz core-0d14248a51a3995171d9295d55a465072775e305.zip |
Remove 2 unused methods from CompressGraphicsDialog
Change-Id: I51ce4a231a43dc32a36303d293c718ee44b371a1
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/compressgraphicdialog.hxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/compressgraphicdialog.cxx | 29 |
2 files changed, 0 insertions, 31 deletions
diff --git a/svx/inc/svx/compressgraphicdialog.hxx b/svx/inc/svx/compressgraphicdialog.hxx index 9c24ee57daec..20d15ab583b8 100644 --- a/svx/inc/svx/compressgraphicdialog.hxx +++ b/svx/inc/svx/compressgraphicdialog.hxx @@ -80,11 +80,9 @@ private: public: CompressGraphicsDialog( Window* pParent, SdrGrafObj* pGraphicObj, SfxBindings& rBindings ); - CompressGraphicsDialog( Window* pParent, const Graphic& rGraphic, Size& rViewSize100mm, Rectangle& rCropRectangle, SfxBindings& rBindings ); virtual ~CompressGraphicsDialog(); SdrGrafObj* GetCompressedSdrGrafObj(); - Graphic GetCompressedGraphic(); }; #endif diff --git a/svx/source/dialog/compressgraphicdialog.cxx b/svx/source/dialog/compressgraphicdialog.cxx index 75439073a207..72329365182f 100644 --- a/svx/source/dialog/compressgraphicdialog.cxx +++ b/svx/source/dialog/compressgraphicdialog.cxx @@ -48,19 +48,6 @@ CompressGraphicsDialog::CompressGraphicsDialog( Window* pParent, SdrGrafObj* pGr Initialize(); } -CompressGraphicsDialog::CompressGraphicsDialog( Window* pParent, const Graphic& rGraphic, Size& rViewSize100mm, Rectangle& rCropRectangle, SfxBindings& rBindings ) : - ModalDialog ( pParent, "CompressGraphicDialog", "svx/ui/compressgraphicdialog.ui" ), - m_pGraphicObj ( NULL ), - m_aGraphic ( rGraphic ), - m_aViewSize100mm ( rViewSize100mm ), - m_aCropRectangle ( rCropRectangle ), - m_rBindings ( rBindings ), - m_dResolution ( 96.0 ) -{ - Initialize(); -} - - void CompressGraphicsDialog::Initialize() { get(m_pFixedText2, "label-original-size"); @@ -346,20 +333,4 @@ SdrGrafObj* CompressGraphicsDialog::GetCompressedSdrGrafObj() return NULL; } -Graphic CompressGraphicsDialog::GetCompressedGraphic() -{ - if ( m_dResolution > 0 ) - { - SvMemoryStream aMemStream; - aMemStream.SetVersion( SOFFICE_FILEFORMAT_CURRENT ); - Compress( aMemStream ); - aMemStream.Seek( STREAM_SEEK_TO_BEGIN ); - Graphic aResultGraphic; - GraphicFilter& rFilter = GraphicFilter::GetGraphicFilter(); - rFilter.ImportGraphic( aResultGraphic, String("import"), aMemStream ); - return aResultGraphic; - } - return m_aGraphic; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |