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

- added: Property CreateFromParagraphLevelStyles to table of content and User index

- typo fixed
üst 6bce202a
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unomap.hxx,v $ * $RCSfile: unomap.hxx,v $
* *
* $Revision: 1.10 $ * $Revision: 1.11 $
* *
* last change: $Author: dvo $ $Date: 2000-11-20 20:28:19 $ * last change: $Author: dvo $ $Date: 2000-11-21 12:00:40 $
* *
* 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
...@@ -192,6 +192,7 @@ ...@@ -192,6 +192,7 @@
#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 #define WID_IS_RELATIVE_TABSTOPS 1051
#define WID_CREATE_FROM_PARAGRAPH_STYLES 1052
//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.16 $ * $Revision: 1.17 $
* *
* last change: $Author: dvo $ $Date: 2000-11-20 20:28:19 $ * last change: $Author: dvo $ $Date: 2000-11-21 12:00:40 $
* *
* 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
...@@ -525,6 +525,7 @@ extern const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECT ...@@ -525,6 +525,7 @@ extern const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECT
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_IS_RELATIVE_TABSTOPS ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_LEVEL_PARAGRAPH_STYLES ;
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.15 $ * $Revision: 1.16 $
* *
* last change: $Author: dvo $ $Date: 2000-11-20 20:28:18 $ * last change: $Author: dvo $ $Date: 2000-11-21 12:00:41 $
* *
* 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
...@@ -594,6 +594,10 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName, ...@@ -594,6 +594,10 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName,
aForm.SetTemplate( 1, SwXStyleFamilies::GetUIName( aForm.SetTemplate( 1, SwXStyleFamilies::GetUIName(
lcl_AnyToString(aValue), SFX_STYLE_FAMILY_PARA)); lcl_AnyToString(aValue), SFX_STYLE_FAMILY_PARA));
break; break;
case WID_CREATE_FROM_PARAGRAPH_STYLES:
nCreate = lcl_AnyToBool(aValue) ?
(nCreate | TOX_TEMPLATE) : (nCreate & ~TOX_TEMPLATE);
break;
case WID_PARA_LEV1 : case WID_PARA_LEV1 :
case WID_PARA_LEV2 : case WID_PARA_LEV2 :
...@@ -823,7 +827,7 @@ uno::Any SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName) ...@@ -823,7 +827,7 @@ uno::Any SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName)
bRet = 0 != (nCreate & TOX_GRAPHIC); bRet = 0 != (nCreate & TOX_GRAPHIC);
break; break;
case WID_CREATE_FROM_EMBEDDED_OBJECTS : case WID_CREATE_FROM_EMBEDDED_OBJECTS :
bRet = 0 != (nCreate &= TOX_OLE); bRet = 0 != (nCreate & TOX_OLE);
break; break;
case WID_CREATE_FROM_STAR_MATH: case WID_CREATE_FROM_STAR_MATH:
bRet = 0 != (nOLEOptions & TOO_MATH); bRet = 0 != (nOLEOptions & TOO_MATH);
...@@ -840,6 +844,9 @@ uno::Any SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName) ...@@ -840,6 +844,9 @@ uno::Any SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName)
case WID_CREATE_FROM_OTHER_EMBEDDED_OBJECTS: case WID_CREATE_FROM_OTHER_EMBEDDED_OBJECTS:
bRet = 0 != (nOLEOptions & TOO_OTHER); bRet = 0 != (nOLEOptions & TOO_OTHER);
break; break;
case WID_CREATE_FROM_PARAGRAPH_STYLES:
bRet = 0 != (nCreate & TOX_TEMPLATE);
break;
case WID_PARA_HEAD : case WID_PARA_HEAD :
//Header steht an Pos 0 //Header steht an Pos 0
aRet <<= OUString( aRet <<= OUString(
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unomap.cxx,v $ * $RCSfile: unomap.cxx,v $
* *
* $Revision: 1.22 $ * $Revision: 1.23 $
* *
* last change: $Author: dvo $ $Date: 2000-11-20 20:28:18 $ * last change: $Author: dvo $ $Date: 2000-11-21 12:00:41 $
* *
* 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
...@@ -1422,6 +1422,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16 ...@@ -1422,6 +1422,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ SW_PROP_NAME(UNO_NAME_IS_PROTECTED ), WID_PROTECTED , &::getBooleanCppuType() , PROPERTY_NONE, 0}, { SW_PROP_NAME(UNO_NAME_IS_PROTECTED ), WID_PROTECTED , &::getBooleanCppuType() , PROPERTY_NONE, 0},
{ SW_PROP_NAME(UNO_NAME_LEVEL_FORMAT ), WID_LEVEL_FORMAT , &::getCppuType((uno::Reference<container::XIndexReplace>*)0) , PROPERTY_NONE, 0}, { SW_PROP_NAME(UNO_NAME_LEVEL_FORMAT ), WID_LEVEL_FORMAT , &::getCppuType((uno::Reference<container::XIndexReplace>*)0) , PROPERTY_NONE, 0},
{ SW_PROP_NAME(UNO_NAME_LEVEL_PARAGRAPH_STYLES ), WID_LEVEL_PARAGRAPH_STYLES , &::getCppuType((uno::Reference<container::XIndexReplace>*)0) , PropertyAttribute::READONLY, 0}, { SW_PROP_NAME(UNO_NAME_LEVEL_PARAGRAPH_STYLES ), WID_LEVEL_PARAGRAPH_STYLES , &::getCppuType((uno::Reference<container::XIndexReplace>*)0) , PropertyAttribute::READONLY, 0},
{ SW_PROP_NAME(UNO_NAME_CREATE_FROM_LEVEL_PARAGRAPH_STYLES), WID_CREATE_FROM_PARAGRAPH_STYLES, &::getBooleanCppuType(), PROPERTY_NONE, 0},
// { SW_PROP_NAME(UNO_NAME_RECALC_TAB_STOPS ), WID_RECALC_TAB_STOPS , &::getBooleanCppuType() , PROPERTY_NONE, 0}, // { SW_PROP_NAME(UNO_NAME_RECALC_TAB_STOPS ), WID_RECALC_TAB_STOPS , &::getBooleanCppuType() , PROPERTY_NONE, 0},
// { SW_PROP_NAME(UNO_NAME_??? ), WID_??? , &_getReflection , PROPERTY_NONE, 0}, // { SW_PROP_NAME(UNO_NAME_??? ), WID_??? , &_getReflection , PROPERTY_NONE, 0},
{ SW_PROP_NAME(UNO_NAME_TEXT_COLUMNS), RES_COL, &::getCppuType((uno::Reference<text::XTextColumns>*)0), PROPERTY_NONE, MID_COLUMNS}, { SW_PROP_NAME(UNO_NAME_TEXT_COLUMNS), RES_COL, &::getCppuType((uno::Reference<text::XTextColumns>*)0), PROPERTY_NONE, MID_COLUMNS},
...@@ -1459,6 +1460,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16 ...@@ -1459,6 +1460,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ SW_PROP_NAME(UNO_NAME_USE_LEVEL_FROM_SOURCE ), WID_USE_LEVEL_FROM_SOURCE , &::getBooleanCppuType() , PROPERTY_NONE, 0}, { SW_PROP_NAME(UNO_NAME_USE_LEVEL_FROM_SOURCE ), WID_USE_LEVEL_FROM_SOURCE , &::getBooleanCppuType() , PROPERTY_NONE, 0},
{ SW_PROP_NAME(UNO_NAME_LEVEL_FORMAT ), WID_LEVEL_FORMAT , &::getCppuType((uno::Reference<container::XIndexReplace>*)0) , PROPERTY_NONE,0}, { SW_PROP_NAME(UNO_NAME_LEVEL_FORMAT ), WID_LEVEL_FORMAT , &::getCppuType((uno::Reference<container::XIndexReplace>*)0) , PROPERTY_NONE,0},
{ SW_PROP_NAME(UNO_NAME_LEVEL_PARAGRAPH_STYLES ), WID_LEVEL_PARAGRAPH_STYLES , &::getCppuType((uno::Reference<container::XIndexReplace>*)0) , PropertyAttribute::READONLY,0}, { SW_PROP_NAME(UNO_NAME_LEVEL_PARAGRAPH_STYLES ), WID_LEVEL_PARAGRAPH_STYLES , &::getCppuType((uno::Reference<container::XIndexReplace>*)0) , PropertyAttribute::READONLY,0},
{ SW_PROP_NAME(UNO_NAME_CREATE_FROM_LEVEL_PARAGRAPH_STYLES), WID_CREATE_FROM_PARAGRAPH_STYLES, &::getBooleanCppuType(), PROPERTY_NONE, 0},
{ SW_PROP_NAME(UNO_NAME_CREATE_FROM_TABLES ), WID_CREATE_FROM_TABLES , &::getBooleanCppuType() , PROPERTY_NONE, 0}, { SW_PROP_NAME(UNO_NAME_CREATE_FROM_TABLES ), WID_CREATE_FROM_TABLES , &::getBooleanCppuType() , PROPERTY_NONE, 0},
{ SW_PROP_NAME(UNO_NAME_CREATE_FROM_TEXT_FRAMES ), WID_CREATE_FROM_TEXT_FRAMES , &::getBooleanCppuType() , PROPERTY_NONE, 0}, { SW_PROP_NAME(UNO_NAME_CREATE_FROM_TEXT_FRAMES ), WID_CREATE_FROM_TEXT_FRAMES , &::getBooleanCppuType() , PROPERTY_NONE, 0},
{ SW_PROP_NAME(UNO_NAME_CREATE_FROM_GRAPHIC_OBJECTS ), WID_CREATE_FROM_GRAPHIC_OBJECTS , &::getBooleanCppuType() , PROPERTY_NONE, 0}, { SW_PROP_NAME(UNO_NAME_CREATE_FROM_GRAPHIC_OBJECTS ), WID_CREATE_FROM_GRAPHIC_OBJECTS , &::getBooleanCppuType() , PROPERTY_NONE, 0},
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unoprnms.cxx,v $ * $RCSfile: unoprnms.cxx,v $
* *
* $Revision: 1.18 $ * $Revision: 1.19 $
* *
* last change: $Author: dvo $ $Date: 2000-11-20 20:28:18 $ * last change: $Author: dvo $ $Date: 2000-11-21 12:00:41 $
* *
* 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
...@@ -521,6 +521,7 @@ const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS ...@@ -521,6 +521,7 @@ const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS
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_IS_RELATIVE_TABSTOPS (MAP_CHAR_LEN("IsRelativeTabstops"));
const SwPropNameLen __FAR_DATA UNO_NAME_CREATE_FROM_LEVEL_PARAGRAPH_STYLES (MAP_CHAR_LEN("CreateFromLevelParagraphStyles"));
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