summaryrefslogtreecommitdiff
path: root/sw/inc/ndtxt.hxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-05 15:50:10 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-05 15:50:10 +0000
commit13fa50895538f9a247917ce0ecf392f1430c1405 (patch)
treec300251fdde22296f3a471c33c1227ce6006f31b /sw/inc/ndtxt.hxx
parent5f9046c370b8f8e0560e4d797e26df8ea073cf61 (diff)
INTEGRATION: CWS swnewlistlevelattrs_DEV300 (1.51.112); FILE MERGED
2008/02/05 10:51:32 od 1.51.112.3: #i85348# adjustment of new method <SwTxtNode::GetListTabStopPosition(..)> 2008/01/31 12:23:06 od 1.51.112.2: #i85348# refactoring: adjust includes 2008/01/23 14:34:50 od 1.51.112.1: #i85348# class <SwTxtNode> - method <GetAttr(..)> -- added optional parameter <bMergeIndentValuesOfNumRule> - new methods <AreListLevelIndentsApplicable()>, <GetListTabStopPosition()> and <GetLabelFollowedBy()>
Diffstat (limited to 'sw/inc/ndtxt.hxx')
-rw-r--r--sw/inc/ndtxt.hxx66
1 files changed, 61 insertions, 5 deletions
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index b85d7acc675b..91a3b2d5b297 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ndtxt.hxx,v $
*
- * $Revision: 1.53 $
+ * $Revision: 1.54 $
*
- * last change: $Author: obo $ $Date: 2008-02-26 10:30:49 $
+ * last change: $Author: kz $ $Date: 2008-03-05 16:50:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -38,6 +38,9 @@
#ifndef INCLUDED_SWDLLAPI_H
#include "swdllapi.h"
#endif
+#ifndef _SWERROR_H
+#include <error.h>
+#endif
#ifndef _NODE_HXX
#include <node.hxx>
#endif
@@ -53,6 +56,7 @@
#ifndef _MODELTOVIEWHELPER_HXX
#include <modeltoviewhelper.hxx>
#endif
+#include <SwNodeNum.hxx>
#include <vector>
#include <set>
@@ -72,7 +76,6 @@ struct SwSpellArgs; // for Spell(), splargs.hxx
struct SwConversionArgs; // for Convert(), splargs.hxx
class SwInterHyphInfo; // for Hyphenate(), splargs.hxx
class SwWrongList; // fuer OnlineSpelling
-class SwNodeNum;
class OutputDevice;
class SwScriptInfo;
struct SwDocStat;
@@ -280,9 +283,18 @@ public:
BOOL SetAttr( const SfxItemSet& rSet,
xub_StrLen nStt, xub_StrLen nEnd, USHORT nMode = 0 );
// erfrage die Attribute vom TextNode ueber den Bereich
+ // --> OD 2008-01-16 #newlistlevelattrs#
+ // Introduce 4th optional parameter <bMergeIndentValuesOfNumRule>.
+ // If <bMergeIndentValuesOfNumRule> == TRUE, the indent attributes of
+ // the corresponding list level of an applied list style is merged into
+ // the requested item set as a LR-SPACE item, if <bOnlyTxtAttr> == FALSE,
+ // corresponding node has not its own indent attributes and the
+ // position-and-space mode of the list level is SvxNumberFormat::LABEL_ALIGNMENT.
BOOL GetAttr( SfxItemSet& rSet, xub_StrLen nStt, xub_StrLen nEnd,
- BOOL bOnlyTxtAttr = FALSE,
- BOOL bGetFromChrFmt = TRUE ) const;
+ BOOL bOnlyTxtAttr = FALSE,
+ BOOL bGetFromChrFmt = TRUE,
+ const bool bMergeIndentValuesOfNumRule = false ) const;
+ // <--
// uebertrage Attribute eines AttrSets ( AutoFmt ) in das SwpHintsArray
void FmtToTxtAttr( SwTxtNode* pNd );
@@ -568,6 +580,50 @@ public:
*/
bool HasVisibleNumberingOrBullet() const;
+ /** Determines, if the list level indent attributes can be applied to the
+ paragraph.
+
+ OD 2008-01-17 #newlistlevelattrs#
+ The list level indents can be applied to the paragraph under the one
+ of following conditions:
+ - the list style is directly applied to the paragraph and the paragraph
+ has no own indent attributes.
+ - the list style is applied to the paragraph through one of its paragraph
+ styles, the paragraph has no own indent attributes and on the paragraph
+ style hierarchy from the paragraph to the paragraph style with the
+ list style no indent attributes are found.
+
+ @author OD
+
+ @return boolean
+ */
+ bool AreListLevelIndentsApplicable() const;
+
+ /** Retrieves the list tab stop position, if the paragraph's list level defines
+ one and this list tab stop has to merged into the tap stops of the paragraph
+
+ OD 2008-01-17 #newlistlevelattrs#
+
+ @author OD
+
+ @param nListTabStopPosition
+ output parameter - containing the list tab stop position
+
+ @return boolean - indicating, if a list tab stop position is provided
+ */
+ bool GetListTabStopPosition( long& nListTabStopPosition ) const;
+
+ /** Retrieves the character following the list label, if the paragraph's
+ list level defines one.
+
+ OD 2008-01-17 #newlistlevelattrs#
+
+ @author OD
+
+ @return XubString - the list tab stop position
+ */
+ XubString GetLabelFollowedBy() const;
+
//
// END OF BULLET/NUMBERING/OUTLINE STUFF:
//