xref: /aoo42x/main/sfx2/inc/sfx2/docinf.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SFXDOCINF_HXX
28 #define _SFXDOCINF_HXX
29 
30 #include "sal/config.h"
31 #include "sfx2/dllapi.h"
32 #include "sal/types.h"
33 #include <com/sun/star/uno/Reference.hxx>
34 
35 
36 class GDIMetaFile;
37 class SotStorage;
38 
39 namespace com { namespace sun { namespace star {
40     namespace document {
41         class XDocumentProperties;
42     }
43 } } }
44 
45 
46 namespace sfx2 {
47 
48 /** load document meta-data from OLE stream
49 
50     @param  i_xDocProps     Document meta-data
51     @param  i_pStorage      OLE Storage
52  */
53 sal_uInt32 SFX2_DLLPUBLIC LoadOlePropertySet(
54     ::com::sun::star::uno::Reference<
55         ::com::sun::star::document::XDocumentProperties> i_xDocProps,
56     SotStorage* i_pStorage );
57 
58 /** save document meta-data to OLE stream
59 
60     @param  i_xDocProps     Document meta-data
61     @param  i_pStorage      OLE Storage
62     @param  i_pThumb        Thumbnail: preview bitmap
63     @param  i_pGuid         Blob: Guid blob ("_PID_GUID")
64     @param  i_pHyperlinks   Blob: Hyperlink blob ("_PID_HLINKS")
65  */
66 bool SFX2_DLLPUBLIC SaveOlePropertySet(
67     ::com::sun::star::uno::Reference<
68         ::com::sun::star::document::XDocumentProperties> i_xDocProps,
69     SotStorage* i_pStorage,
70     const ::com::sun::star::uno::Sequence<sal_uInt8> * i_pThumb = 0,
71     const ::com::sun::star::uno::Sequence<sal_uInt8> * i_pGuid = 0,
72     const ::com::sun::star::uno::Sequence<sal_uInt8> * i_pHyperlinks = 0);
73 
74 
75 ::com::sun::star::uno::Sequence<sal_uInt8> SFX2_DLLPUBLIC convertMetaFile(
76     GDIMetaFile* i_pThumb);
77 
78 } // namespace sfx2
79 
80 #endif
81 
82