summaryrefslogtreecommitdiff
path: root/accessibility/workben/org/openoffice/accessibility/awb/view
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/workben/org/openoffice/accessibility/awb/view')
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/ComponentView.java16
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/ContextView.java4
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/EditableTextView.java4
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/EventMonitorView.java2
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/FocusView.java2
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/LayoutManager.java2
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/ObjectView.java2
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/ObjectViewContainer.java22
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/ParentView.java6
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/SelectionView.java14
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/ServiceInterfaceView.java4
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/StateSetView.java6
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/TableView.java6
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/TextView.java30
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/ViewGridLayout.java4
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/text/CaretSpinnerModel.java6
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/text/TextActionDialog.java34
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/text/TextAttributeDialog.java50
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/text/TextDialogFactory.java22
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/view/text/TextEditDialog.java10
20 files changed, 123 insertions, 123 deletions
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/ComponentView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/ComponentView.java
index d4c0e102b7a9..42c0a5d82783 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/ComponentView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/ComponentView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ import com.sun.star.uno.UnoRuntime;
import org.openoffice.accessibility.misc.NameProvider;
/** The <type>ContextView</type> class displays information accessible over
- the <type>XAccessibleContext</type> interface. This includes name,
+ the <type>XAccessibleContext</type> interface. This includes name,
description, and role.
*/
public class ComponentView
@@ -77,7 +77,7 @@ public class ComponentView
maBackgroundColorLabel = aLayout.AddLabeledEntry ("Background Color: ");
}
-
+
public void SetObject (XAccessibleContext xContext)
{
mxComponent = (XAccessibleComponent)UnoRuntime.queryInterface(
@@ -102,7 +102,7 @@ public class ComponentView
com.sun.star.awt.Point aLocation = mxComponent.getLocation();
maRelativeLocationLabel.setText (
aLocation.X + ", " + aLocation.Y);
- com.sun.star.awt.Point aLocationOnScreen =
+ com.sun.star.awt.Point aLocationOnScreen =
mxComponent.getLocationOnScreen();
maAbsoluteLocationLabel.setText (
aLocationOnScreen.X + ", " + aLocationOnScreen.Y);
@@ -111,7 +111,7 @@ public class ComponentView
aSize.Width + ", " + aSize.Height);
com.sun.star.awt.Rectangle aBBox = mxComponent.getBounds();
maBoundingBoxLabel.setText (
- aBBox.X + ", " + aBBox.Y + ","
+ aBBox.X + ", " + aBBox.Y + ","
+ aBBox.Width + ", " + aBBox.Height);
int nColor = mxComponent.getForeground();
maForegroundColorLabel.setText (
@@ -135,7 +135,7 @@ public class ComponentView
sConsistency += (sConsistency.length()!=0?", ":"") +
"Bounding box conflicts with size";
XAccessible xParent = mxContext.getAccessibleParent();
- XAccessibleComponent xParentComponent =
+ XAccessibleComponent xParentComponent =
(XAccessibleComponent)UnoRuntime.queryInterface(
XAccessibleComponent.class, xParent);
if (xParentComponent == null)
@@ -148,9 +148,9 @@ public class ComponentView
}
else
{
- com.sun.star.awt.Point aParentLocationOnScreen =
+ com.sun.star.awt.Point aParentLocationOnScreen =
xParentComponent.getLocationOnScreen();
- if (aLocation.X+aParentLocationOnScreen.X
+ if (aLocation.X+aParentLocationOnScreen.X
!= aLocationOnScreen.X
|| aLocation.Y+aParentLocationOnScreen.Y
!= aLocationOnScreen.Y)
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/ContextView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/ContextView.java
index a8588cd18ca6..6989f414233a 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/ContextView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/ContextView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ import com.sun.star.accessibility.XAccessibleContext;
import org.openoffice.accessibility.misc.NameProvider;
/** The <type>ContextView</type> class displays information accessible over
- the <type>XAccessibleContext</type> interface. This includes name,
+ the <type>XAccessibleContext</type> interface. This includes name,
description, and role.
*/
public class ContextView
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/EditableTextView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/EditableTextView.java
index 2e39f117f62e..ae8b9cd47434 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/EditableTextView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/EditableTextView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ public class EditableTextView
ObjectViewContainer aContainer,
XAccessibleContext xContext)
{
- XAccessibleEditableText xEditableText =
+ XAccessibleEditableText xEditableText =
(XAccessibleEditableText)UnoRuntime.queryInterface(
XAccessibleEditableText.class, xContext);
if (xEditableText != null)
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/EventMonitorView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/EventMonitorView.java
index 67e8091e027f..f3228e36d5fd 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/EventMonitorView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/EventMonitorView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/FocusView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/FocusView.java
index 4dec27958d71..5a68a9294107 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/FocusView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/FocusView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/LayoutManager.java b/accessibility/workben/org/openoffice/accessibility/awb/view/LayoutManager.java
index 728b3dc426d7..0bbe0bd3e444 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/LayoutManager.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/LayoutManager.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/ObjectView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/ObjectView.java
index 3c1b8e90ff26..ada74f6dba0a 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/ObjectView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/ObjectView.java
@@ -80,7 +80,7 @@ abstract public class ObjectView
/** Implement this method if you are interested in accessible events.
*/
- public void notifyEvent (AccessibleEventObject aEvent)
+ public void notifyEvent (AccessibleEventObject aEvent)
{}
/// Reference to the current object to display information about.
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/ObjectViewContainer.java b/accessibility/workben/org/openoffice/accessibility/awb/view/ObjectViewContainer.java
index 54855cbaf885..bc86cb3eef9e 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/ObjectViewContainer.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/ObjectViewContainer.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -126,7 +126,7 @@ public class ObjectViewContainer
Class aViewClass = (Class)maViewTemplates.elementAt (i);
Method aCreateMethod = aViewClass.getDeclaredMethod (
"Create", new Class[] {
- ObjectViewContainer.class,
+ ObjectViewContainer.class,
XAccessibleContext.class});
if (aCreateMethod != null)
{
@@ -137,13 +137,13 @@ public class ObjectViewContainer
}
}
catch (NoSuchMethodException e)
- {System.err.println ("Caught exception while creating view "
+ {System.err.println ("Caught exception while creating view "
+ i + " : " + e);}
catch (IllegalAccessException e)
- {System.err.println ("Caught exception while creating view "
+ {System.err.println ("Caught exception while creating view "
+ i + " : " + e);}
catch (InvocationTargetException e)
- {System.err.println ("Caught exception while creating view "
+ {System.err.println ("Caught exception while creating view "
+ i + " : " + e);}
}
@@ -227,7 +227,7 @@ public class ObjectViewContainer
/** Update the layout manager by setting the vertical weight of the
bottom entry to 1 and so make it strech to over the available
space.
-
+
*/
private void UpdateLayoutManager ()
{
@@ -250,10 +250,10 @@ public class ObjectViewContainer
*/
public void notifyEvent (final AccessibleEventObject aEvent)
{
- SwingUtilities.invokeLater(
- new Runnable()
+ SwingUtilities.invokeLater(
+ new Runnable()
{
- public void run()
+ public void run()
{
DispatchEvent (aEvent);
}
@@ -282,14 +282,14 @@ public class ObjectViewContainer
public void disposing (EventObject aEvent)
{
mxContext = null;
- SwingUtilities.invokeLater(
+ SwingUtilities.invokeLater(
new Runnable()
{
public void run()
{
SetObject (null);
}
- }
+ }
);
}
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/ParentView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/ParentView.java
index 216bc3a82bfc..828c3fd1a34a 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/ParentView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/ParentView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,13 +87,13 @@ public class ParentView
if (xParent != null)
{
maParentLabel.setText ("yes");
- XAccessibleContext xParentContext =
+ XAccessibleContext xParentContext =
xParent.getAccessibleContext();
if (xParentContext != null)
{
try
{
- XAccessible xChild =
+ XAccessible xChild =
xParentContext.getAccessibleChild(nIndex);
if (xChild != mxContext)
maValidLabel.setText ("yes");
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/SelectionView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/SelectionView.java
index ad5a83467372..4970546fd1ff 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/SelectionView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/SelectionView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -184,20 +184,20 @@ class SelectionView
{
XAccessible xChild = mxContext.getAccessibleChild(i);
XAccessibleContext xChildContext = xChild.getAccessibleContext();
-
+
String sName = i + " " + xChildContext.getAccessibleName();
JToggleButton aChild;
aChild = new JCheckBox (sName);
aChild.setFont (maContainer.GetViewFont());
- XAccessibleStateSet aChildStateSet =
+ XAccessibleStateSet aChildStateSet =
mxContext.getAccessibleStateSet();
- aChild.setSelected (aChildStateSet!=null
+ aChild.setSelected (aChildStateSet!=null
&& aChildStateSet.contains(AccessibleStateType.SELECTED));
-
+
aChild.addActionListener (this);
maChildrenSelector.add (aChild);
-
+
}
catch (IndexOutOfBoundsException e)
{
@@ -216,7 +216,7 @@ class SelectionView
{
mxSelection.clearAccessibleSelection();
}
-
+
/** Call the function associated with the pressed button.
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/ServiceInterfaceView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/ServiceInterfaceView.java
index 7c41ff01c97e..a6292d00be71 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/ServiceInterfaceView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/ServiceInterfaceView.java
@@ -95,12 +95,12 @@ public class ServiceInterfaceView
{
maImplementationNameRoot.add (
new DefaultMutableTreeNode (
- (xServiceInfo!=null
+ (xServiceInfo!=null
? xServiceInfo.getImplementationName()
: "<XServiceInfo not supported>")));
}
}
-
+
private void CreateServiceTree ()
{
XServiceInfo xServiceInfo = (XServiceInfo)UnoRuntime.queryInterface(
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/StateSetView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/StateSetView.java
index 44638b099edc..a8c6b23b33c5 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/StateSetView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/StateSetView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ public class StateSetView
ObjectView aView = null;
if (xContext != null)
aView = new StateSetView (aContainer);
-
+
return aView;
}
@@ -112,7 +112,7 @@ public class StateSetView
Color aTextColor = g.getColor();
g.setRenderingHint (
- RenderingHints.KEY_ANTIALIASING,
+ RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
XAccessibleStateSet xStateSet = ( mxContext != null ) ? mxContext.getAccessibleStateSet() : null;
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/TableView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/TableView.java
index 07b5d2bb9b78..35f037916482 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/TableView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/TableView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ import com.sun.star.uno.UnoRuntime;
/** The <type>ContextView</type> class displays information accessible over
- the <type>XAccessibleContext</type> interface. This includes name,
+ the <type>XAccessibleContext</type> interface. This includes name,
description, and role.
*/
public class TableView
@@ -72,7 +72,7 @@ public class TableView
maSelectedColumnsLabel = aLayout.AddLabeledEntry ("Selected Columns: ");
}
-
+
public void SetObject (XAccessibleContext xContext)
{
mxTable = (XAccessibleTable)UnoRuntime.queryInterface(
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/TextView.java b/accessibility/workben/org/openoffice/accessibility/awb/view/TextView.java
index 4a838aa85884..451097b5d6f3 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/TextView.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/TextView.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,7 +70,7 @@ public class TextView
extends ObjectView
implements ActionListener
{
-
+
/** Create a TextView when the given object supports the
XAccessibleText interface.
*/
@@ -171,8 +171,8 @@ public class TextView
Integer.toString(mxText.getCharacterCount()));
// Selection.
maSelectionLabel.setText (
- "[" + mxText.getSelectionStart()
- + "," + mxText.getSelectionEnd()
+ "[" + mxText.getSelectionStart()
+ + "," + mxText.getSelectionEnd()
+ "] \"" + mxText.getSelectedText() + "\"");
// Character bounds.
@@ -185,7 +185,7 @@ public class TextView
XAccessibleMultiLineText xMultiText = (XAccessibleMultiLineText)
UnoRuntime.queryInterface( XAccessibleMultiLineText.class, mxText );
- if( null != xMultiText ) {
+ if( null != xMultiText ) {
try {
maCaretLineNoLabel.setText ( Integer.toString( xMultiText.getNumberOfLineWithCaret() ) );
TextSegment ts = xMultiText.getTextAtLineWithCaret();
@@ -267,7 +267,7 @@ public class TextView
aCharacterArray.append (",");
nIndex ++;
}
- if (nMaxDisplayCount < nCharacterCount)
+ if (nMaxDisplayCount < nCharacterCount)
aCharacterArray.append (", ...");
}
catch (IndexOutOfBoundsException e)
@@ -280,7 +280,7 @@ public class TextView
- /** Iterate over all characters and translate their positions
+ /** Iterate over all characters and translate their positions
back and forth.
*/
private String GetTextBoundsString ()
@@ -310,14 +310,14 @@ public class TextView
}
}
catch (IndexOutOfBoundsException aEvent)
- {
+ {
// Ignore errors.
}
return aBuffer.toString();
}
-
+
private final static int BEFORE = -1;
@@ -346,7 +346,7 @@ public class TextView
DefaultMutableTreeNode aSegmentNode = new DefaultMutableTreeNode (
new StringBuffer (
Integer.toString (nIndex) + " -> "
- + Integer.toString (aSegment.SegmentStart) + " - "
+ + Integer.toString (aSegment.SegmentStart) + " - "
+ Integer.toString (aSegment.SegmentEnd) + " : "
+ aSegment.SegmentText.toString()));
aNode.add (aSegmentNode);
@@ -373,18 +373,18 @@ public class TextView
case BEFORE:
aSegment = mxText.getTextBeforeIndex (nIndex, nTextType);
break;
-
+
case AT:
aSegment = mxText.getTextAtIndex (nIndex, nTextType);
break;
-
+
case BEHIND:
aSegment = mxText.getTextBehindIndex (nIndex, nTextType);
break;
default:
aSegment = new TextSegment();
- aSegment.SegmentText = new String ("unknown position " + nWhere);
+ aSegment.SegmentText = new String ("unknown position " + nWhere);
aSegment.SegmentStart = nIndex;
aSegment.SegmentStart = nIndex+1;
break;
@@ -414,7 +414,7 @@ public class TextView
/** Add to the given node one node for every attribute of the given segment.
*/
private void AddAttributeNodes (
- DefaultMutableTreeNode aNode,
+ DefaultMutableTreeNode aNode,
TextSegment aSegment)
{
try
@@ -433,7 +433,7 @@ public class TextView
}
private XAccessibleText mxText;
- private JLabel
+ private JLabel
maTextLabel,
maCharacterArrayLabel,
maCharacterCountLabel,
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/ViewGridLayout.java b/accessibility/workben/org/openoffice/accessibility/awb/view/ViewGridLayout.java
index bc598dcaf2fa..196ec3ccdc64 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/ViewGridLayout.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/ViewGridLayout.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ class ViewGridLayout
constraints.fill = GridBagConstraints.NONE;
aComponent.setFont (saFont);
maComponent.add (aComponent, constraints);
-
+
mnCurrentLine += 1;
return aComponent;
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/text/CaretSpinnerModel.java b/accessibility/workben/org/openoffice/accessibility/awb/view/text/CaretSpinnerModel.java
index c210b0eff086..c6d7e09ea3cc 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/text/CaretSpinnerModel.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/text/CaretSpinnerModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ import com.sun.star.lang.IndexOutOfBoundsException;
*/
public class CaretSpinnerModel
implements SpinnerModel
-{
+{
public CaretSpinnerModel (XAccessibleText xText)
{
mxText = xText;
@@ -86,7 +86,7 @@ public class CaretSpinnerModel
{
if (mxText != null)
return new Integer (mxText.getCaretPosition());
- else
+ else
return null;
}
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextActionDialog.java b/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextActionDialog.java
index f37969d5ee59..257cd34e33be 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextActionDialog.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextActionDialog.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,13 +51,13 @@ import com.sun.star.uno.UnoRuntime;
/**
* Display a dialog with a text field and a pair of cancel/do-it buttons
*/
-class TextActionDialog
+class TextActionDialog
extends JDialog
implements ActionListener
{
public TextActionDialog (
XAccessibleContext xContext,
- String sExplanation,
+ String sExplanation,
String sTitle)
{
super();// AccessibilityWorkBench.Instance() );
@@ -96,7 +96,7 @@ class TextActionDialog
maText.setText (sText);
maText.setRows (sText.length() / 40 + 1);
maText.setColumns (Math.min (Math.max (40, sText.length()), 20));
-
+
JPanel aButtons = new JPanel();
aButtons.setLayout (new FlowLayout());
maIndexToggle = new JCheckBox ("reverse selection");
@@ -133,17 +133,17 @@ class TextActionDialog
}
- protected int GetSelectionStart()
- {
- return GetSelection(true);
+ protected int GetSelectionStart()
+ {
+ return GetSelection(true);
}
- protected int GetSelectionEnd()
+ protected int GetSelectionEnd()
{
- return GetSelection(false);
+ return GetSelection(false);
}
private int GetSelection (boolean bStart)
{
- if (bStart ^ maIndexToggle.isSelected())
+ if (bStart ^ maIndexToggle.isSelected())
return maText.getSelectionStart();
else
return maText.getSelectionEnd();
@@ -157,18 +157,18 @@ class TextActionDialog
boolean bSuccess = true;
try
{
- XAccessibleText xText =
+ XAccessibleText xText =
(XAccessibleText)UnoRuntime.queryInterface(
XAccessibleText.class, mxContext);
if (xText != null)
bSuccess = bSuccess && TextAction (xText);
- XAccessibleEditableText xEditableText =
+ XAccessibleEditableText xEditableText =
(XAccessibleEditableText)UnoRuntime.queryInterface(
XAccessibleEditableText.class, mxContext);
if (xEditableText != null)
bSuccess = bSuccess && EditableTextAction (xEditableText);
-
+
if ( ! bSuccess)
sError = "Can't execute";
}
@@ -179,9 +179,9 @@ class TextActionDialog
if (sError != null)
JOptionPane.showMessageDialog (
- this,// AccessibilityWorkBench.Instance(),
- sError,
- msTitle,
+ this,// AccessibilityWorkBench.Instance(),
+ sError,
+ msTitle,
JOptionPane.ERROR_MESSAGE);
Cancel();
@@ -194,7 +194,7 @@ class TextActionDialog
return true;
}
- boolean EditableTextAction (XAccessibleEditableText xText)
+ boolean EditableTextAction (XAccessibleEditableText xText)
throws IndexOutOfBoundsException
{
return true;
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextAttributeDialog.java b/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextAttributeDialog.java
index dad548ca730e..05d8ff480cee 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextAttributeDialog.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextAttributeDialog.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ import com.sun.star.lang.IndexOutOfBoundsException;
import com.sun.star.uno.UnoRuntime;
-class TextAttributeDialog
+class TextAttributeDialog
extends TextActionDialog
{
public TextAttributeDialog (XAccessibleContext xContext)
@@ -61,7 +61,7 @@ class TextAttributeDialog
protected void Layout ()
{
super.Layout ();
-
+
maForeground = Color.black;
maBackground = Color.white;
@@ -72,28 +72,28 @@ class TextAttributeDialog
maUnderlineCheckBox = new JCheckBox ("underline");
maItalicsCheckBox = new JCheckBox ("italics");
- JButton aForegroundButton = new JButton ("Foreground",
+ JButton aForegroundButton = new JButton ("Foreground",
new TextAttributeDialog.ColorIcon(true));
- aForegroundButton.addActionListener (new ActionListener()
+ aForegroundButton.addActionListener (new ActionListener()
{
- public void actionPerformed (ActionEvent aEvent)
- {
+ public void actionPerformed (ActionEvent aEvent)
+ {
maForeground = JColorChooser.showDialog (
- TextAttributeDialog.this,
- "Select Foreground Color",
+ TextAttributeDialog.this,
+ "Select Foreground Color",
maForeground);
}
} );
-
- JButton aBackgroundButton = new JButton("Background",
+
+ JButton aBackgroundButton = new JButton("Background",
new TextAttributeDialog.ColorIcon(false));
- aBackgroundButton.addActionListener (new ActionListener()
+ aBackgroundButton.addActionListener (new ActionListener()
{
public void actionPerformed (ActionEvent eEvent)
- {
+ {
maBackground = JColorChooser.showDialog(
- TextAttributeDialog.this,
- "Select Background Color",
+ TextAttributeDialog.this,
+ "Select Background Color",
maBackground);
}
} );
@@ -131,14 +131,14 @@ class TextAttributeDialog
aSequence[5] = new PropertyValue();
aSequence[5].Name = "CharBackTransparent";
aSequence[5].Value = new Boolean (false);
-
+
return xText.setAttributes (
- GetSelectionStart(),
+ GetSelectionStart(),
GetSelectionEnd(),
aSequence);
}
- class ColorIcon
+ class ColorIcon
implements Icon
{
public ColorIcon(boolean bWhich) { bForeground = bWhich; }
@@ -158,21 +158,21 @@ class TextAttributeDialog
else
return maBackground;
}
-
+
private static final int nHeight = 16;
private static final int nWidth = 16;
private boolean bForeground;
}
+
-
- private JCheckBox
- maBoldCheckBox,
- maUnderlineCheckBox,
+ private JCheckBox
+ maBoldCheckBox,
+ maUnderlineCheckBox,
maItalicsCheckBox;
- private Color
- maForeground,
+ private Color
+ maForeground,
maBackground;
}
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextDialogFactory.java b/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextDialogFactory.java
index cdb3f26b5e55..70371324d1bd 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextDialogFactory.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextDialogFactory.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,14 +36,14 @@ import com.sun.star.accessibility.XAccessibleText;
import com.sun.star.lang.IndexOutOfBoundsException;
import com.sun.star.uno.UnoRuntime;
-
+
/** Factory for dialogs of the text views.
-*/
+*/
public class TextDialogFactory
{
static public JDialog CreateSelectionDialog (XAccessibleContext xContext)
{
- JDialog aDialog = new TextActionDialog(
+ JDialog aDialog = new TextActionDialog(
xContext,
"Select range:",
"select")
@@ -51,8 +51,8 @@ public class TextDialogFactory
boolean TextAction (XAccessibleText xText)
throws IndexOutOfBoundsException
{
- return xText.setSelection(
- GetSelectionStart(),
+ return xText.setSelection(
+ GetSelectionStart(),
GetSelectionEnd() );
}
};
@@ -71,8 +71,8 @@ public class TextDialogFactory
boolean TextAction (XAccessibleText xText)
throws IndexOutOfBoundsException
{
- return xText.copyText(
- GetSelectionStart(),
+ return xText.copyText(
+ GetSelectionStart(),
GetSelectionEnd());
}
};
@@ -90,8 +90,8 @@ public class TextDialogFactory
boolean EditableTextAction (XAccessibleEditableText xText)
throws IndexOutOfBoundsException
{
- return xText.cutText(
- GetSelectionStart(),
+ return xText.cutText(
+ GetSelectionStart(),
GetSelectionEnd() );
}
};
@@ -120,7 +120,7 @@ public class TextDialogFactory
{
JDialog aDialog = new TextEditDialog (
xContext,
- "Edit text:",
+ "Edit text:",
"edit");
if (aDialog != null)
aDialog.show();
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextEditDialog.java b/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextEditDialog.java
index a8710cbad7cc..9d5aec4649f5 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextEditDialog.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/view/text/TextEditDialog.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,12 +35,12 @@ import com.sun.star.lang.IndexOutOfBoundsException;
import com.sun.star.uno.UnoRuntime;
-class TextEditDialog
+class TextEditDialog
extends TextActionDialog
{
public TextEditDialog (
XAccessibleContext xContext,
- String sExplanation,
+ String sExplanation,
String sTitle )
{
super (xContext, sExplanation, sTitle);
@@ -83,7 +83,7 @@ class TextEditDialog
nFront++;
int nBack = 0;
while ((nBack < nMinLength) &&
- (sNew.charAt(sNew.length()-nBack-1) ==
+ (sNew.charAt(sNew.length()-nBack-1) ==
sOld.charAt(sOld.length()-nBack-1) ))
nBack++;
if (nFront + nBack > nMinLength)
@@ -94,7 +94,7 @@ class TextEditDialog
String sDel = sOld.substring (nFront, sOld.length() - nBack);
String sIns = sNew.substring (nFront, sNew.length() - nBack);
- System.out.println ("edit text: " +
+ System.out.println ("edit text: " +
sOld.substring(0, nFront) +
" [ " + sDel + " -> " + sIns + " ] " +
sOld.substring(sOld.length() - nBack));