summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-08 11:32:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-09 10:42:56 +0200
commitea8c12b8cc03ed259389ac267edd459844634767 (patch)
treec935ac790e826e790133c3b22aeaca32edb52298 /sw/source/filter
parent013e34d875aeb75d9660af7c18967c2d468cbd74 (diff)
loplugin:checkunusedparams in sw(part4)
Change-Id: Ia264c192ac02a07bba67a66196899d13b19f83f0 Reviewed-on: https://gerrit.libreoffice.org/37386 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/html/htmlcss1.cxx7
-rw-r--r--sw/source/filter/html/htmlctxt.cxx10
-rw-r--r--sw/source/filter/html/htmlflywriter.cxx8
-rw-r--r--sw/source/filter/html/htmlgrin.cxx9
-rw-r--r--sw/source/filter/html/htmlnumreader.cxx3
-rw-r--r--sw/source/filter/html/htmlplug.cxx8
-rw-r--r--sw/source/filter/html/htmlsect.cxx6
-rw-r--r--sw/source/filter/html/htmltab.cxx5
-rw-r--r--sw/source/filter/html/swhtml.cxx2
-rw-r--r--sw/source/filter/html/swhtml.hxx11
-rw-r--r--sw/source/filter/xml/XMLRedlineImportHelper.cxx4
-rw-r--r--sw/source/filter/xml/XMLRedlineImportHelper.hxx10
-rw-r--r--sw/source/filter/xml/xmlexpit.cxx17
-rw-r--r--sw/source/filter/xml/xmlexpit.hxx9
-rw-r--r--sw/source/filter/xml/xmltbli.cxx7
-rw-r--r--sw/source/filter/xml/xmltbli.hxx3
-rw-r--r--sw/source/filter/xml/xmltexti.cxx5
17 files changed, 38 insertions, 86 deletions
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx
index d486ffb3c45f..f059050717ac 100644
--- a/sw/source/filter/html/htmlcss1.cxx
+++ b/sw/source/filter/html/htmlcss1.cxx
@@ -1932,8 +1932,7 @@ bool SwHTMLParser::ParseStyleOptions( const OUString &rStyle,
return bRet;
}
-void SwHTMLParser::SetAnchorAndAdjustment( const SfxItemSet & /*rItemSet*/,
- const SvxCSS1PropertyInfo &rPropInfo,
+void SwHTMLParser::SetAnchorAndAdjustment( const SvxCSS1PropertyInfo &rPropInfo,
SfxItemSet &rFrameItemSet )
{
SwFormatAnchor aAnchor;
@@ -2037,8 +2036,7 @@ void SwHTMLParser::SetAnchorAndAdjustment( const SfxItemSet & /*rItemSet*/,
rFrameItemSet.Put( SwFormatSurround( eSurround ) );
}
-void SwHTMLParser::SetVarSize( SfxItemSet & /*rItemSet*/,
- SvxCSS1PropertyInfo &rPropInfo,
+void SwHTMLParser::SetVarSize( SvxCSS1PropertyInfo &rPropInfo,
SfxItemSet &rFrameItemSet,
SwTwips nDfltWidth, sal_uInt8 nDfltPrcWidth )
{
@@ -2079,7 +2077,6 @@ void SwHTMLParser::SetVarSize( SfxItemSet & /*rItemSet*/,
}
void SwHTMLParser::SetFrameFormatAttrs( SfxItemSet &rItemSet,
- SvxCSS1PropertyInfo & /*rPropInfo*/,
HtmlFrameFormatFlags nFlags,
SfxItemSet &rFrameItemSet )
{
diff --git a/sw/source/filter/html/htmlctxt.cxx b/sw/source/filter/html/htmlctxt.cxx
index f528368230b5..423f2b670155 100644
--- a/sw/source/filter/html/htmlctxt.cxx
+++ b/sw/source/filter/html/htmlctxt.cxx
@@ -412,14 +412,14 @@ bool SwHTMLParser::DoPositioning( SfxItemSet &rItemSet,
if( !IsNewDoc() )
Reader::ResetFrameFormatAttrs(aFrameItemSet );
- SetAnchorAndAdjustment( text::VertOrientation::NONE, text::HoriOrientation::NONE, rItemSet, rPropInfo,
+ SetAnchorAndAdjustment( text::VertOrientation::NONE, text::HoriOrientation::NONE, rPropInfo,
aFrameItemSet );
- SetVarSize( rItemSet, rPropInfo, aFrameItemSet );
+ SetVarSize( rPropInfo, aFrameItemSet );
SetSpace( Size(0,0), rItemSet, rPropInfo, aFrameItemSet );
- SetFrameFormatAttrs( rItemSet, rPropInfo,
+ SetFrameFormatAttrs( rItemSet,
HtmlFrameFormatFlags::Box|HtmlFrameFormatFlags::Padding|HtmlFrameFormatFlags::Background|HtmlFrameFormatFlags::Direction,
aFrameItemSet );
@@ -447,12 +447,12 @@ bool SwHTMLParser::CreateContainer( const OUString& rClass,
Reader::ResetFrameFormatAttrs( *pFrameItemSet );
SetAnchorAndAdjustment( text::VertOrientation::NONE, text::HoriOrientation::NONE,
- rItemSet, rPropInfo, *pFrameItemSet );
+ rPropInfo, *pFrameItemSet );
Size aDummy(0,0);
SetFixSize( aDummy, aDummy, false, false, rItemSet, rPropInfo,
*pFrameItemSet );
SetSpace( aDummy, rItemSet, rPropInfo, *pFrameItemSet );
- SetFrameFormatAttrs( rItemSet, rPropInfo, HtmlFrameFormatFlags::Box|HtmlFrameFormatFlags::Background|HtmlFrameFormatFlags::Direction,
+ SetFrameFormatAttrs( rItemSet, HtmlFrameFormatFlags::Box|HtmlFrameFormatFlags::Background|HtmlFrameFormatFlags::Direction,
*pFrameItemSet );
bRet = true;
diff --git a/sw/source/filter/html/htmlflywriter.cxx b/sw/source/filter/html/htmlflywriter.cxx
index 751f89c3cfb5..3cd38830f0aa 100644
--- a/sw/source/filter/html/htmlflywriter.cxx
+++ b/sw/source/filter/html/htmlflywriter.cxx
@@ -134,8 +134,7 @@ static Writer& OutHTML_FrameFormatAsMulticol( Writer& rWrt, const SwFrameFormat&
static Writer& OutHTML_FrameFormatAsSpacer( Writer& rWrt, const SwFrameFormat& rFormat );
static Writer& OutHTML_FrameFormatAsDivOrSpan( Writer& rWrt,
const SwFrameFormat& rFrameFormat, bool bSpan );
-static Writer& OutHTML_FrameFormatAsImage( Writer& rWrt, const SwFrameFormat& rFormat,
- bool bInCntnr );
+static Writer& OutHTML_FrameFormatAsImage( Writer& rWrt, const SwFrameFormat& rFormat );
static Writer& OutHTML_FrameFormatGrfNode( Writer& rWrt, const SwFrameFormat& rFormat,
bool bInCntnr );
@@ -501,7 +500,7 @@ void SwHTMLWriter::OutFrameFormat( AllHtmlFlags nMode, const SwFrameFormat& rFra
static_cast<const SwDrawFrameFormat &>(rFrameFormat), *pSdrObject );
break;
case HtmlOut::GraphicFrame:
- OutHTML_FrameFormatAsImage( *this, rFrameFormat, pCntnrStr != nullptr );
+ OutHTML_FrameFormatAsImage( *this, rFrameFormat );
break;
}
@@ -1710,8 +1709,7 @@ static Writer& OutHTML_FrameFormatAsDivOrSpan( Writer& rWrt,
return rWrt;
}
-static Writer & OutHTML_FrameFormatAsImage( Writer& rWrt, const SwFrameFormat& rFrameFormat,
- bool /*bInCntnr*/ )
+static Writer & OutHTML_FrameFormatAsImage( Writer& rWrt, const SwFrameFormat& rFrameFormat )
{
SwHTMLWriter& rHTMLWrt = static_cast<SwHTMLWriter&>(rWrt);
diff --git a/sw/source/filter/html/htmlgrin.cxx b/sw/source/filter/html/htmlgrin.cxx
index 1ee611cfd9f5..8e6ef04b7c65 100644
--- a/sw/source/filter/html/htmlgrin.cxx
+++ b/sw/source/filter/html/htmlgrin.cxx
@@ -146,11 +146,8 @@ void SwHTMLParser::ConnectImageMaps()
}
}
-/* */
-
void SwHTMLParser::SetAnchorAndAdjustment( sal_Int16 eVertOri,
sal_Int16 eHoriOri,
- const SfxItemSet &rCSS1ItemSet,
const SvxCSS1PropertyInfo &rCSS1PropInfo,
SfxItemSet& rFrameItemSet )
{
@@ -167,7 +164,7 @@ void SwHTMLParser::SetAnchorAndAdjustment( sal_Int16 eVertOri,
else if( SwCSS1Parser::MayBePositioned( rCSS1PropInfo, true ) )
{
// If the alignment can be set via CSS1 options we use them.
- SetAnchorAndAdjustment( rCSS1ItemSet, rCSS1PropInfo, rFrameItemSet );
+ SetAnchorAndAdjustment( rCSS1PropInfo, rFrameItemSet );
}
else
{
@@ -535,12 +532,12 @@ IMAGE_SETEVENT:
aFrameSet.Put( aBoxItem );
}
- SetAnchorAndAdjustment( eVertOri, eHoriOri, aItemSet, aPropInfo, aFrameSet );
+ SetAnchorAndAdjustment( eVertOri, eHoriOri, aPropInfo, aFrameSet );
SetSpace( Size( nHSpace, nVSpace), aItemSet, aPropInfo, aFrameSet );
// set other CSS1 attributes
- SetFrameFormatAttrs( aItemSet, aPropInfo, HtmlFrameFormatFlags::Box, aFrameSet );
+ SetFrameFormatAttrs( aItemSet, HtmlFrameFormatFlags::Box, aFrameSet );
Size aTwipSz( bPrcWidth ? 0 : nWidth, bPrcHeight ? 0 : nHeight );
if( (aTwipSz.Width() || aTwipSz.Height()) && Application::GetDefaultDevice() )
diff --git a/sw/source/filter/html/htmlnumreader.cxx b/sw/source/filter/html/htmlnumreader.cxx
index 66109b02cab7..d4d4895521e3 100644
--- a/sw/source/filter/html/htmlnumreader.cxx
+++ b/sw/source/filter/html/htmlnumreader.cxx
@@ -549,8 +549,7 @@ void SwHTMLParser::NewNumBulListItem( HtmlTokenId nToken )
ShowStatline();
}
-void SwHTMLParser::EndNumBulListItem( HtmlTokenId nToken, bool bSetColl,
- bool /*bLastPara*/ )
+void SwHTMLParser::EndNumBulListItem( HtmlTokenId nToken, bool bSetColl )
{
// Create a new paragraph
if( nToken == HtmlTokenId::NONE && m_pPam->GetPoint()->nContent.GetIndex() )
diff --git a/sw/source/filter/html/htmlplug.cxx b/sw/source/filter/html/htmlplug.cxx
index 3e5b9de50293..adc048cb3b67 100644
--- a/sw/source/filter/html/htmlplug.cxx
+++ b/sw/source/filter/html/htmlplug.cxx
@@ -439,7 +439,7 @@ void SwHTMLParser::InsertEmbed()
// den Anker setzen
if( !bHidden )
{
- SetAnchorAndAdjustment( eVertOri, eHoriOri, aItemSet, aPropInfo, aFrameSet );
+ SetAnchorAndAdjustment( eVertOri, eHoriOri, aPropInfo, aFrameSet );
}
else
{
@@ -610,7 +610,7 @@ void SwHTMLParser::NewObject()
Reader::ResetFrameFormatAttrs( rFrameSet );
// den Anker und die Ausrichtung setzen
- SetAnchorAndAdjustment( eVertOri, eHoriOri, aItemSet, aPropInfo, rFrameSet );
+ SetAnchorAndAdjustment( eVertOri, eHoriOri, aPropInfo, rFrameSet );
// und noch die Groesse des Rahmens
Size aDfltSz( HTML_DFLT_APPLET_WIDTH, HTML_DFLT_APPLET_HEIGHT );
@@ -744,7 +744,7 @@ void SwHTMLParser::InsertApplet()
Reader::ResetFrameFormatAttrs( rFrameSet );
// den Anker und die Ausrichtung setzen
- SetAnchorAndAdjustment( eVertOri, eHoriOri, aItemSet, aPropInfo, rFrameSet );
+ SetAnchorAndAdjustment( eVertOri, eHoriOri, aPropInfo, rFrameSet );
// und noch die Groesse des Rahmens
Size aDfltSz( HTML_DFLT_APPLET_WIDTH, HTML_DFLT_APPLET_HEIGHT );
@@ -927,7 +927,7 @@ void SwHTMLParser::InsertFloatingFrame()
Reader::ResetFrameFormatAttrs( aFrameSet );
// den Anker und die Ausrichtung setzen
- SetAnchorAndAdjustment( eVertOri, eHoriOri, aItemSet, aPropInfo, aFrameSet );
+ SetAnchorAndAdjustment( eVertOri, eHoriOri, aPropInfo, aFrameSet );
// und noch die Groesse des Rahmens
Size aDfltSz( HTML_DFLT_APPLET_WIDTH, HTML_DFLT_APPLET_HEIGHT );
diff --git a/sw/source/filter/html/htmlsect.cxx b/sw/source/filter/html/htmlsect.cxx
index 3d18e2c40e88..b1151ca37313 100644
--- a/sw/source/filter/html/htmlsect.cxx
+++ b/sw/source/filter/html/htmlsect.cxx
@@ -617,19 +617,19 @@ void SwHTMLParser::NewMultiCol( sal_uInt16 columnsFromCss )
if( !IsNewDoc() )
Reader::ResetFrameFormatAttrs(aFrameItemSet );
- SetAnchorAndAdjustment( text::VertOrientation::NONE, text::HoriOrientation::NONE, aItemSet, aPropInfo,
+ SetAnchorAndAdjustment( text::VertOrientation::NONE, text::HoriOrientation::NONE, aPropInfo,
aFrameItemSet );
// The width is either the WIDTH attribute's value or contained
// in some style option.
- SetVarSize( aItemSet, aPropInfo, aFrameItemSet, nTwipWidth, nPrcWidth );
+ SetVarSize( aPropInfo, aFrameItemSet, nTwipWidth, nPrcWidth );
SetSpace( Size(0,0), aItemSet, aPropInfo, aFrameItemSet );
// Set some other frame attributes. If the background is set, its
// it will be cleared here. That for, it won't be set at the section,
// too.
- SetFrameFormatAttrs( aItemSet, aPropInfo,
+ SetFrameFormatAttrs( aItemSet,
HtmlFrameFormatFlags::Box|HtmlFrameFormatFlags::Background|HtmlFrameFormatFlags::Padding|HtmlFrameFormatFlags::Direction,
aFrameItemSet );
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index b319109f3b26..35b8f59e981f 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -495,7 +495,7 @@ class HTMLTable
// Setting the border with the help of guidelines of the Parent-Table
void InheritBorders( const HTMLTable *pParent,
sal_uInt16 nRow, sal_uInt16 nCol,
- sal_uInt16 nRowSpan, sal_uInt16 nColSpan,
+ sal_uInt16 nRowSpan,
bool bFirstPara, bool bLastPara );
// Inherit the left and the right border of the surrounding table
@@ -1789,7 +1789,7 @@ SwTableBox *HTMLTable::MakeTableBox( SwTableLine *pUpper,
void HTMLTable::InheritBorders( const HTMLTable *pParent,
sal_uInt16 nRow, sal_uInt16 nCol,
- sal_uInt16 nRowSpan, sal_uInt16 /*nColSpan*/,
+ sal_uInt16 nRowSpan,
bool bFirstPara, bool bLastPara )
{
OSL_ENSURE( m_nRows>0 && m_nCols>0 && m_nCurrentRow==m_nRows,
@@ -1924,7 +1924,6 @@ void HTMLTable::SetBorders()
{
pTable->InheritBorders( this, i, j,
pCell->GetRowSpan(),
- pCell->GetColSpan(),
bFirstPara,
nullptr==pCnts->Next() );
pTable->SetBorders();
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 4ecd85550174..96b8dc578475 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -1709,7 +1709,7 @@ void SwHTMLParser::NextToken( HtmlTokenId nToken )
case HtmlTokenId::UNORDERLIST_OFF:
if( m_nOpenParaToken != HtmlTokenId::NONE )
EndPara();
- EndNumBulListItem( HtmlTokenId::NONE, true, GetNumInfo().GetDepth()==1 );
+ EndNumBulListItem( HtmlTokenId::NONE, true );
EndNumBulList( nToken );
break;
diff --git a/sw/source/filter/html/swhtml.hxx b/sw/source/filter/html/swhtml.hxx
index b23528a9732e..a1ef95e54d8c 100644
--- a/sw/source/filter/html/swhtml.hxx
+++ b/sw/source/filter/html/swhtml.hxx
@@ -613,8 +613,7 @@ class SwHTMLParser : public SfxHTMLParser, public SwClient
void NewNumBulList( HtmlTokenId nToken );
void EndNumBulList( HtmlTokenId nToken = HtmlTokenId::NONE );
void NewNumBulListItem( HtmlTokenId nToken );
- void EndNumBulListItem( HtmlTokenId nToken, bool bSetColl,
- bool bLastPara=false );
+ void EndNumBulListItem( HtmlTokenId nToken, bool bSetColl);
// definitions lists <DL> with <DD>, <DT>
void NewDefList();
@@ -663,18 +662,16 @@ private:
// in Attrset (htmlgrin.cxx)
void SetAnchorAndAdjustment( sal_Int16 eVertOri,
sal_Int16 eHoriOri,
- const SfxItemSet &rItemSet,
const SvxCSS1PropertyInfo &rPropInfo,
SfxItemSet& rFrameSet );
void SetAnchorAndAdjustment( sal_Int16 eVertOri,
sal_Int16 eHoriOri,
SfxItemSet& rFrameSet,
bool bDontAppend=false );
- void SetAnchorAndAdjustment( const SfxItemSet &rItemSet,
- const SvxCSS1PropertyInfo &rPropInfo,
+ void SetAnchorAndAdjustment( const SvxCSS1PropertyInfo &rPropInfo,
SfxItemSet &rFrameItemSet );
- static void SetFrameFormatAttrs( SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo,
+ static void SetFrameFormatAttrs( SfxItemSet &rItemSet,
HtmlFrameFormatFlags nFlags, SfxItemSet &rFrameItemSet );
// create frames and register auto bound frames
@@ -686,7 +683,7 @@ private:
bool bPrcWidth, bool bPrcHeight,
SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo,
SfxItemSet& rFlyItemSet );
- static void SetVarSize( SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo,
+ static void SetVarSize( SvxCSS1PropertyInfo &rPropInfo,
SfxItemSet& rFlyItemSet, SwTwips nDfltWidth=MINLAY,
sal_uInt8 nDltPrcWidth=0 );
static void SetSpace( const Size& rPixSpace, SfxItemSet &rItemSet,
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
index b7e89103214d..0b4059161d82 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
@@ -528,9 +528,7 @@ void XMLRedlineImportHelper::SetCursor(
}
void XMLRedlineImportHelper::AdjustStartNodeCursor(
- const OUString& rId, /// ID used in RedlineAdd() call
- bool /*bStart*/,
- Reference<XTextRange> & /*rRange*/)
+ const OUString& rId) /// ID used in RedlineAdd() call
{
// this method will modify the document directly -> lock SolarMutex
SolarMutexGuard aGuard;
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.hxx b/sw/source/filter/xml/XMLRedlineImportHelper.hxx
index 4a30e46b3b55..1010af2a847e 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.hxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.hxx
@@ -98,15 +98,9 @@ public:
* Adjust the start (end) position for a redline that begins in a
* start node. It takes the cursor positions _inside_ the redlined
* element (e.g. section or table).
- *
- * We will do sanity checking of the given text range: It will
- * only be considered valid if it points to the next text node
- * after the position given in a previous SetCursor */
+ */
void AdjustStartNodeCursor(
- const OUString& rId, // ID used in RedlineAdd() call
- bool bStart,
- // XTextRange _inside_ a table/section
- css::uno::Reference<css::text::XTextRange> & rRange);
+ const OUString& rId); // ID used in RedlineAdd() call
// set redline mode: show changes
void SetShowChanges( bool bShowChanges );
diff --git a/sw/source/filter/xml/xmlexpit.cxx b/sw/source/filter/xml/xmlexpit.cxx
index acd99833b6b1..b4a4ec33c02d 100644
--- a/sw/source/filter/xml/xmlexpit.cxx
+++ b/sw/source/filter/xml/xmlexpit.cxx
@@ -93,14 +93,13 @@ void SvXMLExportItemMapper::exportXML( const SvXMLExport& rExport,
else
{
exportXML( rExport, rAttrList, *pItem, rEntry, rUnitConverter,
- rNamespaceMap, nFlags, &rSet );
+ rNamespaceMap, &rSet );
}
}
}
else
{
- handleNoItem( rAttrList, rEntry, rUnitConverter, rNamespaceMap,
- rSet );
+ OSL_FAIL( "no item not handled in xml export" );
}
nIndex++;
}
@@ -112,7 +111,6 @@ void SvXMLExportItemMapper::exportXML( const SvXMLExport& rExport,
const SvXMLItemMapEntry& rEntry,
const SvXMLUnitConverter& rUnitConverter,
const SvXMLNamespaceMap& rNamespaceMap,
- SvXmlExportFlags /*nFlags*/,
const SfxItemSet *pSet ) const
{
if( 0 != (rEntry.nMemberId & MID_SW_FLAG_SPECIAL_ITEM_EXPORT) )
@@ -327,17 +325,6 @@ void SvXMLExportItemMapper::handleSpecialItem( SvXMLAttributeList& /*rAttrList*/
}
/** this method is called for every item that has the
- MID_SW_FLAG_NO_ITEM_EXPORT flag set */
-void SvXMLExportItemMapper::handleNoItem( SvXMLAttributeList& /*rAttrList*/,
- const SvXMLItemMapEntry& /*rEntry*/,
- const SvXMLUnitConverter& /*rUnitConverter*/,
- const SvXMLNamespaceMap& /*rNamespaceMap*/,
- const SfxItemSet& /*rSet*/ )
-{
- OSL_FAIL( "no item not handled in xml export" );
-}
-
-/** this method is called for every item that has the
MID_SW_FLAG_ELEMENT_EXPORT flag set */
void SvXMLExportItemMapper::handleElementItem(
SvXMLExport& /*rExport*/,
diff --git a/sw/source/filter/xml/xmlexpit.hxx b/sw/source/filter/xml/xmlexpit.hxx
index df68321a3cb8..21be616c0145 100644
--- a/sw/source/filter/xml/xmlexpit.hxx
+++ b/sw/source/filter/xml/xmlexpit.hxx
@@ -52,7 +52,6 @@ protected:
const SvXMLItemMapEntry &rEntry,
const SvXMLUnitConverter& rUnitConverter,
const SvXMLNamespaceMap& rNamespaceMap,
- SvXmlExportFlags nFlags,
const SfxItemSet *pSet ) const;
void exportElementItems( SvXMLExport& rExport,
@@ -84,14 +83,6 @@ public:
const SfxItemSet *pSet ) const;
/** this method is called for every item that has the
- MID_SW_FLAG_NO_ITEM_EXPORT flag set */
- static void handleNoItem( SvXMLAttributeList& rAttrList,
- const SvXMLItemMapEntry& rEntry,
- const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap,
- const SfxItemSet& rSet );
-
- /** this method is called for every item that has the
MID_SW_FLAG_ELEMENT_EXPORT flag set */
virtual void handleElementItem( SvXMLExport& rExport,
const SvXMLItemMapEntry& rEntry,
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index 6ca6d37eb38d..e7c70c98162d 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -1952,8 +1952,7 @@ SwTableBox *SwXMLTableContext::MakeTableBox( SwTableLine *pUpper,
SwTableBox *SwXMLTableContext::MakeTableBox(
SwTableLine *pUpper, const SwXMLTableCell_Impl *pCell,
- sal_uInt32 /*nTopRow*/, sal_uInt32 nLeftCol, sal_uInt32 /*nBottomRow*/,
- sal_uInt32 nRightCol )
+ sal_uInt32 nLeftCol, sal_uInt32 nRightCol )
{
//FIXME: here would be a great place to handle XmlId for cell
SwTableBox *pBox;
@@ -2267,9 +2266,7 @@ SwTableLine *SwXMLTableContext::MakeTableLine( SwTableBox *pUpper,
// is a content box
nSplitCol = nCol + 1UL;
- pBox = MakeTableBox( pLine, pCell,
- nTopRow, nStartCol,
- nBottomRow, nSplitCol );
+ pBox = MakeTableBox( pLine, pCell, nStartCol, nSplitCol );
if ( 1 != nBoxRowSpan )
pBox->setRowSpan( nBoxRowSpan );
diff --git a/sw/source/filter/xml/xmltbli.hxx b/sw/source/filter/xml/xmltbli.hxx
index f5dc04e26737..e81cd2b84688 100644
--- a/sw/source/filter/xml/xmltbli.hxx
+++ b/sw/source/filter/xml/xmltbli.hxx
@@ -95,8 +95,7 @@ class SwXMLTableContext : public XMLTextTableContext
SwTableLine *pUpper );
SwTableBox *MakeTableBox( SwTableLine *pUpper,
const SwXMLTableCell_Impl *pStartNode,
- sal_uInt32 nTopRow, sal_uInt32 nLeftCol,
- sal_uInt32 nBottomRow, sal_uInt32 nRightCol );
+ sal_uInt32 nLeftCol, sal_uInt32 nRightCol );
SwTableBox *MakeTableBox( SwTableLine *pUpper,
sal_uInt32 nTopRow, sal_uInt32 nLeftCol,
sal_uInt32 nBottomRow, sal_uInt32 nRightCol );
diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx
index f49d42a0d4a5..b33e5aec5c8f 100644
--- a/sw/source/filter/xml/xmltexti.cxx
+++ b/sw/source/filter/xml/xmltexti.cxx
@@ -1001,13 +1001,12 @@ void SwXMLTextImportHelper::RedlineSetCursor(
}
void SwXMLTextImportHelper::RedlineAdjustStartNodeCursor(
- bool bStart)
+ bool /*bStart*/)
{
OUString rId = GetOpenRedlineId();
if ((nullptr != pRedlineHelper) && !rId.isEmpty())
{
- uno::Reference<XTextRange> xTextRange( GetCursor()->getStart() );
- pRedlineHelper->AdjustStartNodeCursor(rId, bStart, xTextRange );
+ pRedlineHelper->AdjustStartNodeCursor(rId);
ResetOpenRedlineId();
}
// else: ignore redline (wasn't added before, or no open redline ID