summaryrefslogtreecommitdiff
path: root/reportdesign/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-19 13:06:07 +0200
committerNoel Grandin <noel@peralex.com>2016-02-22 08:18:08 +0200
commitf17f977d0ad5b4c51a8f58b43901f72de001a56d (patch)
tree24e25caa72db9d21b1728f52f17758ab103e9c76 /reportdesign/source
parentacd1c51791bdf522d7ffd8dd225fb59cd2eb17ff (diff)
loplugin:write only fields
Change-Id: I45895e9845a9037da207f001fece427452ed499f
Diffstat (limited to 'reportdesign/source')
-rw-r--r--reportdesign/source/filter/xml/xmlExport.cxx4
-rw-r--r--reportdesign/source/filter/xml/xmlExport.hxx14
2 files changed, 4 insertions, 14 deletions
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx
index 30f910567ad4..6b99aaf1ba21 100644
--- a/reportdesign/source/filter/xml/xmlExport.cxx
+++ b/reportdesign/source/filter/xml/xmlExport.cxx
@@ -490,7 +490,7 @@ void lcl_calculate(const ::std::vector<sal_Int32>& _aPosX,const ::std::vector<sa
if ( nHeight )
for (sal_Int32 i = 0; i < nCountX ; ++i)
{
- _rColumns[j].second[i] = ORptExport::TCell(_aPosX[i+1] - _aPosX[i],nHeight,1,1);
+ _rColumns[j].second[i] = ORptExport::TCell(1,1);
_rColumns[j].second[i].bSet = true;
}
}
@@ -649,8 +649,6 @@ void ORptExport::exportSectionAutoStyle(const Reference<XSection>& _xProp)
sal_Int32 nRowSpan = y2 - y1;
aInsert->second[y1].second[x1] =
TCell(
- aElementSize.Width , // -1 why?
- aElementSize.Height, // -1 why?
nColSpan,
nRowSpan,
xReportElement
diff --git a/reportdesign/source/filter/xml/xmlExport.hxx b/reportdesign/source/filter/xml/xmlExport.hxx
index 5b24685ad5b0..9f13b1e7ef46 100644
--- a/reportdesign/source/filter/xml/xmlExport.hxx
+++ b/reportdesign/source/filter/xml/xmlExport.hxx
@@ -64,29 +64,21 @@ class ORptExport : public SvXMLExport
public:
struct TCell
{
- sal_Int32 nWidth;
- sal_Int32 nHeight;
sal_Int32 nColSpan;
sal_Int32 nRowSpan;
Reference<XReportComponent> xElement;
bool bSet;
- TCell( sal_Int32 _nWidth,
- sal_Int32 _nHeight,
- sal_Int32 _nColSpan,
+ TCell( sal_Int32 _nColSpan,
sal_Int32 _nRowSpan,
Reference<XReportComponent> _xElement = Reference<XReportComponent>()) :
- nWidth(_nWidth)
- ,nHeight(_nHeight)
- ,nColSpan(_nColSpan)
+ nColSpan(_nColSpan)
,nRowSpan(_nRowSpan)
,xElement(_xElement)
,bSet(xElement.is())
{}
TCell( ) :
- nWidth(0)
- ,nHeight(0)
- ,nColSpan(1)
+ nColSpan(1)
,nRowSpan(1)
,bSet(true)
{}