-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathExcelFont.php
More file actions
117 lines (106 loc) · 2.87 KB
/
Copy pathExcelFont.php
File metadata and controls
117 lines (106 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
/*
+---------------------------------------------------------------------------+
| ExcelFont |
| |
| Reference file for NuSphere PHPEd (and possibly other IDE's) for use with |
| php_excel interface to libxl by Ilia Alshanetsky <[email protected]> |
| |
| php_excel "PECL" style module (http://github.com/iliaal/php_excel) |
| libxl library (http://www.libxl.com) |
| |
| Rob Gagnon <[email protected]> |
+---------------------------------------------------------------------------+
*/
class ExcelFont
{
const NORMAL = 0;
const SUBSCRIPT = 1;
const SUPERSCRIPT = 2;
const UNDERLINE_NONE = 0;
const UNDERLINE_SINGLE = 1;
const UNDERLINE_DOUBLE = 2;
const UNDERLINE_SINGLEACC = 33;
const UNDERLINE_DOUBLEACC = 34;
/**
* Create a font within an Excel workbook
*
* @see ExcelBook::addFont()
* @param ExcelBook $book
*/
final public function __construct(ExcelBook $book)
{
}
/**
* Get, or set the font size
*
* @param ?int $size (optional) Null = getter mode.
* @return int|false The current font size
*/
public function size(?int $size = null): int|false
{
}
/**
* Get, or set the font name
*
* @param ?string $name (optional) Null = getter mode.
* @return string|false
*/
public function name(?string $name = null): string|false
{
}
/**
* Get, or set the underline style
*
* @param ?int $underline_style (optional) One of ExcelFont::UNDERLINE_* constants. Null = getter mode.
* @return int|false
*/
public function underline(?int $underline_style = null): int|false
{
}
/**
* Get, or set the font script mode
*
* @param ?int $mode (optional) One of ExcelFont::NORMAL, ::SUBSCRIPT, or ::SUPERSCRIPT. Null = getter mode.
* @return int|false
*/
public function mode(?int $mode = null): int|false
{
}
/**
* Get, or set the font color
*
* @param ?int $color (optional) One of ExcelFormat::COLOR_* constants. Null = getter mode.
* @return int|false
*/
public function color(?int $color = null): int|false
{
}
/**
* Get, or set if bold is on or off
*
* @param ?bool $bold (optional) Null = getter mode.
* @return bool
*/
public function bold(?bool $bold = null): bool
{
}
/**
* Get, or set if strike-through is on or off
*
* @param ?bool $strike (optional) Null = getter mode.
* @return bool
*/
public function strike(?bool $strike = null): bool
{
}
/**
* Get, or set if italics are on or off
*
* @param ?bool $italics (optional) Null = getter mode.
* @return bool
*/
public function italics(?bool $italics = null): bool
{
}
} // end ExcelFont