summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 10:01:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 11:28:41 +0200
commit6c6c1eea82b259c7aec1e0ed5ff86bfd2eb0243f (patch)
tree87e8ccbbfc4d369e079098eb8be09abf988f1c44 /sw/source/ui/dbui
parentfc79f23922ccae8b494b31a5dd7bb4767e50c87e (diff)
loplugin:constmethod in sw
Change-Id: I73c3c6d2165287d2d581a04b23b1d3b48166a488 Reviewed-on: https://gerrit.libreoffice.org/79780 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r--sw/source/ui/dbui/addresslistdialog.cxx10
-rw-r--r--sw/source/ui/dbui/addresslistdialog.hxx10
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.cxx14
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.hxx14
-rw-r--r--sw/source/ui/dbui/mmresultdialogs.cxx4
5 files changed, 26 insertions, 26 deletions
diff --git a/sw/source/ui/dbui/addresslistdialog.cxx b/sw/source/ui/dbui/addresslistdialog.cxx
index e4d6792d6c7f..1f982922f85e 100644
--- a/sw/source/ui/dbui/addresslistdialog.cxx
+++ b/sw/source/ui/dbui/addresslistdialog.cxx
@@ -565,7 +565,7 @@ IMPL_LINK(SwAddressListDialog, TableSelectHdl_Impl, weld::Button&, rButton, void
TableSelectHdl(&rButton);
}
-void SwAddressListDialog::TableSelectHdl(weld::Button* pButton)
+void SwAddressListDialog::TableSelectHdl(const weld::Button* pButton)
{
weld::WaitObject aWait(m_xDialog.get());
@@ -588,7 +588,7 @@ IMPL_LINK_NOARG(SwAddressListDialog, OKHdl_Impl, weld::Button&, void)
m_xDialog->response(RET_OK);
}
-uno::Reference< XDataSource> SwAddressListDialog::GetSource()
+uno::Reference< XDataSource> SwAddressListDialog::GetSource() const
{
uno::Reference< XDataSource> xRet;
int nSelect = m_xListLB->get_selected_index();
@@ -601,7 +601,7 @@ uno::Reference< XDataSource> SwAddressListDialog::GetSource()
}
-SharedConnection SwAddressListDialog::GetConnection()
+SharedConnection SwAddressListDialog::GetConnection() const
{
SharedConnection xRet;
int nSelect = m_xListLB->get_selected_index();
@@ -613,7 +613,7 @@ SharedConnection SwAddressListDialog::GetConnection()
return xRet;
}
-uno::Reference< XColumnsSupplier> SwAddressListDialog::GetColumnsSupplier()
+uno::Reference< XColumnsSupplier> SwAddressListDialog::GetColumnsSupplier() const
{
uno::Reference< XColumnsSupplier> xRet;
int nSelect = m_xListLB->get_selected_index();
@@ -625,7 +625,7 @@ uno::Reference< XColumnsSupplier> SwAddressListDialog::GetColumnsSupplier()
return xRet;
}
-OUString SwAddressListDialog::GetFilter()
+OUString SwAddressListDialog::GetFilter() const
{
int nSelect = m_xListLB->get_selected_index();
if (nSelect != -1)
diff --git a/sw/source/ui/dbui/addresslistdialog.hxx b/sw/source/ui/dbui/addresslistdialog.hxx
index bf2d04121941..e3662fdf9da2 100644
--- a/sw/source/ui/dbui/addresslistdialog.hxx
+++ b/sw/source/ui/dbui/addresslistdialog.hxx
@@ -76,7 +76,7 @@ class SwAddressListDialog : public SfxDialogController
DECL_LINK(ListBoxSelectHdl_Impl, weld::TreeView&, void);
DECL_LINK(EditHdl_Impl, weld::Button&, void);
DECL_LINK(TableSelectHdl_Impl, weld::Button&, void);
- void TableSelectHdl(weld::Button* pButton);
+ void TableSelectHdl(const weld::Button* pButton);
DECL_LINK(OKHdl_Impl, weld::Button&, void);
DECL_LINK(StaticListBoxSelectHdl_Impl, void*, void);
@@ -86,15 +86,15 @@ public:
virtual ~SwAddressListDialog() override;
css::uno::Reference< css::sdbc::XDataSource>
- GetSource();
+ GetSource() const;
- SharedConnection GetConnection();
+ SharedConnection GetConnection() const;
css::uno::Reference< css::sdbcx::XColumnsSupplier>
- GetColumnsSupplier();
+ GetColumnsSupplier() const;
const SwDBData& GetDBData() const {return m_aDBData;}
- OUString GetFilter();
+ OUString GetFilter() const;
};
#endif
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index 7ded7e7b9fc9..f7836e88b1d8 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -259,7 +259,7 @@ IMPL_LINK(SwMailMergeAddressBlockPage, HideParagraphsHdl_Impl, weld::ToggleButto
rConfigItem.SetHideEmptyParagraphs(rBox.get_active());
}
-void SwMailMergeAddressBlockPage::InsertDataHdl(weld::Button* pButton)
+void SwMailMergeAddressBlockPage::InsertDataHdl(const weld::Button* pButton)
{
//if no pButton is given, the first set has to be pre-set
SwMailMergeConfigItem& rConfig = m_pWizard->GetConfigItem();
@@ -601,7 +601,7 @@ IMPL_LINK(SwCustomizeAddressBlockDialog, ImageButtonHdl_Impl, weld::Button&, rBu
UpdateImageButtons_Impl();
}
-sal_Int32 SwCustomizeAddressBlockDialog::GetSelectedItem_Impl()
+sal_Int32 SwCustomizeAddressBlockDialog::GetSelectedItem_Impl() const
{
sal_Int32 nRet = USER_DATA_NONE;
const OUString sSelected = m_xDragED->GetCurrentItem();
@@ -738,7 +738,7 @@ void SwCustomizeAddressBlockDialog::SetAddress(const OUString& rAddress)
EditModifyHdl_Impl(*m_xDragED);
}
-OUString SwCustomizeAddressBlockDialog::GetAddress()
+OUString SwCustomizeAddressBlockDialog::GetAddress() const
{
OUString sAddress(m_xDragED->GetAddress());
//remove placeholders by the actual content
@@ -1296,7 +1296,7 @@ void AddressMultiLineEdit::MoveCurrentItem(MoveItemFlags nMove)
m_aModifyLink.Call(*this);
}
-MoveItemFlags AddressMultiLineEdit::IsCurrentItemMoveable()
+MoveItemFlags AddressMultiLineEdit::IsCurrentItemMoveable() const
{
MoveItemFlags nRet = MoveItemFlags::NONE;
ESelection aSelection = m_xEditView->GetSelection();
@@ -1319,7 +1319,7 @@ MoveItemFlags AddressMultiLineEdit::IsCurrentItemMoveable()
return nRet;
}
-bool AddressMultiLineEdit::HasCurrentItem()
+bool AddressMultiLineEdit::HasCurrentItem() const
{
ESelection aSelection = m_xEditView->GetSelection();
@@ -1332,7 +1332,7 @@ bool AddressMultiLineEdit::HasCurrentItem()
&& pBeginAttrib->nEnd >= aSelection.nEndPos));
}
-OUString AddressMultiLineEdit::GetCurrentItem()
+OUString AddressMultiLineEdit::GetCurrentItem() const
{
ESelection aSelection = m_xEditView->GetSelection();
@@ -1370,7 +1370,7 @@ void AddressMultiLineEdit::SelectCurrentItem()
}
}
-OUString AddressMultiLineEdit::GetAddress()
+OUString AddressMultiLineEdit::GetAddress() const
{
OUString sRet;
const sal_uInt32 nParaCount = m_xEditEngine->GetParagraphCount();
diff --git a/sw/source/ui/dbui/mmaddressblockpage.hxx b/sw/source/ui/dbui/mmaddressblockpage.hxx
index f48c3e117846..27c99b0aedc7 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.hxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.hxx
@@ -65,7 +65,7 @@ class SwMailMergeAddressBlockPage : public vcl::OWizardPage
std::unique_ptr<weld::CustomWeld> m_xSettingsWIN;
std::unique_ptr<weld::CustomWeld> m_xPreviewWIN;
- void InsertDataHdl(weld::Button* pButton);
+ void InsertDataHdl(const weld::Button* pButton);
DECL_LINK(AddressListHdl_Impl, weld::Button&, void);
DECL_LINK(SettingsHdl_Impl, weld::Button&, void);
@@ -162,16 +162,16 @@ public:
void SetText( const OUString& rStr );
OUString GetText() const;
- OUString GetAddress();
+ OUString GetAddress() const;
void InsertNewEntry( const OUString& rStr );
void InsertNewEntryAtPosition( const OUString& rStr, sal_uLong nPara, sal_uInt16 nIndex );
void RemoveCurrentEntry();
void MoveCurrentItem(MoveItemFlags nMove);
- MoveItemFlags IsCurrentItemMoveable();
- bool HasCurrentItem();
- OUString GetCurrentItem();
+ MoveItemFlags IsCurrentItemMoveable() const;
+ bool HasCurrentItem() const;
+ OUString GetCurrentItem() const;
void SelectCurrentItem();
};
@@ -227,7 +227,7 @@ private:
DECL_LINK(TextFilterHdl, OUString&, bool);
DECL_LINK(SelectionChangedIdleHdl, Timer*, void);
- sal_Int32 GetSelectedItem_Impl();
+ sal_Int32 GetSelectedItem_Impl() const;
void UpdateImageButtons_Impl();
public:
@@ -242,7 +242,7 @@ public:
bool HasItem(sal_Int32 nUserData);
void SetAddress(const OUString& rAddress);
- OUString GetAddress();
+ OUString GetAddress() const;
};
class SwAssignFieldsControl;
diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx
index c5230e195a8a..ef96c5b31029 100644
--- a/sw/source/ui/dbui/mmresultdialogs.cxx
+++ b/sw/source/ui/dbui/mmresultdialogs.cxx
@@ -208,10 +208,10 @@ public:
{
}
- OUString GetCC() {return m_xCCED->get_text();}
+ OUString GetCC() const {return m_xCCED->get_text();}
void SetCC(const OUString& rSet) {m_xCCED->set_text(rSet);}
- OUString GetBCC() {return m_xBCCED->get_text();}
+ OUString GetBCC() const {return m_xBCCED->get_text();}
void SetBCC(const OUString& rSet) {m_xBCCED->set_text(rSet);}
};