Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQOdsLength.h 00003 ------------------- 00004 begin : 13/12/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef AQODSLENGTH_H_ 00020 #define AQODSLENGTH_H_ 00021 00022 #include "odf-gen/length.h" 00023 00024 class AQOdsLength : public Length 00025 { 00026 public: 00027 AQOdsLength(double value) : Length(value) {} 00028 00029 virtual QString value() const { 00030 return str(); 00031 } 00032 }; 00033 00034 class AQOdsCentimeters : public AQOdsLength 00035 { 00036 public: 00037 AQOdsCentimeters(double value) : AQOdsLength(value) {} 00038 00039 QString value() const { 00040 return str(); 00041 } 00042 00043 const char *unit() const { 00044 return "cm"; 00045 } 00046 }; 00047 00048 #endif /* AQODSLENGTH_H_ */