1*353d8f4dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*353d8f4dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*353d8f4dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*353d8f4dSAndrew Rist * distributed with this work for additional information 6*353d8f4dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*353d8f4dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*353d8f4dSAndrew Rist * "License"); you may not use this file except in compliance 9*353d8f4dSAndrew Rist * with the License. You may obtain a copy of the License at 10*353d8f4dSAndrew Rist * 11*353d8f4dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*353d8f4dSAndrew Rist * 13*353d8f4dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*353d8f4dSAndrew Rist * software distributed under the License is distributed on an 15*353d8f4dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*353d8f4dSAndrew Rist * KIND, either express or implied. See the License for the 17*353d8f4dSAndrew Rist * specific language governing permissions and limitations 18*353d8f4dSAndrew Rist * under the License. 19*353d8f4dSAndrew Rist * 20*353d8f4dSAndrew Rist *************************************************************/ 21*353d8f4dSAndrew Rist 22*353d8f4dSAndrew Rist 23cdf0e10cSrcweir #ifndef _SFXDOCINF_HXX 24cdf0e10cSrcweir #define _SFXDOCINF_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include "sal/config.h" 27cdf0e10cSrcweir #include "sfx2/dllapi.h" 28cdf0e10cSrcweir #include "sal/types.h" 29cdf0e10cSrcweir #include <com/sun/star/uno/Reference.hxx> 30cdf0e10cSrcweir 31cdf0e10cSrcweir 32cdf0e10cSrcweir class GDIMetaFile; 33cdf0e10cSrcweir class SotStorage; 34cdf0e10cSrcweir 35cdf0e10cSrcweir namespace com { namespace sun { namespace star { 36cdf0e10cSrcweir namespace document { 37cdf0e10cSrcweir class XDocumentProperties; 38cdf0e10cSrcweir } 39cdf0e10cSrcweir } } } 40cdf0e10cSrcweir 41cdf0e10cSrcweir 42cdf0e10cSrcweir namespace sfx2 { 43cdf0e10cSrcweir 44cdf0e10cSrcweir /** load document meta-data from OLE stream 45cdf0e10cSrcweir 46cdf0e10cSrcweir @param i_xDocProps Document meta-data 47cdf0e10cSrcweir @param i_pStorage OLE Storage 48cdf0e10cSrcweir */ 49cdf0e10cSrcweir sal_uInt32 SFX2_DLLPUBLIC LoadOlePropertySet( 50cdf0e10cSrcweir ::com::sun::star::uno::Reference< 51cdf0e10cSrcweir ::com::sun::star::document::XDocumentProperties> i_xDocProps, 52cdf0e10cSrcweir SotStorage* i_pStorage ); 53cdf0e10cSrcweir 54cdf0e10cSrcweir /** save document meta-data to OLE stream 55cdf0e10cSrcweir 56cdf0e10cSrcweir @param i_xDocProps Document meta-data 57cdf0e10cSrcweir @param i_pStorage OLE Storage 58cdf0e10cSrcweir @param i_pThumb Thumbnail: preview bitmap 59cdf0e10cSrcweir @param i_pGuid Blob: Guid blob ("_PID_GUID") 60cdf0e10cSrcweir @param i_pHyperlinks Blob: Hyperlink blob ("_PID_HLINKS") 61cdf0e10cSrcweir */ 62cdf0e10cSrcweir bool SFX2_DLLPUBLIC SaveOlePropertySet( 63cdf0e10cSrcweir ::com::sun::star::uno::Reference< 64cdf0e10cSrcweir ::com::sun::star::document::XDocumentProperties> i_xDocProps, 65cdf0e10cSrcweir SotStorage* i_pStorage, 66cdf0e10cSrcweir const ::com::sun::star::uno::Sequence<sal_uInt8> * i_pThumb = 0, 67cdf0e10cSrcweir const ::com::sun::star::uno::Sequence<sal_uInt8> * i_pGuid = 0, 68cdf0e10cSrcweir const ::com::sun::star::uno::Sequence<sal_uInt8> * i_pHyperlinks = 0); 69cdf0e10cSrcweir 70cdf0e10cSrcweir 71cdf0e10cSrcweir ::com::sun::star::uno::Sequence<sal_uInt8> SFX2_DLLPUBLIC convertMetaFile( 72cdf0e10cSrcweir GDIMetaFile* i_pThumb); 73cdf0e10cSrcweir 74cdf0e10cSrcweir } // namespace sfx2 75cdf0e10cSrcweir 76cdf0e10cSrcweir #endif 77cdf0e10cSrcweir 78