LibreOffice Module reportdesign (master) 1
StartMarker.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#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_STARTMARKER_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_STARTMARKER_HXX
21
22#include <osl/interlck.h>
23#include <svtools/ruler.hxx>
24#include "ColorListener.hxx"
25#include <vcl/image.hxx>
26
27namespace rptui
28{
29 class OSectionWindow;
31 {
32
34 OUString m_aText;
41 static oslInterlockedCount s_nImageRefCount;
42
44
45 void changeImage();
47
48 virtual void ImplInitSettings() override;
49 virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
50
51 OStartMarker(OStartMarker const &) = delete;
52 void operator =(OStartMarker const &) = delete;
53 public:
54 OStartMarker(OSectionWindow* _pParent,const OUString& _sColorEntry);
55 virtual ~OStartMarker() override;
56 virtual void dispose() override;
57
58 // SfxListener
59 virtual void Notify(SfxBroadcaster & rBc, SfxHint const & rHint) override;
60 // Window overrides
61 virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
62 virtual void MouseButtonUp(const MouseEvent& rMEvt) override;
63 virtual void Resize() override;
64 virtual void RequestHelp(const HelpEvent& rHEvt) override;
65
66 void setTitle(const OUString& _sTitle);
67 sal_Int32 getMinHeight() const;
68
71 void showRuler(bool _bShow);
72
73 virtual void setCollapsed(bool _bCollapsed) override;
74
77 void zoom(const Fraction& _aZoom);
78 };
79}
80#endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_STARTMARKER_HXX
81
82/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
VclPtr< Ruler > m_aVRuler
Definition: StartMarker.hxx:33
void setTitle(const OUString &_sTitle)
virtual void Resize() override
void operator=(OStartMarker const &)=delete
bool m_bShowRuler
When 0 all static images will be destroyed.
Definition: StartMarker.hxx:43
virtual void Notify(SfxBroadcaster &rBc, SfxHint const &rHint) override
static oslInterlockedCount s_nImageRefCount
Definition: StartMarker.hxx:41
virtual void RequestHelp(const HelpEvent &rHEvt) override
virtual void ApplySettings(vcl::RenderContext &rRenderContext) override
OStartMarker(OStartMarker const &)=delete
tools::Rectangle m_aTextRect
Definition: StartMarker.hxx:35
virtual void setCollapsed(bool _bCollapsed) override
collapse or expand
virtual ~OStartMarker() override
Definition: StartMarker.cxx:71
void showRuler(bool _bShow)
shows or hides the ruler.
sal_Int32 getMinHeight() const
Definition: StartMarker.cxx:90
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
static Image * s_pDefExpanded
Definition: StartMarker.hxx:40
virtual void ImplInitSettings() override
static Image * s_pDefCollapsed
Definition: StartMarker.hxx:39
VclPtr< OSectionWindow > m_pParent
Definition: StartMarker.hxx:38
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
Definition: StartMarker.cxx:97
virtual void dispose() override
Definition: StartMarker.cxx:76
void zoom(const Fraction &_aZoom)
zoom the ruler and view windows
tools::Rectangle m_aImageRect
Definition: StartMarker.hxx:37