diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-15 23:01:51 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-15 23:51:29 +0200 |
commit | 4d64bd4cbf652c5286272edc271f45ec447b10b8 (patch) | |
tree | 5e96c71ce98715f9de2373a36584f91537d96b84 /reportdesign | |
parent | 4e29d2258c88f6127c2dac2ff7e755b063a76aa7 (diff) |
remove unused function, loplugin:unreffun
Change-Id: I335c2c10b8f5379b0e2d4d20355dec105072d0cd
Reviewed-on: https://gerrit.libreoffice.org/36572
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/dlg/GroupsSorting.cxx | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx index d3719ad7b1d9..82b741020375 100644 --- a/reportdesign/source/ui/dlg/GroupsSorting.cxx +++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx @@ -167,8 +167,6 @@ private: DECL_LINK( CBChangeHdl, ComboBox&, void); - void InsertRows( long nRow ); - public: DECL_LINK( DelayedDelete, void*, void ); @@ -801,64 +799,6 @@ IMPL_LINK_NOARG( OFieldExpressionControl, DelayedDelete, void*, void ) DeleteRows(); } -void OFieldExpressionControl::InsertRows( long nRow ) -{ - - sal_Int32 nSize = 0; - - // get rows from clipboard - TransferableDataHelper aTransferData(TransferableDataHelper::CreateFromSystemClipboard(GetParent())); - if(aTransferData.HasFormat(OGroupExchange::getReportGroupId())) - { - datatransfer::DataFlavor aFlavor; - SotExchange::GetFormatDataFlavor(OGroupExchange::getReportGroupId(), aFlavor); - uno::Sequence< uno::Any > aGroups; - - if ((aTransferData.GetAny(aFlavor, OUString()) >>= aGroups) && aGroups.getLength()) - { - m_bIgnoreEvent = false; - { - const OUString sUndoAction(ModuleRes(RID_STR_UNDO_APPEND_GROUP)); - const UndoContext aUndoContext( m_pParent->m_pController->getUndoManager(), sUndoAction ); - - uno::Reference<report::XGroups> xGroups = m_pParent->getGroups(); - sal_Int32 nGroupPos = 0; - ::std::vector<sal_Int32>::iterator aIter = m_aGroupPositions.begin(); - ::std::vector<sal_Int32>::size_type nRowPos = static_cast< ::std::vector<sal_Int32>::size_type >(nRow); - if ( nRowPos < m_aGroupPositions.size() ) - { - ::std::vector<sal_Int32>::const_iterator aEnd = m_aGroupPositions.begin() + nRowPos; - for(;aIter != aEnd;++aIter) - { - if ( *aIter != NO_GROUP ) - nGroupPos = *aIter; - } - } - for(sal_Int32 i=0;i < aGroups.getLength();++i,++nSize) - { - uno::Sequence< beans::PropertyValue > aArgs(2); - aArgs[0].Name = PROPERTY_GROUP; - aArgs[0].Value = aGroups[i]; - aArgs[1].Name = PROPERTY_POSITIONY; - aArgs[1].Value <<= nGroupPos; - m_pParent->m_pController->executeChecked(SID_GROUP_APPEND,aArgs); - - ::std::vector<sal_Int32>::iterator aInsertPos = m_aGroupPositions.insert(aIter,nGroupPos); - ++aInsertPos; - aIter = aInsertPos; - ::std::vector<sal_Int32>::const_iterator aEnd = m_aGroupPositions.end(); - for(;aInsertPos != aEnd;++aInsertPos) - if ( *aInsertPos != NO_GROUP ) - ++*aInsertPos; - } - } - m_bIgnoreEvent = true; - } - } - - RowInserted( nRow, nSize ); -} - Size OFieldExpressionControl::GetOptimalSize() const { return LogicToPixel(Size(106, 75), MapUnit::MapAppFont); |