Skip to content

Commit

Permalink
Prep for release 0.0.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcnamara committed Mar 1, 2015
1 parent f111c60 commit dc17133
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
16 changes: 16 additions & 0 deletions Changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
@page changes Changes



## 0.0.4 March 1 2015

- Added `worksheet_set_margins()` function to set top, bottom, left and right
margins in a worksheet.

- Fix for issue where format objects were written to the file in the order of
creation rather than the order of use. This issue caused incorrect formats
in cells.
Issue [#3](https://github.com/jmcnamara/libxlsxwriter/issues/3).

- Fix for issue where tmp files in `constant_memory` mode weren't closed
until application exited.
Issue [#1](https://github.com/jmcnamara/libxlsxwriter/issues/1).


## 0.0.3 January 7 2015

- Added worksheet page setup methods.
Expand Down
2 changes: 1 addition & 1 deletion include/xlsxwriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
#include "xlsxwriter/format.h"
#include "xlsxwriter/utility.h"

#define LXW_VERSION "0.0.3"
#define LXW_VERSION "0.0.4"

#endif /* __LXW_XLSXWRITER_H__ */
20 changes: 19 additions & 1 deletion include/xlsxwriter/worksheet.h
Original file line number Diff line number Diff line change
Expand Up @@ -792,14 +792,32 @@ void worksheet_set_page_view(lxw_worksheet *worksheet);
*/
void worksheet_set_paper(lxw_worksheet *worksheet, uint8_t paper_type);

/**
* @brief Set the worksheet margins for the printed page.
*
* @param worksheet Pointer to a lxw_worksheet instance to be updated.
* @param left Left margin in inches. Excel default is 0.7.
* @param right Right margin in inches. Excel default is 0.7.
* @param top Top margin in inches. Excel default is 0.75.
* @param bottom Bottom margin in inches. Excel default is 0.75.
*
* The `set_margins()` function is used to set the margins of the worksheet
* when it is printed. The units are in inches. Specifying `-1` for any
* parameter will give the default Excel value as shown above.
*
* @code
* worksheet_set_margins(worksheet, 1.3, 1.2, -1, -1);
* @endcode
*
*/
void worksheet_set_margins(lxw_worksheet *worksheet, double left,
double right, double top, double bottom);

/**
* @brief Set the order in which pages are printed.
*
* @param worksheet Pointer to a lxw_worksheet instance to be updated.
*
*
* The `print_across()` function is used to change the default print
* direction. This is referred to by Excel as the sheet "page order":
*
Expand Down

0 comments on commit dc17133

Please sign in to comment.