Files
Michael Weghorn ce61ebf5a4 vcl: Drop SalGenericSystem indirection to show error dlg
So far, SalGenericSystem was implementing
the purely virtual base class method
SalSystem::ShowNativeMessageBox by
providing another purely virtual
ShowNativeDialog method and calling
that one from ShowNativeMessageBox.

Now, after previous commits

    Change-Id: Iaf2c803071698911f4834070ad00b9ad325374c9
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Feb 27 22:27:37 2026 +0100

        vcl: Drop SalSystem::ShowNativeMessageBox return value

and

    Change-Id: I8eb68974f7b89235f54f8600a940295093dc0bb7
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Feb 27 22:41:46 2026 +0100

        vcl: Call ImplHideSplash from Application::ShowNativeErrorBox

, this doesn't really add any value.

Therefore, drop SalGenericSystem::ShowNativeMessageBox and
instead override that method directly in the
SalGenericSystem subclasses.

The behavior as described in

    Change-Id: Iaf2c803071698911f4834070ad00b9ad325374c9
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Feb 27 22:27:37 2026 +0100

        vcl: Drop SalSystem::ShowNativeMessageBox return value

can still be observed the same way.

Change-Id: I9206286d109fbfa8ac1b8cf3c8cea3b016ae7448
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200659
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-02-28 16:36:24 +01:00

55 lines
1.9 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <headless/svpdummies.hxx>
SvpSalObject::~SvpSalObject()
{
}
void SvpSalObject::ResetClipRegion() {}
void SvpSalObject::BeginSetClipRegion( sal_uInt32 ) {}
void SvpSalObject::UnionClipRegion( tools::Long, tools::Long, tools::Long, tools::Long ) {}
void SvpSalObject::EndSetClipRegion() {}
void SvpSalObject::SetPosSize( tools::Long, tools::Long, tools::Long, tools::Long ) {}
void SvpSalObject::Show( bool ) {}
const SystemEnvData& SvpSalObject::GetSystemData() const { return m_aSystemChildData; }
// SalSystem
SvpSalSystem::~SvpSalSystem() {}
unsigned int SvpSalSystem::GetDisplayScreenCount()
{
return 1;
}
AbsoluteScreenPixelRectangle SvpSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
{
AbsoluteScreenPixelRectangle aRect;
if( nScreen == 0 )
aRect = AbsoluteScreenPixelRectangle( AbsoluteScreenPixelPoint(0,0), AbsoluteScreenPixelSize(VIRTUAL_DESKTOP_WIDTH,VIRTUAL_DESKTOP_HEIGHT) );
return aRect;
}
void SvpSalSystem::ShowNativeMessageBox(const OUString&, const OUString&)
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */