[Kafenio-cvs-commit] kafenio_main/src/de/xeinfach/kafenio KafenioMenuBar.java,1.2,1.3 KafenioPanelAc
Status: Beta
Brought to you by:
netsrak
|
From: <ne...@pr...> - 2004-01-28 01:15:08
|
Update of /cvsroot/kafenio/kafenio_main/src/de/xeinfach/kafenio In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26488/src/de/xeinfach/kafenio Modified Files: KafenioMenuBar.java KafenioPanelActions.java KafenioToolBar.java Log Message: added new Hyperlink insertion dialog from maxym (insert link from server is currently not available.) Index: KafenioMenuBar.java =================================================================== RCS file: /cvsroot/kafenio/kafenio_main/src/de/xeinfach/kafenio/KafenioMenuBar.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** KafenioMenuBar.java 21 Jan 2004 22:23:01 -0000 1.2 --- KafenioMenuBar.java 28 Jan 2004 01:13:55 -0000 1.3 *************** *** 213,217 **** JMenu insertMenu = getNewMenu("Insert"); ! insertMenu.add(new KafenioMenuItem(this, getActionList().getActionInsertAnchor(), null, null, false)); insertMenu.add(new KafenioMenuItem( this, "InsertBreak", --- 213,218 ---- JMenu insertMenu = getNewMenu("Insert"); ! //insertMenu.add(new KafenioMenuItem(this, getActionList().getActionInsertAnchor(), null, null, false)); ! insertMenu.add(new KafenioMenuItem(this, getActionList().getActionInsertHyperlink(), null, null, false)); insertMenu.add(new KafenioMenuItem( this, "InsertBreak", Index: KafenioPanelActions.java =================================================================== RCS file: /cvsroot/kafenio/kafenio_main/src/de/xeinfach/kafenio/KafenioPanelActions.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** KafenioPanelActions.java 21 Jan 2004 22:23:01 -0000 1.2 --- KafenioPanelActions.java 28 Jan 2004 01:13:55 -0000 1.3 *************** *** 12,15 **** --- 12,16 ---- import de.xeinfach.kafenio.action.CustomAction; import de.xeinfach.kafenio.action.FormatAction; + import de.xeinfach.kafenio.action.HyperlinkAction; import de.xeinfach.kafenio.action.IndentAction; import de.xeinfach.kafenio.action.ListAutomationAction; *************** *** 32,36 **** private CustomAction actionSelectFont; private CustomAction actionClearFormat; ! private CustomAction actionInsertAnchor; private CustomAction actionAlignLeft; private CustomAction actionAlignCenter; --- 33,37 ---- private CustomAction actionSelectFont; private CustomAction actionClearFormat; ! private HyperlinkAction actionInsertHyperlink; private CustomAction actionAlignLeft; private CustomAction actionAlignCenter; *************** *** 146,153 **** actionClearFormat = new CustomAction(parent, Translatrix.getTranslationString("FormatClear"), new HTML.UnknownTag("")); ! actionInsertAnchor = ! new CustomAction( parent, ! Translatrix.getTranslationString("InsertAnchor") + KafenioMenuItem.DOTS, ! HTML.Tag.A); actionInsertCharacter = new SpecialCharAction(parent, Translatrix.getTranslationString("InsertCharacter") + KafenioMenuItem.DOTS); --- 147,152 ---- actionClearFormat = new CustomAction(parent, Translatrix.getTranslationString("FormatClear"), new HTML.UnknownTag("")); ! actionInsertHyperlink = new HyperlinkAction(parent); ! actionInsertCharacter = new SpecialCharAction(parent, Translatrix.getTranslationString("InsertCharacter") + KafenioMenuItem.DOTS); *************** *** 350,355 **** * @return returns action that adds an anchor to the selected text. */ ! public CustomAction getActionInsertAnchor() { ! return actionInsertAnchor; } --- 349,354 ---- * @return returns action that adds an anchor to the selected text. */ ! public HyperlinkAction getActionInsertHyperlink() { ! return actionInsertHyperlink; } Index: KafenioToolBar.java =================================================================== RCS file: /cvsroot/kafenio/kafenio_main/src/de/xeinfach/kafenio/KafenioToolBar.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** KafenioToolBar.java 21 Jan 2004 22:23:01 -0000 1.2 --- KafenioToolBar.java 28 Jan 2004 01:13:55 -0000 1.3 *************** *** 211,215 **** null, null, ! getActionList().getActionInsertAnchor())); items.put(KEY_TOOL_FIND, createButton( "Find", "SearchFind", --- 211,216 ---- null, null, ! getActionList().getActionInsertHyperlink())); ! //getActionList().getActionInsertAnchor())); items.put(KEY_TOOL_FIND, createButton( "Find", "SearchFind", |