Exemplo n.º 1
0
 /** sets given masterpage at the drawpage */
 public static void setMasterPage(XDrawPage xDrawPage, XDrawPage xMasterPage) {
   XMasterPageTarget xMasterPageTarget =
       (XMasterPageTarget) UnoRuntime.queryInterface(XMasterPageTarget.class, xDrawPage);
   xMasterPageTarget.setMasterPage(xMasterPage);
 }
Exemplo n.º 2
0
 /** return the corresponding masterpage for the giving drawpage */
 public static XDrawPage getMasterPage(XDrawPage xDrawPage) {
   XMasterPageTarget xMasterPageTarget =
       (XMasterPageTarget) UnoRuntime.queryInterface(XMasterPageTarget.class, xDrawPage);
   return xMasterPageTarget.getMasterPage();
 }