12 #ifndef _LIBGREPROPS_H
13 #define _LIBGREPROPS_H 1
41 static const unsigned long __nan[2] = {0xffffffff, 0x7fffffff};
42 #define NAN (*(const float *) __nan)
48 enum IssueType {ERROR,WARNING,NO_ISSUE=-1};
49 enum boolean {FALSE,TRUE,BOOLEAN_NULL=-1};
52 #define FLOAT_NULL NAN
56 enum autoformatTypeEnum {COMPATIBILITY,FLAT_LIST,NEW_LIST};
57 enum logicalPageMappingEnum {oneToOne,labels,multipage};
58 enum SVGCharsetToEmbedEnum {DEFAULT,ISO_8859_15,ALL};
59 enum BrowserFontFileFormatEnum {ttf,woff,eot};
60 enum RTFImagesFormatEnum {png,jpg};
61 enum outputDeviceEnum {PDF,XLS,XLSX,HTML,Image,Printer,Postscript,SVG,Browser,RTF,OORTF,Input_XML,Normalized_XML,Transformed_XML,Document_Model_XML,HLPXML,PXML};
62 enum SVGPreviewTypeEnum {Preview,ShowPrintDialog,PrintOnDefaultPrinter,PrintOnNamedPrinter};
65 struct RuntimeConfiguration;
67 typedef struct RuntimeConfiguration* RuntimeConfigurationPtr;
69 RuntimeConfigurationPtr fgl_report_createRuntimeConfiguration(
const char *reportFileName);
71 void fgl_report_destroyRuntimeConfiguration(RuntimeConfigurationPtr rcPtr);
73 char* fgl_report_getDistributedHost(RuntimeConfigurationPtr rcPtr);
75 int fgl_report_getDistributedPort(RuntimeConfigurationPtr rcPtr);
77 char* fgl_report_getOutputFileName(RuntimeConfigurationPtr rcPtr);
79 char* fgl_report_getLastIssueMessage(RuntimeConfigurationPtr rcPtr);
81 int fgl_report_getLastIssueNumber(RuntimeConfigurationPtr rcPtr);
83 enum IssueType fgl_report_getLastIssueType(RuntimeConfigurationPtr rcPtr);
85 static char *nstrdup(
const char* s);
100 char* fgl_report_getXMLEncoding(RuntimeConfigurationPtr rcPtr);
174 void fgl_report_configureLocalization(RuntimeConfigurationPtr rcPtr,
const char* charSet,
const char* resourcePath,
const char* numberFormat,
const char* dateFormat);
240 void fgl_report_configureLabelOutput(RuntimeConfigurationPtr rcPtr,
const char* paperWidth,
const char* paperHeight,
const char* labelWidth,
const char* labelHeight,
int labelsPerRow,
int labelsPerColumn);
277 void fgl_report_configureSVGDevice(RuntimeConfigurationPtr rcPtr,
enum boolean antialiasFonts,
enum boolean antialiasShapes,
enum boolean embedFonts,
enum SVGCharsetToEmbedEnum charsetToEmbed);
410 void fgl_report_configureImageDevice(RuntimeConfigurationPtr rcPtr,
enum boolean antialiasFonts,
enum boolean antialiasShapes,
enum boolean monochrome,
int fromPage,
int toPage,
const char* fileType,
const char* filePath,
const char* fileNamePrefix,
int resolution);
468 void fgl_report_configurePDFDevice(RuntimeConfigurationPtr rcPtr,
const char* fontDirectory,
enum boolean antialiasFonts,
enum boolean antialiasShapes,
enum boolean monochrome,
int fromPage,
int toPage);
552 void fgl_report_configureXLSDevice(RuntimeConfigurationPtr rcPtr,
int fromPage,
int toPage,
enum boolean removeWhitespace,
enum boolean ignoreRowAlignment,
enum boolean ignoreColumnAlignment,
enum boolean removeBackgroundImages,
enum boolean mergePages);
615 void fgl_report_configureXLSXDevice(RuntimeConfigurationPtr rcPtr,
int fromPage,
int toPage,
enum boolean removeWhitespace,
enum boolean ignoreRowAlignment,
enum boolean ignoreColumnAlignment,
enum boolean removeBackgroundImages,
enum boolean mergePages);
689 void fgl_report_configureHTMLDevice(RuntimeConfigurationPtr rcPtr,
int fromPage,
int toPage,
enum boolean embedImages,
const char* imageGenerationDirectory,
const char* imageURLPrefix,
enum boolean removeWhitespace,
enum boolean ignoreRowAlignment,
enum boolean ignoreColumnAlignment,
enum boolean removeBackgroundImages);
716 void fgl_report_configureRTFDevice(RuntimeConfigurationPtr rcPtr,
int fromPage,
int toPage,
int imagesResolution,
enum RTFImagesFormatEnum imagesFormat);
743 void fgl_report_configureOORTFDevice(RuntimeConfigurationPtr rcPtr,
int fromPage,
int toPage,
int imagesResolution,
enum RTFImagesFormatEnum imagesFormat);
795 void fgl_report_configureCompatibilityOutput(RuntimeConfigurationPtr rcPtr,
int pageWidthInCharacters,
const char* fontName,
enum boolean fidelity,
const char* reportName,
const char* reportCategory,
const char* systemId);
826 void fgl_report_configureAutoformatOutput(RuntimeConfigurationPtr rcPtr,
const char* fontName,
int fontSize,
enum boolean fidelity,
const char* reportTitle,
const char* fieldNamePatterns,
const char* systemId);
878 void fgl_report_configureCompatibilityOutput1(RuntimeConfigurationPtr rcPtr,
int pageWidthInCharacters,
const char* fontName,
enum boolean fidelity,
const char* reportName,
const char* reportCategory,
const char* systemId,
enum boolean outputCompleteLines,
enum boolean ignoreLeftMargin,
enum boolean ignoreTopMargin);
1005 void fgl_report_setPageMargins(RuntimeConfigurationPtr rcPtr,
const char* topMargin,
const char* bottomMargin,
const char* leftMargin,
const char* rightMargin);
1049 void fgl_report_setPaperMargins(RuntimeConfigurationPtr rcPtr,
const char* topMargin,
const char* bottomMargin,
const char* leftMargin,
const char* rightMargin);
void fgl_report_setBrowserDocumentDirectoryURL(RuntimeConfigurationPtr rcPtr, const char *directory)
void fgl_report_setKeywords(RuntimeConfigurationPtr rcPtr, const char *keywords)
void fgl_report_setPrinterName(RuntimeConfigurationPtr rcPtr, const char *printerName)
void fgl_report_setXLSMergeCells(RuntimeConfigurationPtr rcPtr, enum boolean mergeCells)
void fgl_report_setBrowserFontFileFormat(RuntimeConfigurationPtr rcPtr, enum BrowserFontFileFormatEnum format)
void fgl_report_setPrinterCopies(RuntimeConfigurationPtr rcPtr, int copies)
void fgl_report_setSVGCopies(RuntimeConfigurationPtr rcPtr, int copies)
void fgl_report_setXLSXHandleBorders(RuntimeConfigurationPtr rcPtr, enum boolean handleBorders)
void fgl_report_setPrinterPrintQuality(RuntimeConfigurationPtr rcPtr, const char *printQuality)
void fgl_report_setTitle(RuntimeConfigurationPtr rcPtr, const char *title)
void fgl_report_configureDistributedEnvironment(RuntimeConfigurationPtr rcPtr, const char *FGLDIR, const char *FGLPROFILE, const char *FGLRESOURCEPATH, const char *DBPATH)
void fgl_report_setSVGSheetCollate(RuntimeConfigurationPtr rcPtr, const char *sheetCollate)
void fgl_report_configureMultipageOutput(RuntimeConfigurationPtr rcPtr, int pageExponent, int isoNumber, enum boolean portrait)
void fgl_report_configureHTMLDevice(RuntimeConfigurationPtr rcPtr, int fromPage, int toPage, enum boolean embedImages, const char *imageGenerationDirectory, const char *imageURLPrefix, enum boolean removeWhitespace, enum boolean ignoreRowAlignment, enum boolean ignoreColumnAlignment, enum boolean removeBackgroundImages)
void fgl_report_setPrinterJobName(RuntimeConfigurationPtr rcPtr, const char *jobName)
void fgl_report_setSVGPrinterName(RuntimeConfigurationPtr rcPtr, const char *printerName)
void fgl_report_setPrinterSheetCollate(RuntimeConfigurationPtr rcPtr, const char *sheetCollate)
void fgl_report_setPrinterRequestingUserName(RuntimeConfigurationPtr rcPtr, const char *requestingUserName)
void fgl_report_configureImageDevice(RuntimeConfigurationPtr rcPtr, enum boolean antialiasFonts, enum boolean antialiasShapes, enum boolean monochrome, int fromPage, int toPage, const char *fileType, const char *filePath, const char *fileNamePrefix, int resolution)
void fgl_report_configureLocalization(RuntimeConfigurationPtr rcPtr, const char *charSet, const char *resourcePath, const char *numberFormat, const char *dateFormat)
void fgl_report_setPrinterPageRanges(RuntimeConfigurationPtr rcPtr, const char *pageRanges)
void fgl_report_setPrinterJobPriority(RuntimeConfigurationPtr rcPtr, int jobPriority)
void fgl_report_setPrinterDestinationUrl(RuntimeConfigurationPtr rcPtr, const char *destination)
void fgl_report_setSVGCompression(RuntimeConfigurationPtr rcPtr, enum boolean compressOutput)
void fgl_report_setEnvironment(RuntimeConfigurationPtr rcPtr, const char *values)
void fgl_report_setSubject(RuntimeConfigurationPtr rcPtr, const char *subject)
void fgl_report_configureDistributedProcessing(RuntimeConfigurationPtr rcPtr, const char *host, int port)
void fgl_report_setBrowserDocumentDirectory(RuntimeConfigurationPtr rcPtr, const char *directory)
void fgl_report_setPrinterJobMediaSheets(RuntimeConfigurationPtr rcPtr, int jobMediaSheets)
void fgl_report_setPrinterMediaTray(RuntimeConfigurationPtr rcPtr, const char *mediaTray)
void fgl_report_setXLSHandleBorders(RuntimeConfigurationPtr rcPtr, enum boolean handleBorders)
void fgl_report_setPrinterChromaticity(RuntimeConfigurationPtr rcPtr, const char *chromaticity)
void fgl_report_setImageUsePageNamesAsFileNames(RuntimeConfigurationPtr rcPtr, enum boolean value)
void fgl_report_configureLabelOutput(RuntimeConfigurationPtr rcPtr, const char *paperWidth, const char *paperHeight, const char *labelWidth, const char *labelHeight, int labelsPerRow, int labelsPerColumn)
void fgl_report_setPageMargins(RuntimeConfigurationPtr rcPtr, const char *topMargin, const char *bottomMargin, const char *leftMargin, const char *rightMargin)
void fgl_report_setPrinterPJLVariables(RuntimeConfigurationPtr rcPtr, const char *values)
void fgl_report_configureCompatibilityOutput1(RuntimeConfigurationPtr rcPtr, int pageWidthInCharacters, const char *fontName, enum boolean fidelity, const char *reportName, const char *reportCategory, const char *systemId, enum boolean outputCompleteLines, enum boolean ignoreLeftMargin, enum boolean ignoreTopMargin)
void fgl_report_setAutoformatType(RuntimeConfigurationPtr rcPtr, enum autoformatTypeEnum type)
void fgl_report_setXMLEncoding(RuntimeConfigurationPtr rcPtr, const char *xmlEncoding)
void fgl_report_configureOORTFDevice(RuntimeConfigurationPtr rcPtr, int fromPage, int toPage, int imagesResolution, enum RTFImagesFormatEnum imagesFormat)
void fgl_report_setPrinterOrientationRequested(RuntimeConfigurationPtr rcPtr, const char *orientationRequested)
void fgl_report_setPrinterJobImpressions(RuntimeConfigurationPtr rcPtr, int jobImpressions)
void fgl_report_configureSVGPreview(RuntimeConfigurationPtr rcPtr, enum SVGPreviewTypeEnum type)
void fgl_report_setPDFImageResolution(RuntimeConfigurationPtr rcPtr, int imagesResolution)
void fgl_report_configureRTFDevice(RuntimeConfigurationPtr rcPtr, int fromPage, int toPage, int imagesResolution, enum RTFImagesFormatEnum imagesFormat)
void fgl_report_setSharePortWithGDC(RuntimeConfigurationPtr rcPtr, enum boolean share)
void fgl_report_selectDevice(RuntimeConfigurationPtr rcPtr, enum outputDeviceEnum device)
void fgl_report_configureCompatibilityOutput(RuntimeConfigurationPtr rcPtr, int pageWidthInCharacters, const char *fontName, enum boolean fidelity, const char *reportName, const char *reportCategory, const char *systemId)
void fgl_report_configurePageSize(RuntimeConfigurationPtr rcPtr, const char *pageWidth, const char *pageHeight)
void fgl_report_setDistributedRequestingUserName(RuntimeConfigurationPtr rcPtr, const char *requestingUserName)
void fgl_report_setPrinterFidelity(RuntimeConfigurationPtr rcPtr, enum boolean fidelity)
void fgl_report_setPageSwappingThreshold(RuntimeConfigurationPtr rcPtr, int value)
char * fgl_report_getPIAttributes(RuntimeConfigurationPtr rcPtr)
void fgl_report_configureXLSXDevice(RuntimeConfigurationPtr rcPtr, int fromPage, int toPage, enum boolean removeWhitespace, enum boolean ignoreRowAlignment, enum boolean ignoreColumnAlignment, enum boolean removeBackgroundImages, enum boolean mergePages)
void fgl_report_setRenderingHints(RuntimeConfigurationPtr rcPtr, const char *values)
void fgl_report_setAuthor(RuntimeConfigurationPtr rcPtr, const char *author)
void fgl_report_setPrinterNumberUp(RuntimeConfigurationPtr rcPtr, int numberUp)
void fgl_report_configureSVGDevice(RuntimeConfigurationPtr rcPtr, enum boolean antialiasFonts, enum boolean antialiasShapes, enum boolean embedFonts, enum SVGCharsetToEmbedEnum charsetToEmbed)
void fgl_report_setPaperMargins(RuntimeConfigurationPtr rcPtr, const char *topMargin, const char *bottomMargin, const char *leftMargin, const char *rightMargin)
void fgl_report_setBrowserFontDirectory(RuntimeConfigurationPtr rcPtr, const char *directory)
void fgl_report_setRTFMemoryThreshold(RuntimeConfigurationPtr rcPtr, int memoryThreshold)
void fgl_report_selectLogicalPageMapping(RuntimeConfigurationPtr rcPtr, enum logicalPageMappingEnum mapping)
void fgl_report_setProcessLevelDataFile(RuntimeConfigurationPtr rcPtr, const char *dataFileName)
void fgl_report_setImageShrinkImagesToPageContent(RuntimeConfigurationPtr rcPtr, enum boolean value)
void fgl_report_setPrinterWriteToFile(RuntimeConfigurationPtr rcPtr, const char *file)
void fgl_report_setPrinterResolution(RuntimeConfigurationPtr rcPtr, const char *resolution)
void fgl_report_setXLSXMergeCells(RuntimeConfigurationPtr rcPtr, enum boolean mergeCells)
void fgl_report_setPrinterSides(RuntimeConfigurationPtr rcPtr, const char *sides)
void fgl_report_setPDFJPEGImageEncoding(RuntimeConfigurationPtr rcPtr, enum boolean encodeImagesAsJPEG, float jpegQuality)
void fgl_report_setPrinterJobSheets(RuntimeConfigurationPtr rcPtr, const char *jobSheets)
void fgl_report_setCreator(RuntimeConfigurationPtr rcPtr, const char *creator)
void fgl_report_markOverfullBoxesInDocument(RuntimeConfigurationPtr rcPtr, enum boolean value)
void fgl_report_setPrinterMediaSizeName(RuntimeConfigurationPtr rcPtr, const char *mediaSizeName)
void fgl_report_setPrinterMediaName(RuntimeConfigurationPtr rcPtr, const char *mediaName)
void fgl_report_configurePDFDevice(RuntimeConfigurationPtr rcPtr, const char *fontDirectory, enum boolean antialiasFonts, enum boolean antialiasShapes, enum boolean monochrome, int fromPage, int toPage)
void fgl_report_configureAutoformatOutput(RuntimeConfigurationPtr rcPtr, const char *fontName, int fontSize, enum boolean fidelity, const char *reportTitle, const char *fieldNamePatterns, const char *systemId)
void fgl_report_setSVGOrientationRequested(RuntimeConfigurationPtr rcPtr, const char *orientationRequested)
void fgl_report_setCallbackLocalization(RuntimeConfigurationPtr rcPtr, enum boolean value)
void fgl_report_configurePDFFontEmbedding(RuntimeConfigurationPtr rcPtr, enum boolean preferUnicodeEncoding)
void fgl_report_configureXLSDevice(RuntimeConfigurationPtr rcPtr, int fromPage, int toPage, enum boolean removeWhitespace, enum boolean ignoreRowAlignment, enum boolean ignoreColumnAlignment, enum boolean removeBackgroundImages, enum boolean mergePages)
void fgl_report_setSVGPaperSource(RuntimeConfigurationPtr rcPtr, const char *paperSource)
void fgl_report_setOutputFileName(RuntimeConfigurationPtr rcPtr, const char *fileName)
void fgl_report_setSVGPageRange(RuntimeConfigurationPtr rcPtr, int fromPage, int toPage)
void fgl_report_setBrowserFontDirectoryURL(RuntimeConfigurationPtr rcPtr, const char *directory)