/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
SfxStatusBarControl::SfxStatusBarControl
(
sal_uInt16 nSlotID, /* Slot-Id which is connected to this instance. If a Slot-Id is set to != 0 at registration it will always be set there.
*/
sal_uInt16 nCtrlID, /* ID of this controller in the status bar */
StatusBar& rBar /* Reference to the StatusBar,for which
this Control was created. */
)
/* [Description]
Constructor of the SfxStatusBarControl Class. The Subclasses are created at the Factory if necessary.
Instances of this base class are created for all StatusBar-fields for which no specific ones have been registered.
*/
// old sfx2 interface void SfxStatusBarControl::StateChangedAtStatusBarControl
(
sal_uInt16 nSID,
SfxItemState eState, const SfxPoolItem* pState /* Pointer to SfxPoolItem, is only valid within this Method call. This can be a Null-Pointer, a Pointer to SfxVoidItem or of this Type found registered by the Subclass of SfxStatusBarControl.
*/
)
/* [Description]
The base implementation includes items of type SfxStringItem where the text is entered in the status row field and SfxVoidItem, where the field is emptied. The base implementation should not be called in overriding methods.
*/
{
DBG_ASSERT( pBar != nullptr, "setting state to dangling StatusBar" );
This virtual method forwards the Event MouseButtonDown() of the StatusBar if the mouse position is within the range of the items, or if the mouse was captured by <SfxStatusBarControl::CaptureMouse()>
The default implementation is empty and returns FALSE.
[Return value]
sal_Bool TRUE The event has been processed and is not intended to be forwarded to StatusBar
FALSE The event was not processed and is to be be forwarded to StatusBar
*/
This virtual method forwards the Event MouseMove() of the StatusBar if the mouse position is within the range of the items, or if the mouse was captured by <SfxStatusBarControl::CaptureMouse()>
The default implementation is empty and returns FALSE.
[Return value]
sal_Bool TRUE The event has been processed and is not intended to be forwarded to StatusBar
FALSE The event was not processed and is to be be forwarded to StatusBar
*/
This virtual method forwards the Event MouseButtonUp() of the StatusBar if the mouse position is within the range of the items, or if the mouse was captured by <SfxStatusBarControl::CaptureMouse()>
The default implementation is empty and returns FALSE.
[Return value]
sal_Bool TRUE The event has been processed and is not intended to be forwarded to StatusBar
FALSE The event was not processed and is to be be forwarded to StatusBar
*/
void SfxStatusBarControl::Paint
( const UserDrawEvent& /* Reference to an UserDrawEvent */
)
/* [Description]
This virtual method is called to paint the contents if the field at hand is marked with StatusBarItemBits::UserDraw. The output must be obtained within the Rectangle of rUDEvt.GetRect() by the OutputDevice given by rUDEvt.GetDevice().
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.