lok: calc - send other views our selection in their co-ordinates.
[LibreOffice.git] / include / sfx2 / docinf.hxx
blob23cca9ce1025d7de3dab525f8339350bccc50ae3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SFX2_DOCINF_HXX
20 #define INCLUDED_SFX2_DOCINF_HXX
22 #include <sal/config.h>
23 #include <sfx2/dllapi.h>
24 #include <sal/types.h>
25 #include <vcl/errcode.hxx>
28 class GDIMetaFile;
29 class SotStorage;
31 namespace com { namespace sun { namespace star {
32 namespace document {
33 class XDocumentProperties;
35 } } }
37 namespace com::sun::star::uno { template <typename > class Reference; }
38 namespace com::sun::star::uno { template <typename > class Sequence; }
41 namespace sfx2 {
43 /** load document meta-data from OLE stream
45 @param i_xDocProps Document meta-data
46 @param i_pStorage OLE Storage
48 ErrCode SFX2_DLLPUBLIC LoadOlePropertySet(
49 const css::uno::Reference< css::document::XDocumentProperties>& i_xDocProps,
50 SotStorage* i_pStorage );
52 /** save document meta-data to OLE stream
54 @param i_xDocProps Document meta-data
55 @param i_pStorage OLE Storage
56 @param i_pThumb Thumbnail: preview bitmap
57 @param i_pGuid Blob: Guid blob ("_PID_GUID")
58 @param i_pHyperlinks Blob: Hyperlink blob ("_PID_HLINKS")
60 bool SFX2_DLLPUBLIC SaveOlePropertySet(
61 const css::uno::Reference< css::document::XDocumentProperties>& i_xDocProps,
62 SotStorage* i_pStorage,
63 const css::uno::Sequence<sal_Int8> * i_pThumb = nullptr,
64 const css::uno::Sequence<sal_Int8> * i_pGuid = nullptr,
65 const css::uno::Sequence<sal_Int8> * i_pHyperlinks = nullptr);
68 css::uno::Sequence<sal_Int8> SFX2_DLLPUBLIC convertMetaFile(
69 GDIMetaFile const * i_pThumb);
71 } // namespace sfx2
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */