2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-12 17:21:24 +00:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2014-05-09 20:04:08 +02:00
|
|
|
#ifndef INCLUDED_XMLOFF_UNOATRCN_HXX
|
|
|
|
#define INCLUDED_XMLOFF_UNOATRCN_HXX
|
|
|
|
|
2013-11-09 15:30:56 -06:00
|
|
|
#include <sal/config.h>
|
|
|
|
#include <xmloff/dllapi.h>
|
|
|
|
#include <sal/types.h>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
|
|
|
|
#include <com/sun/star/container/XNameContainer.hpp>
|
|
|
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
|
|
|
#include <com/sun/star/lang/XUnoTunnel.hpp>
|
|
|
|
|
|
|
|
#include <cppuhelper/implbase3.hxx>
|
|
|
|
|
|
|
|
extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SvUnoAttributeContainer_CreateInstance();
|
|
|
|
|
2001-07-04 12:36:04 +00:00
|
|
|
class SvXMLAttrContainerData;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2005-01-11 13:20:23 +00:00
|
|
|
class XMLOFF_DLLPUBLIC SvUnoAttributeContainer:
|
|
|
|
public ::cppu::WeakAggImplHelper3<
|
|
|
|
::com::sun::star::lang::XServiceInfo,
|
|
|
|
::com::sun::star::lang::XUnoTunnel,
|
|
|
|
::com::sun::star::container::XNameContainer >
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
private:
|
2001-07-04 12:36:04 +00:00
|
|
|
SvXMLAttrContainerData* mpContainer;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
SAL_DLLPRIVATE sal_uInt16 getIndexByName(const OUString& aName )
|
2005-01-11 13:20:23 +00:00
|
|
|
const;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
public:
|
2001-07-04 12:36:04 +00:00
|
|
|
SvUnoAttributeContainer( SvXMLAttrContainerData* pContainer = NULL );
|
2000-09-18 16:07:07 +00:00
|
|
|
virtual ~SvUnoAttributeContainer();
|
|
|
|
|
2001-07-04 12:36:04 +00:00
|
|
|
SvXMLAttrContainerData* GetContainerImpl() const { return mpContainer; }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::container::XElementAccess
|
2015-04-14 12:44:47 +02:00
|
|
|
virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
|
|
|
virtual sal_Bool SAL_CALL hasElements() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::container::XNameAccess
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual ::com::sun::star::uno::Any SAL_CALL getByName(const OUString& aName) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
2015-04-14 12:44:47 +02:00
|
|
|
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getElementNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual sal_Bool SAL_CALL hasByName(const OUString& aName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::container::XNameReplace
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL replaceByName(const OUString& aName, const ::com::sun::star::uno::Any& aElement) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::container::XNameContainer
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL insertByName(const OUString& aName, const ::com::sun::star::uno::Any& aElement) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL removeByName(const OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2015-04-14 12:44:47 +02:00
|
|
|
virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
|
|
|
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
friend ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SvUnoAttributeContainer_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr ) throw( ::com::sun::star::uno::Exception );
|
|
|
|
};
|
|
|
|
|
2014-05-09 20:04:08 +02:00
|
|
|
#endif
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|