To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=67811
                 Issue #|67811
                 Summary|HiddenText Supported Services Interrogation
               Component|api
                 Version|OOo 2.0
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jsc
             Reported by|kmb1425





------- Additional comments from [EMAIL PROTECTED] Wed Jul 26 12:14:24 -0700 
2006 -------
Working in Java

The API documentation has the service HiddenText under the package,
com.sun.star.text.textfield. This seems to be correct. However, when
interrogated, an instance of the service responds with support for
"com.sun.star.text.TextField.HiddenText". I believe the error is most likely a
static String in the implementation of the class which should be set =
"com.sun.star.text.textfield.HiddenText".

Example <snip>

for (com.sun.star.container.XEnumeration fieldsEnumeration =
    xFieldsSupplier.getTextFields().createEnumeration();
    fieldsEnumeration.hasMoreElements();) {
    
    Object textField = fieldsEnumeration.nextElement();

    com.sun.star.lang.XServiceInfo serviceInfo =
        (com.sun.star.lang.XServiceInfo) UnoRuntime.queryInterface(
        com.sun.star.lang.XServiceInfo.class,
        textField);
    String[] serviceNames = serviceInfo.getSupportedServiceNames();
    for ( int serviceIx=0; serviceIx<serviceNames.length; serviceIx++ ){
        System.out.println("service: " + serviceNames[serviceIx]);
    }
    if ( serviceInfo.supportsService("com.sun.star.text.textfield.HiddenText") )
        System.out.println("supports: com.sun.star.text.textfield.HiddenText");
    else if (
serviceInfo.supportsService("com.sun.star.text.TextField.HiddenText") )
        System.out.println("supports: com.sun.star.text.textfield.HiddenText");
    else
        System.out.println("neither case");
}

</snip>

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to