• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

HTML チャンクがセルに入力された Excel を HTML 変換(またはその逆)します。


Commit MetaInfo

Revisión2 (tree)
Tiempo2014-01-20 01:29:01
Autoryu-tang

Log Message

wsf のコマンドラインオプションに Excel アプリケーションの Caption 指定用引数を追加

Cambiar Resumen

Diferencia incremental

--- src/jp/sourceforge/users/yutang/omegat/plugin/htmlinexcel/ExcelModel.java (revision 1)
+++ src/jp/sourceforge/users/yutang/omegat/plugin/htmlinexcel/ExcelModel.java (revision 2)
@@ -125,6 +125,7 @@
125125 String s = command.getAndClearStdout();
126126 if (!s.isEmpty()) {
127127 Log.log(s);
128+ //@@TODO put statusbar
128129 }
129130 }
130131 });
@@ -134,6 +135,7 @@
134135 String s = command.getAndClearStderr();
135136 if (!s.isEmpty()) {
136137 Log.log(s);
138+ //@@TODO put statusbar
137139 }
138140 }
139141 });
@@ -314,12 +316,14 @@
314316 boolean deleteHtmlAfterImport = true;
315317 String worksheetName = "";
316318 boolean windowVisible = true;
317- List<String> commands = new ArrayList<String>(5);
319+ String altAppCaption = L10n.getExcelAltApplicationCaption();
320+ List<String> commands = new ArrayList<String>(6);
318321 commands.add("cscript.exe");
319322 commands.add("//nologo");
320323 commands.add(script);
321324 commands.add("/sourceFolder:\"" + sourceFolder + "\"");
322325 commands.add("/windowVisible" + (windowVisible ? "+" : "-"));
326+ commands.add("/altAppCaption:\"" + altAppCaption + "\"");
323327
324328 return startProcessAndWait(commands);
325329 }
@@ -335,12 +339,14 @@
335339 boolean deleteHtmlAfterImport = true;
336340 String worksheetName = "";
337341 boolean windowVisible = true;
338- List<String> commands = new ArrayList<String>(5);
342+ String altAppCaption = L10n.getExcelAltApplicationCaption();
343+ List<String> commands = new ArrayList<String>(6);
339344 commands.add("cscript.exe");
340345 commands.add("//nologo");
341346 commands.add(script);
342347 commands.add("/targetFolder:\"" + targetFolder + "\"");
343348 commands.add("/windowVisible" + (windowVisible ? "+" : "-"));
349+ commands.add("/altAppCaption:\"" + altAppCaption + "\"");
344350
345351 return startProcessAndWait(commands);
346352 }
--- src/jp/sourceforge/users/yutang/omegat/plugin/htmlinexcel/ImExController.java (revision 1)
+++ src/jp/sourceforge/users/yutang/omegat/plugin/htmlinexcel/ImExController.java (revision 2)
@@ -69,8 +69,11 @@
6969
7070 try {
7171 //@@@TODO 後で設定画面を作成。とりあえず有効・無効の切替だけ実装
72-
73- Setting.setEnabled(menuItem.isSelected());
72+ boolean enabled = menuItem.isSelected();
73+ Setting.setEnabled(enabled);
74+ if (enabled) {
75+ ExcelModel.exportHTML();
76+ }
7477 } catch (IOException ex) {
7578 Log.log(ex);
7679 }
--- src/jp/sourceforge/users/yutang/omegat/plugin/htmlinexcel/L10n.java (revision 1)
+++ src/jp/sourceforge/users/yutang/omegat/plugin/htmlinexcel/L10n.java (revision 2)
@@ -44,8 +44,8 @@
4444
4545 // Excel
4646
47- public static String getExcelWindowTitle() {
48- return bundle.getString("HEC_EXCEL_WINDOW_TITLE");
47+ public static String getExcelAltApplicationCaption() {
48+ return bundle.getString("HEC_EXCEL_ALT_APPLICATION_CAPTION");
4949 }
5050
5151 // Error