path: root/sw/source/core/model/ModelTraverser.cxx
AgeCommit message (Collapse)AuthorFilesLines
2021-10-21introduce SwNodeOffset strong typedefNoel Grandin1-1/+1
for indexing into node children. Replaces various usage of sal_uLong, tools::Long, sal_uInt32 with an underlying type of sal_Int32. Also add a NODE_OFFSET_MAX constant to replace usage of ULONG_MAX Change-Id: I2f466922e1ebc19029bb2883d2b29aa4c0614170 Reviewed-on: Tested-by: Jenkins Reviewed-by: Noel Grandin <>
2021-08-26indexing: move xml parsing into SearchResultLocatorTomaž Vajngerl1-0/+1
Let's keep unneeded complexity out of SwXTextDocument, so move parsing into SearchResultLocator. As a bonus we can now test parsing. Change-Id: I944bfc43e6953523eee19b26b7f483aa401809aa Reviewed-on: Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <>
2021-06-19indexing: indexing shapes/text boxes for the IndexingExportTomaž Vajngerl1-0/+21
Adds handling of shapes and text boxes to the IndexingExport with exporting the the name, alt text, description and paragraphs of the inner shape text to the indexing xml. Change-Id: I3db68078b7e793cab552b4f7f8e8ddf9bfd1a6f2 Reviewed-on: Tested-by: Tomaž Vajngerl <> Reviewed-by: Tomaž Vajngerl <>
2021-06-19indexing: indexing paragraph text with the ModelTraverserTomaž Vajngerl1-0/+39
This adds the basic paragraph text export for indexing, which uses the new ModelTraverser, which is inspired by AccessibilityCheck (and in the future it will be changed to use the ModelTraverser too, when it matures). ModelTraverser implements traversing through the model and executes a handler for a element of a model (which can be various things). IndexingExport class implements indexing export that uses the ModelTraverser to write into the indexing xml document, that uses the tools::XmlWriter. Change-Id: I7a6a5de332534270fe894a881131e5eb5ea9d881 Reviewed-on: Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <>