Subversion Repositories SmartDukaan

Rev

Rev 49 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 49 Rev 51
Line 37... Line 37...
37
import org.apache.poi.hslf.model.TextRun;
37
import org.apache.poi.hslf.model.TextRun;
38
import org.apache.poi.hslf.usermodel.RichTextRun;
38
import org.apache.poi.hslf.usermodel.RichTextRun;
39
import org.apache.poi.hslf.usermodel.SlideShow;
39
import org.apache.poi.hslf.usermodel.SlideShow;
40
 
40
 
41
/**
41
/**
-
 
42
 * Command line utility to convert MS PPT into shop2020 content model objects. 
-
 
43
 * It can be used to 
-
 
44
 * 
-
 
45
 * - Validate PPT file
-
 
46
 * - Import PPT file
-
 
47
 * - Show Java objects from already imported PPT
-
 
48
 * 
-
 
49
 * 
-
 
50
 * HSLF - Horrible slide show format (POI API term)
-
 
51
 * 
42
 * @author naveen
52
 * @author naveen
43
 *
53
 *
44
 */
54
 */
45
public class HSLF {
55
public class HSLF {
46
	// LOCAL
56
	// LOCAL
47
	/**
57
	/**
48
	 * 
58
	 * Path to where PPT files will be picked
49
	 */
59
	 */
50
	public static final String CONTENT_SRC_PPT_PATH = 
60
	public static final String CONTENT_SRC_PPT_PATH = 
51
		"/home/naveen/workspace/eclipse/content/ppt/";
61
		"/home/naveen/workspace/eclipse/content/ppt/";
52
	
62
	
53
	/** Validation tool
63
	/** Validation tool
54
	public static final String CONTENT_SRC_PPT_PATH = "./ppt/";
64
	public static final String CONTENT_SRC_PPT_PATH = "./ppt/";
55
	*/
65
	*/
56
	
66
	
57
	/**
67
	/**
58
	 * 
68
	 * Path where exported HTML files are kept
59
	 */
69
	 */
60
	public static final String CONTENT_SRC_HTML_PATH = 
70
	public static final String CONTENT_SRC_HTML_PATH = 
61
		"/home/naveen/workspace/eclipse/content/html/";
71
		"/home/naveen/workspace/eclipse/content/html/";
62
	
72
	
63
	/**
73
	/**
Line 173... Line 183...
173
	 * 
183
	 * 
174
	 */
184
	 */
175
	private String introductionText;
185
	private String introductionText;
176
 
186
 
177
	/**
187
	/**
-
 
188
	 * Usage: HSLF [validate|import|show] [{Entity ID}|{Category ID} {PPT file name}]
-
 
189
	 * 
178
	 * @param args
190
	 * @param args
179
	 */
191
	 */
180
	public static void main(String[] args) throws Exception {
192
	public static void main(String[] args) throws Exception {
181
		String[] commands = new String[] {"validate", "import", "show"};
193
		String[] commands = new String[] {"validate", "import", "show"};
182
		
194