2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01: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 .
|
|
|
|
*/
|
2013-03-20 18:29:12 +01:00
|
|
|
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_SOURCE_CORE_ACCESS_ACCHYPERTEXTDATA_HXX
|
|
|
|
#define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCHYPERTEXTDATA_HXX
|
2003-06-12 07:07:24 +00:00
|
|
|
|
|
|
|
#include <cppuhelper/weakref.hxx>
|
|
|
|
#include <map>
|
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwTextAttr;
|
2003-06-12 07:07:24 +00:00
|
|
|
namespace com { namespace sun { namespace star {
|
|
|
|
namespace accessibility { class XAccessibleHyperlink; }
|
|
|
|
} } }
|
|
|
|
|
2014-11-17 10:48:32 -02:00
|
|
|
class SwAccessibleHyperTextData
|
2003-06-12 07:07:24 +00:00
|
|
|
{
|
2014-11-17 10:48:32 -02:00
|
|
|
public:
|
2015-08-03 13:30:17 +02:00
|
|
|
typedef const SwTextAttr * key_type;
|
2015-10-21 12:42:16 +02:00
|
|
|
typedef css::uno::WeakReference< css::accessibility::XAccessibleHyperlink > mapped_type;
|
2014-11-17 10:48:32 -02:00
|
|
|
typedef std::pair<const key_type,mapped_type> value_type;
|
2016-06-15 13:44:28 +01:00
|
|
|
typedef std::less< const SwTextAttr * > key_compare;
|
2014-11-17 10:48:32 -02:00
|
|
|
typedef std::map<key_type,mapped_type,key_compare>::iterator iterator;
|
|
|
|
private:
|
|
|
|
std::map<key_type,mapped_type,key_compare> maMap;
|
2003-06-12 07:07:24 +00:00
|
|
|
public:
|
|
|
|
SwAccessibleHyperTextData();
|
|
|
|
~SwAccessibleHyperTextData();
|
2014-11-17 10:48:32 -02:00
|
|
|
|
|
|
|
iterator begin() { return maMap.begin(); }
|
|
|
|
iterator end() { return maMap.end(); }
|
|
|
|
iterator find(const key_type& key) { return maMap.find(key); }
|
2017-08-11 11:36:47 +02:00
|
|
|
template<class... Args>
|
|
|
|
std::pair<iterator,bool> emplace(Args&&... args) { return maMap.emplace(std::forward<Args>(args)...); }
|
2003-06-12 07:07:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|