[Libreoffice-commits] .: svx/inc svx/source unusedcode.easy
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 14 13:37:22 PST 2012
svx/inc/svx/compressgraphicdialog.hxx | 2 -
svx/source/dialog/compressgraphicdialog.cxx | 29 ----------------------------
unusedcode.easy | 2 -
3 files changed, 33 deletions(-)
New commits:
commit 0d14248a51a3995171d9295d55a465072775e305
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Dec 14 22:35:37 2012 +0100
Remove 2 unused methods from CompressGraphicsDialog
Change-Id: I51ce4a231a43dc32a36303d293c718ee44b371a1
diff --git a/svx/inc/svx/compressgraphicdialog.hxx b/svx/inc/svx/compressgraphicdialog.hxx
index 9c24ee5..20d15ab 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 7543907..7232936 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: */
diff --git a/unusedcode.easy b/unusedcode.easy
index c6815be..7ef0ae2 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1,6 +1,4 @@
Application::GetDisplayScreenName(unsigned int)
-CompressGraphicsDialog::CompressGraphicsDialog(Window*, Graphic const&, Size&, Rectangle&, SfxBindings&)
-CompressGraphicsDialog::GetCompressedGraphic()
FontSelectPattern::FontSelectPattern(PhysicalFontFace const&, Size const&, float, int, bool)
Line::Intersection(Rectangle const&, Line&) const
PoHeader::PoHeader()
More information about the Libreoffice-commits
mailing list