| 23 | } |
| 24 | |
| 25 | const Justification justificationFromProperty(const var &justificationProperty) |
| 26 | { |
| 27 | if (justificationProperty == "left") |
| 28 | { |
| 29 | return (Justification::left); |
| 30 | } |
| 31 | else if (justificationProperty == "right") |
| 32 | { |
| 33 | return (Justification::right); |
| 34 | } |
| 35 | else if (justificationProperty == "horizontallyCentred") |
| 36 | { |
| 37 | return (Justification::horizontallyCentred); |
| 38 | } |
| 39 | else if (justificationProperty == "top") |
| 40 | { |
| 41 | return (Justification::top); |
| 42 | } |
| 43 | else if (justificationProperty == "bottom") |
| 44 | { |
| 45 | return (Justification::bottom); |
| 46 | } |
| 47 | else if (justificationProperty == "verticallyCentred") |
| 48 | { |
| 49 | return (Justification::verticallyCentred); |
| 50 | } |
| 51 | else if (justificationProperty == "horizontallyJustified") |
| 52 | { |
| 53 | return (Justification::horizontallyJustified); |
| 54 | } |
| 55 | else if (justificationProperty == "centred") |
| 56 | { |
| 57 | return (Justification::centred); |
| 58 | } |
| 59 | else if (justificationProperty == "centredLeft") |
| 60 | { |
| 61 | return (Justification::centredLeft); |
| 62 | } |
| 63 | else if (justificationProperty == "centredRight") |
| 64 | { |
| 65 | return (Justification::centredRight); |
| 66 | } |
| 67 | else if (justificationProperty == "centredTop") |
| 68 | { |
| 69 | return (Justification::centredTop); |
| 70 | } |
| 71 | else if (justificationProperty == "centredBottom") |
| 72 | { |
| 73 | return (Justification::centredBottom); |
| 74 | } |
| 75 | else if (justificationProperty == "topLeft") |
| 76 | { |
| 77 | return (Justification::topLeft); |
| 78 | } |
| 79 | else if (justificationProperty == "topRight") |
| 80 | { |
| 81 | return (Justification::topRight); |
| 82 | } |
no outgoing calls
no test coverage detected