summaryrefslogtreecommitdiff
path: root/cui/source/options
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-21 09:30:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-21 14:33:39 +0200
commit5e43e888f6b9bc32fc5d3361be5a7962796726ea (patch)
tree061df26f907bece9cacad5b53290db3f6937d09e /cui/source/options
parent5100a06c15ee8d66dc88f58523a35014988fd9fe (diff)
use tools::Long in comphelper..cui
Change-Id: I65167999c6049038f8f5d530a0c5cb0552ab0e06 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104609 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/options')
-rw-r--r--cui/source/options/optchart.cxx4
-rw-r--r--cui/source/options/optcolor.cxx10
-rw-r--r--cui/source/options/optpath.cxx4
3 files changed, 9 insertions, 9 deletions
diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx
index 7d740cfd2000..b8499c5ee886 100644
--- a/cui/source/options/optchart.cxx
+++ b/cui/source/options/optchart.cxx
@@ -82,8 +82,8 @@ void SvxDefaultColorOptPage::FillBoxChartColorLB()
m_xLbChartColors->freeze();
ClearColorEntries();
- const long nCount(m_SvxChartColorTableUniquePtr->size());
- for (long i = 0; i < nCount; ++i)
+ const tools::Long nCount(m_SvxChartColorTableUniquePtr->size());
+ for (tools::Long i = 0; i < nCount; ++i)
InsertColorEntry((*m_SvxChartColorTableUniquePtr)[i]);
m_xLbChartColors->thaw();
}
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx
index f7807adc57e9..b4e992133fef 100644
--- a/cui/source/options/optcolor.cxx
+++ b/cui/source/options/optcolor.cxx
@@ -207,7 +207,7 @@ private:
{
public:
Entry(weld::Window* pTopLevel, weld::Builder& rBuilder, const char* pTextWidget, const char* pColorWidget,
- const Color& rColor, long nCheckBoxLabelOffset, bool bCheckBox, bool bShow);
+ const Color& rColor, tools::Long nCheckBoxLabelOffset, bool bCheckBox, bool bShow);
public:
void SetText(const OUString& rLabel) { dynamic_cast<weld::Label&>(*m_xText).set_label(rLabel); }
void set_width_request(int nTextWidth) { m_xText->set_size_request(nTextWidth, -1); }
@@ -280,7 +280,7 @@ ColorConfigWindow_Impl::Chapter::Chapter(weld::Builder& rBuilder, const char* pL
ColorConfigWindow_Impl::Entry::Entry(weld::Window* pTopLevel, weld::Builder& rBuilder,
const char* pTextWidget, const char* pColorWidget,
const Color& rColor,
- long nCheckBoxLabelOffset, bool bCheckBox, bool bShow)
+ tools::Long nCheckBoxLabelOffset, bool bCheckBox, bool bShow)
: m_xColorList(new ColorListBox(rBuilder.weld_menu_button(pColorWidget), pTopLevel))
, m_aDefaultColor(rColor)
{
@@ -384,7 +384,7 @@ void ColorConfigWindow_Impl::CreateEntries()
// Here we want to get the amount to add to the position of a FixedText to
// get it to align its contents with that of a CheckBox
- long nCheckBoxLabelOffset = 0;
+ tools::Long nCheckBoxLabelOffset = 0;
{
OUString sSampleText("X");
std::unique_ptr<weld::CheckButton> xCheckBox(m_xBuilder->weld_check_button("docboundaries"));
@@ -602,11 +602,11 @@ public:
void SetConfig (EditableColorConfig& rConfig) { pColorConfig = &rConfig; }
void SetExtendedConfig (EditableExtendedColorConfig& rConfig) { pExtColorConfig = &rConfig; }
void Update();
- long GetScrollPosition() const
+ tools::Long GetScrollPosition() const
{
return m_xVScroll->vadjustment_get_value();
}
- void SetScrollPosition(long nSet)
+ void SetScrollPosition(tools::Long nSet)
{
m_xVScroll->vadjustment_set_value(nSet);
}
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index d3f3b419a835..45b2c14d5c0d 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -603,7 +603,7 @@ void SvxPathTabPage::GetPathList(
Sequence< OUString > aPathSeq;
if ( aAny >>= aPathSeq )
{
- long i, nCount = aPathSeq.getLength();
+ tools::Long i, nCount = aPathSeq.getLength();
const OUString* pPaths = aPathSeq.getConstArray();
for ( i = 0; i < nCount; ++i )
@@ -618,7 +618,7 @@ void SvxPathTabPage::GetPathList(
sCfgName + POSTFIX_USER);
if ( aAny >>= aPathSeq )
{
- long i, nCount = aPathSeq.getLength();
+ tools::Long i, nCount = aPathSeq.getLength();
const OUString* pPaths = aPathSeq.getConstArray();
for ( i = 0; i < nCount; ++i )