fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / vcl / inc / aqua / salvd.h
blob51f5d4112a73439408c6c97d25362e7bf484eb2f
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 #ifndef _SV_SALVD_H
21 #define _SV_SALVD_H
23 #include "premac.h"
24 #include <ApplicationServices/ApplicationServices.h>
25 #include "postmac.h"
27 #include "aqua/salgdi.h"
29 #include "salvd.hxx"
31 #if PRAGMA_ONCE
32 #pragma once
33 #endif
35 // =======================================================================
37 // =======================================================================
39 // -----------------
40 // - SalVirDevData -
41 // -----------------
43 struct SalVirDevData
47 typedef struct SalVirDevData SalVirDevData;
48 typedef SalVirDevData *SalVirDevDataPtr;
49 typedef SalVirDevDataPtr *SalVirDevDataHandle;
51 // =======================================================================
53 class AquaSalGraphics;
55 // -----------------
56 // - SalVirDevData -
57 // -----------------
59 class AquaSalVirtualDevice : public SalVirtualDevice
61 private:
62 bool mbGraphicsUsed; // is Graphics used
63 bool mbForeignContext; // is mxContext from outside VCL
64 CGContextRef mxBitmapContext;
65 int mnBitmapDepth;
66 CGLayerRef mxLayer; // Quartz layer
67 AquaSalGraphics* mpGraphics; // current VirDev graphics
69 void Destroy();
71 public:
72 AquaSalVirtualDevice( AquaSalGraphics* pGraphic, long nDX, long nDY, sal_uInt16 nBitCount, const SystemGraphicsData *pData );
73 virtual ~AquaSalVirtualDevice();
75 virtual SalGraphics* GetGraphics();
76 virtual void ReleaseGraphics( SalGraphics* pGraphics );
77 virtual sal_Bool SetSize( long nNewDX, long nNewDY );
78 virtual void GetSize( long& rWidth, long& rHeight );
81 // =======================================================================
83 #endif // _SV_SALVD_H
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */