|
|
|
@ -26,6 +26,8 @@
|
|
|
|
|
/* "This product is not manufactured, approved, or supported by
|
|
|
|
|
* Corel Corporation or Corel Corporation Limited."
|
|
|
|
|
*/
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
#include "FilterInternal.hxx"
|
|
|
|
|
#include "PageSpan.hxx"
|
|
|
|
|
#include "DocumentElement.hxx"
|
|
|
|
@ -71,7 +73,11 @@ int PageSpan::getSpan() const
|
|
|
|
|
float PageSpan::getMarginLeft() const
|
|
|
|
|
{
|
|
|
|
|
if (mxPropList["fo:margin-left"])
|
|
|
|
|
#ifdef HAVE_LIBWPD_090
|
|
|
|
|
return mxPropList["fo:margin-left"]->getDouble();
|
|
|
|
|
#else
|
|
|
|
|
return mxPropList["fo:margin-left"]->getFloat();
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
return 0.0f;
|
|
|
|
|
}
|
|
|
|
@ -79,7 +85,11 @@ float PageSpan::getMarginLeft() const
|
|
|
|
|
float PageSpan::getMarginRight() const
|
|
|
|
|
{
|
|
|
|
|
if (mxPropList["fo:margin-right"])
|
|
|
|
|
#ifdef HAVE_LIBWPD_090
|
|
|
|
|
return mxPropList["fo:margin-right"]->getDouble();
|
|
|
|
|
#else
|
|
|
|
|
return mxPropList["fo:margin-right"]->getFloat();
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
return 0.0f;
|
|
|
|
|
}
|
|
|
|
|