|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectname.dhiller.jBorderLiner.Borders
public class Borders
Borders handling
Field Summary | |
---|---|
private static short |
APPLYTO_CELL
|
private static short |
APPLYTO_TABLE
|
Constructor Summary | |
---|---|
Borders()
Creates a new instance of Borders |
Method Summary | |
---|---|
private static com.sun.star.table.BorderLine |
convert2toBorderLine(com.sun.star.table.BorderLine2 inBL2)
Convert BorderLine2 to BorderLine |
static void |
DoBorders(com.sun.star.frame.XFrame xFrame,
short Modifiers,
short KeyCode)
DoBorders - get or set Borders |
static com.sun.star.table.BorderLine2 |
GetBorderLine2(short Modifiers)
Get borders defined in the toolbar or zero if deleting desired (BorderLine2) |
static void |
GetBordersCell(Object oRange,
short Modifiers,
short KeyCode)
Get Borders from Cells |
static void |
GetBordersTable(Object oRange,
short Modifiers,
short KeyCode)
Get Borders from Table DEACTIVATED - requires manual conversion from Borderline2 to Borderline - not possible |
private static Object |
GetTheCell(com.sun.star.frame.XFrame xFrame,
short sApplyTo)
Cells the border shall be applied to |
static void |
SetBordersCell(Object oRange,
short Modifiers,
short KeyCode)
Set borders of cell or range(s) of cells |
static void |
SetBordersCellRange(Object oRange,
short Modifiers,
short KeyCode)
Set borders of cell or range of cells with 1 or more formats |
static void |
SetBordersSingleCell(Object oRange,
short Modifiers,
short KeyCode)
Set borders of cell or range(s) of cells |
static void |
SetBordersTable(Object oRange,
short Modifiers,
short KeyCode)
Set borders of table |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final short APPLYTO_CELL
private static final short APPLYTO_TABLE
Constructor Detail |
---|
public Borders()
Method Detail |
---|
public static void DoBorders(com.sun.star.frame.XFrame xFrame, short Modifiers, short KeyCode)
xFrame
- Modifiers
- com.sun.star.awt.KeyModifier.SHIFT, .MOD1 (Ctrl), .MOD2 (Alt)KeyCode
- com.sun.star.awt.Key.NUM1 ... .NUM9private static Object GetTheCell(com.sun.star.frame.XFrame xFrame, short sApplyTo)
ex.printStackTrace()
- IllegalArgumentException,
UnknownPropertyException, WrappedTargetExceptionpublic static void GetBordersCell(Object oRange, short Modifiers, short KeyCode)
oRange
- - where to get the borders fromModifiers
- - always .MOD1 (ctrl)KeyCode
- - NUM1 .. NUM9
com.sun.star.lang.WrappedTargetException
- ex.printStackTrace()
com.sun.star.beans.UnknownPropertyException
- ex.printStackTrace()public static void GetBordersTable(Object oRange, short Modifiers, short KeyCode)
oRange
- to get borders fromModifiers
- always .MOD1 (CTRL)KeyCode
- NUM1 ... NUM9public static void SetBordersCell(Object oRange, short Modifiers, short KeyCode)
oRange
- Modifiers
- - .SHIFT, .ALTKeyCode
- - NUM1 .. NUM8
ex.printStackTrace
- - NoSuchElementException, WrappedTargetExceptionpublic static void SetBordersCellRange(Object oRange, short Modifiers, short KeyCode)
oRange
- Modifiers
- - .SHIFT, .ALTKeyCode
- - NUM1 .. NUM8
ex.printStackTrace
- - HeadlessException, WrappedTargetException,
UnknownPropertyException, PropertyVetoException,
IllegalArgumentExceptionpublic static void SetBordersSingleCell(Object oRange, short Modifiers, short KeyCode)
oRange
- Modifiers
- - .SHIFT, .ALTKeyCode
- - NUM1 .. NUM8
ex.printStackTrace
- - HeadlessException, WrappedTargetException,
UnknownPropertyException, PropertyVetoException,
IllegalArgumentExceptionpublic static void SetBordersTable(Object oRange, short Modifiers, short KeyCode)
oRange
- Modifiers
- - .SHIFT, .ALTKeyCode
- - NUM2 .. NUM9
ex.printStackTrace
- - HeadlessException, WrappedTargetException,
UnknownPropertyException, PropertyVetoException,
IllegalArgumentExceptionpublic static com.sun.star.table.BorderLine2 GetBorderLine2(short Modifiers)
Modifiers
- - .SHIFT, .ALTprivate static com.sun.star.table.BorderLine convert2toBorderLine(com.sun.star.table.BorderLine2 inBL2)
inBL2
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |