Skip to content
This repository was archived by the owner on Mar 23, 2020. It is now read-only.

Commit

Permalink
lf
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgohel committed Apr 17, 2014
1 parent b63f7b9 commit b5c19e6
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion src/DOCX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ static char docx_elt_tag_end[] = "</wps:wsp>";
static char docx_lock_properties[] = "<wps:cNvSpPr><a:spLocks noSelect=\"1\" noResize=\"1\" noEditPoints=\"1\" noTextEdit=\"1\" noMove=\"1\" noRot=\"1\" noChangeShapeType=\"1\"/></wps:cNvSpPr><wps:nvPr />";
static char docx_unlock_properties[] = "<wps:cNvSpPr /><wps:nvPr />";


void DOCX_setRunProperties(pDevDesc dev, R_GE_gcontext *gc, double fontsize){
DOCDesc *pd = (DOCDesc *) dev->deviceSpecific;
int alpha = (int) ((255-R_ALPHA(gc->col))/255.0 * 100000);//n importe quoi
Expand Down
2 changes: 0 additions & 2 deletions src/DOCX.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
#include "R_ext/GraphicsDevice.h"
#include <R_ext/Boolean.h>


extern "C" {


static Rboolean DOCXDeviceDriver(pDevDesc dev, const char* filename, double* width,
double* height, double* offx, double* offy, double ps, int nbplots,
const char* fontname, int id_init_value, int editable);
Expand Down
1 change: 0 additions & 1 deletion src/PPTX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ static char pptx_lock_properties[] = "<p:cNvSpPr><a:spLocks noSelect=\"1\" noRes
static char pptx_unlock_properties[] = "<p:cNvSpPr/><p:nvPr />";



static Rboolean PPTXDeviceDriver(pDevDesc dev, const char* filename, double* width,
double* height, double* offx, double* offy, double ps, int nbplots,
const char* fontname, int id_init_value, int editable) {
Expand Down
2 changes: 0 additions & 2 deletions src/PPTX.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
#include "R_ext/GraphicsDevice.h"
#include <R_ext/Boolean.h>


extern "C" {


static Rboolean PPTXDeviceDriver(pDevDesc dev, const char* filename, double* width,
double* height, double* offx, double* offy, double ps, int nbplots,
const char* fontname, int id_init_value, int editable);
Expand Down
1 change: 0 additions & 1 deletion src/RAPHAEL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <R_ext/Riconv.h>
#include <errno.h>


static Rboolean RAPHAELDeviceDriver(pDevDesc dev, const char* filename, double* width,
double* height, double* offx, double* offy, double ps, int nbplots,
const char* fontname, int canvas_id, SEXP env) {
Expand Down
2 changes: 0 additions & 2 deletions src/RAPHAEL.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
#include "R_ext/GraphicsDevice.h"
#include <R_ext/Boolean.h>


extern "C" {


static Rboolean RAPHAELDeviceDriver(pDevDesc dev, const char* filename, double* width,
double* height, double* offx, double* offy, double ps, int nbplots,
const char* fontname, int canvas_id, SEXP env);
Expand Down
1 change: 0 additions & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ double getFontSize(double cex, double fontsize, double lineheight) {
return size;
}


void closeFile( FILE *file){
BEGIN_SUSPEND_INTERRUPTS;
fflush(file);
Expand Down
2 changes: 1 addition & 1 deletion src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ void updateFontInfo(pDevDesc dev, R_GE_gcontext *gc);
void get_current_canvas_id(int *dn, int *res);
void get_current_element_id(int *dn, int *res);
void get_current_idx(int *dn, int *res);

int get_and_increment_idx(pDevDesc dev);

void SetFillColor(pDevDesc dev, R_GE_gcontext *gc);
void SetFontColor(pDevDesc dev, R_GE_gcontext *gc);
void SetLineSpec(pDevDesc dev, R_GE_gcontext *gc);
Expand Down

0 comments on commit b5c19e6

Please sign in to comment.