1*0d63794cSAndrew Rist /************************************************************** 2*0d63794cSAndrew Rist * 3*0d63794cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*0d63794cSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*0d63794cSAndrew Rist * distributed with this work for additional information 6*0d63794cSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*0d63794cSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*0d63794cSAndrew Rist * "License"); you may not use this file except in compliance 9*0d63794cSAndrew Rist * with the License. You may obtain a copy of the License at 10*0d63794cSAndrew Rist * 11*0d63794cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*0d63794cSAndrew Rist * 13*0d63794cSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*0d63794cSAndrew Rist * software distributed under the License is distributed on an 15*0d63794cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*0d63794cSAndrew Rist * KIND, either express or implied. See the License for the 17*0d63794cSAndrew Rist * specific language governing permissions and limitations 18*0d63794cSAndrew Rist * under the License. 19*0d63794cSAndrew Rist * 20*0d63794cSAndrew Rist *************************************************************/ 21*0d63794cSAndrew 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 31cdf0e10cSrcweir /* Transform PICT into the a Window BMP. 32cdf0e10cSrcweir 33cdf0e10cSrcweir Returns true if the conversion was successful false 34cdf0e10cSrcweir otherwise. 35cdf0e10cSrcweir */ 36cdf0e10cSrcweir bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict, 37cdf0e10cSrcweir com::sun::star::uno::Sequence<sal_Int8>& aBmp); 38cdf0e10cSrcweir 39cdf0e10cSrcweir /* Transform a Windows BMP to a PICT. 40cdf0e10cSrcweir 41cdf0e10cSrcweir Returns true if the conversion was successful false 42cdf0e10cSrcweir otherwise. 43cdf0e10cSrcweir */ 44cdf0e10cSrcweir bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp, 45cdf0e10cSrcweir com::sun::star::uno::Sequence<sal_Int8>& aPict); 46cdf0e10cSrcweir 47cdf0e10cSrcweir #define PICTImageFileType ((NSBitmapImageFileType)~0) 48cdf0e10cSrcweir 49cdf0e10cSrcweir bool ImageToBMP( com::sun::star::uno::Sequence<sal_Int8>& aPict, 50cdf0e10cSrcweir com::sun::star::uno::Sequence<sal_Int8>& aBmp, 51cdf0e10cSrcweir NSBitmapImageFileType eInFormat); 52cdf0e10cSrcweir 53cdf0e10cSrcweir bool BMPToImage( com::sun::star::uno::Sequence<sal_Int8>& aBmp, 54cdf0e10cSrcweir com::sun::star::uno::Sequence<sal_Int8>& aPict, 55cdf0e10cSrcweir NSBitmapImageFileType eOutFormat 56cdf0e10cSrcweir ); 57cdf0e10cSrcweir 58cdf0e10cSrcweir #endif 59