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 .
|
|
|
|
*/
|
2007-04-11 12:31:39 +00:00
|
|
|
|
2013-10-23 19:09:35 +02:00
|
|
|
#ifndef INCLUDED_XMLOFF_XMLCNIMP_HXX
|
|
|
|
#define INCLUDED_XMLOFF_XMLCNIMP_HXX
|
2007-04-11 12:31:39 +00:00
|
|
|
|
2013-11-09 15:30:56 -06:00
|
|
|
#include <xmloff/dllapi.h>
|
2013-10-22 15:58:57 +03:00
|
|
|
#include <sal/types.h>
|
2011-08-10 15:14:10 +01:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
2007-04-11 12:31:39 +00:00
|
|
|
|
2013-10-22 21:50:37 +03:00
|
|
|
class SvXMLAttrCollection;
|
2007-04-11 12:31:39 +00:00
|
|
|
|
|
|
|
class XMLOFF_DLLPUBLIC SvXMLAttrContainerData
|
|
|
|
{
|
2011-08-10 15:14:10 +01:00
|
|
|
private:
|
|
|
|
boost::scoped_ptr<SvXMLAttrCollection> pimpl;
|
2007-04-11 12:31:39 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
SvXMLAttrContainerData();
|
2011-08-10 15:14:10 +01:00
|
|
|
SvXMLAttrContainerData(const SvXMLAttrContainerData &rCopy);
|
2007-04-11 12:31:39 +00:00
|
|
|
~SvXMLAttrContainerData();
|
|
|
|
|
2014-01-14 21:14:47 +01:00
|
|
|
bool operator ==( const SvXMLAttrContainerData& rCmp ) const;
|
2007-04-11 12:31:39 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
sal_Bool AddAttr( const OUString& rLName, const OUString& rValue );
|
|
|
|
sal_Bool AddAttr( const OUString& rPrefix, const OUString& rNamespace,
|
|
|
|
const OUString& rLName, const OUString& rValue );
|
|
|
|
sal_Bool AddAttr( const OUString& rPrefix,
|
|
|
|
const OUString& rLName,
|
|
|
|
const OUString& rValue );
|
2007-04-11 12:31:39 +00:00
|
|
|
|
2011-08-10 15:14:10 +01:00
|
|
|
size_t GetAttrCount() const;
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString GetAttrNamespace( size_t i ) const;
|
|
|
|
const OUString GetAttrPrefix( size_t i ) const;
|
|
|
|
const OUString& GetAttrLName( size_t i ) const;
|
|
|
|
const OUString& GetAttrValue( size_t i ) const;
|
2007-04-11 12:31:39 +00:00
|
|
|
|
2011-08-10 15:14:10 +01:00
|
|
|
sal_uInt16 GetFirstNamespaceIndex() const;
|
|
|
|
sal_uInt16 GetNextNamespaceIndex( sal_uInt16 nIdx ) const;
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& GetNamespace( sal_uInt16 i ) const;
|
|
|
|
const OUString& GetPrefix( sal_uInt16 i ) const;
|
2007-04-11 12:31:39 +00:00
|
|
|
|
2011-08-10 15:14:10 +01:00
|
|
|
sal_Bool SetAt( size_t i,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rLName, const OUString& rValue );
|
2011-08-10 15:14:10 +01:00
|
|
|
sal_Bool SetAt( size_t i,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rPrefix, const OUString& rNamespace,
|
|
|
|
const OUString& rLName, const OUString& rValue );
|
2011-08-10 15:14:10 +01:00
|
|
|
sal_Bool SetAt( size_t i,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rPrefix,
|
|
|
|
const OUString& rLName,
|
|
|
|
const OUString& rValue );
|
2007-04-11 12:31:39 +00:00
|
|
|
|
2011-08-10 15:14:10 +01:00
|
|
|
void Remove( size_t i );
|
2007-04-11 12:31:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|