HTML チャンクがセルに入力された Excel を HTML 変換(またはその逆)します。
wsf のコマンドラインオプションに Excel アプリケーションの Caption 指定用引数を追加
@@ -125,6 +125,7 @@ | ||
125 | 125 | String s = command.getAndClearStdout(); |
126 | 126 | if (!s.isEmpty()) { |
127 | 127 | Log.log(s); |
128 | + //@@TODO put statusbar | |
128 | 129 | } |
129 | 130 | } |
130 | 131 | }); |
@@ -134,6 +135,7 @@ | ||
134 | 135 | String s = command.getAndClearStderr(); |
135 | 136 | if (!s.isEmpty()) { |
136 | 137 | Log.log(s); |
138 | + //@@TODO put statusbar | |
137 | 139 | } |
138 | 140 | } |
139 | 141 | }); |
@@ -314,12 +316,14 @@ | ||
314 | 316 | boolean deleteHtmlAfterImport = true; |
315 | 317 | String worksheetName = ""; |
316 | 318 | boolean windowVisible = true; |
317 | - List<String> commands = new ArrayList<String>(5); | |
319 | + String altAppCaption = L10n.getExcelAltApplicationCaption(); | |
320 | + List<String> commands = new ArrayList<String>(6); | |
318 | 321 | commands.add("cscript.exe"); |
319 | 322 | commands.add("//nologo"); |
320 | 323 | commands.add(script); |
321 | 324 | commands.add("/sourceFolder:\"" + sourceFolder + "\""); |
322 | 325 | commands.add("/windowVisible" + (windowVisible ? "+" : "-")); |
326 | + commands.add("/altAppCaption:\"" + altAppCaption + "\""); | |
323 | 327 | |
324 | 328 | return startProcessAndWait(commands); |
325 | 329 | } |
@@ -335,12 +339,14 @@ | ||
335 | 339 | boolean deleteHtmlAfterImport = true; |
336 | 340 | String worksheetName = ""; |
337 | 341 | boolean windowVisible = true; |
338 | - List<String> commands = new ArrayList<String>(5); | |
342 | + String altAppCaption = L10n.getExcelAltApplicationCaption(); | |
343 | + List<String> commands = new ArrayList<String>(6); | |
339 | 344 | commands.add("cscript.exe"); |
340 | 345 | commands.add("//nologo"); |
341 | 346 | commands.add(script); |
342 | 347 | commands.add("/targetFolder:\"" + targetFolder + "\""); |
343 | 348 | commands.add("/windowVisible" + (windowVisible ? "+" : "-")); |
349 | + commands.add("/altAppCaption:\"" + altAppCaption + "\""); | |
344 | 350 | |
345 | 351 | return startProcessAndWait(commands); |
346 | 352 | } |
@@ -69,8 +69,11 @@ | ||
69 | 69 | |
70 | 70 | try { |
71 | 71 | //@@@TODO 後で設定画面を作成。とりあえず有効・無効の切替だけ実装 |
72 | - | |
73 | - Setting.setEnabled(menuItem.isSelected()); | |
72 | + boolean enabled = menuItem.isSelected(); | |
73 | + Setting.setEnabled(enabled); | |
74 | + if (enabled) { | |
75 | + ExcelModel.exportHTML(); | |
76 | + } | |
74 | 77 | } catch (IOException ex) { |
75 | 78 | Log.log(ex); |
76 | 79 | } |
@@ -44,8 +44,8 @@ | ||
44 | 44 | |
45 | 45 | // Excel |
46 | 46 | |
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"); | |
49 | 49 | } |
50 | 50 | |
51 | 51 | // Error |