diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-02-26 09:28:02 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-02-26 09:28:02 +0000 |
commit | d2d66d7882d1cb30de8f015c7f7d9674f00555ae (patch) | |
tree | 4f64181a847507164f77b386c280491e337d6672 /sw/inc/IDocumentListItems.hxx | |
parent | 27a63adf01d9664ba6171dc86d4920fd3bfe159d (diff) |
INTEGRATION: CWS swcrossref01_DEV300 (1.1.2); FILE ADDED
2007/11/22 13:21:38 od 1.1.2.1: #i83479# new interface <IDocumentListItems>
Diffstat (limited to 'sw/inc/IDocumentListItems.hxx')
-rw-r--r-- | sw/inc/IDocumentListItems.hxx | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sw/inc/IDocumentListItems.hxx b/sw/inc/IDocumentListItems.hxx new file mode 100644 index 000000000000..53b39f72f6e6 --- /dev/null +++ b/sw/inc/IDocumentListItems.hxx @@ -0,0 +1,69 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: IDocumentListItems.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: obo $ $Date: 2008-02-26 10:28:02 $ + * + * 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 IDOCUMENTLISTITEMS_HXX_INCLUDED +#define IDOCUMENTLISTITEMS_HXX_INCLUDED + +#include <vector> +#include <tools/string.hxx> +class SwNodeNum; + +/** Provides numbered items of a document. +*/ +class IDocumentListItems +{ +public: + typedef ::std::vector< const SwNodeNum* > tSortedNodeNumList; + + virtual void addListItem( const SwNodeNum& rNodeNum ) = 0; + virtual void removeListItem( const SwNodeNum& rNodeNum ) = 0; + + virtual String getListItemText( const SwNodeNum& rNodeNum, + const bool bWithNumber = true, + const bool bWithSpacesForLevel = false ) const = 0; + + /** get vector of all list items + */ + virtual void getListItems( IDocumentListItems::tSortedNodeNumList& orNodeNumList ) const = 0; + + /** get vector of all list items, which are numbered + */ + virtual void getNumItems( IDocumentListItems::tSortedNodeNumList& orNodeNumList ) const = 0; + +protected: + virtual ~IDocumentListItems() {}; +}; + + #endif // IDOCUMENTLISTITEMS_HXX_INCLUDED |