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 #pragma once
21 
23 #include <vcl/font.hxx>
24 #include <vcl/mapmod.hxx>
25 
27 {
28 public:
29  ScOverlayDashedBorder(const ::basegfx::B2DRange& rRange, const Color& rColor);
30  virtual ~ScOverlayDashedBorder() override;
31 
32  virtual void Trigger(sal_uInt32 nTime) override;
33 
34  virtual void stripeDefinitionHasChanged() override;
35 
36 protected:
38 
39 private:
41  bool mbToggle;
42 };
43 
45 {
46 public:
47  ScOverlayHint(const OUString& rTit, const OUString& rMsg, const Color& rColor, const vcl::Font& rFont);
48  Size GetSizePixel() const;
49  void SetPos(const Point& rPos, const MapMode& rMode);
50 
51 public:
53 
54 private:
55  drawinglayer::primitive2d::Primitive2DContainer createOverlaySequence(sal_Int32 nLeft, sal_Int32 nTop, const MapMode &rMapMode, basegfx::B2DRange &rRange) const;
56 
57  const OUString m_aTitle;
58  const OUString m_aMessage;
61  sal_Int32 m_nLeft;
62  sal_Int32 m_nTop;
63 };
64 
65 /* 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:174
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:51
sal_Int32 m_nTop
virtual ~ScOverlayDashedBorder() override
virtual void stripeDefinitionHasChanged() override
const OUString m_aTitle
Size GetSizePixel() const
Definition: hintwin.cxx:167
const OUString m_aMessage
virtual drawinglayer::primitive2d::Primitive2DContainer createOverlayObjectPrimitive2DSequence() override
Definition: hintwin.cxx:161
ScOverlayHint(const OUString &rTit, const OUString &rMsg, const Color &rColor, const vcl::Font &rFont)
Definition: hintwin.cxx:40
sal_Int32 m_nLeft
MapMode m_aMapMode