|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* This file is part of PHPPresentation - A pure PHP library for reading and writing |
|
4
|
|
|
* presentations documents. |
|
5
|
|
|
* |
|
6
|
|
|
* PHPPresentation is free software distributed under the terms of the GNU Lesser |
|
7
|
|
|
* General Public License version 3 as published by the Free Software Foundation. |
|
8
|
|
|
* |
|
9
|
|
|
* For the full copyright and license information, please read the LICENSE |
|
10
|
|
|
* file that was distributed with this source code. For the full list of |
|
11
|
|
|
* contributors, visit https://github.com/PHPOffice/PHPPresentation/contributors. |
|
12
|
|
|
* |
|
13
|
|
|
* @link https://github.com/PHPOffice/PHPPresentation |
|
14
|
|
|
* @copyright 2009-2015 PHPPresentation contributors |
|
15
|
|
|
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3 |
|
16
|
|
|
*/ |
|
17
|
|
|
|
|
18
|
|
|
namespace PhpOffice\PhpPresentation\Shape\RichText; |
|
19
|
|
|
|
|
20
|
|
|
/** |
|
21
|
|
|
* Rich text break |
|
22
|
|
|
*/ |
|
23
|
|
|
class BreakElement implements TextElementInterface |
|
24
|
|
|
{ |
|
25
|
|
|
/** |
|
26
|
|
|
* Create a new \PhpOffice\PhpPresentation\Shape\RichText\Break instance |
|
27
|
|
|
*/ |
|
28
|
16 |
|
public function __construct() |
|
29
|
|
|
{ |
|
30
|
16 |
|
} |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* Get text |
|
34
|
|
|
* |
|
35
|
|
|
* @return string Text |
|
36
|
|
|
*/ |
|
37
|
4 |
|
public function getText() |
|
38
|
|
|
{ |
|
39
|
4 |
|
return "\r\n"; |
|
40
|
|
|
} |
|
41
|
|
|
|
|
42
|
|
|
/** |
|
43
|
|
|
* Set text |
|
44
|
|
|
* |
|
45
|
|
|
* @param $pText string Text |
|
46
|
|
|
* @return \PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface |
|
47
|
|
|
*/ |
|
48
|
1 |
|
public function setText($pText = '') |
|
49
|
|
|
{ |
|
50
|
1 |
|
return $this; |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* Get font |
|
55
|
|
|
* |
|
56
|
|
|
* @return \PhpOffice\PhpPresentation\Style\Font |
|
57
|
|
|
*/ |
|
58
|
1 |
|
public function getFont() |
|
59
|
|
|
{ |
|
60
|
1 |
|
return null; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* Get hash code |
|
65
|
|
|
* |
|
66
|
|
|
* @return string Hash code |
|
67
|
|
|
*/ |
|
68
|
3 |
|
public function getHashCode() |
|
69
|
|
|
{ |
|
70
|
3 |
|
return md5(__CLASS__); |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
/** |
|
74
|
|
|
* Set language |
|
75
|
|
|
* |
|
76
|
|
|
* @param $lang |
|
77
|
|
|
* @return \PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface |
|
78
|
|
|
*/ |
|
79
|
1 |
|
public function setLanguage($lang) |
|
80
|
|
|
{ |
|
81
|
1 |
|
return $this; |
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* Get language |
|
86
|
|
|
* |
|
87
|
|
|
* @return string Language |
|
88
|
|
|
*/ |
|
89
|
1 |
|
public function getLanguage() |
|
90
|
|
|
{ |
|
91
|
1 |
|
return null; |
|
92
|
|
|
} |
|
93
|
|
|
} |
|
94
|
|
|
|