10d63794cSAndrew Rist /**************************************************************
20d63794cSAndrew Rist  *
30d63794cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
40d63794cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
50d63794cSAndrew Rist  * distributed with this work for additional information
60d63794cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
70d63794cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
80d63794cSAndrew Rist  * "License"); you may not use this file except in compliance
90d63794cSAndrew Rist  * with the License.  You may obtain a copy of the License at
100d63794cSAndrew Rist  *
110d63794cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
120d63794cSAndrew Rist  *
130d63794cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
140d63794cSAndrew Rist  * software distributed under the License is distributed on an
150d63794cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
160d63794cSAndrew Rist  * KIND, either express or implied.  See the License for the
170d63794cSAndrew Rist  * specific language governing permissions and limitations
180d63794cSAndrew Rist  * under the License.
190d63794cSAndrew Rist  *
200d63794cSAndrew Rist  *************************************************************/
210d63794cSAndrew Rist 
22cdf0e10cSrcweir #ifndef INCLUDED_PICTTOBMPFLT_HXX
23cdf0e10cSrcweir #define INCLUDED_PICTTOBMPFLT_HXX
24cdf0e10cSrcweir 
25cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx>
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <premac.h>
28cdf0e10cSrcweir #include <Cocoa/Cocoa.h>
29cdf0e10cSrcweir #include <postmac.h>
30cdf0e10cSrcweir 
31*45fd3b9aSArmin Le Grand /** Transform an image from PICT to PNG format
32cdf0e10cSrcweir 
33cdf0e10cSrcweir    Returns true if the conversion was successful false
34cdf0e10cSrcweir    otherwise.
35cdf0e10cSrcweir  */
36*45fd3b9aSArmin Le Grand bool PICTtoPNG(com::sun::star::uno::Sequence<sal_Int8>& rPictData,
37*45fd3b9aSArmin Le Grand 			   com::sun::star::uno::Sequence<sal_Int8>& rPngData);
38cdf0e10cSrcweir 
39*45fd3b9aSArmin Le Grand /** Transform an image from PNG to a PICT format
40cdf0e10cSrcweir 
41cdf0e10cSrcweir    Returns true if the conversion was successful false
42cdf0e10cSrcweir    otherwise.
43cdf0e10cSrcweir  */
44*45fd3b9aSArmin Le Grand bool PNGtoPICT(com::sun::star::uno::Sequence<sal_Int8>& rPngData,
45*45fd3b9aSArmin Le Grand 			   com::sun::star::uno::Sequence<sal_Int8>& rPictData);
46cdf0e10cSrcweir 
47cdf0e10cSrcweir #define PICTImageFileType ((NSBitmapImageFileType)~0)
48cdf0e10cSrcweir 
49*45fd3b9aSArmin Le Grand bool ImageToPNG( com::sun::star::uno::Sequence<sal_Int8>& rImgData,
50*45fd3b9aSArmin Le Grand 			     com::sun::star::uno::Sequence<sal_Int8>& rPngData,
51cdf0e10cSrcweir 			     NSBitmapImageFileType eInFormat);
52cdf0e10cSrcweir 
53*45fd3b9aSArmin Le Grand bool PNGToImage( com::sun::star::uno::Sequence<sal_Int8>& rPngData,
54*45fd3b9aSArmin Le Grand 			     com::sun::star::uno::Sequence<sal_Int8>& rImgData,
55*45fd3b9aSArmin Le Grand 			     NSBitmapImageFileType eOutFormat);
56cdf0e10cSrcweir 
57cdf0e10cSrcweir #endif
58*45fd3b9aSArmin Le Grand 
59