Branch libreoffice-5-0-4
[LibreOffice.git] / vcl / inc / osx / salobj.h
blob5db9d3e2ad1fbfe5d79f7a81353c1d8693b6073c
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 INCLUDED_VCL_INC_OSX_SALOBJ_H
21 #define INCLUDED_VCL_INC_OSX_SALOBJ_H
23 #include "vcl/sysdata.hxx"
24 #include "salobj.hxx"
26 class AquaSalFrame;
27 class AquaSalObject;
29 // - SalObjectData -
31 struct SalObjectData
35 class AquaSalObject : public SalObject
37 public:
38 AquaSalFrame* mpFrame; // parent frame
39 NSClipView* mpClipView;
40 SystemEnvData maSysData;
42 long mnClipX;
43 long mnClipY;
44 long mnClipWidth;
45 long mnClipHeight;
46 bool mbClip;
48 long mnX;
49 long mnY;
50 long mnWidth;
51 long mnHeight;
53 void setClippedPosSize();
55 AquaSalObject( AquaSalFrame* pFrame, SystemWindowData* pWinData );
56 virtual ~AquaSalObject();
58 virtual void ResetClipRegion() SAL_OVERRIDE;
59 virtual sal_uInt16 GetClipRegionType() SAL_OVERRIDE;
60 virtual void BeginSetClipRegion( sal_uLong nRects ) SAL_OVERRIDE;
61 virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) SAL_OVERRIDE;
62 virtual void EndSetClipRegion() SAL_OVERRIDE;
63 virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight ) SAL_OVERRIDE;
64 virtual void Show( bool bVisible ) SAL_OVERRIDE;
65 virtual const SystemEnvData* GetSystemData() const SAL_OVERRIDE;
68 #endif // INCLUDED_VCL_INC_OSX_SALOBJ_H
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */