LibreOffice Module starmath (master) 1
attribute.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#include <mathml/attribute.hxx>
11
13{
15 {
17 break;
21 break;
25 break;
29 break;
33 break;
37 break;
41 break;
42 default:
43 break;
44 }
45}
46
48{
50 {
52 break;
55 break;
58 break;
62 break;
65 break;
68 break;
71 m_aAttributeValue.m_aHref.m_aLnk = new OUString(u"");
72 break;
77 break;
81 break;
84 break;
89 break;
92 break;
98 break;
103 break;
107 break;
112 break;
115 break;
118 break;
121 break;
122 }
123}
124
126{
127 switch (aAttribute->getMlAttributeValueType())
128 {
132 break;
134 setMlAccent(aAttribute->getMlAccent());
135 break;
137 setMlDir(aAttribute->getMlDir());
138 break;
141 break;
143 setMlFence(aAttribute->getMlFence());
144 break;
146 setMlForm(aAttribute->getMlForm());
147 break;
149 setMlHref(aAttribute->getMlHref());
150 break;
152 setMlLspace(aAttribute->getMlLspace());
153 break;
156 break;
158 setMlMathcolor(aAttribute->getMlMathcolor());
159 break;
161 setMlMathsize(aAttribute->getMlMathsize());
162 break;
164 setMlMathvariant(aAttribute->getMlMathvariant());
165 break;
167 setMlMaxsize(aAttribute->getMlMaxsize());
168 break;
170 setMlMinsize(aAttribute->getMlMinsize());
171 break;
174 break;
176 setMlRspace(aAttribute->getMlRspace());
177 break;
179 setMlSeparator(aAttribute->getMlSeparator());
180 break;
182 setMlStretchy(aAttribute->getMlStretchy());
183 break;
185 setMlSymmetric(aAttribute->getMlSymmetric());
186 break;
187 }
188}
189
190/* get values */
191/*************************************************************************************************/
192
194{
197 return nullptr;
198}
199
200const struct SmMlDir* SmMlAttribute::getMlDir() const
201{
204 return nullptr;
205}
206
208{
211 return nullptr;
212}
213
215{
218 return nullptr;
219}
220
222{
225 return nullptr;
226}
227
229{
232 return nullptr;
233}
234
236{
239 return nullptr;
240}
241
243{
246 return nullptr;
247}
248
250{
253 return nullptr;
254}
255
257{
260 return nullptr;
261}
262
264{
267 return nullptr;
268}
269
271{
274 return nullptr;
275}
276
278{
281 return nullptr;
282}
283
285{
288 return nullptr;
289}
290
292{
295 return nullptr;
296}
297
299{
302 return nullptr;
303}
304
306{
309 return nullptr;
310}
311
313{
316 return nullptr;
317}
318
319/* set values */
320/*************************************************************************************************/
321
323{
324 m_bSet = true;
327}
328
330{
331 m_bSet = true;
334}
335
337{
338 m_bSet = true;
341}
342
344{
345 m_bSet = true;
348}
349
351{
352 m_bSet = true;
355}
356
358{
359 m_bSet = true;
362 m_aAttributeValue.m_aHref.m_aLnk = new OUString(*aHref->m_aLnk);
363}
364
366{
367 m_bSet = true;
370 = aLspace->m_aLengthValue.m_aLengthUnit;
374 = new OUString(*aLspace->m_aLengthValue.m_aOriginalText);
375}
376
378{
379 m_bSet = true;
382}
383
385{
386 m_bSet = true;
389}
390
392{
393 m_bSet = true;
396 = aMathsize->m_aLengthValue.m_aLengthUnit;
398 = aMathsize->m_aLengthValue.m_aLengthValue;
400 = new OUString(*aMathsize->m_aLengthValue.m_aOriginalText);
401}
402
404{
405 m_bSet = true;
408}
409
411{
412 m_bSet = true;
416 = aMaxsize->m_aLengthValue.m_aLengthUnit;
418 = aMaxsize->m_aLengthValue.m_aLengthValue;
420 = new OUString(*aMaxsize->m_aLengthValue.m_aOriginalText);
421}
422
424{
425 m_bSet = true;
428 = aMinsize->m_aLengthValue.m_aLengthUnit;
430 = aMinsize->m_aLengthValue.m_aLengthValue;
432 = new OUString(*aMinsize->m_aLengthValue.m_aOriginalText);
433}
434
436{
437 m_bSet = true;
440}
441
443{
444 m_bSet = true;
447 = aRspace->m_aLengthValue.m_aLengthUnit;
451 = new OUString(*aRspace->m_aLengthValue.m_aOriginalText);
452}
453
455{
456 m_bSet = true;
459}
460
462{
463 m_bSet = true;
466}
467
469{
470 m_bSet = true;
473}
474
475/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
const struct SmMlForm * getMlForm() const
Definition: attribute.cxx:221
void clearPreviousAttributeValue()
Definition: attribute.cxx:12
const struct SmMlMathcolor * getMlMathcolor() const
Definition: attribute.cxx:249
const struct SmMlRspace * getMlRspace() const
Definition: attribute.cxx:291
void setMlStretchy(const SmMlStretchy *aStretchy)
Definition: attribute.cxx:461
SmMlAttributeValue m_aAttributeValue
Definition: attribute.hxx:51
const struct SmMlDisplaystyle * getMlDisplaystyle() const
Definition: attribute.cxx:207
void setMlMovablelimits(const SmMlMovablelimits *aMovablelimits)
Definition: attribute.cxx:435
const struct SmMlMovablelimits * getMlMovablelimits() const
Definition: attribute.cxx:284
void setDefaultAttributeValue()
Definition: attribute.cxx:47
void setMlMathvariant(const SmMlMathvariant *aMathvariant)
Definition: attribute.cxx:403
void setMlMathcolor(const SmMlMathcolor *aMathcolor)
Definition: attribute.cxx:384
SmMlAttributeValueType m_aSmMlAttributeValueType
Definition: attribute.hxx:50
void setMlRspace(const SmMlRspace *aRspace)
Definition: attribute.cxx:442
void setMlMathbackground(const SmMlMathbackground *aMathbackground)
Definition: attribute.cxx:377
const struct SmMlSeparator * getMlSeparator() const
Definition: attribute.cxx:298
const struct SmMlStretchy * getMlStretchy() const
Definition: attribute.cxx:305
const struct SmMlLspace * getMlLspace() const
Definition: attribute.cxx:235
void setMlMathsize(const SmMlMathsize *aMathsize)
Definition: attribute.cxx:391
const struct SmMlFence * getMlFence() const
Definition: attribute.cxx:214
void setMlForm(const SmMlForm *aForm)
Definition: attribute.cxx:350
void setMlSymmetric(const SmMlSymmetric *aSymmetric)
Definition: attribute.cxx:468
void setMlHref(const SmMlHref *aHref)
Definition: attribute.cxx:357
const struct SmMlAccent * getMlAccent() const
Definition: attribute.cxx:193
const struct SmMlDir * getMlDir() const
Definition: attribute.cxx:200
const struct SmMlSymmetric * getMlSymmetric() const
Definition: attribute.cxx:312
SmMlAttributeValueType getMlAttributeValueType() const
Returns the type of attribute we are dealing with.
Definition: attribute.hxx:101
const struct SmMlMinsize * getMlMinsize() const
Definition: attribute.cxx:277
void setMlFence(const SmMlFence *aFence)
Definition: attribute.cxx:343
const struct SmMlMathbackground * getMlMathbackground() const
Definition: attribute.cxx:242
const struct SmMlMathvariant * getMlMathvariant() const
Definition: attribute.cxx:263
void setMlDisplaystyle(const SmMlDisplaystyle *aDisplaystyle)
Definition: attribute.cxx:336
void setMlAccent(const SmMlAccent *aAccent)
Definition: attribute.cxx:322
void setAttributeValue(const SmMlAttribute *aMlAttribute)
Definition: attribute.cxx:125
void setMlLspace(const SmMlLspace *aLspace)
Definition: attribute.cxx:365
void setMlDir(const SmMlDir *aDir)
Definition: attribute.cxx:329
const struct SmMlHref * getMlHref() const
Definition: attribute.cxx:228
void setMlMaxsize(const SmMlMaxsize *aMaxsize)
Definition: attribute.cxx:410
void setMlSeparator(const SmMlSeparator *aSeparator)
Definition: attribute.cxx:454
void setMlMinsize(const SmMlMinsize *aMinSize)
Definition: attribute.cxx:423
const struct SmMlMaxsize * getMlMaxsize() const
Definition: attribute.cxx:270
const struct SmMlMathsize * getMlMathsize() const
Definition: attribute.cxx:256
float u
SmLengthUnit m_aLengthUnit
Definition: def.hxx:42
OUString * m_aOriginalText
Definition: def.hxx:45
double m_aLengthValue
Definition: def.hxx:43
SmMlAttributeValueAccent m_aAccent
Definition: def.hxx:229
Definition: def.hxx:233
SmMlAttributeValueDir m_aDir
Definition: def.hxx:234
SmMlAttributeValueDisplaystyle m_aDisplaystyle
Definition: def.hxx:239
SmMlAttributeValueFence m_aFence
Definition: def.hxx:244
SmMlAttributeValueForm m_aForm
Definition: def.hxx:249
SmMlAttributeValueHref m_aHref
Definition: def.hxx:254
OUString * m_aLnk
Definition: def.hxx:255
SmLengthValue m_aLengthValue
Definition: def.hxx:260
SmMlAttributeValueMathbackground m_aMathbackground
Definition: def.hxx:265
SmMlAttributeValueMathcolor m_aMathcolor
Definition: def.hxx:271
SmLengthValue m_aLengthValue
Definition: def.hxx:277
SmMlAttributeValueMathvariant m_aMathvariant
Definition: def.hxx:282
SmMlAttributeValueMaxsize m_aMaxsize
Definition: def.hxx:287
SmLengthValue m_aLengthValue
Definition: def.hxx:288
SmLengthValue m_aLengthValue
Definition: def.hxx:293
SmMlAttributeValueMovablelimits m_aMovablelimits
Definition: def.hxx:298
SmLengthValue m_aLengthValue
Definition: def.hxx:303
SmMlAttributeValueSeparator m_aSeparator
Definition: def.hxx:308
SmMlAttributeValueStretchy m_aStretchy
Definition: def.hxx:313
SmMlAttributeValueSymmetric m_aSymmetric
Definition: def.hxx:318
struct SmMlForm m_aForm
Definition: attribute.hxx:28
struct SmMlMovablelimits m_aMovablelimits
Definition: attribute.hxx:37
struct SmMlDir m_aDir
Definition: attribute.hxx:25
struct SmMlMathcolor m_aMathcolor
Definition: attribute.hxx:32
struct SmMlLspace m_aLspace
Definition: attribute.hxx:30
struct SmMlMathsize m_aMathsize
Definition: attribute.hxx:33
struct SmMlFence m_aFence
Definition: attribute.hxx:27
struct SmMlDisplaystyle m_aDisplaystyle
Definition: attribute.hxx:26
struct SmMlAccent m_aAccent
Definition: attribute.hxx:24
struct SmMlSeparator m_aSeparator
Definition: attribute.hxx:39
struct SmMlMathvariant m_aMathvariant
Definition: attribute.hxx:34
struct SmMlMinsize m_aMinsize
Definition: attribute.hxx:36
struct SmMlSymmetric m_aSymmetric
Definition: attribute.hxx:41
struct SmMlMaxsize m_aMaxsize
Definition: attribute.hxx:35
struct SmMlMathbackground m_aMathbackground
Definition: attribute.hxx:31
struct SmMlStretchy m_aStretchy
Definition: attribute.hxx:40
struct SmMlHref m_aHref
Definition: attribute.hxx:29
struct SmMlRspace m_aRspace
Definition: attribute.hxx:38