Package com.sun.star.style

Examples of com.sun.star.style.BreakType


            exception.printStackTrace(System.out);
        }
    }

    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


        }
    }

    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

        }
    }

    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

        }
    }

    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

   *
   * @author Andreas Br�ker
   */
  public short getBreakType() throws TextException {
    try {
      BreakType breakType = (BreakType)getXPropertySet().getPropertyValue("BreakType");
      if(breakType == BreakType.PAGE_AFTER)
        return IParagraphProperties.BREAK_TYPE_PAGE_AFTER;
      else if(breakType == BreakType.PAGE_BEFORE)
        return IParagraphProperties.BREAK_TYPE_PAGE_BEFORE;
      else if(breakType == BreakType.PAGE_BOTH)
View Full Code Here

   *
   * @author Andreas Br�ker
   */
  public short getBreakType() throws TextException {
    try {
      BreakType breakType = (BreakType) getXPropertySet()
          .getPropertyValue("BreakType");
      if (breakType == BreakType.PAGE_AFTER)
        return IParagraphProperties.BREAK_TYPE_PAGE_AFTER;
      else if (breakType == BreakType.PAGE_BEFORE)
        return IParagraphProperties.BREAK_TYPE_PAGE_BEFORE;
View Full Code Here

            exception.printStackTrace(System.out);
        }
    }

    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

  int GroupFieldCount = Tools.getArraylength(CurDBMetaData.GroupFieldNames);
  int FieldCount = Tools.getArraylength(CurDBMetaData.FieldNames);
  Object[] OldGroupFieldValues = new Object[GroupFieldCount];
  XTextTable[] xGroupBaseTables = new XTextTable[GroupFieldCount];
  int RecordFieldCount = FieldCount - GroupFieldCount;
  BreakType CorrBreakValue = null;
  String CorrPageDescName = "";
  XNameAccess xTextTables = CurReportDocument.xTextTablesSupplier.getTextTables();
  xTextDocument = CurReportDocument.xTextDocument;
        xTextCursor = CurReportDocument.createTextCursor(CurReportDocument.xTextDocument.getText());
  xTextDocument.lockControllers();
View Full Code Here

    public void selectFirstPage(){
    try{
  XTextRange xRange;
  Object oFirstTextTable;
  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) 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.