Package com.sun.star.style

Examples of com.sun.star.style.BreakType


   
    public void selectFirstPage(){
    try{
  XTextRange xRange;
  XTextContent xTextTable;
  BreakType BreakValue;
  xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, xComponent);
  xViewCursorSupplier = (XTextViewCursorSupplier) UnoRuntime.queryInterface(XTextViewCursorSupplier.class, xTextDocument.getCurrentController())
  XPageCursor xPageCursor = (XPageCursor) UnoRuntime.queryInterface(XPageCursor.class, xViewCursorSupplier.getViewCursor());
  XTextCursor xViewTextCursor = (XTextCursor) UnoRuntime.queryInterface(XTextCursor.class,  xPageCursor);
  xPageCursor.jumpToFirstPage();
View Full Code Here


  }
    }
   
   
    public static BreakType resetBreakTypeofTextTable(Object oTextTable){
  BreakType CorrBreakValue = null;
  BreakType BreakValue = (BreakType) Tools.getUNOStructValue(oTextTable, "BreakType");
  if (BreakValue.equals(BreakType.NONE) == false){
      CorrBreakValue = BreakValue;
      Tools.setUNOPropertyValue(oTextTable, "BreakType", BreakType.NONE);
  }
  return CorrBreakValue;
    }
View Full Code Here

        }
    }

    public static BreakType resetBreakTypeofTextTable(Object oTextTable)
    {
        BreakType CorrBreakValue = null;
        BreakType BreakValue = (BreakType) com.sun.star.wizards.common.Helper.getUnoStructValue(oTextTable, "BreakType");
        //  if (BreakValue.equals(BreakType.NONE) == false){
        //      CorrBreakValue = BreakValue;
        Helper.setUnoPropertyValue(oTextTable, "BreakType", BreakType.NONE);
        //  }
        return BreakType.NONE;
View Full Code Here

TOP

Related Classes of com.sun.star.style.BreakType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.