summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/text/TextFieldHandler.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-07-12 18:33:10 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-18 02:57:43 +0200
commit2f5083e30bc29b758d0f562d2f81b8acaf7b5582 (patch)
tree0b6f34526ca0037e3bcda816edb2204f91725843 /wizards/com/sun/star/wizards/text/TextFieldHandler.py
parentb12ad0030d6985437b9930f838fcc9c1aa50aca5 (diff)
method unused
Diffstat (limited to 'wizards/com/sun/star/wizards/text/TextFieldHandler.py')
-rw-r--r--wizards/com/sun/star/wizards/text/TextFieldHandler.py38
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()
-