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{
28public:
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
36protected:
38
39private:
42};
43
45{
46public:
47 ScOverlayHint(OUString aTit, const OUString& rMsg, const Color& rColor, vcl::Font aFont);
48 Size GetSizePixel() const;
49 void SetPos(const Point& rPos, const MapMode& rMode);
50
51public:
53
54private:
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: */
ScOverlayDashedBorder(const ::basegfx::B2DRange &rRange, const Color &rColor)
virtual void Trigger(sal_uInt32 nTime) override
virtual void stripeDefinitionHasChanged() override
virtual ~ScOverlayDashedBorder() override
virtual drawinglayer::primitive2d::Primitive2DContainer createOverlayObjectPrimitive2DSequence() override
::basegfx::B2DRange maRange
void SetPos(const Point &rPos, const MapMode &rMode)
Definition: hintwin.cxx:175
Size GetSizePixel() const
Definition: hintwin.cxx:168
virtual drawinglayer::primitive2d::Primitive2DContainer createOverlayObjectPrimitive2DSequence() override
Definition: hintwin.cxx:162
const OUString m_aMessage
const OUString m_aTitle
ScOverlayHint(OUString aTit, const OUString &rMsg, const Color &rColor, vcl::Font aFont)
Definition: hintwin.cxx:41
sal_Int32 m_nTop
drawinglayer::primitive2d::Primitive2DContainer createOverlaySequence(sal_Int32 nLeft, sal_Int32 nTop, const MapMode &rMapMode, basegfx::B2DRange &rRange) const
Definition: hintwin.cxx:52
MapMode m_aMapMode
const vcl::Font m_aTextFont
sal_Int32 m_nLeft