diff src/myframe.cpp @ 8:db7bd315e52c

editing mark-sheet image.
author pyon@macmini
date Tue, 21 Jun 2011 21:16:31 +0900
parents 75fefb53d983
children 24e0775af32e
line wrap: on
line diff
--- a/src/myframe.cpp	Mon Apr 18 18:59:41 2011 +0900
+++ b/src/myframe.cpp	Tue Jun 21 21:16:31 2011 +0900
@@ -1,5 +1,5 @@
 // Filename   : mainframe.cpp
-// Last Change: 09-Apr-2011.
+// Last Change: 21-Jun-2011.
 //
 
 #include "symbol.h"
@@ -161,8 +161,9 @@
     h->Show(true);
     g->Show(false);
 
-	wxRegEx reHhs(wxT("^0[1238][0-9]{8}$"));	// 被保番チェック
-	wxRegEx reCno(wxT("^[0-9]{1,2}$"));         // 開くフォルダの番号
+	wxRegEx reHhs(wxT("^0[1238][0-9]{8}$"));	// 1:被保番チェック
+	wxRegEx reCno(wxT("^[0-9]{1,2}$"));         // 2:開くフォルダの番号
+	wxRegEx rePrint(wxT("^.[0-9]{1,2}$"));     // 3:印刷するフォルダの番号
 
 	wxString cmd;
 	cmd = this->GetLineText(0);
@@ -171,6 +172,8 @@
 		cond = 1;
 	else if ( reCno.Matches( cmd ) )
 		cond = 2;
+	else if ( rePrint.Matches( cmd ) )
+		cond = 3;
 
 	wxString htmlbody;
 
@@ -293,6 +296,10 @@
 
 			break;
 		}
+		// ファイル印刷
+		case 3: {
+			break;
+		}
 		// 制御用コマンド
 		case 0: {