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/source/dialog/compressgraphicdialog.cxx | |
parent | 00438a182db9d0edcc2339c8a35a79280c60d1a5 (diff) |
Remove 2 unused methods from CompressGraphicsDialog
Change-Id: I51ce4a231a43dc32a36303d293c718ee44b371a1
Diffstat (limited to 'svx/source/dialog/compressgraphicdialog.cxx')
-rw-r--r-- | svx/source/dialog/compressgraphicdialog.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
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: */ |