summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/agenda
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/agenda')
-rw-r--r--wizards/com/sun/star/wizards/agenda/AgendaTemplate.java94
-rw-r--r--wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.java114
-rw-r--r--wizards/com/sun/star/wizards/agenda/AgendaWizardDialogConst.java50
-rw-r--r--wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.java210
-rw-r--r--wizards/com/sun/star/wizards/agenda/AgendaWizardDialogResources.java70
-rw-r--r--wizards/com/sun/star/wizards/agenda/CGAgenda.java2
-rw-r--r--wizards/com/sun/star/wizards/agenda/CGTopic.java18
-rw-r--r--wizards/com/sun/star/wizards/agenda/CallWizard.java10
-rw-r--r--wizards/com/sun/star/wizards/agenda/TemplateConsts.java14
-rw-r--r--wizards/com/sun/star/wizards/agenda/TopicsControl.java82
10 files changed, 332 insertions, 332 deletions
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaTemplate.java b/wizards/com/sun/star/wizards/agenda/AgendaTemplate.java
index 422f4c8134f9..c754c200d88d 100644
--- a/wizards/com/sun/star/wizards/agenda/AgendaTemplate.java
+++ b/wizards/com/sun/star/wizards/agenda/AgendaTemplate.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
@@ -65,13 +65,13 @@ import com.sun.star.wizards.ui.UnoDialog2;
import com.sun.star.wizards.ui.event.DataAware;
/**
- *
- * The classes here implement the whole document-functionality of the agenda wizard:
+ *
+ * The classes here implement the whole document-functionality of the agenda wizard:
* the live-preview and the final "creation" of the document, when the user clicks "finish". <br/>
* <br/>
* <h2>Some terminology:<h2/>
* items are names or headings. we don't make any distinction.
- *
+ *
* <br/>
* The Agenda Template is used as general "controller" of the whole document, whereas the
* two child-classes ItemsTable and TopicsTable control the item tables (note plural!) and the
@@ -105,7 +105,7 @@ import com.sun.star.wizards.ui.event.DataAware;
* Many methods here are synchronized, in order to avoid colission made by
* events fired too often.
* @author rpiterman
- *
+ *
*/
public class AgendaTemplate extends TextDocument implements TemplateConsts, DataAware.Listener
{
@@ -132,10 +132,10 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
* The template-filename of the current template.
* Since we often re-link section and the break the link,
* inorder to restore them, we need a template to link to.
- * This is practically an identicall copy of the current template.
+ * This is practically an identicall copy of the current template.
*/
String template;
- /**
+ /**
* used for common operations on sections.
*/
TextSectionHandler textSectionHandler;
@@ -144,8 +144,8 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
*/
XComponentLoader xComponentLoader;
/**
- * an array containing all ItemTable object (which control each an Items
- * Table in the document.
+ * an array containing all ItemTable object (which control each an Items
+ * Table in the document.
*/
ItemsTable[] itemsTables;
/**
@@ -167,8 +167,8 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
* A temporary variable used to list all items and map them.
*/
List _allItems = new Vector();
- /**
- * keep a reference on some static items in the document,
+ /**
+ * keep a reference on some static items in the document,
* so when their content is changed (through the user), we
* can just reference them and set their text.
*/
@@ -364,7 +364,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
}
/**
- * itemsCache is a Map containing all agenda item. These are object which
+ * itemsCache is a Map containing all agenda item. These are object which
* "write themselfs" to the table, given a table cursor.
* A cache is used in order to reuse the objects, instead of recreate them.
* This method fills the cache will all items objects (names and headings).
@@ -714,7 +714,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
textSectionHandler.removeAllTextSections();
}
- /**
+ /**
* hidden sections exist when an item's section is hidden because the
* user specified not to display any items which it contains.
* When finishing the wizard removes this sections entireley from the document.
@@ -744,9 +744,9 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
/**
* create the minutes for the given topics or remove the minutes section from the document.
- * If no topics are supplied, or the user
- * specified not to create minuts, the minutes section will be removed,
- * @param topicsData supplies PropertyValue arrays containing the values for the topics.
+ * If no topics are supplied, or the user
+ * specified not to create minuts, the minutes section will be removed,
+ * @param topicsData supplies PropertyValue arrays containing the values for the topics.
*/
public synchronized void createMinutes(List topicsData)
{
@@ -815,7 +815,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
* now add minutes for each topic.
* The template contains *one* minutes section, so
* we first use the one available, and then add a new one...
- *
+ *
* topics data has *always* an empty topic at the end...
*/
for (int i = 0; i < topicsData.size() - 1; i++)
@@ -1028,9 +1028,9 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
/* now go through all items that belong to this
* table. Check each one agains the model. If it should
* be display, call it's write method.
- * All items are of type AgendaItem which means they write
+ * All items are of type AgendaItem which means they write
* two cells to the table: a title (text) and a placeholder.
- * see AgendaItem class below.
+ * see AgendaItem class below.
*/
for (int i = 0; i < items.size(); i++)
{
@@ -1086,7 +1086,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
int rowIndex = getRowIndex(cursor);
int rowsCount = getRowCount((XTextTable) UnoRuntime.queryInterface(XTextTable.class, table));
- /* now before deleteing i move the cursor up so it
+ /* now before deleteing i move the cursor up so it
* does not disappear, because it will crash office.
*/
cursor.gotoStart(false);
@@ -1109,7 +1109,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
/**
* This class handles the preview of the topics table.
* You can call it the controller of the topics table.
- * It differs from ItemsTable in that it has no data model -
+ * It differs from ItemsTable in that it has no data model -
* the update is done programttically.<br/>
* <br/>
* The decision to make this class a class by its own
@@ -1117,7 +1117,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
* since there is anyway only one instance of this class at runtime
* it could have also be implemented in the AgendaTemplate class
* but for clarity and separation I decided to make a sub class for it.
- *
+ *
* @author rp143992
*/
public class Topics
@@ -1147,7 +1147,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
List topicCells = new Vector();
int rowsPerTopic;
/**
- * fields which hold the number of the
+ * fields which hold the number of the
* fillins in the cells vectors.
*/
int numCell = -1;
@@ -1167,7 +1167,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
/**
* Analyze the structure of the Topics table.
* The structure Must be as follows:<br>
- * -One Header Row. <br>
+ * -One Header Row. <br>
* -arbitrary number of rows per topic <br>
* -arbitrary content in the topics row <br>
* -only soft formatting will be restored. <br>
@@ -1225,7 +1225,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
}
/*
- * in the topics table, there are always one
+ * in the topics table, there are always one
* title row and three topics defined.
* So no mutter how many rows a topic takes - we
* can restore its structure and format.
@@ -1276,7 +1276,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
- /* now that we know how the topics look like,
+ /* now that we know how the topics look like,
* we get the format of the first and last rows.
*/
@@ -1352,8 +1352,8 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
/**
* check if the topic with the given index is written to the table.
* @param topic the topic number (0 base)
- * @return true if the topic is already written to the table. False if not.
- * (false would mean new rows must be added to the table in order to
+ * @return true if the topic is already written to the table. False if not.
+ * (false would mean new rows must be added to the table in order to
* be able to write this topic).
*/
private boolean isWritten(int topic)
@@ -1363,11 +1363,11 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
/**
* rewrites a single cell containing.
- * This is used in order to refresh the topic/responsible/duration data in the
+ * This is used in order to refresh the topic/responsible/duration data in the
* preview document, in response to a change in the gui (by the user).
* Since the structure of the topics table is flexible, we don't reference a cell
* number. Rather, we use "what" argument to specify which cell should be redrawn.
- * The Topics object, which analyzed the structure of the topics table appon
+ * The Topics object, which analyzed the structure of the topics table appon
* initialization, refreshes the approperiate cell.
* @param topic index of the topic (0 based).
* @param what 0 for num, 1 for topic, 2 for responsible, 3 for duration
@@ -1425,10 +1425,10 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
* writes the given topic.
* if the first topic was involved, reformat the
* first row.
- * If any rows were added to the table, reformat
- * the last row.
+ * If any rows were added to the table, reformat
+ * the last row.
* @param topic the index of the topic to write.
- * @param data the topic's data. (see TopicsControl
+ * @param data the topic's data. (see TopicsControl
* for explanation about the topics data model)
* @throws Exception if something goes wrong (though nothing should).
*/
@@ -1480,10 +1480,10 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
* number of actuall topics it does *not* add
* new rows !
* Note also that the first topic will never be removed.
- * If the table contains no topics, the whole section will
+ * If the table contains no topics, the whole section will
* be removed uppon finishing.
* The reason for that is a "table-design" one: the first topic is
- * maintained in order to be able to add rows with a design of this topic,
+ * maintained in order to be able to add rows with a design of this topic,
* and not of the header row.
* @param topics the number of topics the table should contain.
* @throws Exception
@@ -1530,7 +1530,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
/**
* returns a text element for the given cell,
* which will write the given text.
- * @param cell the topics cell number.
+ * @param cell the topics cell number.
* @param value the value to write.
* @return a TextElement object which will write the given value
* to the given cell.
@@ -1553,7 +1553,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
* formats a series of cells from the given one,
* using the given List of TableCellFormatter objects,
* in the given order.
- * This method is used to format the first (header) and the last
+ * This method is used to format the first (header) and the last
* rows of the table.
* @param cursor a table cursor, pointing to the start cell to format
* @param formats a List containing TableCellFormatter objects. Each will format one cell in the direction specified.
@@ -1653,7 +1653,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
}
/**
- * returns the rows count of this table, assuming
+ * returns the rows count of this table, assuming
* there is no vertical merged cells.
* @param table
* @return the rows count of the given table.
@@ -1667,11 +1667,11 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
/*
* ===========================================================================================
- *
+ *
* End of AgendaTempalte class
- *
+ *
* ===========================================================================================
- *
+ *
*/
/*
* =================================
@@ -1679,7 +1679,7 @@ public class AgendaTemplate extends TextDocument implements TemplateConsts, Data
* =================================
*/
/**
- * Interface that is used for writing content to a Uno Text / TextRange
+ * Interface that is used for writing content to a Uno Text / TextRange
* @author rp143992
*
*/
@@ -1696,8 +1696,8 @@ interface AgendaElement
* =================================
*/
/**
- * Basic implementation of the AgendaElement interface -
- * writes nothing, but applies a ParaStyle to the given XText/XTextRange
+ * Basic implementation of the AgendaElement interface -
+ * writes nothing, but applies a ParaStyle to the given XText/XTextRange
* @author rp143992
*
* TODO To change the template for this generated type comment go to
@@ -1825,7 +1825,7 @@ class PlaceholderTextElement extends TextElement
* The PlaceHolder class
* =================================
*/
-/**
+/**
* An Agenda element which writes no text, but inserts a placeholder, and formats
* it using a ParaStyleName.
* @author rp143992
@@ -1869,7 +1869,7 @@ class PlaceholderElement extends ParaStyled
* =================================
*/
/**
- * An implementation of AgendaElement which
+ * An implementation of AgendaElement which
* gets as a parameter a table cursor, and writes
* a text to the cell marked by this table cursor, and
* a place holder to the next cell.
@@ -1956,6 +1956,6 @@ class TableCellFormatter
}
}
-
+
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.java b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.java
index 55119ea28325..9df6bbef9a74 100644
--- a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.java
+++ b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.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
@@ -24,8 +24,8 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-package com.sun.star.wizards.agenda;
-
+package com.sun.star.wizards.agenda;
+
import com.sun.star.awt.FontDescriptor;
import com.sun.star.awt.XButton;
import com.sun.star.awt.XCheckBox;
@@ -40,18 +40,18 @@ import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.wizards.common.Helper;
import com.sun.star.wizards.ui.UIConsts;
import com.sun.star.wizards.ui.WizardDialog;
-
+
/**
* This class is generated Automatically....
* bla bla bla
- */
+ */
public abstract class AgendaWizardDialog extends WizardDialog implements AgendaWizardDialogConst, UIConsts {
//GUI Components as Class members.
XFixedText lblTitle1;
XCheckBox chkMinutes;
XFixedText lblHelp1;
XFixedText lblPageDesign;
- XListBox listPageDesign;
+ XListBox listPageDesign;
//Image Control
XControl imgHelp1;
XControl imgHelp2;
@@ -89,8 +89,8 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
XFixedText lblDuration;
//XFixedText lblHelp5;
XTextComponent txtTemplateName;
- XRadioButton optCreateAgenda;
- XRadioButton optMakeChanges;
+ XRadioButton optCreateAgenda;
+ XRadioButton optMakeChanges;
XFixedText lblProceed;
XFixedText lblTemplateName;
XFixedText lblTemplatePath;
@@ -103,10 +103,10 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
XButton btnRemove;
XButton btnUp;
XButton btnDown;
-
+
final private String IMGHELP1_HID = "";
-
-
+
+
//Font Descriptors as Class members.
FontDescriptor fontDescriptor1 = new FontDescriptor();
FontDescriptor fontDescriptor2 = new FontDescriptor();
@@ -114,7 +114,7 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
//Resources Object
AgendaWizardDialogResources resources;
-
+
private String[] PROPS_LIST = new String[] {"Dropdown", "Height", "HelpURL", "PositionX", "PositionY", "Step", "TabIndex", "Width"};
private String[] PROPS_LABEL_B = new String[] {"FontDescriptor", "Height", "Label", "MultiLine", "PositionX", "PositionY", "Step", "TabIndex", "Width"};
private String[] PROPS_CHECK = new String[] {"Height", "HelpURL", "Label", "PositionX", "PositionY", "State", "Step", "TabIndex", "Width"};
@@ -123,34 +123,34 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
private String[] PROPS_TEXTAREA = new String[] {"Height", "Label", "MultiLine", "PositionX", "PositionY", "Step", "TabIndex", "Width"};
private String[] PROPS_TEXT = new String[] {"Height", "Label", "PositionX", "PositionY", "Step", "TabIndex", "Width"};
private String[] PROPS_IMAGE = new String[] {"Border", "Height", "HelpURL", "ImageURL", "PositionX", "PositionY", "ScaleImage", "Step", "TabIndex", "Width"};
-
+
private static final Short NO_BORDER = new Short((short)0);
-
+
public AgendaWizardDialog(XMultiServiceFactory xmsf) {
super(xmsf,HID);
//Load Resources
resources = new AgendaWizardDialogResources(xmsf);
-
+
//set dialog properties...
- Helper.setUnoPropertyValues(xDialogModel,
+ Helper.setUnoPropertyValues(xDialogModel,
new String[] { "Closeable","Height","Moveable","PositionX","PositionY","Step","TabIndex","Title","Width"},
new Object[] { Boolean.TRUE,new Integer(210),Boolean.TRUE,new Integer(200),new Integer(52),INTEGERS[1],new Short((short)1),resources.resAgendaWizardDialog_title,new Integer(310)}
);
-
+
//Set member- FontDescriptors...
fontDescriptor1.Weight = 150;
fontDescriptor1.Underline = com.sun.star.awt.FontUnderline.SINGLE;
fontDescriptor2.Weight = 100;
fontDescriptor4.Weight = 150;
}
-
+
//build components
public void buildStep1() {
- lblTitle1 = insertLabel("lblTitle1",
+ lblTitle1 = insertLabel("lblTitle1",
PROPS_LABEL_B,
new Object[] { fontDescriptor4,INTEGER_16,resources.reslblTitle1_value,Boolean.TRUE,new Integer(91),INTEGERS[8],INTEGERS[1],new Short((short)100),new Integer(212)}
);
- lblPageDesign = insertLabel("lblPageDesign",
+ lblPageDesign = insertLabel("lblPageDesign",
PROPS_TEXT,
new Object[] { INTEGERS[8],resources.reslblPageDesign_value,new Integer(97),new Integer(32),INTEGERS[1],new Short((short)101),new Integer(66)}
);
@@ -162,11 +162,11 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
PROPS_CHECK,
new Object[] { INTEGERS[9],CHKMINUTES_HID,resources.reschkMinutes_value,new Integer(97),new Integer(50),new Short((short)0),INTEGERS[1],new Short((short)103),new Integer(203)}
);
- imgHelp1 = insertImage("imgHelp1",
+ imgHelp1 = insertImage("imgHelp1",
PROPS_IMAGE,
new Object[] { NO_BORDER, INTEGERS[10],IMGHELP1_HID, AgendaWizardDialogConst.INFO_IMAGE_URL, new Integer(92),new Integer(145), Boolean.FALSE, INTEGERS[1], new Short((short)104),INTEGERS[10]}
);
- lblHelp1 = insertLabel("lblHelp1",
+ lblHelp1 = insertLabel("lblHelp1",
PROPS_TEXTAREA,
new Object[] { new Integer(39),resources.reslblHelp1_value,Boolean.TRUE,new Integer(104),new Integer(145),INTEGERS[1],new Short((short)105),new Integer(199)}
);
@@ -174,11 +174,11 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
}
public void buildStep2() {
- lblTitle2 = insertLabel("lblTitle2",
+ lblTitle2 = insertLabel("lblTitle2",
PROPS_LABEL_B,
new Object[] { fontDescriptor4,INTEGER_16,resources.reslblTitle2_value,Boolean.TRUE,new Integer(91),INTEGERS[8],INTEGERS[2],new Short((short)200),new Integer(212)}
);
- lblDate = insertLabel("lblDate",
+ lblDate = insertLabel("lblDate",
PROPS_TEXT,
new Object[] { INTEGERS[8],resources.reslblDate_value,new Integer(97),new Integer(32),INTEGERS[2],new Short((short)201),new Integer(66)}
);
@@ -186,7 +186,7 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
PROPS_LIST,
new Object[] { Boolean.TRUE,INTEGER_12,TXTDATE_HID,new Integer(166),new Integer(30),INTEGERS[2],new Short((short)202),new Integer(70)}
);
- lblTime = insertLabel("lblTime",
+ lblTime = insertLabel("lblTime",
PROPS_TEXT,
new Object[] { INTEGERS[8],resources.reslblTime_value,new Integer(97),new Integer(50),INTEGERS[2],new Short((short)203),new Integer(66)}
);
@@ -194,8 +194,8 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
new String[] {"Height", "HelpURL", "PositionX", "PositionY", "Step", "StrictFormat", "TabIndex", "Width"},
new Object[] { INTEGER_12,TXTTIME_HID,new Integer(166),new Integer(48),INTEGERS[2],Boolean.TRUE,new Short((short)204),new Integer(70)}
);
-
- lblTitle = insertLabel("lblTitle",
+
+ lblTitle = insertLabel("lblTitle",
PROPS_TEXT,
new Object[] { INTEGERS[8],resources.reslblTitle_value,new Integer(97),new Integer(68),INTEGERS[2],new Short((short)205),new Integer(66)}
);
@@ -203,7 +203,7 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
new String[] {"Height", "HelpURL", "MultiLine", "PositionX", "PositionY", "Step", "TabIndex", "Width"},
new Object[] { new Integer(26),TXTTITLE_HID,Boolean.TRUE,new Integer(166),new Integer(66),INTEGERS[2],new Short((short)206),new Integer(138)}
);
- lblLocation = insertLabel("lblLocation",
+ lblLocation = insertLabel("lblLocation",
PROPS_TEXT,
new Object[] { INTEGERS[8],resources.reslblLocation_value,new Integer(97),new Integer(100),INTEGERS[2],new Short((short)207),new Integer(66)}
);
@@ -211,20 +211,20 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
new String[] { "Height", "HelpURL", "MultiLine", "PositionX", "PositionY", "Step", "TabIndex", "Width"},
new Object[] { new Integer(34),CBLOCATION_HID,Boolean.TRUE,new Integer(166),new Integer(98),INTEGERS[2],new Short((short)208),new Integer(138)}
);
-
- imgHelp2 = insertImage("imgHelp2",
+
+ imgHelp2 = insertImage("imgHelp2",
PROPS_IMAGE,
new Object[] { NO_BORDER, INTEGERS[10],IMGHELP1_HID,AgendaWizardDialogConst.INFO_IMAGE_URL, new Integer(92),new Integer(145),Boolean.FALSE, INTEGERS[2],new Short((short)209),INTEGERS[10]}
);
- lblHelp2 = insertLabel("lblHelp2",
+ lblHelp2 = insertLabel("lblHelp2",
PROPS_TEXTAREA,
new Object[] { new Integer(39),resources.reslblHelp2_value,Boolean.TRUE,new Integer(104),new Integer(145),INTEGERS[2],new Short((short)210),new Integer(199)}
);
-
+
}
public void buildStep3() {
- lblTitle3 = insertLabel("lblTitle3",
+ lblTitle3 = insertLabel("lblTitle3",
PROPS_LABEL_B,
new Object[] { fontDescriptor4,INTEGER_16,resources.reslblTitle3_value,Boolean.TRUE,new Integer(91),INTEGERS[8],INTEGERS[3],new Short((short)300),new Integer(212)}
);
@@ -244,18 +244,18 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
PROPS_CHECK,
new Object[] { INTEGERS[8],CHKNOTES_HID,resources.reschkNotes_value,new Integer(97),new Integer(74),new Short((short)1),INTEGERS[3],new Short((short)304),new Integer(160)}
);
- imgHelp3 = insertImage("imgHelp3",
+ imgHelp3 = insertImage("imgHelp3",
PROPS_IMAGE,
new Object[] { NO_BORDER, INTEGERS[10],IMGHELP1_HID,AgendaWizardDialogConst.INFO_IMAGE_URL, new Integer(92),new Integer(145),Boolean.FALSE, INTEGERS[3],new Short((short)305),INTEGERS[10]}
);
- lblHelp3 = insertLabel("lblHelp3",
+ lblHelp3 = insertLabel("lblHelp3",
PROPS_TEXTAREA,
new Object[] { new Integer(39),resources.reslblHelp3_value,Boolean.TRUE,new Integer(104),new Integer(145),INTEGERS[3],new Short((short)306),new Integer(199)}
);
}
public void buildStep4() {
- lblTitle5 = insertLabel("lblTitle5",
+ lblTitle5 = insertLabel("lblTitle5",
PROPS_LABEL_B,
new Object[] { fontDescriptor4,INTEGER_16,resources.reslblTitle5_value,Boolean.TRUE,new Integer(91),INTEGERS[8],INTEGERS[4],new Short((short)400),new Integer(212)}
);
@@ -287,38 +287,38 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
PROPS_CHECK,
new Object[] { INTEGERS[8],CHKRESOURCEPERSONS_HID,resources.reschkResourcePersons_value,new Integer(97),new Integer(116),new Short((short)0),INTEGERS[4],new Short((short)407),new Integer(150)}
);
- imgHelp4 = insertImage("imgHelp4",
+ imgHelp4 = insertImage("imgHelp4",
PROPS_IMAGE,
new Object[] { NO_BORDER, INTEGERS[10],IMGHELP1_HID,AgendaWizardDialogConst.INFO_IMAGE_URL, new Integer(92),new Integer(145),Boolean.FALSE, INTEGERS[4],new Short((short)408),INTEGERS[10]}
);
- lblHelp4 = insertLabel("lblHelp4",
+ lblHelp4 = insertLabel("lblHelp4",
PROPS_TEXTAREA,
new Object[] { new Integer(39),resources.reslblHelp4_value,Boolean.TRUE,new Integer(104),new Integer(145),INTEGERS[4],new Short((short)409),new Integer(199)}
);
}
public void buildStep5() {
- lblTitle4 = insertLabel("lblTitle4",
+ lblTitle4 = insertLabel("lblTitle4",
PROPS_LABEL_B,
new Object[] { fontDescriptor4,INTEGER_16,resources.reslblTitle4_value,Boolean.TRUE,new Integer(91),INTEGERS[8],INTEGERS[5],new Short((short)500),new Integer(212)}
);
- lblTopic = insertLabel("lblTopic",
+ lblTopic = insertLabel("lblTopic",
PROPS_TEXT,
new Object[] { INTEGERS[8],resources.reslblTopic_value,new Integer(107),new Integer(28),INTEGERS[5],new Short((short)71),new Integer(501)}
);
- lblResponsible = insertLabel("lblResponsible",
+ lblResponsible = insertLabel("lblResponsible",
PROPS_TEXT,
new Object[] { INTEGERS[8],resources.reslblResponsible_value,new Integer(195),new Integer(28),INTEGERS[5],new Short((short)72),new Integer(502)}
);
- lblDuration = insertLabel("lblDuration",
+ lblDuration = insertLabel("lblDuration",
PROPS_TEXT,
new Object[] { INTEGERS[8],resources.reslblDuration_value,new Integer(267),new Integer(28),INTEGERS[5],new Short((short)73),new Integer(503)}
);
-
-
-
-
-
+
+
+
+
+
btnInsert = insertButton("btnInsert", BTNINSERT_ACTION_PERFORMED,
PROPS_BUTTON,
new Object[] { INTEGER_14,BTNINSERT_HID,resources.resButtonInsert,new Integer(92),new Integer(136),INTEGERS[5],new Short((short)580),INTEGER_40}
@@ -335,22 +335,22 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
PROPS_BUTTON,
new Object[] { INTEGER_14,BTNDOWN_HID,resources.resButtonDown,new Integer(264),new Integer(136),INTEGERS[5],new Short((short)583),INTEGER_40}
);
-
-
+
+
}
public void buildStep6() {
- lblTitle6 = insertLabel("lblTitle6",
+ lblTitle6 = insertLabel("lblTitle6",
PROPS_LABEL_B,
new Object[] { fontDescriptor4,INTEGER_16,resources.reslblTitle6_value,Boolean.TRUE,new Integer(91),INTEGERS[8],INTEGERS[6],new Short((short)600),new Integer(212)}
);
- lblHelpPg6 = insertLabel("lblHelpPg6",
+ lblHelpPg6 = insertLabel("lblHelpPg6",
PROPS_TEXTAREA,
new Object[] { new Integer(24),resources.reslblHelpPg6_value,Boolean.TRUE,new Integer(97),new Integer(32),INTEGERS[6],new Short((short)601),new Integer(204)}
);
-
- lblTemplateName = insertLabel("lblTemplateName",
+
+ lblTemplateName = insertLabel("lblTemplateName",
PROPS_TEXT,
new Object[] { INTEGERS[8],resources.reslblTemplateName_value,new Integer(97),new Integer(62),INTEGERS[6],new Short((short)602),new Integer(101)}
);
@@ -358,7 +358,7 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
PROPS_X,
new Object[] { INTEGER_12,TXTTEMPLATENAME_HID,new Integer(202),new Integer(60),INTEGERS[6],new Short((short)603),new Integer(100)}
);
- lblProceed = insertLabel("lblProceed",
+ lblProceed = insertLabel("lblProceed",
PROPS_TEXT,
new Object[] { INTEGERS[8],resources.reslblProceed_value,new Integer(97),new Integer(101),INTEGERS[6],new Short((short)607),new Integer(204)}
);
@@ -370,15 +370,15 @@ public abstract class AgendaWizardDialog extends WizardDialog implements Agenda
PROPS_BUTTON,
new Object[] { INTEGERS[8],OPTMAKECHANGES_HID,resources.resoptMakeChanges_value,new Integer(103),new Integer(125),INTEGERS[6],new Short((short)609),new Integer(198)}
);
- imgHelp6 = insertImage("imgHelp6",
+ imgHelp6 = insertImage("imgHelp6",
PROPS_IMAGE,
new Object[] { NO_BORDER, INTEGERS[10],IMGHELP1_HID,AgendaWizardDialogConst.INFO_IMAGE_URL, new Integer(92),new Integer(145),Boolean.FALSE, INTEGERS[6],new Short((short)610),INTEGERS[10]}
);
- lblHelp6 = insertLabel("lblHelp6",
+ lblHelp6 = insertLabel("lblHelp6",
PROPS_TEXTAREA,
new Object[] { new Integer(39),resources.reslblHelp6_value,Boolean.TRUE,new Integer(104),new Integer(145),INTEGERS[6],new Short((short)611),new Integer(199)}
);
-
+
}
} \ No newline at end of file
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogConst.java b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogConst.java
index 08f2fabfb8d9..109818f88149 100644
--- a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogConst.java
+++ b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogConst.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
@@ -27,28 +27,28 @@
package com.sun.star.wizards.agenda;
public interface AgendaWizardDialogConst {
-
+
/**
* These are event method names, used with reflection
- * to call the methods under these names uppon
+ * to call the methods under these names uppon
* events.
*/
-
- final String LISTPAGEDESIGN_ACTION_PERFORMED = "pageDesignChanged";
- final String TXTTEMPLATENAME_TEXT_CHANGED = "templateTitleChanged";
- final String BTNTEMPLATEPATH_ACTION_PERFORMED = "saveAs";
- final String BTNINSERT_ACTION_PERFORMED = "insertRow";
- final String BTNREMOVE_ACTION_PERFORMED = "removeRow";
- final String BTNUP_ACTION_PERFORMED = "rowUp";
- final String BTNDOWN_ACTION_PERFORMED = "rowDown";
-
+
+ final String LISTPAGEDESIGN_ACTION_PERFORMED = "pageDesignChanged";
+ final String TXTTEMPLATENAME_TEXT_CHANGED = "templateTitleChanged";
+ final String BTNTEMPLATEPATH_ACTION_PERFORMED = "saveAs";
+ final String BTNINSERT_ACTION_PERFORMED = "insertRow";
+ final String BTNREMOVE_ACTION_PERFORMED = "removeRow";
+ final String BTNUP_ACTION_PERFORMED = "rowUp";
+ final String BTNDOWN_ACTION_PERFORMED = "rowDown";
+
final String INFO_IMAGE_URL = "private:resource/dbu/image/19205";
/* ====================================
* Help IDs
* ====================================
*/
- final int HID = 41051;
-
+ final int HID = 41051;
+
/*
* "HID:(hid)" - the dialog
* "HID:(hid+1) - the help button
@@ -57,19 +57,19 @@ public interface AgendaWizardDialogConst {
* "HID:(hid+4)" - the create button
* "HID:(hid+5)" - the cancel button
*/
-
+
final String LISTPAGEDESIGN_HID = "HID:" + (HID + 6);
final String CHKMINUTES_HID = "HID:" + (HID + 7);
final String TXTTIME_HID = "HID:" + (HID + 8);
final String TXTDATE_HID = "HID:" + (HID + 9);
final String TXTTITLE_HID = "HID:" + (HID + 10);
final String CBLOCATION_HID = "HID:" + (HID + 11);
-
+
final String CHKMEETINGTITLE_HID = "HID:" + (HID + 12);
final String CHKREAD_HID = "HID:" + (HID + 13);
final String CHKBRING_HID = "HID:" + (HID + 14);
final String CHKNOTES_HID = "HID:" + (HID + 15);
-
+
final String CHKCONVENEDBY_HID = "HID:" + (HID + 16);
final String CHKPRESIDING_HID = "HID:" + (HID + 17);
final String CHKNOTETAKER_HID = "HID:" + (HID + 18);
@@ -77,22 +77,22 @@ public interface AgendaWizardDialogConst {
final String CHKATTENDEES_HID = "HID:" + (HID + 20);
final String CHKOBSERVERS_HID = "HID:" + (HID + 21);
final String CHKRESOURCEPERSONS_HID = "HID:" + (HID + 22);
-
+
final String TXTTEMPLATENAME_HID = "HID:" + (HID + 23);
final String TXTTEMPLATEPATH_HID = "HID:" + (HID + 24);
final String BTNTEMPLATEPATH_HID = "HID:" + (HID + 25);
-
+
final String OPTCREATEAGENDA_HID = "HID:" + (HID + 26);
final String OPTMAKECHANGES_HID = "HID:" + (HID + 27);
-
+
final String BTNINSERT_HID = "HID:" + (HID + 28);
final String BTNREMOVE_HID = "HID:" + (HID + 29);
final String BTNUP_HID = "HID:" + (HID + 30);
final String BTNDOWN_HID = "HID:" + (HID + 31);
-
+
final int LAST_HID = HID + 32;
-
- /*
+
+ /*
* 32 : scroll bar
* 33 - 35 first topics row
* 36 - 38 second
@@ -101,7 +101,7 @@ public interface AgendaWizardDialogConst {
* 45 - 47
* total 5 rows / 3 controls.
*/
-
-
+
+
}
\ No newline at end of file
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.java b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.java
index 64be1b074e04..7d68673f2a8e 100644
--- a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.java
+++ b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.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
@@ -24,8 +24,8 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-package com.sun.star.wizards.agenda;
+
+package com.sun.star.wizards.agenda;
import java.util.Vector;
@@ -54,12 +54,12 @@ import com.sun.star.wizards.document.OfficeDocument;
import com.sun.star.wizards.text.ViewHandler;
import com.sun.star.wizards.ui.PathSelection;
import com.sun.star.wizards.ui.XPathSelectionListener;
-import com.sun.star.wizards.ui.event.DataAware;
+import com.sun.star.wizards.ui.event.DataAware;
import com.sun.star.wizards.ui.event.RadioDataAware;
import com.sun.star.wizards.ui.event.UnoDataAware;
/**
- * This class is the dialog implementation class -
+ * This class is the dialog implementation class -
* there is not much business logic here - but mostley
* event methods.
* Some event methods are also implemented in TopicsControl and TopicsControl.ControlRow.
@@ -71,7 +71,7 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
* used to prevent a double start of the wizard.
*/
static boolean running;
-
+
/**
* the preview document controller.
*/
@@ -82,14 +82,14 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
* the data model changes, except for topics).
*/
private CGAgenda agenda;
-
+
/**
- * the topics control, a gui element which
+ * the topics control, a gui element which
* manipulates the topics data according to the
- * user's input.
+ * user's input.
*/
private TopicsControl topicsControl;
-
+
/**
* an array with two array memebers:
* agendaTemplates[0] contains an array with
@@ -98,31 +98,31 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
* corresponding URLs.
*/
private String[][] agendaTemplates;
-
+
PathSelection myPathSelection;
-
+
String sTemplatePath;
String sUserTemplatePath;
String sBitmapPath;
-
+
String sPath;
/** constructor */
- public AgendaWizardDialogImpl(XMultiServiceFactory xmsf)
+ public AgendaWizardDialogImpl(XMultiServiceFactory xmsf)
{
super(xmsf);
}
-
+
protected void enterStep(int OldStep, int NewStep) {}
protected void leaveStep(int OldStep, int NewStep) {}
-
+
/**
* read the configuration data, open the specified template,
* initialize the template controller (AgendaTemplate) and
- * set the status of the displayed template to the one
+ * set the status of the displayed template to the one
* read from the configuration.
* build the dialog.
- * Synchronize the dialog to the same status (read from
+ * Synchronize the dialog to the same status (read from
* the configuration).
* show the dialog.
*/
@@ -131,16 +131,16 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
try {
// read configuration data.
agenda = new CGAgenda();
-
+
Object root = Configuration.getConfigurationRoot(xMSF, "/org.openoffice.Office.Writer/Wizards/Agenda", false);
agenda.readConfiguration(root,"cp_");
-
+
// initialize the agenda template
agendaTemplate = new AgendaTemplate(xMSF, agenda, resources, this);
initializeTemplates();
-
+
agendaTemplate.load(agendaTemplates[1][agenda.cp_AgendaType] , new Vector());
-
+
// build the dialog.
buildStep1();
buildStep2();
@@ -150,17 +150,17 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
topicsControl = new TopicsControl(this,xMSF, agenda);
buildStep6();
drawNaviBar();
-
+
initializePaths();
-
+
//special Control for setting the save Path:
insertPathSelectionControl();
-
+
// create the peer
XWindow xw = agendaTemplate.xFrame.getContainerWindow();
XWindowPeer xWindowPeer = (XWindowPeer) UnoRuntime.queryInterface(XWindowPeer.class, xw);
this.createWindowPeer( xWindowPeer );
-
+
// initialize roadmap
this.addRoadmap();
this.insertRoadMapItems(
@@ -169,15 +169,15 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
new boolean[] { true,true,true,true,true,true }
);
this.setMaxStep(6);
-
+
// synchronize GUI and CGAgenda object.
makeDA();
if(myPathSelection.xSaveTextBox.getText().equalsIgnoreCase("")) {myPathSelection.initializePath();}
executeDialog(agendaTemplate.xFrame);
- removeTerminateListener();
+ removeTerminateListener();
closeDocument();
- running = false;
+ running = false;
}
catch (Exception ex) {
@@ -186,21 +186,21 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
running=false;
return;
}
-
-
+
+
}
-
+
private class myPathSelectionListener implements XPathSelectionListener {
public void validatePath() {
if (myPathSelection.usedPathPicker) {
- filenameChanged = true;
+ filenameChanged = true;
}
myPathSelection.usedPathPicker = false;
}
}
-
- public void insertPathSelectionControl() {
+
+ public void insertPathSelectionControl() {
myPathSelection = new PathSelection(xMSF, this, PathSelection.TransferMode.SAVE, PathSelection.DialogTypes.FILE);
myPathSelection.insert(6, 97, 70, 205, (short) 45, resources.reslblTemplatePath_value, true, "HID:" + ( HID + 24 ), "HID:" + ( HID + 25 ));
myPathSelection.sDefaultDirectory = sUserTemplatePath;
@@ -208,7 +208,7 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
myPathSelection.sDefaultFilter = "writer8_template";
myPathSelection.addSelectionListener(new myPathSelectionListener());
}
-
+
private void initializePaths() {
try {
sTemplatePath = FileAccess.getOfficePath(xMSF, "Template", "share", "/wizard");
@@ -218,18 +218,18 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
e.printStackTrace();
}
}
-
+
private void checkSavePath() {
- if (agenda.cp_TemplatePath == null ||
- agenda.cp_TemplatePath.equals("") ||
+ if (agenda.cp_TemplatePath == null ||
+ agenda.cp_TemplatePath.equals("") ||
!getFileAccess().exists(FileAccess.getParentDir(agenda.cp_TemplatePath),false) ||
!getFileAccess().isDirectory(FileAccess.getParentDir(agenda.cp_TemplatePath )))
{
- try {
- agenda.cp_TemplatePath =
+ try {
+ agenda.cp_TemplatePath =
FileAccess.connectURLs(
- FileAccess.getOfficePath(xMSF, "Work", "", "") ,
- resources.resDefaultFilename
+ FileAccess.getOfficePath(xMSF, "Work", "", "") ,
+ resources.resDefaultFilename
);
}
catch (Exception ex) {
@@ -237,30 +237,30 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
}
}
}
-
+
/**
* bind controls to the agenda member (DataAware model)
*/
private void makeDA() {
-
+
setControlProperty("listPageDesign", "StringItemList", agendaTemplates[0]);
-
+
checkSavePath();
//setFilename(agenda.cp_TemplatePath);
-
+
UnoDataAware.attachListBox( agenda, "cp_AgendaType", listPageDesign , null, true ).updateUI();
UnoDataAware.attachCheckBox( agenda, "cp_IncludeMinutes", chkMinutes, null, true).updateUI();
-
+
UnoDataAware.attachEditControl(agenda, "cp_Title", txtTitle, agendaTemplate , true).updateUI();
UnoDataAware.attachDateControl(agenda, "cp_Date", txtDate, agendaTemplate , true).updateUI();
UnoDataAware.attachTimeControl(agenda, "cp_Time", txtTime, agendaTemplate , true).updateUI();
UnoDataAware.attachEditControl(agenda, "cp_Location", cbLocation, agendaTemplate , true).updateUI();
-
+
UnoDataAware.attachCheckBox(agenda,"cp_ShowMeetingType", chkMeetingTitle , new RedrawListener( TemplateConsts.FILLIN_MEETING_TYPE ) , true);
UnoDataAware.attachCheckBox(agenda,"cp_ShowRead", chkRead , new RedrawListener( TemplateConsts.FILLIN_READ ) , true).updateUI();
UnoDataAware.attachCheckBox(agenda,"cp_ShowBring", chkBring , new RedrawListener( TemplateConsts.FILLIN_BRING ) , true).updateUI();
UnoDataAware.attachCheckBox(agenda,"cp_ShowNotes", chkNotes , new RedrawListener( TemplateConsts.FILLIN_NOTES ) , true).updateUI();
-
+
UnoDataAware.attachCheckBox(agenda,"cp_ShowCalledBy", chkConvenedBy , new RedrawListener( TemplateConsts.FILLIN_CALLED_BY ) , true).updateUI();
UnoDataAware.attachCheckBox(agenda,"cp_ShowFacilitator", chkPresiding , new RedrawListener( TemplateConsts.FILLIN_FACILITATOR ) , true).updateUI();
UnoDataAware.attachCheckBox(agenda,"cp_ShowNotetaker", chkNoteTaker , new RedrawListener( TemplateConsts.FILLIN_NOTETAKER ) , true).updateUI();
@@ -268,11 +268,11 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
UnoDataAware.attachCheckBox(agenda,"cp_ShowAttendees", chkAttendees , new RedrawListener( TemplateConsts.FILLIN_PARTICIPANTS ) , true).updateUI();
UnoDataAware.attachCheckBox(agenda,"cp_ShowObservers", chkObservers , new RedrawListener( TemplateConsts.FILLIN_OBSERVERS ) , true).updateUI();
UnoDataAware.attachCheckBox(agenda,"cp_ShowResourcePersons", chkResourcePersons , new RedrawListener( TemplateConsts.FILLIN_RESOURCE_PERSONS ) , true).updateUI();
-
+
UnoDataAware.attachEditControl(agenda, "cp_TemplateName", txtTemplateName, null, true).updateUI();
- RadioDataAware.attachRadioButtons( agenda, "cp_ProceedMethod",
+ RadioDataAware.attachRadioButtons( agenda, "cp_ProceedMethod",
new Object[] {optCreateAgenda, optMakeChanges} ,null,true).updateUI();
-
+
listPageDesign.addItemListener(new XItemListener() {
public void itemStateChanged(ItemEvent ie) {
pageDesignChanged(ie);
@@ -289,37 +289,37 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
XMultiServiceFactory xLocMSF = Desktop.connect(ConnectStr);
AgendaWizardDialogImpl wizard = new AgendaWizardDialogImpl(xLocMSF);
wizard.startWizard();
-
+
}
catch (Exception exception) {
exception.printStackTrace();
}
}
-
+
/*
private void initializePaths() {
try {
-
+
sUserTemplatePath = FileAccess.getOfficePath(xMSF, "Template", "user");
sBitmapPath = FileAccess.combinePaths(xMSF, sTemplatePath, "/../wizard/bitmap");
} catch (NoValidPathException e) {
e.printStackTrace();
}
}*/
-
+
/**
* read the available agenda wizard templates.
*/
public boolean initializeTemplates() {
try {
String sTemplatePath = FileAccess.getOfficePath(xMSF, "Template", "share", "/wizard");
-
+
//sCurrentNorm = Norms[getCurrentLetter().cp_Norm];
String sAgendaPath = FileAccess.combinePaths(xMSF, sTemplatePath, "/wizard/agenda" );
-
+
agendaTemplates = FileAccess.getFolderTitles(xMSF, "aw" , sAgendaPath);
-
+
return true;
} catch (NoValidPathException nopathexception) {
nopathexception.printStackTrace();
@@ -329,35 +329,35 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
return false;
}
}
-
+
/* ******************************
* Event methods
* ******************************
*/
-
+
/**
* first page, page design listbox changed.
*/
public void pageDesignChanged(ItemEvent ie) {
int selected = ie.Selected;
- try {
- agendaTemplate.load( agendaTemplates[1][selected] , topicsControl.getTopicsData());
+ try {
+ agendaTemplate.load( agendaTemplates[1][selected] , topicsControl.getTopicsData());
}
catch (Exception ex) {
SystemDialog.showMessageBox(xMSF, "ErrBox", VclWindowPeerAttribute.OK, resources.resErrOpenTemplate);
ex.printStackTrace();
}
}
-
+
/**
* last page, template title changed...
*/
public void templateTitleChanged() {
String title = (String)Helper.getUnoPropertyValue( getModel(txtTemplateName), "Text" );
- agendaTemplate.setTemplateTitle( title );
+ agendaTemplate.setTemplateTitle( title );
}
-
-
+
+
private FileAccess fileAccess1;
/** convenience method.
* instead of creating a FileAccess object every time
@@ -374,31 +374,31 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
e.printStackTrace();
}
return fileAccess1;
-
+
}
/**
* indicates if the filename was changed by the user through
* the "save as" dialog.
* If it is so, one needs not warn the user
- * upon overwrite, since she was already warned.
+ * upon overwrite, since she was already warned.
*/
private boolean filenameChanged = false;
-
+
/**
* last page, "browse" ("...") button was clicked...
*/
public void saveAs() {
try {
-
+
checkSavePath();
-
+
SystemDialog saveAs = SystemDialog.createStoreDialog(xMSF);
saveAs.addFilterToDialog("ott","writer8_template",true);
// call the saveAs dialog.
String url = saveAs.callStoreDialog(
- FileAccess.getParentDir(agenda.cp_TemplatePath),
+ FileAccess.getParentDir(agenda.cp_TemplatePath),
FileAccess.getFilename(agenda.cp_TemplatePath));
-
+
if (url != null) {
agenda.cp_TemplatePath = url;
setFilename(url);
@@ -408,10 +408,10 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
catch (Exception ex) {
ex.printStackTrace();
}
-
-
+
+
}
-
+
/**
* is called when the user
* changes the path through the "save as" dialog.
@@ -426,36 +426,36 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
catch (Exception ex) {
ex.printStackTrace();
}
-
+
}
-
+
public void insertRow() {
topicsControl.insertRow();
}
-
+
public void removeRow() {
topicsControl.removeRow();
}
-
+
public void rowUp() {
topicsControl.rowUp();
}
-
+
public void rowDown() {
topicsControl.rowDown();
}
-
-
+
+
/* ************************
* Navigation bar methods
* ************************
*/
-
+
public void cancelWizard() {
xDialog.endExecute();
running = false;
}
-
+
public boolean finishWizard() {
boolean bSaveSuccess = false; // pesimistic :(
XTextDocument xTextDocument;
@@ -468,28 +468,28 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
sPath = myPathSelection.getSelectedPath();
}
sPath = fileAccess.getURL(sPath);
-
+
//first, if the filename was not changed, thus
//it is coming from a saved session, check if the
// file exists and warn the user.
if (!filenameChanged)
if (fileAccess.exists(sPath, true)) {
-
+
int answer = SystemDialog.showMessageBox(xMSF, xControl.getPeer(), "MessBox", VclWindowPeerAttribute.YES_NO + VclWindowPeerAttribute.DEF_NO, resources.resFileExists);
if (answer == 3) // user said: no, do not overwrite....
return false;
}
agendaTemplate.xTextDocument.lockControllers();
-
+
xTextDocument = (XTextDocument)UnoRuntime.queryInterface(XTextDocument.class,agendaTemplate.document);
-
+
bSaveSuccess = OfficeDocument.store(xMSF, xTextDocument, sPath , "writer8_template", false, resources.resErrSaveTemplate );
} catch (Exception e) {
SystemDialog.showMessageBox(xMSF, xControl.getPeer(), "ErrBox", VclWindowPeerAttribute.OK, resources.resErrSaveTemplate);
//e.printStackTrace();
}
-
+
if (bSaveSuccess) {
try {
topicsControl.saveTopics(agenda);
@@ -500,9 +500,9 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
catch (Exception ex) {
ex.printStackTrace();
}
-
+
agendaTemplate.finish( topicsControl.getTopicsData());
- try {
+ try {
XStorable xStoreable = (XStorable) UnoRuntime.queryInterface(XStorable.class, agendaTemplate.document);
xStoreable.store();
}
@@ -510,13 +510,13 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
SystemDialog.showMessageBox(xMSF, "ErrBox", VclWindowPeerAttribute.OK, resources.resErrSaveTemplate);
ex.printStackTrace();
}
-
+
//xWindow.setVisible(false);
//running = false;
agendaTemplate.xTextDocument.unlockControllers();
//closeDocument();
//removeTerminateListener();
-
+
PropertyValue loadValues[] = new PropertyValue[2];
loadValues[0] = new PropertyValue();
loadValues[0].Name = "AsTemplate";
@@ -553,31 +553,31 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
running = false;
return true;
}
-
+
private void closeDocument() {
try {
- //xComponent.dispose();
+ //xComponent.dispose();
XCloseable xCloseable = (XCloseable) UnoRuntime.queryInterface(XCloseable.class, agendaTemplate.xFrame);
xCloseable.close(false);
} catch (CloseVetoException e) {
e.printStackTrace();
}
}
-
+
/* ********************
* Sub Classes
- * ********************
+ * ********************
*/
-
+
/**
* this class is used to redraw an item's table when
* the user clicks one of the checkboxes in step 3 or 4.
*/
private class RedrawListener implements DataAware.Listener {
-
+
private String itemName;
-
+
public RedrawListener(String itemName_) {
itemName = itemName_;
}
@@ -591,7 +591,7 @@ public class AgendaWizardDialogImpl extends AgendaWizardDialog
agendaTemplate.xTextDocument.unlockControllers();
}
}
-
-
+
+
}
\ No newline at end of file
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogResources.java b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogResources.java
index 21730c9aa040..ff6b38b50ce8 100644
--- a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogResources.java
+++ b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogResources.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
@@ -25,19 +25,19 @@
*
************************************************************************/
-package com.sun.star.wizards.agenda;
-
+package com.sun.star.wizards.agenda;
+
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.wizards.common.Resource;
public class AgendaWizardDialogResources extends Resource {
-
+
final static String UNIT_NAME = "dbwizres";
final static String MODULE_NAME = "dbw";
final static int RID_AGENDAWIZARDDIALOG_START = 5000;
final static int RID_COMMON_START = 500;
-
-
+
+
String resAgendaWizardDialog_title;
String resoptMakeChanges_value;
String reslblTemplateName_value;
@@ -74,31 +74,31 @@ public class AgendaWizardDialogResources extends Resource {
String reschkBring_value;
String reschkNotes_value;
String reslblHelp3_value;
-
+
String reslblDate_value;
String reslblHelpPg6_value;
String reslblPageDesign_value;
-
+
String resDefaultFilename;
String resDefaultTitle;
-
+
String resErrSaveTemplate;
-
+
String resPlaceHolderTitle;
String resPlaceHolderDate;
String resPlaceHolderTime;
String resPlaceHolderLocation;
String resPlaceHolderHint;
-
+
String resStep1;
String resStep2;
String resStep3;
String resStep4;
String resStep5;
String resStep6;
-
+
String resErrOpenTemplate;
-
+
String itemMeetingType;
String itemRead;
String itemBring;
@@ -110,25 +110,25 @@ public class AgendaWizardDialogResources extends Resource {
String itemAttendees;
String itemObservers;
String itemResource;
-
+
String resButtonInsert;
String resButtonRemove;
String resButtonUp;
String resButtonDown;
-
-
-
-
- // *** common resources ***
-
+
+
+
+
+ // *** common resources ***
+
String resFileExists;
-
+
public AgendaWizardDialogResources(XMultiServiceFactory xmsf) {
super(xmsf,UNIT_NAME,MODULE_NAME);
-
+
/**
- * Delete the String, uncomment the getResText method
- *
+ * Delete the String, uncomment the getResText method
+ *
*/
resAgendaWizardDialog_title = getResText(RID_AGENDAWIZARDDIALOG_START + 1);
resoptMakeChanges_value = getResText(RID_AGENDAWIZARDDIALOG_START + 2);
@@ -172,27 +172,27 @@ public AgendaWizardDialogResources(XMultiServiceFactory xmsf) {
resDefaultFilename = getResText(RID_AGENDAWIZARDDIALOG_START + 41);
resDefaultFilename = resDefaultFilename.substring(0,resDefaultFilename.length()-4) + ".ott";
-
+
resDefaultTitle = getResText(RID_AGENDAWIZARDDIALOG_START + 42);
-
+
resErrSaveTemplate = getResText(RID_AGENDAWIZARDDIALOG_START + 43);
-
+
resPlaceHolderTitle = getResText(RID_AGENDAWIZARDDIALOG_START + 44);
resPlaceHolderDate = getResText(RID_AGENDAWIZARDDIALOG_START + 45);
resPlaceHolderTime = getResText(RID_AGENDAWIZARDDIALOG_START + 46);
resPlaceHolderLocation = getResText(RID_AGENDAWIZARDDIALOG_START + 47);
resPlaceHolderHint = getResText(RID_AGENDAWIZARDDIALOG_START + 48);
-
-
+
+
resStep1 = getResText(RID_AGENDAWIZARDDIALOG_START + 50);
resStep2 = getResText(RID_AGENDAWIZARDDIALOG_START + 51);
resStep3 = getResText(RID_AGENDAWIZARDDIALOG_START + 52);
resStep4 = getResText(RID_AGENDAWIZARDDIALOG_START + 53);
resStep5 = getResText(RID_AGENDAWIZARDDIALOG_START + 54);
resStep6 = getResText(RID_AGENDAWIZARDDIALOG_START + 55);
-
+
resErrOpenTemplate = getResText(RID_AGENDAWIZARDDIALOG_START + 56);
-
+
itemMeetingType = getResText(RID_AGENDAWIZARDDIALOG_START + 57);
itemBring = getResText(RID_AGENDAWIZARDDIALOG_START + 58);
itemRead = getResText(RID_AGENDAWIZARDDIALOG_START + 59);
@@ -205,17 +205,17 @@ public AgendaWizardDialogResources(XMultiServiceFactory xmsf) {
itemTimekeeper = getResText(RID_AGENDAWIZARDDIALOG_START + 65);
itemObservers = getResText(RID_AGENDAWIZARDDIALOG_START + 66);
itemResource = getResText(RID_AGENDAWIZARDDIALOG_START + 67);
-
+
resButtonInsert = getResText(RID_AGENDAWIZARDDIALOG_START + 68);
resButtonRemove = getResText(RID_AGENDAWIZARDDIALOG_START + 69);
resButtonUp = getResText(RID_AGENDAWIZARDDIALOG_START + 70);
resButtonDown = getResText(RID_AGENDAWIZARDDIALOG_START + 71);
-
+
/*
* Common resources
*/
-
+
resFileExists = getResText(RID_COMMON_START + 19);
-
+
}
}
diff --git a/wizards/com/sun/star/wizards/agenda/CGAgenda.java b/wizards/com/sun/star/wizards/agenda/CGAgenda.java
index b7dc1cc37c00..e645ff6c6262 100644
--- a/wizards/com/sun/star/wizards/agenda/CGAgenda.java
+++ b/wizards/com/sun/star/wizards/agenda/CGAgenda.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/wizards/com/sun/star/wizards/agenda/CGTopic.java b/wizards/com/sun/star/wizards/agenda/CGTopic.java
index 74b818205b9f..68290e552a29 100644
--- a/wizards/com/sun/star/wizards/agenda/CGTopic.java
+++ b/wizards/com/sun/star/wizards/agenda/CGTopic.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,11 +35,11 @@ import com.sun.star.wizards.common.Indexable;
* CGTopic means: Configuration Group Topic.
* This object encapsulates a configuration group with topic information.
* Since the topics gui conftrol uses its own data model, there is
- * also code here to convert from the data model to CGTopic object (the constructor)
+ * also code here to convert from the data model to CGTopic object (the constructor)
* and vice versa (setDataToRow method - used when loading the last session...)
*/
public class CGTopic extends ConfigGroup implements Indexable {
-
+
/** sort order */
public int cp_Index;
/** topic name */
@@ -48,9 +48,9 @@ public class CGTopic extends ConfigGroup implements Indexable {
public String cp_Responsible;
/** time */
public String cp_Time;
-
+
public CGTopic() {}
-
+
/**
* create a new CGTopic object with data from the given row.
* the row object is a PropertyValue array, as used
@@ -65,11 +65,11 @@ public class CGTopic extends ConfigGroup implements Indexable {
cp_Responsible = (String)pv[2].Value;
cp_Time = (String)pv[3].Value;
}
-
+
/**
* copies the data in this CGTopic object
* to the given row.
- * @param row the row object (PropertyValue array) to
+ * @param row the row object (PropertyValue array) to
* copy the data to.
*/
public void setDataToRow(Object row) {
@@ -79,9 +79,9 @@ public class CGTopic extends ConfigGroup implements Indexable {
pv[2].Value = cp_Responsible;
pv[3].Value = cp_Time;
}
-
+
public int getIndex() {
return cp_Index;
}
-
+
}
diff --git a/wizards/com/sun/star/wizards/agenda/CallWizard.java b/wizards/com/sun/star/wizards/agenda/CallWizard.java
index 69b62c56e4f7..de5a16106d8b 100644
--- a/wizards/com/sun/star/wizards/agenda/CallWizard.java
+++ b/wizards/com/sun/star/wizards/agenda/CallWizard.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,7 +51,7 @@ public class CallWizard {
/**
* Gives a factory for creating the service. This method is called by the
* <code>JavaLoader</code>
- *
+ *
* <p></p>
*
* @param stringImplementationName The implementation name of the component.
@@ -112,8 +112,8 @@ public class CallWizard {
* Execute Wizard
*
* @param str only valid parameter is 'start' at the moment.
- */
-
+ */
+
public void trigger(String str) {
try {
if (str.equalsIgnoreCase("start")) {
@@ -151,7 +151,7 @@ public class CallWizard {
* will be passed to the caller.
*/
public void initialize(Object[] object) throws com.sun.star.uno.Exception {
-
+
}
/**
diff --git a/wizards/com/sun/star/wizards/agenda/TemplateConsts.java b/wizards/com/sun/star/wizards/agenda/TemplateConsts.java
index 44ce6a1e0f0e..5a6f3b59f821 100644
--- a/wizards/com/sun/star/wizards/agenda/TemplateConsts.java
+++ b/wizards/com/sun/star/wizards/agenda/TemplateConsts.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 @@ public interface TemplateConsts
*/
public final static String SECTION_TOPICS = "AGENDA_TOPICS";
/**
- * the name of the parent minutes section.
+ * the name of the parent minutes section.
*/
public final static String SECTION_MINUTES_ALL = "MINUTES_ALL";
/**
@@ -58,9 +58,9 @@ public interface TemplateConsts
public final static String SECTION_MINUTES = "MINUTES"; //public final static String AGENDA_ITEM = "AGENDA_ITEM";
/**
* taged headings and names.
- * These will be searched in item tables (in the template) and will be
+ * These will be searched in item tables (in the template) and will be
* replaced with resource strings.
- *
+ *
* headings...
*/
public final static String FILLIN_MEETING_TYPE = "<meeting-type>";
@@ -80,7 +80,7 @@ public interface TemplateConsts
/**
* Styles (paragraph styles) used for agenda items.
* headings styles
- *
+ *
*/
public final static String STYLE_MEETING_TYPE = "MeetingType";
public final static String STYLE_BRING = "Bring";
@@ -97,9 +97,9 @@ public interface TemplateConsts
public final static String STYLE_OBSERVERS = "Observers";
public final static String STYLE_RESOURCE_PERSONS = "ResourcePersons";
/**
- * Styles (paragraph styles) used for the <b>text</b> of agenda items
+ * Styles (paragraph styles) used for the <b>text</b> of agenda items
* The agenda wizard creates fill-in fields with the given styles...)
- *
+ *
* headings fields styles
*/
public final static String STYLE_MEETING_TYPE_TEXT = "MeetingTypeText";
diff --git a/wizards/com/sun/star/wizards/agenda/TopicsControl.java b/wizards/com/sun/star/wizards/agenda/TopicsControl.java
index eb13e2f8b65c..db39ea99d2ac 100644
--- a/wizards/com/sun/star/wizards/agenda/TopicsControl.java
+++ b/wizards/com/sun/star/wizards/agenda/TopicsControl.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
@@ -53,13 +53,13 @@ import com.sun.star.wizards.ui.event.MethodInvocation;
* @author rpiterman
* This class implements the UI functionality of the topics scroller control.
* <br/>
- * During developement, there has been a few changes which were not *fully* done -
+ * During developement, there has been a few changes which were not *fully* done -
* mainly in converting the topics and time boxes from combobox and time box to normal textboxes,
- * so in the code they might be referenced as combobox or timebox. This should be
+ * so in the code they might be referenced as combobox or timebox. This should be
* rather understood as topicstextbox and timetextbox.
* <br/>
* <br/>
- * Important behaiviour of this control is that there is always a
+ * Important behaiviour of this control is that there is always a
* blank row at the end, in which the user can enter data.<br/>
* Once the row is not blank (thus, the user entered data...),
* a new blank row is added.<br/>
@@ -69,7 +69,7 @@ import com.sun.star.wizards.ui.event.MethodInvocation;
* The contorl shows 5 rows at a time.<br/>
* If, for example, only 2 rows exist (from which the 2ed one is empty...)
* then the other three rows, which do not exist in the data model, are disabled.
- * <br/>
+ * <br/>
* The following other functionality is implemented:
* <br/>
* 0. synchroniting data between controls, data model and live preview.
@@ -78,7 +78,7 @@ import com.sun.star.wizards.ui.event.MethodInvocation;
* 3. Removing rows and adding new rows.<br/>
* 4. Moving rows up and down. <br/>
* <br/>
- * This control relays on the ControlScroller control which uses the following
+ * This control relays on the ControlScroller control which uses the following
* Data model:<br/>
* 1. It uses a vector, whos members are arrays of PropertyValue.<br/>
* 2. Each array represents a row.<br/>
@@ -86,10 +86,10 @@ import com.sun.star.wizards.ui.event.MethodInvocation;
* 3. Each property Value represents a value for a single control with the following rules:<br/>
* 3. a. the Value of the property is used for as value of the controls (usually text).<br/>
* 3. b. the Name of the property is used to map values to UI controls in the following manner:<br/>
- * 3. b. 1. only the Name of the first X Rows is regarded, where X is the number of visible rows
+ * 3. b. 1. only the Name of the first X Rows is regarded, where X is the number of visible rows
* (in the agenda wizard this would be 5, since 5 topic rows are visible on the dialog).<br/>
- * 3. b. 2. The Names of the first X (or 5...) rows are the names of the UI Controls to
- * hold values. When the control scroller scrolls, it looks at the first 5 rows and uses
+ * 3. b. 2. The Names of the first X (or 5...) rows are the names of the UI Controls to
+ * hold values. When the control scroller scrolls, it looks at the first 5 rows and uses
* the names specified there to map the current values to the specified controls.
* <br/>
* This data model makes the following limitations on the implementation:
@@ -101,26 +101,26 @@ import com.sun.star.wizards.ui.event.MethodInvocation;
* <br/>
* To save the topics in the registry a ConfigSet of objects of type CGTopic is
* being used.
- * This one is not synchronized "live", since it is unnecessary... instead, it is
+ * This one is not synchronized "live", since it is unnecessary... instead, it is
* synchronized on call, before the settings should be saved.
*/
public class TopicsControl extends ControlScroller implements XFocusListener
{
/**
- * The name prefix of the number (label) controls
+ * The name prefix of the number (label) controls
*/
public static final String LABEL = "lblTopicCnt_";
/**
- * The name prefix of the topic (text) controls
+ * The name prefix of the topic (text) controls
*/
public static final String TOPIC = "txtTopicTopic_";
/**
- * The name prefix of the responsible (text) controls
+ * The name prefix of the responsible (text) controls
*/
public static final String RESP = "cbTopicResp_";
/**
- * The name prefix of the time (text) controls
+ * The name prefix of the time (text) controls
*/
public static final String TIME = "txtTopicTime_";
Object lastFocusControl;
@@ -229,10 +229,10 @@ public class TopicsControl extends ControlScroller implements XFocusListener
insertRowAtEnd();
}
- /**
- * Insert a blank (empty) row
+ /**
+ * Insert a blank (empty) row
* as last row of the control.
- * The control has always a blank row at the
+ * The control has always a blank row at the
* end, which enables the user to enter data...
*/
protected void insertRowAtEnd()
@@ -267,7 +267,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
/**
* overrides the parent class method to also enable the
* row whenever data is written to it.
- * @param guiRow
+ * @param guiRow
*/
protected void fillupControls(int guiRow)
{
@@ -305,7 +305,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
* in order to use the "move up", "down" "insert" and "remove" buttons,
* we track the last control the gained focus, in order to know which
* row should be handled.
- * @param fe
+ * @param fe
*/
public void focusGained(FocusEvent fe)
{
@@ -314,7 +314,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
}
/**
- * Sometimes I set the focus programatically to a control
+ * Sometimes I set the focus programatically to a control
* (for example when moving a row up or down, the focus should move
* with it).
* In such cases, no VCL event is being triggered so it must
@@ -355,7 +355,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
/**
* compolsary implementation of FocusListener.
- * @param fe
+ * @param fe
*/
public void focusLost(FocusEvent fe)
{
@@ -363,7 +363,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
/**
* compolsary implementation of FocusListener.
- * @param o
+ * @param o
*/
public void disposing(EventObject o)
{
@@ -387,7 +387,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
rowUp(lastFocusRow - nscrollvalue, lastFocusControl);
}
- /**
+ /**
* move the current row down.
*/
public void rowDown()
@@ -479,7 +479,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
* The index is important because it is used in the
* Name member of the PropertyValue objects.
* To know why see general class documentation above (data model explanation).
- * @param i the index of the new row
+ * @param i the index of the new row
* @return
*/
private PropertyValue[] newRow(int i)
@@ -496,8 +496,8 @@ public class TopicsControl extends ControlScroller implements XFocusListener
* Implementation of ControlScroller
* This is a UI method which inserts a new row to the control.
* It uses the child-class ControlRow. (see below).
- * @param _index
- * @param npos
+ * @param _index
+ * @param npos
* @see ControlRow
*/
protected void insertControlGroup(int _index, int npos)
@@ -509,10 +509,10 @@ public class TopicsControl extends ControlScroller implements XFocusListener
/**
* Implementation of ControlScroller
- * This is a UI method which makes a row visibele.
+ * This is a UI method which makes a row visibele.
* As far as I know it is never called.
- * @param _index
- * @param _bIsVisible
+ * @param _index
+ * @param _bIsVisible
* @see ControlRow
*/
protected void setControlGroupVisible(int _index, boolean _bIsVisible)
@@ -545,7 +545,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
private Object[] oldData;
/**
- * update the preview document and
+ * update the preview document and
* remove/insert rows if needed.
* @param guiRow
* @param column
@@ -652,7 +652,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
}
/**
- * If the user presses tab on the last control, and
+ * If the user presses tab on the last control, and
* there *are* more rows in the model, scroll down.
* @param event
*/
@@ -673,7 +673,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
}
/**
- * If the user presses shift-tab on the first control, and
+ * If the user presses shift-tab on the first control, and
* there *are* more rows in the model, scroll up.
* @param event
*/
@@ -707,7 +707,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
/**
* moves the given row one row down.
* @param guiRow the gui index of the row to move.
- * @param control the control to gain focus after moving.
+ * @param control the control to gain focus after moving.
*/
synchronized void rowDown(int guiRow, Object control)
{
@@ -851,9 +851,9 @@ public class TopicsControl extends ControlScroller implements XFocusListener
insertRowAtEnd();
/*
* if we did not change the last row but
- * we did change the one before - check if we
- * have two empty rows at the end.
- * If so, delete the last one...
+ * we did change the one before - check if we
+ * have two empty rows at the end.
+ * If so, delete the last one...
*/
}
else if ((row1 + nscrollvalue) + (row2 + nscrollvalue) == (scrollfields.size() * 2 - 5))
@@ -1027,7 +1027,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
/**
* needed to make this data poblic.
- * @return the List containing the topics data.
+ * @return the List containing the topics data.
*/
public List getTopicsData()
{
@@ -1057,7 +1057,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
};
/**
- *
+ *
* @author rp143992
* A class represting a single GUI row.
* Note that the instance methods of this class
@@ -1068,7 +1068,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
{
/**
- * the number (label) control
+ * the number (label) control
*/
Object label;
/**
@@ -1231,7 +1231,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
/**
* Impelementation of XKeyListener.
* Optionally performs the one of the following:
- * cursor up, or down, row up or down
+ * cursor up, or down, row up or down
*/
public void keyPressed(KeyEvent event)
{
@@ -1257,7 +1257,7 @@ public class TopicsControl extends ControlScroller implements XFocusListener
/**
* returns the column number of the given control.
* The given control must belong to this row or
- * an IllegalArgumentException will accure.
+ * an IllegalArgumentException will accure.
* @param control
* @return an int columnd number of the given control (0 to 3).
*/