android: Update app-specific/MIME type icons
[LibreOffice.git] / filter / source / msfilter / viscache.hxx
blob5111969b3f9e447ca3601f36f071905c8ddbc8fe
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 .
19 #pragma once
21 #include <memory>
22 #include <sfx2/objsh.hxx>
23 #include <vcl/gdimtf.hxx>
25 class SvStream;
27 class Impl_OlePres
29 SotClipboardFormatId nFormat;
30 sal_uInt16 nAspect;
31 std::unique_ptr<GDIMetaFile>
32 pMtf;
34 sal_uInt32 nAdvFlags;
35 Size aSize; // size in 100TH_MM
36 public:
37 explicit Impl_OlePres()
38 : nFormat( SotClipboardFormatId::GDIMETAFILE )
39 , nAspect( ASPECT_CONTENT )
40 , nAdvFlags( 0x2 ) // found in document
42 void SetMtf( const GDIMetaFile & rMtf )
44 pMtf.reset( new GDIMetaFile( rMtf ) );
46 void SetAspect( sal_uInt16 nAsp ) { nAspect = nAsp; }
47 void SetAdviseFlags( sal_uLong nAdv ) { nAdvFlags = nAdv; }
48 void SetSize( const Size & rSize ) { aSize = rSize; }
49 void Write( SvStream & rStm );
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */