summaryrefslogtreecommitdiff
path: root/sw/inc/crstate.hxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-06-12 09:31:03 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-06-12 11:56:01 +0200
commit23cf6dbe4d35d0d9beeaa2193247c6f67a869c66 (patch)
tree997289dac0a383d094fb9fb228bf96ef9f69b324 /sw/inc/crstate.hxx
parenta691c1e0405993e8cb40212d532d66c08184da2c (diff)
tdf#108427 Direct cursor: Add option to insert only spaces
Change-Id: I1136688ec8af44c533f4dd40a9a4b24ea59992ef Reviewed-on: https://gerrit.libreoffice.org/38685 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw/inc/crstate.hxx')
-rw-r--r--sw/inc/crstate.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/inc/crstate.hxx b/sw/inc/crstate.hxx
index 8c361dee61fc..71a3a7868dcb 100644
--- a/sw/inc/crstate.hxx
+++ b/sw/inc/crstate.hxx
@@ -27,7 +27,8 @@
enum SwFillMode
{
FILL_TAB, ///< default, fill with tabs
- FILL_SPACE, ///< fill with spaces and tabs
+ FILL_TAB_SPACE, ///< fill with spaces and tabs
+ FILL_SPACE, ///< fill with spaces
FILL_MARGIN, ///< only align left, center, right
FILL_INDENT ///< by left paragraph indention
};
@@ -38,11 +39,12 @@ struct SwFillCursorPos
sal_uInt16 nParaCnt; ///< number of paragraphs to insert
sal_uInt16 nTabCnt; ///< number of tabs respectively size of indentation
sal_uInt16 nSpaceCnt; ///< number of spaces to insert
+ sal_uInt16 nSpaceOnlyCnt; ///< number of spaces to insert ("only spaces, no tabs" mode)
sal_uInt16 nColumnCnt; ///< number of necessary column breaks
sal_Int16 eOrient; ///< paragraph alignment
SwFillMode eMode; ///< desired fill-up rule
SwFillCursorPos( SwFillMode eMd ) :
- nParaCnt( 0 ), nTabCnt( 0 ), nSpaceCnt( 0 ), nColumnCnt( 0 ),
+ nParaCnt( 0 ), nTabCnt( 0 ), nSpaceCnt( 0 ), nSpaceOnlyCnt(0), nColumnCnt( 0 ),
eOrient( css::text::HoriOrientation::NONE ), eMode( eMd )
{}
};