LibreOffice Module slideshow (master) 1
doctreenodesupplier.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_DOCTREENODESUPPLIER_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_INC_DOCTREENODESUPPLIER_HXX
22
23#include "doctreenode.hxx"
24
25
26/* Definition of DocTreeNodeSupplier interface */
27
28namespace slideshow::internal
29 {
51 {
52 public:
63 virtual sal_Int32 getNumberOfTreeNodes( DocTreeNode::NodeType eNodeType ) const = 0; // throw ShapeLoadFailedException;
64
85 virtual DocTreeNode getTreeNode( sal_Int32 nNodeIndex,
86 DocTreeNode::NodeType eNodeType ) const = 0; // throw ShapeLoadFailedException;
87
106 virtual sal_Int32 getNumberOfSubsetTreeNodes( const DocTreeNode& rParentNode,
107 DocTreeNode::NodeType eNodeType ) const = 0; // throw ShapeLoadFailedException;
108
133 virtual DocTreeNode getSubsetTreeNode( const DocTreeNode& rParentNode,
134 sal_Int32 nNodeIndex,
135 DocTreeNode::NodeType eNodeType ) const = 0; // throw ShapeLoadFailedException;
136
137 protected:
139 };
140
141}
142
143#endif // INCLUDED_SLIDESHOW_SOURCE_INC_DOCTREENODESUPPLIER_HXX
144
145/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Interface to retrieve DocTreeNodes from subsettable shapes.
virtual sal_Int32 getNumberOfSubsetTreeNodes(const DocTreeNode &rParentNode, DocTreeNode::NodeType eNodeType) const =0
Query number of tree nodes of the given type this subset contains.
virtual sal_Int32 getNumberOfTreeNodes(DocTreeNode::NodeType eNodeType) const =0
Query number of tree nodes of the given type this shape contains.
virtual DocTreeNode getTreeNode(sal_Int32 nNodeIndex, DocTreeNode::NodeType eNodeType) const =0
Create DocTreeNode from shape.
virtual DocTreeNode getSubsetTreeNode(const DocTreeNode &rParentNode, sal_Int32 nNodeIndex, DocTreeNode::NodeType eNodeType) const =0
Create DocTreeNode from shape subset.
This class represents kind of a DOM tree node for shape text.
Definition: doctreenode.hxx:45
NodeType
Type of shape entity represented by this node.
Definition: doctreenode.hxx:49