LibreOffice Module embedserv (master) 1
embeddocaccess.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#define OLESERV_SAVEOBJECT 1
23#define OLESERV_CLOSE 2
24#define OLESERV_NOTIFY 3
25#define OLESERV_NOTIFYCLOSING 4
26#define OLESERV_SHOWOBJECT 5
27#define OLESERV_DEACTIVATE 6
28
29#include <oleidl.h>
30#if defined __clang__
31#pragma clang diagnostic push
32#pragma clang diagnostic ignored "-Wall"
33#pragma clang diagnostic ignored "-Wextra"
34#pragma clang diagnostic ignored "-Wmicrosoft"
35#endif
36#include <atldbcli.h>
37#if defined __clang__
38#pragma clang diagnostic pop
39#endif
40#include <cppuhelper/weak.hxx>
41
44{
45private:
47
48public:
52
54
56
58
59 void ExecuteMethod( sal_Int16 nId );
60};
61
63{
64 ::osl::Mutex m_aMutex;
66
67 public:
69 : m_pEmbedDocument( pDoc )
70 {}
71
73 void ClearEmbedDocument();
74};
75
76/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
LockedEmbedDocument_Impl GetEmbedDocument()
EmbeddedDocumentInstanceAccess_Impl(EmbedDocument_Impl *pDoc)
EmbedDocument_Impl * m_pEmbedDocument
LockedEmbedDocument_Impl & operator=(const LockedEmbedDocument_Impl &aDocLock)
EmbedDocument_Impl * GetEmbedDocument()
void ExecuteMethod(sal_Int16 nId)