To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=101591
                 Issue #|101591
                 Summary|setting bullet properties ,font,color,size, indent thr
                        |ough openofffice java api 
               Component|Word processor
                 Version|1.0.1
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|FEATURE
                Priority|P3
            Subcomponent|programming
             Assigned to|writerneedsconfirm
             Reported by|prashanth_bhat





------- Additional comments from prashanth_b...@openoffice.org Wed May  6 
08:25:15 +0000 2009 -------
Can someone guide me how to set bullet offset position, bullet font and bullet 
color uisng openoffice api for java 

I know we have to use BulletFont -type ::com::sun::star::awt::FontDescriptor 
::com::sun::star::util::Color -BulletColor but can you tell me how to set these 
properties 

PropertyValue [] aProps = (PropertyValue [] ) xNum.getByIndex ( 0 ); 
// Iterate over the PropertyValue's for this numbering level, 
// looking for the 'NumberingType' and 'BulletChar' properties 
boolean bulletCharFound = false; 
for ( PropertyValue prop: aProps ) { 
if (prop.Name.equals("NumberingType")) { 
// bullets may be put via CHAR_SPECIAL 
prop.Value = new Short(NumberingType.CHAR_SPECIAL); 
} 
if (prop.Name.equals("BulletChar")) { 
// this should not append as the property does not exist 
// unless NumberingType is CHAR_SPECIAL 
// (which was probably not the case when we retrieved the properties) 
// prop.Value = "-"; 
bulletCharFound = true; 
} 
if (prop.Name.equals("BulletColor")) { 
prop.Value = ?? 
} 
if (prop.Name.equals("BulletFont")) { 
prop.Value = ?? 
} 

}

---------------------------------------------------------------------
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: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to