Extended config API + More config ui work
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@38 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
52694ed9c9
commit
cc1fcbb4f9
6 changed files with 264 additions and 139 deletions
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2007 by Henrik Just
|
||||
* Copyright: 2002-2009 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.0 (2007-07-30)
|
||||
* Version 1.2 (2009-09-28)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -32,6 +32,16 @@ import java.util.Enumeration;
|
|||
public class StyleMap {
|
||||
private Hashtable<String, StyleMapItem> items = new Hashtable<String, StyleMapItem>();
|
||||
|
||||
public void put(String sName, String sBefore, String sAfter, String sNext, boolean bLineBreak, boolean bVerbatim) {
|
||||
StyleMapItem item = new StyleMapItem();
|
||||
item.sBefore = sBefore;
|
||||
item.sAfter = sAfter;
|
||||
item.sNext = ";"+sNext+";";
|
||||
item.bLineBreak = bLineBreak;
|
||||
item.bVerbatim = bVerbatim;
|
||||
items.put(sName,item);
|
||||
}
|
||||
|
||||
public void put(String sName, String sBefore, String sAfter, boolean bLineBreak, boolean bVerbatim) {
|
||||
StyleMapItem item = new StyleMapItem();
|
||||
item.sBefore = sBefore;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue