diff options
author | Tobias Lippert <drtl@fastmail.fm> | 2014-06-01 14:24:51 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 12:19:12 +0000 |
commit | 0a1b1511faaa3302429d93ccdad3eb41dc8f36cb (patch) | |
tree | b10e592c90daae9667568f01d59998e5473904dd /sw/inc/chpfld.hxx | |
parent | fdo#79558: Do not overwrite w:shd value (diff) | |
download | core-0a1b1511faaa3302429d93ccdad3eb41dc8f36cb.tar.gz core-0a1b1511faaa3302429d93ccdad3eb41dc8f36cb.zip |
Unittest generation of text for chapter entries in the TOC
Conflicts:
sw/inc/ToxTextGenerator.hxx
sw/qa/cppunit/tox/test_ToxTextGenerator.cxx
sw/source/core/tox/ToxTextGenerator.cxx
Change-Id: I343958f85fb6718215a0caa456a825d72f168a57
Reviewed-on: https://gerrit.libreoffice.org/9612
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc/chpfld.hxx')
-rw-r--r-- | sw/inc/chpfld.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/chpfld.hxx b/sw/inc/chpfld.hxx index 452c42cf3249..dc59de1e1e61 100644 --- a/sw/inc/chpfld.hxx +++ b/sw/inc/chpfld.hxx @@ -24,6 +24,7 @@ class SwFrm; class SwCntntNode; class SwTxtNode; +class ToxTextGeneratorTest; enum SwChapterFormat { @@ -36,7 +37,7 @@ enum SwChapterFormat CF_END }; -class SwChapterFieldType : public SwFieldType +class SW_DLLPUBLIC SwChapterFieldType : public SwFieldType { public: SwChapterFieldType(); @@ -48,6 +49,7 @@ public: class SW_DLLPUBLIC SwChapterField : public SwField { friend class SwChapterFieldType; + friend class ToxTextGeneratorTest; // the unittest needs to mock the chapter fields. sal_uInt8 nLevel; OUString sTitle; OUString sNumber; |