summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/agenda/AgendaTemplate.java
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/agenda/AgendaTemplate.java')
-rw-r--r--wizards/com/sun/star/wizards/agenda/AgendaTemplate.java94
1 files changed, 47 insertions, 47 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
}
}
-
+