26df302a67
2007/09/14 16:19:51 lo 1.3.58.1: #i81589# xml serialization
72 lines
2.3 KiB
C++
72 lines
2.3 KiB
C++
/*************************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: childlist.hxx,v $
|
|
*
|
|
* $Revision: 1.4 $
|
|
*
|
|
* last change: $Author: ihi $ $Date: 2007-11-19 16:41:50 $
|
|
*
|
|
* The Contents of this file are made available subject to
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
*
|
|
* This library 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 for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*
|
|
************************************************************************/
|
|
|
|
#ifndef _CHILDLIST_HXX
|
|
#define _CHILDLIST_HXX
|
|
|
|
#include <map>
|
|
#include <sal/types.h>
|
|
#include <cppuhelper/implbase1.hxx>
|
|
#include <com/sun/star/uno/Reference.h>
|
|
#include <com/sun/star/uno/Exception.hpp>
|
|
#include <com/sun/star/xml/dom/XNode.hpp>
|
|
#include <com/sun/star/xml/dom/XNodeList.hpp>
|
|
#include "node.hxx"
|
|
#include "libxml/tree.h"
|
|
|
|
using namespace rtl;
|
|
using namespace com::sun::star::uno;
|
|
using namespace com::sun::star::xml::dom;
|
|
|
|
namespace DOM
|
|
{
|
|
class CChildList : public cppu::WeakImplHelper1< XNodeList >
|
|
{
|
|
private:
|
|
const xmlNodePtr m_pNode;
|
|
public:
|
|
CChildList(const CNode* base);
|
|
/**
|
|
The number of nodes in the list.
|
|
*/
|
|
virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException);
|
|
/**
|
|
Returns the indexth item in the collection.
|
|
*/
|
|
virtual Reference< XNode > SAL_CALL item(sal_Int32 index) throw (RuntimeException);
|
|
};
|
|
}
|
|
|
|
#endif
|