1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <salframe.hxx>
21 #include <salinst.hxx>
24 #include <saltimer.hxx>
25 #include <salimestatus.hxx>
29 #include <salmenu.hxx>
38 // this file contains the virtual destructors of the sal interface
39 // compilers usually put their vtables where the destructor is
45 void SalFrame::SetCallback( vcl::Window
* pWindow
, SALFRAMEPROC pProc
)
51 // default to full-frame flushes
52 // on ports where partial-flushes are much cheaper this method should be overridden
53 void SalFrame::Flush( const Rectangle
& )
58 void SalFrame::SetRepresentedURL( const OUString
& )
60 // currently this is Mac only functionality
63 SalInstance::~SalInstance()
67 SalMenu
* SalInstance::CreateMenu( bool, Menu
* )
69 // default: no native menus
73 void SalInstance::DestroyMenu( SalMenu
* pMenu
)
76 OSL_ENSURE( pMenu
== nullptr, "DestroyMenu called with non-native menus" );
79 SalMenuItem
* SalInstance::CreateMenuItem( const SalItemParams
* )
84 void SalInstance::DestroyMenuItem( SalMenuItem
* pItem
)
87 OSL_ENSURE( pItem
== nullptr, "DestroyMenu called with non-native menus" );
90 bool SalInstance::CallEventCallback( void* pEvent
, int nBytes
)
92 return m_pEventInst
.is() && m_pEventInst
->dispatchEvent( pEvent
, nBytes
);
95 SalI18NImeStatus
* SalInstance::CreateI18NImeStatus()
97 return new SalI18NImeStatus
;
100 SalTimer::~SalTimer()
104 SalBitmap::~SalBitmap()
108 SalI18NImeStatus::~SalI18NImeStatus()
112 SalSystem::~SalSystem()
116 SalPrinter::~SalPrinter()
120 bool SalPrinter::StartJob( const OUString
*, const OUString
&, const OUString
&,
121 ImplJobSetup
*, vcl::PrinterController
& )
126 SalInfoPrinter::~SalInfoPrinter()
130 SalVirtualDevice::~SalVirtualDevice()
134 SalObject::~SalObject()
142 bool SalMenu::ShowNativePopupMenu(FloatingWindow
*, const Rectangle
&, FloatWinPopupFlags
)
147 void SalMenu::ShowCloseButton(bool)
151 bool SalMenu::AddMenuBarButton( const SalMenuButtonItem
& )
156 void SalMenu::RemoveMenuBarButton( sal_uInt16
)
160 Rectangle
SalMenu::GetMenuBarButtonRectPixel( sal_uInt16
, SalFrame
* )
165 SalMenuItem::~SalMenuItem()
169 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */