2015-09-09 15:08:26 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
2015-09-24 07:39:16 +02:00
|
|
|
|
|
|
|
#ifndef INCLUDED_DESKTOP_INC_LIB_INIT_HXX
|
|
|
|
#define INCLUDED_DESKTOP_INC_LIB_INIT_HXX
|
|
|
|
|
2015-09-09 15:08:26 +03:00
|
|
|
#include <LibreOfficeKit/LibreOfficeKit.h>
|
|
|
|
#include <com/sun/star/frame/XStorable.hpp>
|
|
|
|
#include <com/sun/star/lang/XComponent.hpp>
|
2015-09-17 09:21:43 +01:00
|
|
|
#include <memory>
|
2016-01-25 12:29:16 +01:00
|
|
|
#include <map>
|
2015-09-09 15:08:26 +03:00
|
|
|
#include "../../source/inc/desktopdllapi.h"
|
2015-09-25 01:06:31 +02:00
|
|
|
#include <osl/thread.h>
|
2015-09-09 15:08:26 +03:00
|
|
|
|
2016-01-25 12:29:16 +01:00
|
|
|
class LOKInteractionHandler;
|
|
|
|
|
2015-09-09 15:08:26 +03:00
|
|
|
namespace desktop {
|
|
|
|
struct DESKTOP_DLLPUBLIC LibLODocument_Impl : public _LibreOfficeKitDocument
|
|
|
|
{
|
2015-09-23 07:48:10 +02:00
|
|
|
css::uno::Reference<css::lang::XComponent> mxComponent;
|
2015-09-17 09:21:43 +01:00
|
|
|
std::shared_ptr< LibreOfficeKitDocumentClass > m_pDocumentClass;
|
2015-11-03 13:20:06 +01:00
|
|
|
LibreOfficeKitCallback mpCallback;
|
|
|
|
void *mpCallbackData;
|
2015-09-09 15:08:26 +03:00
|
|
|
|
2015-09-23 07:48:10 +02:00
|
|
|
explicit LibLODocument_Impl(const css::uno::Reference <css::lang::XComponent> &xComponent);
|
2015-09-09 15:08:26 +03:00
|
|
|
~LibLODocument_Impl();
|
|
|
|
};
|
2015-09-25 01:06:31 +02:00
|
|
|
|
|
|
|
struct DESKTOP_DLLPUBLIC LibLibreOffice_Impl : public _LibreOfficeKit
|
|
|
|
{
|
|
|
|
OUString maLastExceptionMsg;
|
|
|
|
std::shared_ptr< LibreOfficeKitClass > m_pOfficeClass;
|
|
|
|
oslThread maThread;
|
|
|
|
LibreOfficeKitCallback mpCallback;
|
|
|
|
void *mpCallbackData;
|
2016-01-25 12:29:16 +01:00
|
|
|
std::map<OString, rtl::Reference<LOKInteractionHandler>> mInteractionMap;
|
2015-09-25 01:06:31 +02:00
|
|
|
|
|
|
|
LibLibreOffice_Impl();
|
2016-01-25 12:29:16 +01:00
|
|
|
~LibLibreOffice_Impl();
|
2015-09-25 01:06:31 +02:00
|
|
|
};
|
2015-09-09 15:08:26 +03:00
|
|
|
}
|
2015-09-23 07:48:10 +02:00
|
|
|
|
2015-09-24 07:39:16 +02:00
|
|
|
#endif
|
|
|
|
|
2015-09-23 07:48:10 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|