LibreOffice Module svl (master) 1
imageitm.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
20#ifndef INCLUDED_SVL_IMAGEITM_HXX
21#define INCLUDED_SVL_IMAGEITM_HXX
22
23#include <svl/svldllapi.h>
24#include <svl/intitem.hxx>
25#include <tools/degree.hxx>
26
27struct SfxImageItem_Impl;
29{
30public:
31 static SfxPoolItem* CreateDefault();
32 SfxImageItem( sal_uInt16 nWhich = 0 );
33 SfxImageItem( const SfxImageItem& );
34 virtual ~SfxImageItem() override;
35
36 virtual SfxImageItem* Clone( SfxItemPool* pPool = nullptr ) const override;
37 virtual bool operator==( const SfxPoolItem& ) const override;
38 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
39 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
40
41 void SetRotation( Degree10 nValue ) { mnAngle = nValue; }
42 Degree10 GetRotation() const { return mnAngle; }
43 void SetMirrored( bool bSet ) { mbMirrored = bSet; }
44 bool IsMirrored() const { return mbMirrored; }
45
46private:
47 OUString maURL;
50};
51
52#endif // _SFX_IMAGEITM_HXX
53
54/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Degree10 GetRotation() const
Definition: imageitm.hxx:42
Degree10 mnAngle
Definition: imageitm.hxx:48
bool mbMirrored
Definition: imageitm.hxx:49
void SetRotation(Degree10 nValue)
Definition: imageitm.hxx:41
bool IsMirrored() const
Definition: imageitm.hxx:44
OUString maURL
Definition: imageitm.hxx:47
void SetMirrored(bool bSet)
Definition: imageitm.hxx:43
static SfxPoolItem * CreateDefault()
Definition: intitem.cxx:37
virtual SfxInt16Item * Clone(SfxItemPool *=nullptr) const override
Definition: intitem.cxx:91
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: intitem.cxx:78
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: intitem.cxx:70
virtual bool operator==(const SfxPoolItem &rItem) const override
Definition: intitem.cxx:43
Base class for providers of defaults of SfxPoolItems.
Definition: itempool.hxx:51
sal_Int16 nValue
#define SVL_DLLPUBLIC
Definition: svldllapi.h:28
sal_Int32 mnAngle
unsigned char sal_uInt8