34 mpOriginalShape(
std::move( xOriginalShape )),
36 maTreeNode( rTreeNode ),
40 "ShapeSubset::ShapeSubset(): Invalid shape manager" );
45 mpOriginalShape( rOriginalSubset->mpSubsetShape ?
46 rOriginalSubset->mpSubsetShape :
47 rOriginalSubset->mpOriginalShape ),
49 maTreeNode( rTreeNode ),
53 "ShapeSubset::ShapeSubset(): Invalid shape manager" );
55 (rTreeNode.
getStartIndex() >= rOriginalSubset->maTreeNode.getStartIndex() &&
56 rTreeNode.
getEndIndex() <= rOriginalSubset->maTreeNode.getEndIndex()),
57 "ShapeSubset::ShapeSubset(): Subset is bigger than parent" );
62 mpOriginalShape(
std::move( xOriginalShape )),
68 "ShapeSubset::ShapeSubset(): Invalid shape manager" );
78 catch (
const uno::Exception&)
ShapeManagerSharedPtr mpShapeManager
This class represents kind of a DOM tree node for shape text.
sal_Int32 getStartIndex() const
sal_Int32 getEndIndex() const
void disableSubsetShape()
Disable the subset shape.
SubsettableShapeManagerSharedPtr mpShapeManager
AttributableShapeSharedPtr mpSubsetShape
AttributableShapeSharedPtr mpOriginalShape
bool isFullSet() const
Query whether this subset actually is none, but contains the whole original shape's content.
ShapeSubset(AttributableShapeSharedPtr xOriginalShape, const DocTreeNode &rTreeNode, SubsettableShapeManagerSharedPtr xSubsetManager)
Create a subset directly from a Shape.
void enableSubsetShape()
Enable the subset shape.
AttributableShapeSharedPtr const & getSubsetShape() const
Get the actual subset shape.
const DocTreeNode & getSubset() const
Query subset this object represents.
#define TOOLS_WARN_EXCEPTION(area, stream)
#define ENSURE_OR_THROW(c, m)
::std::shared_ptr< SubsettableShapeManager > SubsettableShapeManagerSharedPtr
::std::shared_ptr< ShapeSubset > ShapeSubsetSharedPtr
::std::shared_ptr< AttributableShape > AttributableShapeSharedPtr