bump product version to 6.3.0.0.beta1
[LibreOffice.git] / reportdesign / source / ui / inc / StartMarker.hxx
blob2962553034b97183063cd9130578c5a41ad8ced2
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 INCLUDED_REPORTDESIGN_SOURCE_UI_INC_STARTMARKER_HXX
20 #define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_STARTMARKER_HXX
22 #include <osl/interlck.h>
23 #include <svtools/ruler.hxx>
24 #include "ColorListener.hxx"
25 #include <vcl/fixed.hxx>
28 namespace rptui
30 class OSectionWindow;
31 class OStartMarker : public OColorListener
34 VclPtr<Ruler> m_aVRuler;
35 VclPtr<FixedText> m_aText;
36 VclPtr<FixedImage> m_aImage;
37 VclPtr<OSectionWindow> m_pParent;
38 static Image* s_pDefCollapsed;
39 static Image* s_pDefExpanded;
40 static oslInterlockedCount s_nImageRefCount; /// When 0 all static images will be destroyed
42 bool m_bShowRuler;
44 void changeImage();
45 void initDefaultNodeImages();
46 void setColor();
48 virtual void ImplInitSettings() override;
49 virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
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;
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;
66 void setTitle(const OUString& _sTitle);
67 sal_Int32 getMinHeight() const;
69 /** shows or hides the ruler.
71 void showRuler(bool _bShow);
73 virtual void setCollapsed(bool _bCollapsed) override;
75 /** zoom the ruler and view windows
77 void zoom(const Fraction& _aZoom);
80 #endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_STARTMARKER_HXX
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */