fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dtrans / source / win32 / dtobj / Fetc.hxx
blob4f86c691bc94e5c85fde4f9c7606e4b849df12a6
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_DTRANS_SOURCE_WIN32_DTOBJ_FETC_HXX
21 #define INCLUDED_DTRANS_SOURCE_WIN32_DTOBJ_FETC_HXX
23 #include <sal/types.h>
25 #if defined _MSC_VER
26 #pragma warning(push,1)
27 #endif
28 #include <windows.h>
29 #if defined _MSC_VER
30 #pragma warning(pop)
31 #endif
33 /**********************************************************************
34 stl container elements must fulfill the following requirements:
35 1. they need a copy ctor and assignement operator(?)
36 2. they must be compareable
37 because the FORMATETC structure has a pointer to a TARGETDEVICE
38 structure we need a simple wrapper class to fulfill these needs
39 ***********************************************************************/
41 class CFormatEtc
43 public:
44 CFormatEtc( );
45 CFormatEtc( const FORMATETC& aFormatEtc );
46 CFormatEtc( CLIPFORMAT cf, DWORD tymed = TYMED_HGLOBAL, DVTARGETDEVICE* ptd = NULL, DWORD dwAspect = DVASPECT_CONTENT, LONG lindex = -1 );
47 CFormatEtc( const CFormatEtc& theOther );
49 ~CFormatEtc( );
51 CFormatEtc& operator=( const CFormatEtc& theOther );
52 operator FORMATETC*( );
53 operator FORMATETC( );
55 void getFORMATETC( LPFORMATETC lpFormatEtc );
57 CLIPFORMAT getClipformat( ) const;
58 DWORD getTymed( ) const;
59 void getTargetDevice( DVTARGETDEVICE** ptd ) const;
60 DWORD getDvAspect( ) const;
61 LONG getLindex( ) const;
63 void setClipformat( CLIPFORMAT cf );
64 void setTymed( DWORD tymed );
65 void setTargetDevice( DVTARGETDEVICE* ptd );
66 void setDvAspect( DWORD dwAspect );
67 void setLindex( LONG lindex );
69 private:
70 FORMATETC m_FormatEtc;
72 friend sal_Int32 operator==( const CFormatEtc& lhs, const CFormatEtc& rhs );
73 friend sal_Int32 operator!=( const CFormatEtc& lhs, const CFormatEtc& rhs );
76 sal_Int32 operator==( const CFormatEtc& lhs, const CFormatEtc& rhs );
77 sal_Int32 operator!=( const CFormatEtc& lhs, const CFormatEtc& rhs );
79 #endif
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */