name.dhiller.jBorderLiner
Class BL_TB_SelectLWBtn

java.lang.Object
  extended by name.dhiller.jBorderLiner.BL_ToolbarItem
      extended by name.dhiller.jBorderLiner.BL_TB_SelectLWBtn

 class BL_TB_SelectLWBtn
extends BL_ToolbarItem

Version:
120204
Author:
Dhiller

Field Summary
(package private) static int icurrentLineWidth
           
private static double iInitialValue
           
private static double iLowerLimit
           
private static double iStep
           
private static double iUpperLimit
           
 
Fields inherited from class name.dhiller.jBorderLiner.BL_ToolbarItem
m_URL
 
Constructor Summary
BL_TB_SelectLWBtn()
          Creates a new instance of BL_TB_ActiveBtn
 
Method Summary
(package private)  void dispatch(com.sun.star.util.URL aURL, com.sun.star.beans.PropertyValue[] aArguments)
          dispatch - got a message, linewidth changed, get value and set to all
(package private)  int GetLineWidth()
          return the linewidth
(package private)  void Init(com.sun.star.frame.XFrame xFrame, com.sun.star.frame.XStatusListener xControl, com.sun.star.util.URL aURL)
          init - Initialize Toolbarbutton to select the linestyle
(package private)  int LinePt2LineWidth(double dPt)
          Convert Linewidth in Points to LineWidth(LibreOffice)
(package private)  double LineWidth2LinePt(int iLW)
          Convert LineWidth(LibreOffice) to Linewidth in Points
(package private)  void setLineWidth(int iLW)
          set line Width need to write value to toolbar again in case user entered data manually and also to inform all toolbars of the change
(package private)  void setLineWidthFromTB(double dLWPt)
          set line Width from the toolbar need to write value to toolbar again in case user entered data manually and also to inform all toolbars of the change
 
Methods inherited from class name.dhiller.jBorderLiner.BL_ToolbarItem
changeStatusFrame, GetControl, getControlElement, getControlElementFromFrame, GetFrame, Init, removeContext, SendCommandTo, sendCommandToAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

icurrentLineWidth

static int icurrentLineWidth

iInitialValue

private static final double iInitialValue
See Also:
Constant Field Values

iLowerLimit

private static final double iLowerLimit
See Also:
Constant Field Values

iStep

private static final double iStep
See Also:
Constant Field Values

iUpperLimit

private static final double iUpperLimit
See Also:
Constant Field Values
Constructor Detail

BL_TB_SelectLWBtn

BL_TB_SelectLWBtn()
Creates a new instance of BL_TB_ActiveBtn

Method Detail

Init

void Init(com.sun.star.frame.XFrame xFrame,
          com.sun.star.frame.XStatusListener xControl,
          com.sun.star.util.URL aURL)
init - Initialize Toolbarbutton to select the linestyle

Parameters:
xFrame -
com.sun.star.frame.XStatusListener - xControl
com.sun.star.util.URL - my URL

dispatch

void dispatch(com.sun.star.util.URL aURL,
              com.sun.star.beans.PropertyValue[] aArguments)
dispatch - got a message, linewidth changed, get value and set to all

Overrides:
dispatch in class BL_ToolbarItem
Parameters:
com.sun.star.util.URL - my URL
com.sun.star.beans.PropertyValue[] - Arguments, Name = "KeyModifier", "Value"

GetLineWidth

int GetLineWidth()
return the linewidth


setLineWidthFromTB

void setLineWidthFromTB(double dLWPt)
set line Width from the toolbar need to write value to toolbar again in case user entered data manually and also to inform all toolbars of the change

Parameters:
iLw - - LineWidth

setLineWidth

void setLineWidth(int iLW)
set line Width need to write value to toolbar again in case user entered data manually and also to inform all toolbars of the change

Parameters:
iLw - - LineWidth

LinePt2LineWidth

int LinePt2LineWidth(double dPt)
Convert Linewidth in Points to LineWidth(LibreOffice)

Parameters:
dPt -
Returns:

LineWidth2LinePt

double LineWidth2LinePt(int iLW)
Convert LineWidth(LibreOffice) to Linewidth in Points

Parameters:
Linewidth -
Returns:
Linewidth in Points (multiples of 0.25)