2006-02-01 18:05:32 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 03:59:37 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2006-02-01 18:05:32 +00:00
|
|
|
*
|
2008-04-11 03:59:37 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2006-02-01 18:05:32 +00:00
|
|
|
*
|
2008-04-11 03:59:37 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2006-02-01 18:05:32 +00:00
|
|
|
*
|
2008-04-11 03:59:37 +00:00
|
|
|
* $RCSfile: mtnotification.hxx,v $
|
|
|
|
* $Revision: 1.5 $
|
2006-02-01 18:05:32 +00:00
|
|
|
*
|
2008-04-11 03:59:37 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2006-02-01 18:05:32 +00:00
|
|
|
*
|
2008-04-11 03:59:37 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2006-02-01 18:05:32 +00:00
|
|
|
*
|
2008-04-11 03:59:37 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2006-02-01 18:05:32 +00:00
|
|
|
*
|
2008-04-11 03:59:37 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2006-02-01 18:05:32 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#include <com/sun/star/uno/Reference.hxx>
|
|
|
|
#include <com/sun/star/embed/XEmbeddedObject.hpp>
|
|
|
|
#include <cppuhelper/weakref.hxx>
|
|
|
|
|
2007-01-23 06:33:07 +00:00
|
|
|
#include <rtl/ref.hxx>
|
|
|
|
|
2006-02-01 18:05:32 +00:00
|
|
|
class OleEmbeddedObject;
|
|
|
|
|
2007-01-23 06:33:07 +00:00
|
|
|
#define OLECOMP_ONVIEWCHANGE 1
|
|
|
|
#define OLECOMP_ONCLOSE 2
|
|
|
|
|
2006-02-01 18:05:32 +00:00
|
|
|
class MainThreadNotificationRequest
|
|
|
|
{
|
|
|
|
OleEmbeddedObject* m_pObject;
|
|
|
|
::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XEmbeddedObject > m_xObject;
|
2007-01-23 06:33:07 +00:00
|
|
|
|
|
|
|
sal_uInt16 m_nNotificationType;
|
2006-10-13 10:30:47 +00:00
|
|
|
sal_uInt32 m_nAspect;
|
2006-02-01 18:05:32 +00:00
|
|
|
|
|
|
|
public:
|
2007-01-23 06:33:07 +00:00
|
|
|
MainThreadNotificationRequest( const ::rtl::Reference< OleEmbeddedObject >& xObj, sal_uInt16 nNotificationType, sal_uInt32 nAspect = 0 );
|
2006-02-01 18:05:32 +00:00
|
|
|
|
|
|
|
static long worker( MainThreadNotificationRequest*, MainThreadNotificationRequest* );
|
|
|
|
|
|
|
|
static void mainThreadWorkerStart( MainThreadNotificationRequest* );
|
|
|
|
};
|
|
|
|
|
|
|
|
|