build fix: no comphelper/profilezone.hxx in this branch
[LibreOffice.git] / vcl / source / app / salvtables.cxx
blob12cee864feda9e9dc1f37d15dd07f26df1f1c022
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
22 #include <salvd.hxx>
23 #include <salprn.hxx>
24 #include <saltimer.hxx>
25 #include <salimestatus.hxx>
26 #include <salsys.hxx>
27 #include <salbmp.hxx>
28 #include <salobj.hxx>
29 #include <salmenu.hxx>
32 SalFrame::SalFrame()
33 : m_pWindow(nullptr)
34 , m_pProc(nullptr)
38 // this file contains the virtual destructors of the sal interface
39 // compilers usually put their vtables where the destructor is
41 SalFrame::~SalFrame()
45 void SalFrame::SetCallback( vcl::Window* pWindow, SALFRAMEPROC pProc )
47 m_pWindow = pWindow;
48 m_pProc = 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& )
55 Flush();
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
70 return nullptr;
73 void SalInstance::DestroyMenu( SalMenu* pMenu )
75 (void)pMenu;
76 OSL_ENSURE( pMenu == nullptr, "DestroyMenu called with non-native menus" );
79 SalMenuItem* SalInstance::CreateMenuItem( const SalItemParams* )
81 return nullptr;
84 void SalInstance::DestroyMenuItem( SalMenuItem* pItem )
86 (void)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& )
123 return false;
126 SalInfoPrinter::~SalInfoPrinter()
130 SalVirtualDevice::~SalVirtualDevice()
134 SalObject::~SalObject()
138 SalMenu::~SalMenu()
142 bool SalMenu::ShowNativePopupMenu(FloatingWindow *, const Rectangle&, FloatWinPopupFlags )
144 return false;
147 void SalMenu::ShowCloseButton(bool)
151 bool SalMenu::AddMenuBarButton( const SalMenuButtonItem& )
153 return false;
156 void SalMenu::RemoveMenuBarButton( sal_uInt16 )
160 Rectangle SalMenu::GetMenuBarButtonRectPixel( sal_uInt16, SalFrame* )
162 return Rectangle();
165 SalMenuItem::~SalMenuItem()
169 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */