|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jurismarches.vradi.services.managers.TemplateManager
public class TemplateManager
Template manager. Handle:
| Field Summary | |
|---|---|
protected com.sun.star.uno.XComponentContext |
context
|
protected com.sun.star.lang.XComponent |
document
|
protected com.sun.star.frame.XComponentLoader |
loader
|
| Constructor Summary | |
|---|---|
TemplateManager(String templateDoc)
|
|
| Method Summary | |
|---|---|
com.sun.star.lang.XComponent |
createDoc(String templateFile)
Créer un document |
protected String |
filePathToURL(String file)
Converti si besoin l'url. |
protected void |
fillFields(Map<String,Object> myValues)
Remplir les champs de mailing. |
void |
generateDoc(String targetFileName,
Map<String,Object> myValues,
File... images)
|
String[] |
getDocumentFields()
Gets the user fields or database fields of the ooo document. |
void |
insertImageInEndOfDocument(File image)
Inserts an image to the end of the document. |
void |
storeDocComponent(com.sun.star.lang.XComponent xDoc,
String storeUrl)
Sauver un doc donné a l'url donnée au format pdf. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.sun.star.uno.XComponentContext context
protected com.sun.star.frame.XComponentLoader loader
protected com.sun.star.lang.XComponent document
| Constructor Detail |
|---|
public TemplateManager(String templateDoc)
throws VradiException
VradiException| Method Detail |
|---|
public void generateDoc(String targetFileName,
Map<String,Object> myValues,
File... images)
throws VradiException
VradiException
public com.sun.star.lang.XComponent createDoc(String templateFile)
throws VradiException
templateFile - Le template du document
VradiException - if document can't be created
public void storeDocComponent(com.sun.star.lang.XComponent xDoc,
String storeUrl)
throws VradiException
xDoc - Le document a sauvegarder (XComponent)storeUrl - Url complete du fichier (String)
VradiException - if pdf can't be exportedprotected String filePathToURL(String file)
protected void fillFields(Map<String,Object> myValues)
throws VradiException
myValues - value to replace into template fields
VradiException - if values can't be replaced
public void insertImageInEndOfDocument(File image)
throws VradiException
image - the file containing the image to insert
VradiExceptionpublic String[] getDocumentFields()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||