2010-10-12 15:59:00 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-17 12:30:48 +01:00
|
|
|
/*
|
|
|
|
|
* 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 .
|
|
|
|
|
*/
|
2006-09-17 11:58:36 +00:00
|
|
|
|
2003-10-06 08:58:36 +00:00
|
|
|
#include "tp_AxisLabel.hxx"
|
|
|
|
|
|
2017-10-23 22:44:16 +02:00
|
|
|
#include <chartview/ChartSfxItemIds.hxx>
|
2018-10-08 02:29:37 +02:00
|
|
|
#include <TextDirectionListBox.hxx>
|
2003-10-06 08:58:36 +00:00
|
|
|
|
|
|
|
|
#include <svx/chrtitem.hxx>
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/intitem.hxx>
|
2010-01-08 18:32:51 +01:00
|
|
|
#include <editeng/eeitem.hxx>
|
|
|
|
|
#include <editeng/frmdiritem.hxx>
|
2003-10-06 08:58:36 +00:00
|
|
|
|
|
|
|
|
namespace chart
|
|
|
|
|
{
|
|
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
SchAxisLabelTabPage::SchAxisLabelTabPage(TabPageParent pParent, const SfxItemSet& rInAttrs)
|
|
|
|
|
: SfxTabPage(pParent, "modules/schart/ui/tp_axisLabel.ui", "AxisLabelTabPage", &rInAttrs)
|
|
|
|
|
, m_bShowStaggeringControls( true )
|
|
|
|
|
, m_nInitialDegrees( 0 )
|
|
|
|
|
, m_bHasInitialDegrees( true )
|
|
|
|
|
, m_bInitialStacking( false )
|
|
|
|
|
, m_bHasInitialStacking( true )
|
|
|
|
|
, m_bComplexCategories( false )
|
|
|
|
|
, m_xCbShowDescription(m_xBuilder->weld_check_button("showlabelsCB"))
|
|
|
|
|
, m_xFlOrder(m_xBuilder->weld_label("orderL"))
|
|
|
|
|
, m_xRbSideBySide(m_xBuilder->weld_radio_button("tile"))
|
|
|
|
|
, m_xRbUpDown(m_xBuilder->weld_radio_button("odd"))
|
|
|
|
|
, m_xRbDownUp(m_xBuilder->weld_radio_button("even"))
|
|
|
|
|
, m_xRbAuto(m_xBuilder->weld_radio_button("auto"))
|
|
|
|
|
, m_xFlTextFlow(m_xBuilder->weld_label("textflowL"))
|
|
|
|
|
, m_xCbTextOverlap(m_xBuilder->weld_check_button("overlapCB"))
|
|
|
|
|
, m_xCbTextBreak(m_xBuilder->weld_check_button("breakCB"))
|
|
|
|
|
, m_xFtABCD(m_xBuilder->weld_label("labelABCD"))
|
|
|
|
|
, m_xFlOrient(m_xBuilder->weld_label("labelTextOrient"))
|
|
|
|
|
, m_xFtRotate(m_xBuilder->weld_label("degreeL"))
|
|
|
|
|
, m_xNfRotate(m_xBuilder->weld_spin_button("OrientDegree"))
|
|
|
|
|
, m_xCbStacked(m_xBuilder->weld_check_button("stackedCB"))
|
|
|
|
|
, m_xFtTextDirection(m_xBuilder->weld_label("textdirL"))
|
2018-10-13 21:26:16 +01:00
|
|
|
, m_xLbTextDirection(new TextDirectionListBox(m_xBuilder->weld_combo_box("textdirLB")))
|
2018-10-13 20:27:41 +01:00
|
|
|
, m_xCtrlDial(new weld::CustomWeld(*m_xBuilder, "dialCtrl", m_aCtrlDial))
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
m_aCtrlDial.SetText(m_xFtABCD->get_label());
|
|
|
|
|
m_aCtrlDial.SetLinkedField(m_xNfRotate.get());
|
|
|
|
|
m_xCtrlDial->set_sensitive(true);
|
|
|
|
|
m_xNfRotate->set_sensitive(true);
|
|
|
|
|
m_xCbStacked->set_sensitive(true);
|
|
|
|
|
m_xFtRotate->set_sensitive(true);
|
|
|
|
|
|
|
|
|
|
m_xCbStacked->connect_toggled(LINK(this, SchAxisLabelTabPage, StackedToggleHdl));
|
|
|
|
|
m_xCbShowDescription->connect_toggled(LINK(this, SchAxisLabelTabPage, ToggleShowLabel));
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SchAxisLabelTabPage::~SchAxisLabelTabPage()
|
2015-01-14 16:16:32 +02:00
|
|
|
{
|
2015-03-10 09:07:06 +02:00
|
|
|
disposeOnce();
|
2015-01-14 16:16:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SchAxisLabelTabPage::dispose()
|
|
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCtrlDial.reset();
|
|
|
|
|
m_xLbTextDirection.reset();
|
2015-01-14 16:16:32 +02:00
|
|
|
SfxTabPage::dispose();
|
|
|
|
|
}
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
VclPtr<SfxTabPage> SchAxisLabelTabPage::Create(TabPageParent pParent, const SfxItemSet* rAttrs)
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
return VclPtr<SchAxisLabelTabPage>::Create(pParent, *rAttrs);
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
|
2014-06-10 17:23:12 +02:00
|
|
|
bool SchAxisLabelTabPage::FillItemSet( SfxItemSet* rOutAttrs )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2004-08-20 07:46:38 +00:00
|
|
|
bool bStacked = false;
|
2018-10-13 20:27:41 +01:00
|
|
|
if (m_xCbStacked->get_state() != TRISTATE_INDET )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
bStacked = m_xCbStacked->get_state() == TRISTATE_TRUE;
|
2004-08-20 07:46:38 +00:00
|
|
|
if( !m_bHasInitialStacking || (bStacked != m_bInitialStacking) )
|
2014-06-10 17:23:12 +02:00
|
|
|
rOutAttrs->Put( SfxBoolItem( SCHATTR_TEXT_STACKED, bStacked ) );
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
if( m_aCtrlDial.HasRotation() )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
sal_Int32 nDegrees = bStacked ? 0 : m_aCtrlDial.GetRotation();
|
2004-08-20 07:46:38 +00:00
|
|
|
if( !m_bHasInitialDegrees || (nDegrees != m_nInitialDegrees) )
|
2014-06-10 17:23:12 +02:00
|
|
|
rOutAttrs->Put( SfxInt32Item( SCHATTR_TEXT_DEGREES, nDegrees ) );
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
|
2004-01-26 08:13:31 +00:00
|
|
|
if( m_bShowStaggeringControls )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2016-08-24 13:30:27 +02:00
|
|
|
SvxChartTextOrder eOrder = SvxChartTextOrder::SideBySide;
|
2003-10-06 08:58:36 +00:00
|
|
|
bool bRadioButtonChecked = true;
|
|
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
if( m_xRbUpDown->get_active())
|
2016-08-24 13:30:27 +02:00
|
|
|
eOrder = SvxChartTextOrder::UpDown;
|
2018-10-13 20:27:41 +01:00
|
|
|
else if( m_xRbDownUp->get_active())
|
2016-08-24 13:30:27 +02:00
|
|
|
eOrder = SvxChartTextOrder::DownUp;
|
2018-10-13 20:27:41 +01:00
|
|
|
else if( m_xRbAuto->get_active())
|
2016-08-24 13:30:27 +02:00
|
|
|
eOrder = SvxChartTextOrder::Auto;
|
2018-10-13 20:27:41 +01:00
|
|
|
else if( m_xRbSideBySide->get_active())
|
2016-08-24 13:30:27 +02:00
|
|
|
eOrder = SvxChartTextOrder::SideBySide;
|
2003-10-06 08:58:36 +00:00
|
|
|
else
|
|
|
|
|
bRadioButtonChecked = false;
|
|
|
|
|
|
|
|
|
|
if( bRadioButtonChecked )
|
2014-06-10 17:23:12 +02:00
|
|
|
rOutAttrs->Put( SvxChartTextOrderItem( eOrder, SCHATTR_AXIS_LABEL_ORDER ));
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
if( m_xCbTextOverlap->get_state() != TRISTATE_INDET )
|
|
|
|
|
rOutAttrs->Put( SfxBoolItem( SCHATTR_AXIS_LABEL_OVERLAP, m_xCbTextOverlap->get_active() ) );
|
|
|
|
|
if( m_xCbTextBreak->get_state() != TRISTATE_INDET )
|
|
|
|
|
rOutAttrs->Put( SfxBoolItem( SCHATTR_AXIS_LABEL_BREAK, m_xCbTextBreak->get_active() ) );
|
|
|
|
|
if( m_xCbShowDescription->get_state() != TRISTATE_INDET )
|
|
|
|
|
rOutAttrs->Put( SfxBoolItem( SCHATTR_AXIS_SHOWDESCR, m_xCbShowDescription->get_active() ) );
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
if (m_xLbTextDirection->get_active() != -1)
|
|
|
|
|
rOutAttrs->Put( SvxFrameDirectionItem( m_xLbTextDirection->get_active_id(), EE_PARA_WRITINGDIR ) );
|
2008-11-26 15:19:48 +00:00
|
|
|
|
2014-03-26 15:34:49 +02:00
|
|
|
return true;
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
|
2014-06-11 10:35:24 +02:00
|
|
|
void SchAxisLabelTabPage::Reset( const SfxItemSet* rInAttrs )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2019-02-08 09:29:48 +02:00
|
|
|
const SfxPoolItem* pPoolItem = nullptr;
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2012-12-15 18:28:02 +01:00
|
|
|
// show description
|
2014-06-11 10:35:24 +02:00
|
|
|
SfxItemState aState = rInAttrs->GetItemState( SCHATTR_AXIS_SHOWDESCR, false, &pPoolItem );
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState == SfxItemState::DONTCARE )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbShowDescription->set_state( TRISTATE_INDET );
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bCheck = false;
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState == SfxItemState::SET )
|
2003-10-06 08:58:36 +00:00
|
|
|
bCheck = static_cast< const SfxBoolItem * >( pPoolItem )->GetValue();
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbShowDescription->set_active( bCheck );
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState != SfxItemState::DEFAULT && aState != SfxItemState::SET )
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbShowDescription->hide();
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Rotation as orient item or in degrees ----------
|
|
|
|
|
|
|
|
|
|
// check new degree item
|
2004-08-20 07:46:38 +00:00
|
|
|
m_nInitialDegrees = 0;
|
2014-06-11 10:35:24 +02:00
|
|
|
aState = rInAttrs->GetItemState( SCHATTR_TEXT_DEGREES, false, &pPoolItem );
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState == SfxItemState::SET )
|
2004-08-20 07:46:38 +00:00
|
|
|
m_nInitialDegrees = static_cast< const SfxInt32Item * >( pPoolItem )->GetValue();
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2014-09-10 17:53:41 +02:00
|
|
|
m_bHasInitialDegrees = aState != SfxItemState::DONTCARE;
|
2004-08-20 07:46:38 +00:00
|
|
|
if( m_bHasInitialDegrees )
|
2018-10-13 20:27:41 +01:00
|
|
|
m_aCtrlDial.SetRotation( m_nInitialDegrees );
|
2004-08-20 07:46:38 +00:00
|
|
|
else
|
2018-10-13 20:27:41 +01:00
|
|
|
m_aCtrlDial.SetNoRotation();
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2004-08-20 07:46:38 +00:00
|
|
|
// check stacked item
|
|
|
|
|
m_bInitialStacking = false;
|
2014-06-11 10:35:24 +02:00
|
|
|
aState = rInAttrs->GetItemState( SCHATTR_TEXT_STACKED, false, &pPoolItem );
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState == SfxItemState::SET )
|
2004-08-20 07:46:38 +00:00
|
|
|
m_bInitialStacking = static_cast< const SfxBoolItem * >( pPoolItem )->GetValue();
|
|
|
|
|
|
2014-09-10 17:53:41 +02:00
|
|
|
m_bHasInitialStacking = aState != SfxItemState::DONTCARE;
|
2004-08-20 07:46:38 +00:00
|
|
|
if( m_bHasInitialDegrees )
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbStacked->set_state(m_bInitialStacking ? TRISTATE_TRUE : TRISTATE_FALSE);
|
2004-08-20 07:46:38 +00:00
|
|
|
else
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbStacked->set_state(TRISTATE_INDET);
|
|
|
|
|
StackedToggleHdl(*m_xCbStacked);
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2014-09-10 17:53:41 +02:00
|
|
|
if( rInAttrs->GetItemState( EE_PARA_WRITINGDIR, true, &pPoolItem ) == SfxItemState::SET )
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xLbTextDirection->set_active_id( static_cast<const SvxFrameDirectionItem*>(pPoolItem)->GetValue() );
|
2008-11-26 15:19:48 +00:00
|
|
|
|
2003-10-06 08:58:36 +00:00
|
|
|
// Text overlap ----------
|
2014-06-11 10:35:24 +02:00
|
|
|
aState = rInAttrs->GetItemState( SCHATTR_AXIS_LABEL_OVERLAP, false, &pPoolItem );
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState == SfxItemState::DONTCARE )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbTextOverlap->set_state( TRISTATE_INDET );
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bCheck = false;
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState == SfxItemState::SET )
|
2003-10-06 08:58:36 +00:00
|
|
|
bCheck = static_cast< const SfxBoolItem * >( pPoolItem )->GetValue();
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbTextOverlap->set_active( bCheck );
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState != SfxItemState::DEFAULT && aState != SfxItemState::SET )
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbTextOverlap->hide();
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// text break ----------
|
2014-06-11 10:35:24 +02:00
|
|
|
aState = rInAttrs->GetItemState( SCHATTR_AXIS_LABEL_BREAK, false, &pPoolItem );
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState == SfxItemState::DONTCARE )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbTextBreak->set_state( TRISTATE_INDET );
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2014-04-15 15:17:13 +02:00
|
|
|
bool bCheck = false;
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState == SfxItemState::SET )
|
2003-10-06 08:58:36 +00:00
|
|
|
bCheck = static_cast< const SfxBoolItem * >( pPoolItem )->GetValue();
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbTextBreak->set_active( bCheck );
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState != SfxItemState::DEFAULT && aState != SfxItemState::SET )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xCbTextBreak->hide();
|
|
|
|
|
if( ! m_xCbTextOverlap->get_visible() )
|
|
|
|
|
m_xFlTextFlow->hide();
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// text order ----------
|
2004-01-26 08:13:31 +00:00
|
|
|
if( m_bShowStaggeringControls )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2014-06-11 10:35:24 +02:00
|
|
|
aState = rInAttrs->GetItemState( SCHATTR_AXIS_LABEL_ORDER, false, &pPoolItem );
|
2014-09-10 17:53:41 +02:00
|
|
|
if( aState == SfxItemState::SET )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
|
|
|
|
SvxChartTextOrder eOrder = static_cast< const SvxChartTextOrderItem * >( pPoolItem )->GetValue();
|
|
|
|
|
|
|
|
|
|
switch( eOrder )
|
|
|
|
|
{
|
2016-08-24 13:30:27 +02:00
|
|
|
case SvxChartTextOrder::SideBySide:
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xRbSideBySide->set_active(true);
|
2003-10-06 08:58:36 +00:00
|
|
|
break;
|
2016-08-24 13:30:27 +02:00
|
|
|
case SvxChartTextOrder::UpDown:
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xRbUpDown->set_active(true);
|
2003-10-06 08:58:36 +00:00
|
|
|
break;
|
2016-08-24 13:30:27 +02:00
|
|
|
case SvxChartTextOrder::DownUp:
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xRbDownUp->set_active(true);
|
2003-10-06 08:58:36 +00:00
|
|
|
break;
|
2016-08-24 13:30:27 +02:00
|
|
|
case SvxChartTextOrder::Auto:
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xRbAuto->set_active(true);
|
2003-10-06 08:58:36 +00:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
ToggleShowLabel(*m_xCbShowDescription);
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
|
2014-04-15 15:17:13 +02:00
|
|
|
void SchAxisLabelTabPage::ShowStaggeringControls( bool bShowStaggeringControls )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2004-01-26 08:13:31 +00:00
|
|
|
m_bShowStaggeringControls = bShowStaggeringControls;
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2004-01-26 08:13:31 +00:00
|
|
|
if( !m_bShowStaggeringControls )
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xRbSideBySide->hide();
|
|
|
|
|
m_xRbUpDown->hide();
|
|
|
|
|
m_xRbDownUp->hide();
|
|
|
|
|
m_xRbAuto->hide();
|
|
|
|
|
m_xFlOrder->hide();
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-05 13:25:12 +01:00
|
|
|
void SchAxisLabelTabPage::SetComplexCategories( bool bComplexCategories )
|
|
|
|
|
{
|
|
|
|
|
m_bComplexCategories = bComplexCategories;
|
|
|
|
|
}
|
|
|
|
|
|
2003-10-06 08:58:36 +00:00
|
|
|
// event handling routines
|
|
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
IMPL_LINK_NOARG(SchAxisLabelTabPage, StackedToggleHdl, weld::ToggleButton&, void)
|
|
|
|
|
{
|
|
|
|
|
bool bActive = m_xCbStacked->get_active() && m_xCbStacked->get_sensitive();
|
2019-01-05 00:16:06 +01:00
|
|
|
m_xNfRotate->set_sensitive(!bActive);
|
|
|
|
|
m_xCtrlDial->set_sensitive(!bActive);
|
2018-10-13 20:27:41 +01:00
|
|
|
m_aCtrlDial.StyleUpdated();
|
2019-01-05 00:16:06 +01:00
|
|
|
m_xFtRotate->set_sensitive(!bActive);
|
2018-10-13 20:27:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IMPL_LINK_NOARG(SchAxisLabelTabPage, ToggleShowLabel, weld::ToggleButton&, void)
|
2003-10-06 08:58:36 +00:00
|
|
|
{
|
2018-10-13 20:27:41 +01:00
|
|
|
bool bEnable = ( m_xCbShowDescription->get_state() != TRISTATE_FALSE );
|
|
|
|
|
|
|
|
|
|
m_xCbStacked->set_sensitive(bEnable);
|
|
|
|
|
StackedToggleHdl(*m_xCbStacked);
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xFlOrder->set_sensitive( bEnable );
|
|
|
|
|
m_xRbSideBySide->set_sensitive( bEnable );
|
|
|
|
|
m_xRbUpDown->set_sensitive( bEnable );
|
|
|
|
|
m_xRbDownUp->set_sensitive( bEnable );
|
|
|
|
|
m_xRbAuto->set_sensitive( bEnable );
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xFlTextFlow->set_sensitive( bEnable );
|
|
|
|
|
m_xCbTextOverlap->set_sensitive( bEnable && !m_bComplexCategories );
|
|
|
|
|
m_xCbTextBreak->set_sensitive( bEnable );
|
2003-10-06 08:58:36 +00:00
|
|
|
|
2018-10-13 20:27:41 +01:00
|
|
|
m_xFtTextDirection->set_sensitive( bEnable );
|
|
|
|
|
m_xLbTextDirection->set_sensitive( bEnable );
|
2003-10-06 08:58:36 +00:00
|
|
|
}
|
|
|
|
|
} //namespace chart
|
2010-10-12 15:59:00 +02:00
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|