-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #38
- Loading branch information
Showing
36 changed files
with
2,483 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* libxlsxwriter | ||
* | ||
* Copyright 2014-2019, John McNamara, jmcnamara@cpan.org. See LICENSE.txt. | ||
* | ||
* comment - A libxlsxwriter library for creating Excel XLSX comment files. | ||
* | ||
*/ | ||
#ifndef __LXW_COMMENT_H__ | ||
#define __LXW_COMMENT_H__ | ||
|
||
#include <stdint.h> | ||
|
||
#include "common.h" | ||
#include "worksheet.h" | ||
|
||
/* | ||
* Struct to represent a comment object. | ||
*/ | ||
typedef struct lxw_comment { | ||
|
||
FILE *file; | ||
struct lxw_comment_objs *comment_objs; | ||
|
||
} lxw_comment; | ||
|
||
|
||
/* *INDENT-OFF* */ | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
/* *INDENT-ON* */ | ||
|
||
lxw_comment *lxw_comment_new(); | ||
void lxw_comment_free(lxw_comment *comment); | ||
void lxw_comment_assemble_xml_file(lxw_comment *self); | ||
|
||
/* Declarations required for unit testing. */ | ||
#ifdef TESTING | ||
|
||
STATIC void _comment_xml_declaration(lxw_comment *self); | ||
|
||
#endif /* TESTING */ | ||
|
||
/* *INDENT-OFF* */ | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
/* *INDENT-ON* */ | ||
|
||
#endif /* __LXW_COMMENT_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* libxlsxwriter | ||
* | ||
* Copyright 2014-2019, John McNamara, jmcnamara@cpan.org. See LICENSE.txt. | ||
* | ||
* vml - A libxlsxwriter library for creating Excel XLSX vml files. | ||
* | ||
*/ | ||
#ifndef __LXW_VML_H__ | ||
#define __LXW_VML_H__ | ||
|
||
#include <stdint.h> | ||
|
||
#include "common.h" | ||
#include "worksheet.h" | ||
|
||
/* | ||
* Struct to represent a vml object. | ||
*/ | ||
typedef struct lxw_vml { | ||
|
||
FILE *file; | ||
uint8_t type; | ||
struct lxw_comment_objs *button_objs; | ||
struct lxw_comment_objs *comment_objs; | ||
struct lxw_comment_objs *image_objs; | ||
char *vml_data_id_str; | ||
uint32_t vml_shape_id; | ||
|
||
} lxw_vml; | ||
|
||
|
||
/* *INDENT-OFF* */ | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
/* *INDENT-ON* */ | ||
|
||
lxw_vml *lxw_vml_new(); | ||
void lxw_vml_free(lxw_vml *vml); | ||
void lxw_vml_assemble_xml_file(lxw_vml *self); | ||
|
||
/* Declarations required for unit testing. */ | ||
#ifdef TESTING | ||
|
||
#endif /* TESTING */ | ||
|
||
/* *INDENT-OFF* */ | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
/* *INDENT-ON* */ | ||
|
||
#endif /* __LXW_VML_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.