diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-05-22 16:33:56 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-05-22 16:33:56 +0000 |
commit | 2dc2d60e18d4ffdca9a0762489c3e14e48bd44c3 (patch) | |
tree | e92fd5085aa08c1d64fe7934cea2b6f07080fc16 /chart2/source/controller/dialogs/dlg_InsertAxis_Grid.cxx | |
parent | 9b50fa3a9694ef4fcf7a49bb5ee6505a41fc5ad2 (diff) |
INTEGRATION: CWS chart2mst3 (1.2.8); FILE MERGED
2007/05/14 20:02:31 bm 1.2.8.8: RESYNC: (1.4-1.5); FILE MERGED
2006/10/18 17:03:23 bm 1.2.8.7: RESYNC: (1.3-1.4); FILE MERGED
2006/04/10 15:03:32 iha 1.2.8.6: api restructure axis, grids, scales and increments
2006/02/20 14:45:44 iha 1.2.8.5: move SchItemPool from controller to view lib -> ChartItemPool
2005/10/07 11:13:26 bm 1.2.8.4: RESYNC: (1.2-1.3); FILE MERGED
2005/09/29 12:33:39 iha 1.2.8.3: #125781# missing helpIds for Insert:Ggrid and Insert:Axis
2004/05/17 17:33:49 iha 1.2.8.2: provide object naming; resource cleanup
2004/04/22 15:00:40 iha 1.2.8.1: #i20344# chabged legend, grid and title resources
Diffstat (limited to 'chart2/source/controller/dialogs/dlg_InsertAxis_Grid.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/dlg_InsertAxis_Grid.cxx | 43 |
1 files changed, 33 insertions, 10 deletions
diff --git a/chart2/source/controller/dialogs/dlg_InsertAxis_Grid.cxx b/chart2/source/controller/dialogs/dlg_InsertAxis_Grid.cxx index b1bc84b3b006..b80741275c5f 100644 --- a/chart2/source/controller/dialogs/dlg_InsertAxis_Grid.cxx +++ b/chart2/source/controller/dialogs/dlg_InsertAxis_Grid.cxx @@ -4,9 +4,9 @@ * * $RCSfile: dlg_InsertAxis_Grid.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2007-04-26 09:34:49 $ + * last change: $Author: vg $ $Date: 2007-05-22 17:33:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -39,9 +39,11 @@ #include "dlg_InsertAxis_Grid.hrc" #include "ResId.hxx" -#include "SchSfxItemIds.hxx" -#include "Strings.hrc" +#include "chartview/ChartSfxItemIds.hxx" #include "SchSlotIds.hxx" +#include "HelpIds.hrc" +#include "NoWarningThisInCTOR.hxx" +#include "ObjectNameProvider.hxx" // header for class SfxBoolItem #ifndef _SFXENUMITEM_HXX @@ -53,7 +55,7 @@ namespace chart { //............................................................................. -InsertMeterDialogData::InsertMeterDialogData() +InsertAxisOrGridDialogData::InsertAxisOrGridDialogData() : aPossibilityList(6) , aExistenceList(6) { @@ -71,7 +73,7 @@ InsertMeterDialogData::InsertMeterDialogData() //============================== SchAxisDlg::SchAxisDlg( Window* pWindow - , const InsertMeterDialogData& rInput, BOOL bAxisDlg ) + , const InsertAxisOrGridDialogData& rInput, BOOL bAxisDlg ) : ModalDialog( pWindow, SchResId( DLG_AXIS_OR_GRID )), @@ -93,17 +95,38 @@ SchAxisDlg::SchAxisDlg( Window* pWindow //rOutAttrs( rInAttrs ) { + FreeResource(); if(!bAxisDlg) { SetHelpId( SID_INSERT_GRIDS ); - SetText( String( SchResId( STR_TITLE_GRID ) ) ); + SetText( ObjectNameProvider::getName(OBJECTTYPE_GRID,true) ); + + aCbPrimaryX.SetHelpId( HID_SCH_CB_XGRID ); + aCbPrimaryY.SetHelpId( HID_SCH_CB_YGRID ); + aCbPrimaryZ.SetHelpId( HID_SCH_CB_ZGRID ); + aCbSecondaryX.SetHelpId( HID_SCH_CB_SECONDARY_XGRID ); + aCbSecondaryY.SetHelpId( HID_SCH_CB_SECONDARY_YGRID ); + aCbSecondaryZ.SetHelpId( HID_SCH_CB_SECONDARY_ZGRID ); aFlPrimary.Hide(); aFlSecondary.Hide(); aFlPrimaryGrid.Show(); aFlSecondaryGrid.Show(); } - FreeResource(); + else + { + SetText( ObjectNameProvider::getName(OBJECTTYPE_AXIS,true) ); + + //todo: remove if secondary z axis are possible somewhere + { + aCbSecondaryZ.Hide(); + + Size aSize( GetSizePixel() ); + //aSize.Height() -= aCbSecondaryZ.GetSizePixel().Height(); + aSize.Height() -= ( aCbSecondaryZ.GetPosPixel().Y() - aCbSecondaryY.GetPosPixel().Y() ); + SetSizePixel(aSize); + } + } aCbPrimaryX.Check( rInput.aExistenceList[0] ); aCbPrimaryY.Check( rInput.aExistenceList[1] ); @@ -124,7 +147,7 @@ SchAxisDlg::~SchAxisDlg() { } -void SchAxisDlg::getResult( InsertMeterDialogData& rOutput ) +void SchAxisDlg::getResult( InsertAxisOrGridDialogData& rOutput ) { rOutput.aExistenceList[0]=aCbPrimaryX.IsChecked(); rOutput.aExistenceList[1]=aCbPrimaryY.IsChecked(); @@ -134,7 +157,7 @@ void SchAxisDlg::getResult( InsertMeterDialogData& rOutput ) rOutput.aExistenceList[5]=aCbSecondaryZ.IsChecked(); } -SchGridDlg::SchGridDlg( Window* pParent, const InsertMeterDialogData& rInput ) +SchGridDlg::SchGridDlg( Window* pParent, const InsertAxisOrGridDialogData& rInput ) : SchAxisDlg( pParent, rInput, false )//rInAttrs, b3D, bNet, bSecondaryX, bSecondaryY, false ) { } |