kaushalc General User

Joined: 12 Jul 2009 Posts: 31
|
Posted: Tue Aug 10, 2010 4:35 am Post subject: |
|
|
xPageCursor.jumpToStartOfPage();
xTextCursor =(XTextCursor) UnoRuntime.queryInterface(XTextCursor.class,xPageCursor);
xTextCursorProps = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,xTextCursor);
pageStyleName= xTextCursorProps.getPropertyValue("PageStyleName").toString();
System.out.println("PAGE STYLE NAME::"+pageStyleName);
xStyle= (XStyle) UnoRuntime.queryInterface(XStyle.class,xFamily.getByName(pageStyleName));
xStyleProps = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,xStyle);
HeaderText = (com.sun.star.text.XText) UnoRuntime.queryInterface(com.sun.star.text.XText.class, xStyleProps.getPropertyValue("HeaderTextLeft"));
System.out.println("HEADER TEXT IS "+HeaderText.getString());
xHeaderTextCursor = HeaderText.createTextCursor(); |
|