LibreOffice Module starmath (master) 1
|
#include <visitors.hxx>
Public Member Functions | |
SmSelectionRectanglesVisitor (OutputDevice &rDevice, SmNode *pTree) | |
virtual | ~SmSelectionRectanglesVisitor ()=default |
void | Visit (SmTextNode *pNode) override |
const tools::Rectangle & | GetSelection () |
void | Visit (SmTableNode *pNode) override |
void | Visit (SmBraceNode *pNode) override |
void | Visit (SmBracebodyNode *pNode) override |
void | Visit (SmOperNode *pNode) override |
void | Visit (SmAlignNode *pNode) override |
void | Visit (SmAttributeNode *pNode) override |
void | Visit (SmFontNode *pNode) override |
void | Visit (SmUnHorNode *pNode) override |
void | Visit (SmBinHorNode *pNode) override |
void | Visit (SmBinVerNode *pNode) override |
void | Visit (SmBinDiagonalNode *pNode) override |
void | Visit (SmSubSupNode *pNode) override |
void | Visit (SmMatrixNode *pNode) override |
void | Visit (SmPlaceNode *pNode) override |
void | Visit (SmTextNode *pNode) override |
void | Visit (SmSpecialNode *pNode) override |
void | Visit (SmGlyphSpecialNode *pNode) override |
void | Visit (SmMathSymbolNode *pNode) override |
void | Visit (SmBlankNode *pNode) override |
void | Visit (SmErrorNode *pNode) override |
void | Visit (SmLineNode *pNode) override |
void | Visit (SmExpressionNode *pNode) override |
void | Visit (SmPolyLineNode *pNode) override |
void | Visit (SmRootNode *pNode) override |
void | Visit (SmRootSymbolNode *pNode) override |
void | Visit (SmRectangleNode *pNode) override |
void | Visit (SmVerticalBraceNode *pNode) override |
void | Visit (SmTableNode *pNode) override |
void | Visit (SmBraceNode *pNode) override |
void | Visit (SmBracebodyNode *pNode) override |
void | Visit (SmOperNode *pNode) override |
void | Visit (SmAlignNode *pNode) override |
void | Visit (SmAttributeNode *pNode) override |
void | Visit (SmFontNode *pNode) override |
void | Visit (SmUnHorNode *pNode) override |
void | Visit (SmBinHorNode *pNode) override |
void | Visit (SmBinVerNode *pNode) override |
void | Visit (SmBinDiagonalNode *pNode) override |
void | Visit (SmSubSupNode *pNode) override |
void | Visit (SmMatrixNode *pNode) override |
void | Visit (SmPlaceNode *pNode) override |
void | Visit (SmTextNode *pNode) override |
void | Visit (SmSpecialNode *pNode) override |
void | Visit (SmGlyphSpecialNode *pNode) override |
void | Visit (SmMathSymbolNode *pNode) override |
void | Visit (SmBlankNode *pNode) override |
void | Visit (SmErrorNode *pNode) override |
void | Visit (SmLineNode *pNode) override |
void | Visit (SmExpressionNode *pNode) override |
void | Visit (SmPolyLineNode *pNode) override |
void | Visit (SmRootNode *pNode) override |
void | Visit (SmRootSymbolNode *pNode) override |
void | Visit (SmRectangleNode *pNode) override |
void | Visit (SmVerticalBraceNode *pNode) override |
virtual void | Visit (SmTableNode *pNode)=0 |
virtual void | Visit (SmBraceNode *pNode)=0 |
virtual void | Visit (SmBracebodyNode *pNode)=0 |
virtual void | Visit (SmOperNode *pNode)=0 |
virtual void | Visit (SmAlignNode *pNode)=0 |
virtual void | Visit (SmAttributeNode *pNode)=0 |
virtual void | Visit (SmFontNode *pNode)=0 |
virtual void | Visit (SmUnHorNode *pNode)=0 |
virtual void | Visit (SmBinHorNode *pNode)=0 |
virtual void | Visit (SmBinVerNode *pNode)=0 |
virtual void | Visit (SmBinDiagonalNode *pNode)=0 |
virtual void | Visit (SmSubSupNode *pNode)=0 |
virtual void | Visit (SmMatrixNode *pNode)=0 |
virtual void | Visit (SmPlaceNode *pNode)=0 |
virtual void | Visit (SmTextNode *pNode)=0 |
virtual void | Visit (SmSpecialNode *pNode)=0 |
virtual void | Visit (SmGlyphSpecialNode *pNode)=0 |
virtual void | Visit (SmMathSymbolNode *pNode)=0 |
virtual void | Visit (SmBlankNode *pNode)=0 |
virtual void | Visit (SmErrorNode *pNode)=0 |
virtual void | Visit (SmLineNode *pNode)=0 |
virtual void | Visit (SmExpressionNode *pNode)=0 |
virtual void | Visit (SmPolyLineNode *pNode)=0 |
virtual void | Visit (SmRootNode *pNode)=0 |
virtual void | Visit (SmRootSymbolNode *pNode)=0 |
virtual void | Visit (SmRectangleNode *pNode)=0 |
virtual void | Visit (SmVerticalBraceNode *pNode)=0 |
Private Member Functions | |
void | ExtendSelectionArea (const tools::Rectangle &rArea) |
Extend the area that must be selected More... | |
void | DefaultVisit (SmNode *pNode) override |
Default visiting method. More... | |
void | VisitChildren (SmNode *pNode) |
Visit the children of a given pNode. More... | |
Private Attributes | |
OutputDevice & | mrDev |
Reference to drawing device. More... | |
tools::Rectangle | maSelectionArea |
The current area that is selected. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SmDefaultingVisitor | |
~SmDefaultingVisitor () | |
virtual void | DefaultVisit (SmNode *pNode)=0 |
Method invoked by Visit methods by default. More... | |
Protected Member Functions inherited from SmVisitor | |
~SmVisitor () | |
Definition at line 429 of file visitors.hxx.
SmSelectionRectanglesVisitor::SmSelectionRectanglesVisitor | ( | OutputDevice & | rDevice, |
SmNode * | pTree | ||
) |
Definition at line 1812 of file visitors.cxx.
References SmNode::Accept(), and SAL_WARN_IF.
|
virtualdefault |
|
overrideprivatevirtual |
Default visiting method.
Implements SmDefaultingVisitor.
Definition at line 1821 of file visitors.cxx.
References SmRect::AsRectangle(), ExtendSelectionArea(), SmNode::IsSelected(), and VisitChildren().
|
inlineprivate |
Extend the area that must be selected
Definition at line 445 of file visitors.hxx.
References maSelectionArea, and tools::Rectangle::Union().
Referenced by DefaultVisit(), and Visit().
|
inline |
Definition at line 437 of file visitors.hxx.
References maSelectionArea.
Referenced by SmCursor::GetSelectionRectangle(), and SmSelectionDrawingVisitor::SmSelectionDrawingVisitor().
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 84 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 85 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 90 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 88 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 89 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 98 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 82 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 81 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 99 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 101 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 86 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 96 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 100 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 97 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 92 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 83 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 93 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 102 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 105 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 103 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 104 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 95 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 91 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 80 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 1840 of file visitors.cxx.
References bottom, ExtendSelectionArea(), vcl::FONT, SmNode::GetFont(), SmRect::GetHeight(), SmTextNode::GetSelectionEnd(), SmTextNode::GetSelectionStart(), SmTextNode::GetText(), OutputDevice::GetTextWidth(), SmRect::GetTopLeft(), SmNode::IsSelected(), left, mrDev, OutputDevice::Pop(), Position, OutputDevice::Push(), right, OutputDevice::SetFont(), vcl::TEXTCOLOR, and top.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 94 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 87 of file visitors.cxx.
|
overridevirtual |
Reimplemented from SmDefaultingVisitor.
Definition at line 106 of file visitors.cxx.
|
private |
Visit the children of a given pNode.
Definition at line 1828 of file visitors.cxx.
References SmNode::GetNumSubNodes().
Referenced by DefaultVisit().
|
private |
The current area that is selected.
Definition at line 443 of file visitors.hxx.
Referenced by ExtendSelectionArea(), and GetSelection().
|
private |