diff options
author | Xisco Fauli <anistenis@gmail.com> | 2011-07-12 18:33:10 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-18 02:57:43 +0200 |
commit | 2f5083e30bc29b758d0f562d2f81b8acaf7b5582 (patch) | |
tree | 0b6f34526ca0037e3bcda816edb2204f91725843 /wizards | |
parent | b12ad0030d6985437b9930f838fcc9c1aa50aca5 (diff) |
method unused
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/text/TextFieldHandler.py | 38 |
1 files changed, 7 insertions, 31 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.py b/wizards/com/sun/star/wizards/text/TextFieldHandler.py index 97d578dd24e9..80e1abdcb0ae 100644 --- a/wizards/com/sun/star/wizards/text/TextFieldHandler.py +++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.py @@ -89,32 +89,24 @@ class TextFieldHandler(object): traceback.print_exc() def __getTextFieldsByProperty( - self, _PropertyName, _aPropertyValue, _TypeName): + self, _PropertyName, _aPropertyValue): try: xProperty = TextFieldHandler.dictTextFields[_aPropertyValue] xPropertySet = xProperty.TextFieldMaster if xPropertySet.PropertySetInfo.hasPropertyByName( _PropertyName): oValue = xPropertySet.getPropertyValue(_PropertyName) - if _TypeName == "String": - sValue = unicodedata.normalize( - 'NFKD', oValue).encode('ascii','ignore') - if sValue == _aPropertyValue: - return xProperty - #COMMENTED - '''elif AnyConverter.isShort(oValue): - if _TypeName.equals("Short"): - iShortParam = (_aPropertyValue).shortValue() - ishortValue = AnyConverter.toShort(oValue) - if ishortValue == iShortParam: - xDependentVector.append(oTextField) ''' + sValue = unicodedata.normalize( + 'NFKD', oValue).encode('ascii','ignore') + if sValue == _aPropertyValue: + return xProperty return None except KeyError, e: return None def changeUserFieldContent(self, _FieldName, _FieldContent): DependentTextFields = self.__getTextFieldsByProperty( - PropertyNames.PROPERTY_NAME, _FieldName, "String") + PropertyNames.PROPERTY_NAME, _FieldName) if DependentTextFields is not None: DependentTextFields.TextFieldMaster.setPropertyValue("Content", _FieldContent) self.refreshTextFields() @@ -163,7 +155,7 @@ class TextFieldHandler(object): def removeUserFieldByContent(self, _FieldContent): try: xDependentTextFields = self.__getTextFieldsByProperty( - "Content", _FieldContent, "String") + "Content", _FieldContent) if xDependentTextFields != None: i = 0 while i < xDependentTextFields.length: @@ -172,19 +164,3 @@ class TextFieldHandler(object): except Exception, e: traceback.print_exc() - - def changeExtendedUserFieldContent(self, UserDataPart, _FieldContent): - try: - xDependentTextFields = self.__getTextFieldsByProperty( - "UserDataType", UserDataPart, "Short") - if xDependentTextFields != None: - i = 0 - while i < xDependentTextFields.length: - xDependentTextFields[i].getTextFieldMaster().setPropertyValue( - "Content", _FieldContent) - i += 1 - - self.refreshTextFields() - except Exception, e: - traceback.print_exc() - |