summaryrefslogtreecommitdiff
path: root/sw/source/uibase/sidebar
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-09-14 16:57:06 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-09-21 12:45:38 +0200
commitd99b65c864cc3358238e4eac651f12a34d05e2d9 (patch)
treefcd7d6fefb9434c27533c826aabc639f68ba97ed /sw/source/uibase/sidebar
parentb649e5bf1d3f0a11fb0c2fdf6fa08329529ce6fb (diff)
Rename GetSelectEntryPos -> GetSelectedEntryPos
Change-Id: I0bd4cb463575af843c72d9c8aaf91742203532a4 Reviewed-on: https://gerrit.libreoffice.org/42283 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw/source/uibase/sidebar')
-rw-r--r--sw/source/uibase/sidebar/PageFooterPanel.cxx2
-rw-r--r--sw/source/uibase/sidebar/PageFormatPanel.cxx8
-rw-r--r--sw/source/uibase/sidebar/PageHeaderPanel.cxx2
-rw-r--r--sw/source/uibase/sidebar/PageStylesPanel.cxx16
4 files changed, 14 insertions, 14 deletions
diff --git a/sw/source/uibase/sidebar/PageFooterPanel.cxx b/sw/source/uibase/sidebar/PageFooterPanel.cxx
index 221eefcadb61..a2437cc0eb6c 100644
--- a/sw/source/uibase/sidebar/PageFooterPanel.cxx
+++ b/sw/source/uibase/sidebar/PageFooterPanel.cxx
@@ -247,7 +247,7 @@ IMPL_LINK_NOARG( PageFooterPanel, FooterSpacingHdl, ListBox&, void )
}
IMPL_LINK_NOARG( PageFooterPanel, FooterLayoutHdl, ListBox&, void )
{
- sal_uInt16 nVal = mpFooterLayoutLB->GetSelectEntryPos();
+ sal_uInt16 nVal = mpFooterLayoutLB->GetSelectedEntryPos();
mpFooterLayoutItem->SetValue(nVal);
GetBindings()->GetDispatcher()->ExecuteList( SID_ATTR_PAGE_FOOTER_LAYOUT,
SfxCallMode::RECORD, { mpFooterLayoutItem.get() } );
diff --git a/sw/source/uibase/sidebar/PageFormatPanel.cxx b/sw/source/uibase/sidebar/PageFormatPanel.cxx
index e94c03fad98c..4823efb4fee1 100644
--- a/sw/source/uibase/sidebar/PageFormatPanel.cxx
+++ b/sw/source/uibase/sidebar/PageFormatPanel.cxx
@@ -154,7 +154,7 @@ void PageFormatPanel::NotifyItemUpdate(
mpPaperWidth->SetValue( mpPaperWidth->Normalize( aPaperSize.Width() ), FUNIT_TWIP );
mpPaperHeight->SetValue( mpPaperHeight->Normalize( aPaperSize.Height() ), FUNIT_TWIP );
- if(mpPaperOrientation->GetSelectEntryPos() == 1)
+ if(mpPaperOrientation->GetSelectedEntryPos() == 1)
Swap(aPaperSize);
Paper ePaper = SvxPaperInfo::GetSvxPaper(aPaperSize, meUnit,true);
@@ -217,10 +217,10 @@ IMPL_LINK_NOARG(PageFormatPanel, PaperFormatModifyHdl, ListBox&, void)
Paper ePaper = mpPaperSizeBox->GetSelection();
Size aSize(SvxPaperInfo::GetPaperSize(ePaper, meUnit));
- if(mpPaperOrientation->GetSelectEntryPos() == 1)
+ if(mpPaperOrientation->GetSelectedEntryPos() == 1)
Swap(aSize);
- mpPageItem->SetLandscape(mpPaperOrientation->GetSelectEntryPos() == 1);
+ mpPageItem->SetLandscape(mpPaperOrientation->GetSelectedEntryPos() == 1);
SvxSizeItem aSizeItem(SID_ATTR_PAGE_SIZE, aSize);
mpBindings->GetDispatcher()->ExecuteList(SID_ATTR_PAGE_SIZE, SfxCallMode::RECORD, { &aSizeItem, mpPageItem.get() });
}
@@ -236,7 +236,7 @@ IMPL_LINK_NOARG(PageFormatPanel, PaperModifyMarginHdl, ListBox&, void)
{
bool bMirrored = false;
bool bApplyNewPageMargins = true;
- switch ( mpMarginSelectBox->GetSelectEntryPos() )
+ switch ( mpMarginSelectBox->GetSelectedEntryPos() )
{
case 0:
SetNone(mnPageLeftMargin, mnPageRightMargin, mnPageTopMargin, mnPageBottomMargin, bMirrored);
diff --git a/sw/source/uibase/sidebar/PageHeaderPanel.cxx b/sw/source/uibase/sidebar/PageHeaderPanel.cxx
index af19cf1d1df6..251e369764fb 100644
--- a/sw/source/uibase/sidebar/PageHeaderPanel.cxx
+++ b/sw/source/uibase/sidebar/PageHeaderPanel.cxx
@@ -249,7 +249,7 @@ IMPL_LINK_NOARG( PageHeaderPanel, HeaderSpacingHdl, ListBox&, void )
}
IMPL_LINK_NOARG( PageHeaderPanel, HeaderLayoutHdl, ListBox&, void )
{
- sal_uInt16 nVal = mpHeaderLayoutLB->GetSelectEntryPos();
+ sal_uInt16 nVal = mpHeaderLayoutLB->GetSelectedEntryPos();
mpHeaderLayoutItem->SetValue(nVal);
GetBindings()->GetDispatcher()->ExecuteList( SID_ATTR_PAGE_HEADER_LAYOUT,
SfxCallMode::RECORD, { mpHeaderLayoutItem.get() } );
diff --git a/sw/source/uibase/sidebar/PageStylesPanel.cxx b/sw/source/uibase/sidebar/PageStylesPanel.cxx
index 9edc8044612a..65a67c2a038d 100644
--- a/sw/source/uibase/sidebar/PageStylesPanel.cxx
+++ b/sw/source/uibase/sidebar/PageStylesPanel.cxx
@@ -168,7 +168,7 @@ void PageStylesPanel::Initialize()
void PageStylesPanel::Update()
{
- const eFillStyle eXFS = (eFillStyle)mpBgFillType->GetSelectEntryPos();
+ const eFillStyle eXFS = (eFillStyle)mpBgFillType->GetSelectedEntryPos();
SfxObjectShell* pSh = SfxObjectShell::Current();
switch(eXFS)
{
@@ -459,7 +459,7 @@ void PageStylesPanel::NotifyItemUpdate(
IMPL_LINK_NOARG( PageStylesPanel, ModifyColumnCountHdl, ListBox&, void )
{
- sal_uInt16 nColumnType = mpColumnCount->GetSelectEntryPos() + 1;
+ sal_uInt16 nColumnType = mpColumnCount->GetSelectedEntryPos() + 1;
mpPageColumnItem->SetValue( nColumnType );
mpBindings->GetDispatcher()->ExecuteList(SID_ATTR_PAGE_COLUMN,
SfxCallMode::RECORD, { mpPageColumnItem.get() });
@@ -467,21 +467,21 @@ IMPL_LINK_NOARG( PageStylesPanel, ModifyColumnCountHdl, ListBox&, void )
IMPL_LINK_NOARG( PageStylesPanel, ModifyNumberingHdl, ListBox&, void )
{
- SvxNumType nEntryData = static_cast<SvxNumType>(reinterpret_cast<sal_uLong>(mpNumberSelectLB->GetEntryData(mpNumberSelectLB->GetSelectEntryPos())));
+ SvxNumType nEntryData = static_cast<SvxNumType>(reinterpret_cast<sal_uLong>(mpNumberSelectLB->GetEntryData(mpNumberSelectLB->GetSelectedEntryPos())));
mpPageItem->SetNumType(nEntryData);
mpBindings->GetDispatcher()->ExecuteList(SID_ATTR_PAGE, SfxCallMode::RECORD, { mpPageItem.get() });
}
IMPL_LINK_NOARG( PageStylesPanel, ModifyLayoutHdl, ListBox&, void )
{
- sal_uInt16 nUse = mpLayoutSelectLB->GetSelectEntryPos();
+ sal_uInt16 nUse = mpLayoutSelectLB->GetSelectedEntryPos();
mpPageItem->SetPageUsage(PosToPageUsage_Impl(nUse));
mpBindings->GetDispatcher()->ExecuteList(SID_ATTR_PAGE, SfxCallMode::RECORD, { mpPageItem.get() });
}
IMPL_LINK_NOARG(PageStylesPanel, ModifyFillStyleHdl, ListBox&, void)
{
- const eFillStyle eXFS = (eFillStyle)mpBgFillType->GetSelectEntryPos();
+ const eFillStyle eXFS = (eFillStyle)mpBgFillType->GetSelectedEntryPos();
Update();
switch (eXFS)
@@ -530,7 +530,7 @@ IMPL_LINK_NOARG(PageStylesPanel, ModifyFillStyleHdl, ListBox&, void)
void PageStylesPanel::ModifyFillColor()
{
- const eFillStyle eXFS = (eFillStyle)mpBgFillType->GetSelectEntryPos();
+ const eFillStyle eXFS = (eFillStyle)mpBgFillType->GetSelectedEntryPos();
SfxObjectShell* pSh = SfxObjectShell::Current();
switch(eXFS)
{
@@ -553,7 +553,7 @@ void PageStylesPanel::ModifyFillColor()
case HATCH:
{
const SvxHatchListItem aHatchListItem(*static_cast<const SvxHatchListItem*>(pSh->GetItem(SID_HATCH_LIST)));
- sal_uInt16 nPos = mpBgHatchingLB->GetSelectEntryPos();
+ sal_uInt16 nPos = mpBgHatchingLB->GetSelectedEntryPos();
XHatch aHatch = aHatchListItem.GetHatchList()->GetHatch(nPos)->GetHatch();
const OUString aHatchName = aHatchListItem.GetHatchList()->GetHatch(nPos)->GetName();
@@ -564,7 +564,7 @@ void PageStylesPanel::ModifyFillColor()
case BITMAP:
case PATTERN:
{
- sal_Int16 nPos = mpBgBitmapLB->GetSelectEntryPos();
+ sal_Int16 nPos = mpBgBitmapLB->GetSelectedEntryPos();
GraphicObject aBitmap;
OUString aBitmapName;