Skip to content

Commit b2585df

Browse files
committed
move constants to simpleType
1 parent cc9dfb8 commit b2585df

File tree

2 files changed

+58
-35
lines changed

2 files changed

+58
-35
lines changed

src/PhpWord/SimpleType/Border.php

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?php
2+
/**
3+
* This file is part of PHPWord - A pure PHP library for reading and writing
4+
* word processing documents.
5+
*
6+
* PHPWord 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/PHPWord/contributors.
12+
*
13+
* @see https://github.com/PHPOffice/PHPWord
14+
* @copyright 2010-2018 PHPWord contributors
15+
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
16+
*/
17+
18+
namespace PhpOffice\PhpWord\SimpleType;
19+
20+
use PhpOffice\PhpWord\Shared\AbstractEnum;
21+
22+
/**
23+
* Border Styles.
24+
*
25+
* @since 0.18.0
26+
*
27+
* @see http://www.datypic.com/sc/ooxml/t-w_ST_Border.html
28+
*/
29+
final class Border extends AbstractEnum
30+
{
31+
const SINGLE = 'single'; //A single line
32+
const DASH_DOT_STROKED = 'dashDotStroked'; //A line with a series of alternating thin and thick strokes
33+
const DASHED = 'dashed'; //A dashed line
34+
const DASH_SMALL_GAP = 'dashSmallGap'; //A dashed line with small gaps
35+
const DOT_DASH = 'dotDash'; //A line with alternating dots and dashes
36+
const DOT_DOT_DASH = 'dotDotDash'; //A line with a repeating dot - dot - dash sequence
37+
const DOTTED = 'dotted'; //A dotted line
38+
const DOUBLE = 'double'; //A double line
39+
const DOUBLE_WAVE = 'doubleWave'; //A double wavy line
40+
const INSET = 'inset'; //An inset set of lines
41+
const NIL = 'nil'; //No border
42+
const NONE = 'none'; //No border
43+
const OUTSET = 'outset'; //An outset set of lines
44+
const THICK = 'thick'; //A single line
45+
const THICK_THIN_LARGE_GAP = 'thickThinLargeGap'; //A thick line contained within a thin line with a large-sized intermediate gap
46+
const THICK_THIN_MEDIUM_GAP = 'thickThinMediumGap'; //A thick line contained within a thin line with a medium-sized intermediate gap
47+
const THICK_THIN_SMALL_GAP = 'thickThinSmallGap'; //A thick line contained within a thin line with a small intermediate gap
48+
const THIN_THICK_LARGE_GAP = 'thinThickLargeGap'; //A thin line contained within a thick line with a large-sized intermediate gap
49+
const THIN_THICK_MEDIUM_GAP = 'thinThickMediumGap'; //A thick line contained within a thin line with a medium-sized intermediate gap
50+
const THIN_THICK_SMALL_GAP = 'thinThickSmallGap'; //A thick line contained within a thin line with a small intermediate gap
51+
const THIN_THICK_THINLARGE_GAP = 'thinThickThinLargeGap'; //A thin-thick-thin line with a large gap
52+
const THIN_THICK_THIN_MEDIUM_GAP = 'thinThickThinMediumGap'; //A thin-thick-thin line with a medium gap
53+
const THIN_THICK_THIN_SMALL_GAP = 'thinThickThinSmallGap'; //A thin-thick-thin line with a small gap
54+
const THREE_D_EMBOSS = 'threeDEmboss'; //A three-staged gradient line, getting darker towards the paragraph
55+
const THREE_D_ENGRAVE = 'threeDEngrave'; //A three-staged gradient like, getting darker away from the paragraph
56+
const TRIPLE = 'triple'; //A triple line
57+
const WAVE = 'wave'; //A wavy line
58+
}

src/PhpWord/Style/Border.php

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -22,41 +22,6 @@
2222
*/
2323
class Border extends AbstractStyle
2424
{
25-
/**
26-
* Border Style Val.
27-
* Wordprocessing Paragraphs Borders
28-
* Specifies the style of the border. Paragraph borders can be only line borders. (Page borders can also be art borders.) Possible values are:
29-
* @see http://officeopenxml.com/WPborders.php
30-
* @const string
31-
*/
32-
const BORDER_STYLE_SINGLE = 'single'; //A single line
33-
const BORDER_STYLE_DASH_DOT_STROKED = 'dashDotStroked'; //A line with a series of alternating thin and thick strokes
34-
const BORDER_STYLE_DASHED = 'dashed'; //A dashed line
35-
const BORDER_STYLE_DASH_SMALL_GAP = 'dashSmallGap'; //A dashed line with small gaps
36-
const BORDER_STYLE_DOT_DASH = 'dotDash'; //A line with alternating dots and dashes
37-
const BORDER_STYLE_DOT_DOT_DASH = 'dotDotDash'; //A line with a repeating dot - dot - dash sequence
38-
const BORDER_STYLE_DOTTED = 'dotted'; //A dotted line
39-
const BORDER_STYLE_DOUBLE = 'double'; //A double line
40-
const BORDER_STYLE_DOUBLE_WAVE = 'doubleWave'; //A double wavy line
41-
const BORDER_STYLE_INSET = 'inset'; //An inset set of lines
42-
const BORDER_STYLE_NIL = 'nil'; //No border
43-
const BORDER_STYLE_NONE = 'none'; //No border
44-
const BORDER_STYLE_OUTSET = 'outset'; //An outset set of lines
45-
const BORDER_STYLE_THICK = 'thick'; //A single line
46-
const BORDER_STYLE_THICK_THIN_LARGE_GAP = 'thickThinLargeGap'; //A thick line contained within a thin line with a large-sized intermediate gap
47-
const BORDER_STYLE_THICK_THIN_MEDIUM_GAP = 'thickThinMediumGap'; //A thick line contained within a thin line with a medium-sized intermediate gap
48-
const BORDER_STYLE_THICK_THIN_SMALL_GAP = 'thickThinSmallGap'; //A thick line contained within a thin line with a small intermediate gap
49-
const BORDER_STYLE_THIN_THICK_LARGE_GAP = 'thinThickLargeGap'; //A thin line contained within a thick line with a large-sized intermediate gap
50-
const BORDER_STYLE_THIN_THICK_MEDIUM_GAP = 'thinThickMediumGap'; //A thick line contained within a thin line with a medium-sized intermediate gap
51-
const BORDER_STYLE_THIN_THICK_SMALL_GAP = 'thinThickSmallGap'; //A thick line contained within a thin line with a small intermediate gap
52-
const BORDER_STYLE_THIN_THICK_THINLARGE_GAP = 'thinThickThinLargeGap'; //A thin-thick-thin line with a large gap
53-
const BORDER_STYLE_THIN_THICK_THIN_MEDIUM_GAP = 'thinThickThinMediumGap'; //A thin-thick-thin line with a medium gap
54-
const BORDER_STYLE_THIN_THICK_THIN_SMALL_GAP = 'thinThickThinSmallGap'; //A thin-thick-thin line with a small gap
55-
const BORDER_STYLE_THREE_D_EMBOSS = 'threeDEmboss'; //A three-staged gradient line, getting darker towards the paragraph
56-
const BORDER_STYLE_THREE_D_ENGRAVE = 'threeDEngrave'; //A three-staged gradient like, getting darker away from the paragraph
57-
const BORDER_STYLE_TRIPLE = 'triple'; //A triple line
58-
const BORDER_STYLE_WAVE = 'wave'; //A wavy line
59-
6025
/**
6126
* Border Top Size
6227
*

0 commit comments

Comments
 (0)