1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: jpeg.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
35 #include <vcl/graph.hxx>
38 #include <bf_svtools/fltcall.hxx>
40 #ifndef _COM_SUN_STAR_UNO_SEQUENCE_H_
41 #include <com/sun/star/uno/Sequence.h>
43 #ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
44 #include <com/sun/star/beans/PropertyValue.hpp>
46 #ifndef _COM_SUN_STAR_TASK_XSTATUSINDICATOR_HPP_
47 #include <com/sun/star/task/XStatusIndicator.hpp>
70 class JPEGReader
: public GraphicReader
75 BitmapWriteAccess
* pAcc
;
76 BitmapWriteAccess
* pAcc1
;
83 Graphic
CreateIntermediateGraphic( const Bitmap
& rBitmap
, long nLines
);
88 void* CreateBitmap( void* JPEGCreateBitmapParam
);
94 JPEGReader( SvStream
& rStm
, void* pCallData
, sal_Bool bSetLogSize
);
95 virtual ~JPEGReader();
98 ReadState
Read( Graphic
& rGraphic
);
109 BitmapReadAccess
* pAcc
;
116 com::sun::star::uno::Reference
< com::sun::star::task::XStatusIndicator
> xStatusIndicator
;
120 void* GetScanline( long nY
);
122 JPEGWriter( SvStream
& rOStm
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>* pFilterData
);
125 BOOL
Write( const Graphic
& rGraphic
);
128 #endif // _JPEGPRIVATE
130 // ---------------------
131 // - Import/ExportJPEG -
132 // ---------------------
134 BOOL
ImportJPEG( SvStream
& rStream
, Graphic
& rGraphic
, void* pCallerData
, sal_Int32 nImportFlags
);
136 BOOL
ExportJPEG( SvStream
& rStream
, const Graphic
& rGraphic
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>* pFilterData
);