Kaydet (Commit) fa94ca3f authored tarafından Daniel Vogelheim's avatar Daniel Vogelheim

- added: IsRelativeTabstops property to all indices (except Bibliography)

- fixed: SwXTextIndex: CreateFromLabels property
üst 03bcb682
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unomap.hxx,v $ * $RCSfile: unomap.hxx,v $
* *
* $Revision: 1.9 $ * $Revision: 1.10 $
* *
* last change: $Author: dvo $ $Date: 2000-11-20 14:00:30 $ * last change: $Author: dvo $ $Date: 2000-11-20 20:28:19 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -191,6 +191,7 @@ ...@@ -191,6 +191,7 @@
#define WID_PARA_LEV10 1048 #define WID_PARA_LEV10 1048
#define WID_IS_COMMA_SEPARATED 1049 #define WID_IS_COMMA_SEPARATED 1049
#define WID_INDEX_MARKS 1050 #define WID_INDEX_MARKS 1050
#define WID_IS_RELATIVE_TABSTOPS 1051
//text document //text document
#define WID_DOC_CHAR_COUNT 1000 #define WID_DOC_CHAR_COUNT 1000
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unoprnms.hxx,v $ * $RCSfile: unoprnms.hxx,v $
* *
* $Revision: 1.15 $ * $Revision: 1.16 $
* *
* last change: $Author: os $ $Date: 2000-11-17 16:24:09 $ * last change: $Author: dvo $ $Date: 2000-11-20 20:28:19 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -524,6 +524,7 @@ extern const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_STAR_DRAW ...@@ -524,6 +524,7 @@ extern const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_STAR_DRAW
extern const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS ; extern const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_INDEX_AUTO_MARK_FILE_U_R_L ; extern const SwPropNameLen __FAR_DATA UNO_NAME_INDEX_AUTO_MARK_FILE_U_R_L ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_IS_COMMA_SEPARATED ; extern const SwPropNameLen __FAR_DATA UNO_NAME_IS_COMMA_SEPARATED ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_IS_RELATIVE_TABSTOPS ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_SHOW_CHANGES ; extern const SwPropNameLen __FAR_DATA UNO_NAME_SHOW_CHANGES ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_RECORD_CHANGES ; extern const SwPropNameLen __FAR_DATA UNO_NAME_RECORD_CHANGES ;
extern const SwPropNameLen __FAR_DATA UNO_LINK_DISPLAY_NAME ; extern const SwPropNameLen __FAR_DATA UNO_LINK_DISPLAY_NAME ;
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unoidx.cxx,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -480,7 +480,7 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName, ...@@ -480,7 +480,7 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName,
pTOXBase->SetFromChapter(lcl_AnyToBool(aValue)); pTOXBase->SetFromChapter(lcl_AnyToBool(aValue));
break; break;
case WID_CREATE_FROM_LABELS : case WID_CREATE_FROM_LABELS :
nCreate = lcl_AnyToBool(aValue) ? nCreate | TOX_SEQUENCE : nCreate & ~TOX_SEQUENCE; pTOXBase->SetFromObjectNames(! lcl_AnyToBool(aValue));
break; break;
case WID_PROTECTED : case WID_PROTECTED :
pTOXBase->SetProtected(lcl_AnyToBool(aValue)); pTOXBase->SetProtected(lcl_AnyToBool(aValue));
...@@ -514,6 +514,7 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName, ...@@ -514,6 +514,7 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName,
nTOIOptions | TOI_INITIAL_CAPS : nTOIOptions & ~TOI_INITIAL_CAPS; nTOIOptions | TOI_INITIAL_CAPS : nTOIOptions & ~TOI_INITIAL_CAPS;
break; break;
case WID_IS_COMMA_SEPARATED : case WID_IS_COMMA_SEPARATED :
bForm = sal_True;
aForm.SetCommaSeparated(lcl_AnyToBool(aValue)); aForm.SetCommaSeparated(lcl_AnyToBool(aValue));
break; break;
case WID_LABEL_CATEGORY : case WID_LABEL_CATEGORY :
...@@ -584,6 +585,10 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName, ...@@ -584,6 +585,10 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName,
aForm.SetTemplate( 0, SwXStyleFamilies::GetUIName( aForm.SetTemplate( 0, SwXStyleFamilies::GetUIName(
lcl_AnyToString(aValue), SFX_STYLE_FAMILY_PARA)); lcl_AnyToString(aValue), SFX_STYLE_FAMILY_PARA));
break; break;
case WID_IS_RELATIVE_TABSTOPS:
bForm = sal_True;
aForm.SetRelTabPos(lcl_AnyToBool(aValue));
break;
case WID_PARA_SEP : case WID_PARA_SEP :
bForm = sal_True; bForm = sal_True;
aForm.SetTemplate( 1, SwXStyleFamilies::GetUIName( aForm.SetTemplate( 1, SwXStyleFamilies::GetUIName(
...@@ -726,7 +731,7 @@ uno::Any SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName) ...@@ -726,7 +731,7 @@ uno::Any SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName)
bRet = pTOXBase->IsFromChapter(); bRet = pTOXBase->IsFromChapter();
break; break;
case WID_CREATE_FROM_LABELS : case WID_CREATE_FROM_LABELS :
bRet = 0 != (nCreate & TOX_SEQUENCE); bRet = ! pTOXBase->IsFromObjectNames();
break; break;
case WID_PROTECTED : case WID_PROTECTED :
bRet = pTOXBase->IsProtected(); bRet = pTOXBase->IsProtected();
...@@ -867,6 +872,9 @@ uno::Any SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName) ...@@ -867,6 +872,9 @@ uno::Any SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName)
bBOOL = sal_False; bBOOL = sal_False;
} }
break; break;
case WID_IS_RELATIVE_TABSTOPS:
bRet = rForm.IsRelTabPos();
break;
case WID_INDEX_MARKS: case WID_INDEX_MARKS:
{ {
SwTOXMarks aMarks; SwTOXMarks aMarks;
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unomap.cxx,v $ * $RCSfile: unomap.cxx,v $
* *
* $Revision: 1.21 $ * $Revision: 1.22 $
* *
* last change: $Author: dvo $ $Date: 2000-11-20 14:00:32 $ * last change: $Author: dvo $ $Date: 2000-11-20 20:28:18 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -489,6 +489,7 @@ void SwUnoPropertyMapProvider::Sort(sal_uInt16 nId) ...@@ -489,6 +489,7 @@ void SwUnoPropertyMapProvider::Sort(sal_uInt16 nId)
{ SW_PROP_NAME(UNO_NAME_CHAR_FONT_PITCH_COMPLEX), RES_CHRATR_CTL_FONT, &::getCppuType((sal_Int16*)0), PropertyAttribute::MAYBEVOID, MID_FONT_PITCH }, \ { SW_PROP_NAME(UNO_NAME_CHAR_FONT_PITCH_COMPLEX), RES_CHRATR_CTL_FONT, &::getCppuType((sal_Int16*)0), PropertyAttribute::MAYBEVOID, MID_FONT_PITCH }, \
{ SW_PROP_NAME(UNO_NAME_CHAR_POSTURE_COMPLEX), RES_CHRATR_CTL_POSTURE , &::getCppuType((FontSlant*)0), PropertyAttribute::MAYBEVOID, MID_POSTURE}, \ { SW_PROP_NAME(UNO_NAME_CHAR_POSTURE_COMPLEX), RES_CHRATR_CTL_POSTURE , &::getCppuType((FontSlant*)0), PropertyAttribute::MAYBEVOID, MID_POSTURE}, \
{ SW_PROP_NAME(UNO_NAME_CHAR_LOCALE_COMPLEX), RES_CHRATR_CTL_LANGUAGE , &::getCppuType((Locale*)0) , PropertyAttribute::MAYBEVOID, MID_LANG_LOCALE }, { SW_PROP_NAME(UNO_NAME_CHAR_LOCALE_COMPLEX), RES_CHRATR_CTL_LANGUAGE , &::getCppuType((Locale*)0) , PropertyAttribute::MAYBEVOID, MID_LANG_LOCALE },
/* -----------------24.06.98 18:12------------------- /* -----------------24.06.98 18:12-------------------
* *
* --------------------------------------------------*/ * --------------------------------------------------*/
...@@ -1402,6 +1403,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16 ...@@ -1402,6 +1403,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
#else #else
{ SW_PROP_NAME(UNO_NAME_DOCUMENT_INDEX_MARKS), WID_INDEX_MARKS, &::getCppuType((Sequence< Reference< XDocumentIndexMark > >*)0), PropertyAttribute::READONLY ,0 }, { SW_PROP_NAME(UNO_NAME_DOCUMENT_INDEX_MARKS), WID_INDEX_MARKS, &::getCppuType((Sequence< Reference< XDocumentIndexMark > >*)0), PropertyAttribute::READONLY ,0 },
#endif #endif
{ SW_PROP_NAME(UNO_NAME_IS_RELATIVE_TABSTOPS), WID_IS_RELATIVE_TABSTOPS, &::getBooleanCppuType(), PROPERTY_NONE, 0},
{0,0,0,0} {0,0,0,0}
}; };
aMapArr[nPropertyId] = aTOXIndexMap_Impl; aMapArr[nPropertyId] = aTOXIndexMap_Impl;
...@@ -1439,6 +1441,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16 ...@@ -1439,6 +1441,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ MAP_CHAR_LEN("ParaStyleLevel8"), WID_PARA_LEV8, &::getCppuType((const OUString*)0) , 0, 0}, { MAP_CHAR_LEN("ParaStyleLevel8"), WID_PARA_LEV8, &::getCppuType((const OUString*)0) , 0, 0},
{ MAP_CHAR_LEN("ParaStyleLevel9"), WID_PARA_LEV9, &::getCppuType((const OUString*)0) , 0, 0}, { MAP_CHAR_LEN("ParaStyleLevel9"), WID_PARA_LEV9, &::getCppuType((const OUString*)0) , 0, 0},
{ MAP_CHAR_LEN("ParaStyleLevel10"), WID_PARA_LEV10, &::getCppuType((const OUString*)0) , 0, 0}, { MAP_CHAR_LEN("ParaStyleLevel10"), WID_PARA_LEV10, &::getCppuType((const OUString*)0) , 0, 0},
{ SW_PROP_NAME(UNO_NAME_IS_RELATIVE_TABSTOPS), WID_IS_RELATIVE_TABSTOPS, &::getBooleanCppuType(), PROPERTY_NONE, 0},
{0,0,0,0} {0,0,0,0}
}; };
aMapArr[nPropertyId] = aTOXContentMap_Impl; aMapArr[nPropertyId] = aTOXContentMap_Impl;
...@@ -1482,6 +1485,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16 ...@@ -1482,6 +1485,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
#else #else
{ SW_PROP_NAME(UNO_NAME_DOCUMENT_INDEX_MARKS), WID_INDEX_MARKS, &::getCppuType((Sequence< Reference< XDocumentIndexMark> >*)0), PropertyAttribute::READONLY ,0 }, { SW_PROP_NAME(UNO_NAME_DOCUMENT_INDEX_MARKS), WID_INDEX_MARKS, &::getCppuType((Sequence< Reference< XDocumentIndexMark> >*)0), PropertyAttribute::READONLY ,0 },
#endif #endif
{ SW_PROP_NAME(UNO_NAME_IS_RELATIVE_TABSTOPS), WID_IS_RELATIVE_TABSTOPS, &::getBooleanCppuType(), PROPERTY_NONE, 0},
{0,0,0,0} {0,0,0,0}
}; };
aMapArr[nPropertyId] = aTOXUserMap_Impl; aMapArr[nPropertyId] = aTOXUserMap_Impl;
...@@ -1506,6 +1510,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16 ...@@ -1506,6 +1510,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ SW_PROP_NAME(UNO_NAME_BACK_TRANSPARENT ), RES_BACKGROUND, &::getBooleanCppuType(), PROPERTY_NONE ,MID_GRAPHIC_TRANSPARENT }, { SW_PROP_NAME(UNO_NAME_BACK_TRANSPARENT ), RES_BACKGROUND, &::getBooleanCppuType(), PROPERTY_NONE ,MID_GRAPHIC_TRANSPARENT },
{ MAP_CHAR_LEN("ParaStyleHeading"), WID_PARA_HEAD, &::getCppuType((const OUString*)0) , 0, 0}, { MAP_CHAR_LEN("ParaStyleHeading"), WID_PARA_HEAD, &::getCppuType((const OUString*)0) , 0, 0},
{ MAP_CHAR_LEN("ParaStyleLevel1"), WID_PARA_LEV1, &::getCppuType((const OUString*)0) , 0, 0}, { MAP_CHAR_LEN("ParaStyleLevel1"), WID_PARA_LEV1, &::getCppuType((const OUString*)0) , 0, 0},
{ SW_PROP_NAME(UNO_NAME_IS_RELATIVE_TABSTOPS), WID_IS_RELATIVE_TABSTOPS, &::getBooleanCppuType(), PROPERTY_NONE, 0},
{0,0,0,0} {0,0,0,0}
}; };
aMapArr[nPropertyId] = aTOXTablesMap_Impl; aMapArr[nPropertyId] = aTOXTablesMap_Impl;
...@@ -1533,6 +1538,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16 ...@@ -1533,6 +1538,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ SW_PROP_NAME(UNO_NAME_BACK_TRANSPARENT ), RES_BACKGROUND, &::getBooleanCppuType(), PROPERTY_NONE ,MID_GRAPHIC_TRANSPARENT }, { SW_PROP_NAME(UNO_NAME_BACK_TRANSPARENT ), RES_BACKGROUND, &::getBooleanCppuType(), PROPERTY_NONE ,MID_GRAPHIC_TRANSPARENT },
{ MAP_CHAR_LEN("ParaStyleHeading"), WID_PARA_HEAD, &::getCppuType((const OUString*)0) , 0, 0}, { MAP_CHAR_LEN("ParaStyleHeading"), WID_PARA_HEAD, &::getCppuType((const OUString*)0) , 0, 0},
{ MAP_CHAR_LEN("ParaStyleLevel1"), WID_PARA_LEV1, &::getCppuType((const OUString*)0) , 0, 0}, { MAP_CHAR_LEN("ParaStyleLevel1"), WID_PARA_LEV1, &::getCppuType((const OUString*)0) , 0, 0},
{ SW_PROP_NAME(UNO_NAME_IS_RELATIVE_TABSTOPS), WID_IS_RELATIVE_TABSTOPS, &::getBooleanCppuType(), PROPERTY_NONE, 0},
{0,0,0,0} {0,0,0,0}
}; };
aMapArr[nPropertyId] = aTOXObjectsMap_Impl; aMapArr[nPropertyId] = aTOXObjectsMap_Impl;
...@@ -1558,6 +1564,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16 ...@@ -1558,6 +1564,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ SW_PROP_NAME(UNO_NAME_BACK_TRANSPARENT ), RES_BACKGROUND, &::getBooleanCppuType(), PROPERTY_NONE ,MID_GRAPHIC_TRANSPARENT }, { SW_PROP_NAME(UNO_NAME_BACK_TRANSPARENT ), RES_BACKGROUND, &::getBooleanCppuType(), PROPERTY_NONE ,MID_GRAPHIC_TRANSPARENT },
{ MAP_CHAR_LEN("ParaStyleHeading"), WID_PARA_HEAD, &::getCppuType((const OUString*)0) , 0, 0}, { MAP_CHAR_LEN("ParaStyleHeading"), WID_PARA_HEAD, &::getCppuType((const OUString*)0) , 0, 0},
{ MAP_CHAR_LEN("ParaStyleLevel1"), WID_PARA_LEV1, &::getCppuType((const OUString*)0) , 0, 0}, { MAP_CHAR_LEN("ParaStyleLevel1"), WID_PARA_LEV1, &::getCppuType((const OUString*)0) , 0, 0},
{ SW_PROP_NAME(UNO_NAME_IS_RELATIVE_TABSTOPS), WID_IS_RELATIVE_TABSTOPS, &::getBooleanCppuType(), PROPERTY_NONE, 0},
{0,0,0,0} {0,0,0,0}
}; };
aMapArr[nPropertyId] = aTOXIllustrationsMap_Impl; aMapArr[nPropertyId] = aTOXIllustrationsMap_Impl;
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unoprnms.cxx,v $ * $RCSfile: unoprnms.cxx,v $
* *
* $Revision: 1.17 $ * $Revision: 1.18 $
* *
* last change: $Author: os $ $Date: 2000-11-17 16:23:09 $ * last change: $Author: dvo $ $Date: 2000-11-20 20:28:18 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -520,6 +520,7 @@ const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_STAR_DRAW ...@@ -520,6 +520,7 @@ const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_STAR_DRAW
const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS (MAP_CHAR_LEN("CreateFromOtherEmbeddedObjects")); const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS (MAP_CHAR_LEN("CreateFromOtherEmbeddedObjects"));
const SwPropNameLen __FAR_DATA UNO_NAME_INDEX_AUTO_MARK_FILE_U_R_L (MAP_CHAR_LEN("IndexAutoMarkFileURL")); const SwPropNameLen __FAR_DATA UNO_NAME_INDEX_AUTO_MARK_FILE_U_R_L (MAP_CHAR_LEN("IndexAutoMarkFileURL"));
const SwPropNameLen __FAR_DATA UNO_NAME_IS_COMMA_SEPARATED (MAP_CHAR_LEN("IsCommaSeparated")); const SwPropNameLen __FAR_DATA UNO_NAME_IS_COMMA_SEPARATED (MAP_CHAR_LEN("IsCommaSeparated"));
const SwPropNameLen __FAR_DATA UNO_NAME_IS_RELATIVE_TABSTOPS (MAP_CHAR_LEN("IsRelativeTabstops"));
const SwPropNameLen __FAR_DATA UNO_NAME_SHOW_CHANGES (MAP_CHAR_LEN("ShowChanges")); const SwPropNameLen __FAR_DATA UNO_NAME_SHOW_CHANGES (MAP_CHAR_LEN("ShowChanges"));
const SwPropNameLen __FAR_DATA UNO_NAME_RECORD_CHANGES (MAP_CHAR_LEN("RecordChanges")); const SwPropNameLen __FAR_DATA UNO_NAME_RECORD_CHANGES (MAP_CHAR_LEN("RecordChanges"));
const SwPropNameLen __FAR_DATA UNO_LINK_DISPLAY_NAME (MAP_CHAR_LEN("LinkDisplayName")); const SwPropNameLen __FAR_DATA UNO_LINK_DISPLAY_NAME (MAP_CHAR_LEN("LinkDisplayName"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment