...to match what is recorded in the .component files Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
77 lines
2.9 KiB
C++
77 lines
2.9 KiB
C++
/* -*- 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/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
*/
|
|
|
|
#ifndef INCLUDED_TOOLKIT_AWT_VCLXPOINTER_HXX
|
|
#define INCLUDED_TOOLKIT_AWT_VCLXPOINTER_HXX
|
|
|
|
|
|
#include <com/sun/star/awt/XPointer.hpp>
|
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
|
#include <com/sun/star/lang/XUnoTunnel.hpp>
|
|
#include <cppuhelper/implbase.hxx>
|
|
#include <osl/mutex.hxx>
|
|
|
|
#include <vcl/pointr.hxx>
|
|
|
|
|
|
// class VCLXPointer
|
|
|
|
|
|
class VCLXPointer: public cppu::WeakImplHelper<
|
|
css::awt::XPointer, css::lang::XUnoTunnel, css::lang::XServiceInfo>
|
|
{
|
|
private:
|
|
::osl::Mutex maMutex;
|
|
Pointer maPointer;
|
|
|
|
protected:
|
|
::osl::Mutex& GetMutex() { return maMutex; }
|
|
|
|
public:
|
|
VCLXPointer();
|
|
virtual ~VCLXPointer();
|
|
|
|
const Pointer& GetPointer() const { return maPointer; }
|
|
|
|
// ::com::sun::star::lang::XUnoTunnel
|
|
static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
|
|
static VCLXPointer* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace );
|
|
sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
// ::com::sun::star::awt::XPointer
|
|
void SAL_CALL setType( sal_Int32 nType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
sal_Int32 SAL_CALL getType( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
OUString SAL_CALL getImplementationName()
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
|
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // INCLUDED_TOOLKIT_AWT_VCLXPOINTER_HXX
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|