diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2000-11-20 19:28:19 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2000-11-20 19:28:19 +0000 |
commit | fa94ca3f35dc8122a81a62250285d7f147fb3a4b (patch) | |
tree | e595ec042cfbb5a5ee621586d93b77034ffc03f1 /sw/source/core/unocore/unoidx.cxx | |
parent | 03bcb682537cac04954f11a221873632257d7bba (diff) |
- added: IsRelativeTabstops property to all indices (except Bibliography)
- fixed: SwXTextIndex: CreateFromLabels property
Diffstat (limited to 'sw/source/core/unocore/unoidx.cxx')
-rw-r--r-- | sw/source/core/unocore/unoidx.cxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx index 1e481abf0ae1..8eec965e93ad 100644 --- a/sw/source/core/unocore/unoidx.cxx +++ b/sw/source/core/unocore/unoidx.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoidx.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: os $ $Date: 2000-11-15 15:00:48 $ + * last change: $Author: dvo $ $Date: 2000-11-20 20:28:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -480,7 +480,7 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName, pTOXBase->SetFromChapter(lcl_AnyToBool(aValue)); break; case WID_CREATE_FROM_LABELS : - nCreate = lcl_AnyToBool(aValue) ? nCreate | TOX_SEQUENCE : nCreate & ~TOX_SEQUENCE; + pTOXBase->SetFromObjectNames(! lcl_AnyToBool(aValue)); break; case WID_PROTECTED : pTOXBase->SetProtected(lcl_AnyToBool(aValue)); @@ -514,6 +514,7 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName, nTOIOptions | TOI_INITIAL_CAPS : nTOIOptions & ~TOI_INITIAL_CAPS; break; case WID_IS_COMMA_SEPARATED : + bForm = sal_True; aForm.SetCommaSeparated(lcl_AnyToBool(aValue)); break; case WID_LABEL_CATEGORY : @@ -584,6 +585,10 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName, aForm.SetTemplate( 0, SwXStyleFamilies::GetUIName( lcl_AnyToString(aValue), SFX_STYLE_FAMILY_PARA)); break; + case WID_IS_RELATIVE_TABSTOPS: + bForm = sal_True; + aForm.SetRelTabPos(lcl_AnyToBool(aValue)); + break; case WID_PARA_SEP : bForm = sal_True; aForm.SetTemplate( 1, SwXStyleFamilies::GetUIName( @@ -726,7 +731,7 @@ uno::Any SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName) bRet = pTOXBase->IsFromChapter(); break; case WID_CREATE_FROM_LABELS : - bRet = 0 != (nCreate & TOX_SEQUENCE); + bRet = ! pTOXBase->IsFromObjectNames(); break; case WID_PROTECTED : bRet = pTOXBase->IsProtected(); @@ -867,6 +872,9 @@ uno::Any SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName) bBOOL = sal_False; } break; + case WID_IS_RELATIVE_TABSTOPS: + bRet = rForm.IsRelTabPos(); + break; case WID_INDEX_MARKS: { SwTOXMarks aMarks; |