LibreOffice Module sc (master)  1
overlayobject.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_SC_SOURCE_UI_INC_OVERLAYOBJECT_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_OVERLAYOBJECT_HXX
22 
24 #include <vcl/font.hxx>
25 #include <vcl/mapmod.hxx>
26 
28 {
29 public:
30  ScOverlayDashedBorder(const ::basegfx::B2DRange& rRange, const Color& rColor);
31  virtual ~ScOverlayDashedBorder() override;
32 
33  virtual void Trigger(sal_uInt32 nTime) override;
34 
35  virtual void stripeDefinitionHasChanged() override;
36 
37 protected:
39 
40 private:
42  bool mbToggle;
43 };
44 
46 {
47 public:
48  ScOverlayHint(const OUString& rTit, const OUString& rMsg, const Color& rColor, const vcl::Font& rFont);
49  Size GetSizePixel() const;
50  void SetPos(const Point& rPos, const MapMode& rMode);
51 
52 public:
54 
55 private:
56  drawinglayer::primitive2d::Primitive2DContainer createOverlaySequence(sal_Int32 nLeft, sal_Int32 nTop, const MapMode &rMapMode, basegfx::B2DRange &rRange) const;
57 
58  const OUString m_aTitle;
59  const OUString m_aMessage;
62  sal_Int32 m_nLeft;
63  sal_Int32 m_nTop;
64 };
65 
66 #endif
67 
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::basegfx::B2DRange maRange
virtual drawinglayer::primitive2d::Primitive2DContainer createOverlayObjectPrimitive2DSequence() override
const vcl::Font m_aTextFont
ScOverlayDashedBorder(const ::basegfx::B2DRange &rRange, const Color &rColor)
void SetPos(const Point &rPos, const MapMode &rMode)
Definition: hintwin.cxx:162
virtual void Trigger(sal_uInt32 nTime) override
drawinglayer::primitive2d::Primitive2DContainer createOverlaySequence(sal_Int32 nLeft, sal_Int32 nTop, const MapMode &rMapMode, basegfx::B2DRange &rRange) const
Definition: hintwin.cxx:50
sal_Int32 m_nTop
virtual ~ScOverlayDashedBorder() override
virtual void stripeDefinitionHasChanged() override
const OUString m_aTitle
Size GetSizePixel() const
Definition: hintwin.cxx:155
const OUString m_aMessage
virtual drawinglayer::primitive2d::Primitive2DContainer createOverlayObjectPrimitive2DSequence() override
Definition: hintwin.cxx:149
ScOverlayHint(const OUString &rTit, const OUString &rMsg, const Color &rColor, const vcl::Font &rFont)
Definition: hintwin.cxx:39
sal_Int32 m_nLeft
MapMode m_aMapMode