Branch libreoffice-5-0-4
[LibreOffice.git] / vcl / source / app / salvtables.cxx
blob4c5636372a4878966c12d0c1e77887376f87851b
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_bPaintsBlocked(false)
34 , m_pWindow(NULL)
35 , m_pProc(NULL)
39 // this file contains the virtual destructors of the sal interface
40 // compilers usually put their vtables where the destructor is
42 SalFrame::~SalFrame()
46 void SalFrame::SetCallback( vcl::Window* pWindow, SALFRAMEPROC pProc )
48 m_pWindow = pWindow;
49 m_pProc = pProc;
52 // default to full-frame flushes
53 // on ports where partial-flushes are much cheaper this method should be overridden
54 void SalFrame::Flush( const Rectangle& )
56 Flush();
59 void SalFrame::SetRepresentedURL( const OUString& )
61 // currently this is Mac only functionality
64 SalInstance::~SalInstance()
68 void SalInstance::FillFontPathList( std::list< OString >& )
70 // do nothing
73 SalMenu* SalInstance::CreateMenu( bool, Menu* )
75 // default: no native menus
76 return NULL;
79 void SalInstance::DestroyMenu( SalMenu* pMenu )
81 (void)pMenu;
82 OSL_ENSURE( pMenu == 0, "DestroyMenu called with non-native menus" );
85 SalMenuItem* SalInstance::CreateMenuItem( const SalItemParams* )
87 return NULL;
90 void SalInstance::DestroyMenuItem( SalMenuItem* pItem )
92 (void)pItem;
93 OSL_ENSURE( pItem == 0, "DestroyMenu called with non-native menus" );
96 SalTimer::~SalTimer()
100 SalBitmap::~SalBitmap()
104 SalI18NImeStatus::~SalI18NImeStatus()
108 SalSystem::~SalSystem()
112 SalPrinter::~SalPrinter()
116 bool SalPrinter::StartJob( const OUString*, const OUString&, const OUString&,
117 ImplJobSetup*, vcl::PrinterController& )
119 return false;
122 SalInfoPrinter::~SalInfoPrinter()
126 SalVirtualDevice::~SalVirtualDevice()
130 SalObject::~SalObject()
134 SalMenu::~SalMenu()
138 bool SalMenu::ShowNativePopupMenu(FloatingWindow *, const Rectangle&, FloatWinPopupFlags )
140 return false;
143 bool SalMenu::AddMenuBarButton( const SalMenuButtonItem& )
145 return false;
148 void SalMenu::RemoveMenuBarButton( sal_uInt16 )
152 Rectangle SalMenu::GetMenuBarButtonRectPixel( sal_uInt16, SalFrame* )
154 return Rectangle();
157 SalMenuItem::~SalMenuItem()
161 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */