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