update credits
[LibreOffice.git] / include / svx / measctrl.hxx
blobdfd1ff7202de81caa0b6b9033e2c9e2cbbcde207
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 #ifndef _SVX_MEASCTRL_HXX
20 #define _SVX_MEASCTRL_HXX
22 #include <vcl/ctrl.hxx>
23 #include "svx/svxdllapi.h"
26 class SfxItemSet;
27 class SdrMeasureObj;
28 class SdrModel;
30 /*************************************************************************
32 |* SvxXMeasurePreview
34 \************************************************************************/
35 class SVX_DLLPUBLIC SvxXMeasurePreview : public Control
37 friend class SvxMeasurePage;
39 private:
40 const SfxItemSet& rAttrs;
41 SdrMeasureObj* pMeasureObj;
42 SdrModel* pModel;
44 public:
45 SvxXMeasurePreview( Window* pParent, const ResId& rResId,
46 const SfxItemSet& rInAttrs );
47 ~SvxXMeasurePreview();
49 virtual void Paint( const Rectangle& rRect );
50 virtual void MouseButtonDown( const MouseEvent& rMEvt );
52 void SetAttributes( const SfxItemSet& rInAttrs );
54 virtual void DataChanged( const DataChangedEvent& rDCEvt );
57 #endif
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */