summaryrefslogtreecommitdiff
path: root/sw/inc/ToxTextGenerator.hxx
diff options
context:
space:
mode:
authorTobias Lippert <drtl@fastmail.fm>2014-06-01 14:30:36 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-06-06 14:02:16 +0000
commit3aca57fb9c7c979d971cae6bb3ad73c6dc412685 (patch)
tree2f2c23fe3251ad8708337c13d064bfab010631ad /sw/inc/ToxTextGenerator.hxx
parent67b4b34cce4abf745b24c858d533a25c291b5093 (diff)
TOX: Extract generation of tab stop attributes to its own class.
This allows us to pass through less parameters which are only used for this functionality. Conflicts: sw/inc/ToxTextGenerator.hxx sw/source/core/tox/ToxTextGenerator.cxx Change-Id: I5a03cf8ec6d86d05f2a7f7771668585669c1e595 Reviewed-on: https://gerrit.libreoffice.org/9613 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc/ToxTextGenerator.hxx')
-rw-r--r--sw/inc/ToxTextGenerator.hxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/sw/inc/ToxTextGenerator.hxx b/sw/inc/ToxTextGenerator.hxx
index 25e49579a662..a9c9cadd279b 100644
--- a/sw/inc/ToxTextGenerator.hxx
+++ b/sw/inc/ToxTextGenerator.hxx
@@ -38,19 +38,26 @@ class SwDoc;
class SwForm;
struct SwFormToken;
class SwPageDesc;
+class SwRootFrm;
class SwTxtAttr;
class SwTxtNode;
struct SwTOXSortTabBase;
+class SvxTabStop;
class ToxTextGeneratorTest;
namespace sw {
class ToxLinkProcessor;
+class ToxTabStopTokenHandler;
+/** This class generates text for the entries of a table of x.
+ *
+ * You can control its behavior by calling @link SetTabstopPolicy() and specifying the desired behavior.
+ */
class SW_DLLPUBLIC ToxTextGenerator
{
public:
- ToxTextGenerator(const SwForm& toxForm);
+ ToxTextGenerator(const SwForm& toxForm, boost::shared_ptr<ToxTabStopTokenHandler> tabStopHandler);
virtual ~ToxTextGenerator();
@@ -61,12 +68,12 @@ public:
*/
void
GenerateText(SwDoc *doc, const std::vector<SwTOXSortTabBase*>& entries,
- sal_uInt16 indexOfEntryToProcess, sal_uInt16 numberOfEntriesToProcess,
- sal_uInt32 _nTOXSectNdIdx, const SwPageDesc* _pDefaultPageDesc);
+ sal_uInt16 indexOfEntryToProcess, sal_uInt16 numberOfEntriesToProcess);
private:
const SwForm& mToxForm;
boost::shared_ptr<ToxLinkProcessor> mLinkProcessor;
+ boost::shared_ptr<ToxTabStopTokenHandler> mTabStopTokenHandler;
/** A handled text token.
* It contains the information which should be added to the target text node.