LibreOffice Module filter (master) 1
viscache.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <memory>
22#include <sfx2/objsh.hxx>
23#include <vcl/gdimtf.hxx>
24
25class SvStream;
26
28{
30 sal_uInt16 nAspect;
31 std::unique_ptr<GDIMetaFile>
33
34 sal_uInt32 nAdvFlags;
35 Size aSize; // size in 100TH_MM
36public:
37 explicit Impl_OlePres()
40 , nAdvFlags( 0x2 ) // found in document
41 {}
42 void SetMtf( const GDIMetaFile & rMtf )
43 {
44 pMtf.reset( new GDIMetaFile( rMtf ) );
45 }
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 );
50};
51
52/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetAdviseFlags(sal_uLong nAdv)
Definition: viscache.hxx:47
std::unique_ptr< GDIMetaFile > pMtf
Definition: viscache.hxx:32
void Write(SvStream &rStm)
Definition: msdffimp.cxx:204
sal_uInt16 nAspect
Definition: viscache.hxx:30
SotClipboardFormatId nFormat
Definition: viscache.hxx:29
void SetAspect(sal_uInt16 nAsp)
Definition: viscache.hxx:46
void SetMtf(const GDIMetaFile &rMtf)
Definition: viscache.hxx:42
void SetSize(const Size &rSize)
Definition: viscache.hxx:48
sal_uInt32 nAdvFlags
Definition: viscache.hxx:34
SotClipboardFormatId
#define ASPECT_CONTENT
sal_uIntPtr sal_uLong