summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Forms/FLTools.java
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:19:40 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:19:40 +0200
commit566a5bcb2039dbe6db6b9696449c6f5fe142c763 (patch)
tree2012c7ad41c5058904ba05848e17d1e248f7559d /odk/examples/DevelopersGuide/Forms/FLTools.java
parentcbb79e541cd2aa1f56cf7fbefcf8d0ce9c8db664 (diff)
recreated tag libreoffice-3.3.0.4 which had these commits:
commit f4a669793477ff9765085fff8ced14cbe8d7f159 (tag: refs/tags/libreoffice-3.3.0.4, refs/remotes/origin/libreoffice-3-3-0) Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 18 19:01:21 2011 +0100 Version 3.3.0.4, tag libreoffice-3.3.0.4 (3.3-rc4) commit c6241c81b61717941cf0a3e4a4188468ceddef07 Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 11 22:59:38 2011 +0100 Branch libreoffice-3-3-0 This is 'libreoffice-3-3-0' - the stable branch for the 3.3.0 release. Only very safe changes, reviewed by three people are allowed. If you want to commit more complicated fix for the next 3.3.x release, please use the 'libreoffice-3-3' branch. If you want to build something cool, unstable, and risky, use master.
Notes
Notes: split repo tag: sdk_libreoffice-3.3.0.4
Diffstat (limited to 'odk/examples/DevelopersGuide/Forms/FLTools.java')
-rw-r--r--odk/examples/DevelopersGuide/Forms/FLTools.java34
1 files changed, 17 insertions, 17 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/FLTools.java b/odk/examples/DevelopersGuide/Forms/FLTools.java
index 3f87e77e1bd6..c50eb99149ba 100644
--- a/odk/examples/DevelopersGuide/Forms/FLTools.java
+++ b/odk/examples/DevelopersGuide/Forms/FLTools.java
@@ -2,7 +2,7 @@
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
@@ -29,7 +29,7 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*************************************************************************/
import com.sun.star.uno.*;
@@ -96,7 +96,7 @@ public class FLTools
XPropertySet xProps = UNO.queryPropertySet( aFormComponent );
XPropertySetInfo xPSI = ( null != xProps ) ? xProps.getPropertySetInfo() : null;
if ( null == xPSI )
- { // no property set or no property set info
+ { // no property set or no property set info
// can't do anything except falling back to the name
return getName( aFormComponent );
}
@@ -113,7 +113,7 @@ public class FLTools
sLabel = (String)xProps.getPropertyValue( "Label" );
if ( 0 == sLabel.length() )
- { // no Label property or no label set
+ { // no Label property or no label set
// -> fallback to the component name
sLabel = getName( aFormComponent );
}
@@ -145,7 +145,7 @@ public class FLTools
XInterface xCurrent = (XInterface)UnoRuntime.queryInterface(
XInterface.class, xIndexCont.getByIndex( 0 ) );
if ( xCurrent.equals( xElement ) )
- { // found
+ { // found
nIndex = i;
break;
}
@@ -225,24 +225,24 @@ public class FLTools
switch ( nClassId.intValue() )
{
case FormComponentType.COMMANDBUTTON: sType = "Command button"; break;
- case FormComponentType.RADIOBUTTON : sType = "Radio button"; break;
- case FormComponentType.IMAGEBUTTON : sType = "Image button"; break;
- case FormComponentType.CHECKBOX : sType = "Check Box"; break;
- case FormComponentType.LISTBOX : sType = "List Box"; break;
- case FormComponentType.COMBOBOX : sType = "Combo Box"; break;
- case FormComponentType.GROUPBOX : sType = "Group Box"; break;
- case FormComponentType.FIXEDTEXT : sType = "Fixed Text"; break;
- case FormComponentType.GRIDCONTROL : sType = "Grid Control"; break;
- case FormComponentType.FILECONTROL : sType = "File Control"; break;
+ case FormComponentType.RADIOBUTTON : sType = "Radio button"; break;
+ case FormComponentType.IMAGEBUTTON : sType = "Image button"; break;
+ case FormComponentType.CHECKBOX : sType = "Check Box"; break;
+ case FormComponentType.LISTBOX : sType = "List Box"; break;
+ case FormComponentType.COMBOBOX : sType = "Combo Box"; break;
+ case FormComponentType.GROUPBOX : sType = "Group Box"; break;
+ case FormComponentType.FIXEDTEXT : sType = "Fixed Text"; break;
+ case FormComponentType.GRIDCONTROL : sType = "Grid Control"; break;
+ case FormComponentType.FILECONTROL : sType = "File Control"; break;
case FormComponentType.HIDDENCONTROL: sType = "Hidden Control"; break;
case FormComponentType.IMAGECONTROL : sType = "Image Control"; break;
- case FormComponentType.DATEFIELD : sType = "Date Field"; break;
- case FormComponentType.TIMEFIELD : sType = "Time Field"; break;
+ case FormComponentType.DATEFIELD : sType = "Date Field"; break;
+ case FormComponentType.TIMEFIELD : sType = "Time Field"; break;
case FormComponentType.NUMERICFIELD : sType = "Numeric Field"; break;
case FormComponentType.CURRENCYFIELD: sType = "Currency Field"; break;
case FormComponentType.PATTERNFIELD : sType = "Pattern Field"; break;
- case FormComponentType.TEXTFIELD :
+ case FormComponentType.TEXTFIELD :
// there are two known services with this class id: the usual text field,
// and the formatted field
sType = "Text Field";