summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/ViewShellBase.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-17 11:21:56 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-17 11:02:18 +0000
commitdb93b92d78714ed193b3cbe52b18e3cfd9da99b8 (patch)
tree1442edf9552192ce29b3e271396291e2bbd269a0 /sd/source/ui/view/ViewShellBase.cxx
parent336d816176650726f6d14539464d9fd28ddd032d (diff)
loplugin:constantparam in sfx2
Change-Id: I53e690ab8d50fb3ce43ba633fc018e7b66e591cd Reviewed-on: https://gerrit.libreoffice.org/23321 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd/source/ui/view/ViewShellBase.cxx')
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx16
1 files changed, 3 insertions, 13 deletions
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx
index 79026733d1ef..580f85edeae1 100644
--- a/sd/source/ui/view/ViewShellBase.cxx
+++ b/sd/source/ui/view/ViewShellBase.cxx
@@ -528,8 +528,7 @@ SfxPrinter* ViewShellBase::GetPrinter (bool bCreate)
sal_uInt16 ViewShellBase::SetPrinter (
SfxPrinter* pNewPrinter,
- SfxPrinterChangeFlags nDiffFlags,
- bool bIsAPI)
+ SfxPrinterChangeFlags nDiffFlags)
{
OSL_ASSERT(mpImpl.get()!=nullptr);
@@ -545,14 +544,6 @@ sal_uInt16 ViewShellBase::SetPrinter (
Size aNewSize = pNewPrinter->GetOutputSize();
bool bScaleAll = false;
- if ( bIsAPI )
- {
- ScopedVclPtrInstance<WarningBox> aWarnBox (
- GetWindow(),
- (WinBits)(WB_YES_NO | WB_DEF_YES),
- SD_RESSTR(STR_SCALE_OBJS_TO_PAGE));
- bScaleAll = (aWarnBox->Execute() == RET_YES);
- }
std::shared_ptr<DrawViewShell> pDrawViewShell (
std::dynamic_pointer_cast<DrawViewShell>(GetMainViewShell()));
@@ -696,14 +687,13 @@ void ViewShellBase::WriteUserDataSequence (
}
void ViewShellBase::ReadUserDataSequence (
- const css::uno::Sequence< css::beans::PropertyValue >& rSequence,
- bool bBrowse)
+ const css::uno::Sequence< css::beans::PropertyValue >& rSequence)
{
// Forward call to main sub shell.
ViewShell* pShell = GetMainViewShell().get();
if (pShell != nullptr)
{
- pShell->ReadUserDataSequence (rSequence, bBrowse);
+ pShell->ReadUserDataSequence (rSequence, true/*bBrowse*/);
// For certain shell types ReadUserDataSequence may have changed the
// type to another one. Make sure that the center pane shows the