From e8c8f02ffd6988ea72141992b1f26f9c5d918af5 Mon Sep 17 00:00:00 2001 From: Manal Alhassoun Date: Sun, 29 Sep 2013 10:52:53 +0300 Subject: Convert edit field dialog to widget UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Conflicts: sd/AllLangResTarget_sd.mk Change-Id: I7f60b1ac8a59e5e4a460fd26754dd83a7835ed45 Reviewed-on: https://gerrit.libreoffice.org/6073 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sd/UIConfig_simpress.mk | 1 + sd/source/ui/dlg/dlgfield.cxx | 128 +++++++++---------- sd/source/ui/dlg/dlgfield.src | 104 --------------- sd/source/ui/inc/dlgfield.hrc | 31 ----- sd/source/ui/inc/dlgfield.hxx | 14 +-- sd/uiconfig/simpress/ui/dlgfield.ui | 244 ++++++++++++++++++++++++++++++++++++ 6 files changed, 309 insertions(+), 213 deletions(-) create mode 100644 sd/uiconfig/simpress/ui/dlgfield.ui diff --git a/sd/UIConfig_simpress.mk b/sd/UIConfig_simpress.mk index d67bf3ac0230..e13f035de9f2 100644 --- a/sd/UIConfig_simpress.mk +++ b/sd/UIConfig_simpress.mk @@ -79,6 +79,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/simpress,\ sd/uiconfig/simpress/ui/customanimationtexttab \ sd/uiconfig/simpress/ui/customslideshows \ sd/uiconfig/simpress/ui/definecustomslideshow \ + sd/uiconfig/simpress/ui/dlgfield \ sd/uiconfig/simpress/ui/headerfooterdialog \ sd/uiconfig/simpress/ui/headerfootertab \ sd/uiconfig/simpress/ui/masterlayoutdlg \ diff --git a/sd/source/ui/dlg/dlgfield.cxx b/sd/source/ui/dlg/dlgfield.cxx index 3281d364c35f..3eb2cd1690c9 100644 --- a/sd/source/ui/dlg/dlgfield.cxx +++ b/sd/source/ui/dlg/dlgfield.cxx @@ -28,7 +28,6 @@ #include #include "strings.hrc" -#include "dlgfield.hrc" #include "sdattr.hxx" #include "sdresid.hxx" #include "sdmod.hxx" @@ -40,24 +39,17 @@ * dialog to edit field commands */ SdModifyFieldDlg::SdModifyFieldDlg( Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet ) : - ModalDialog ( pWindow, SdResId( DLG_FIELD_MODIFY ) ), - aGrpType ( this, SdResId( GRP_TYPE ) ), - aRbtFix ( this, SdResId( RBT_FIX ) ), - aRbtVar ( this, SdResId( RBT_VAR ) ), - maFtLanguage( this, SdResId( FT_LANGUAGE ) ), - maLbLanguage( this, SdResId( LB_LANGUAGE ) ), - aFtFormat ( this, SdResId( FT_FORMAT ) ), - aLbFormat ( this, SdResId( LB_FORMAT ) ), - aBtnOK ( this, SdResId( BTN_OK ) ), - aBtnCancel ( this, SdResId( BTN_CANCEL ) ), - aBtnHelp ( this, SdResId( BTN_HELP ) ), + ModalDialog ( pWindow, "EditFieldsDialog", "modules/simpress/ui/dlgfield.ui" ), maInputSet ( rSet ), pField ( pInField ) { - FreeResource(); + get(m_pRbtFix, "fixedRB"); + get(m_pRbtVar, "varRB"); + get(m_pLbLanguage, "languageLB"); + get(m_pLbFormat, "formatLB"); - maLbLanguage.SetLanguageList( LANG_LIST_ALL|LANG_LIST_ONLY_KNOWN, false ); - maLbLanguage.SetSelectHdl( LINK( this, SdModifyFieldDlg, LanguageChangeHdl ) ); + m_pLbLanguage->SetLanguageList( LANG_LIST_ALL|LANG_LIST_ONLY_KNOWN, false ); + m_pLbLanguage->SetSelectHdl( LINK( this, SdModifyFieldDlg, LanguageChangeHdl ) ); FillControls(); } @@ -69,9 +61,9 @@ SvxFieldData* SdModifyFieldDlg::GetField() { SvxFieldData* pNewField = NULL; - if( aRbtFix.IsChecked() != aRbtFix.GetSavedValue() || - aRbtVar.IsChecked() != aRbtVar.GetSavedValue() || - aLbFormat.GetSelectEntryPos() != aLbFormat.GetSavedValue() ) + if( m_pRbtFix->IsChecked() != m_pRbtFix->GetSavedValue() || + m_pRbtVar->IsChecked() != m_pRbtVar->GetSavedValue() || + m_pLbFormat->GetSelectEntryPos() != m_pLbFormat->GetSavedValue() ) { if( pField->ISA( SvxDateField ) ) { @@ -79,12 +71,12 @@ SvxFieldData* SdModifyFieldDlg::GetField() SvxDateType eType; SvxDateFormat eFormat; - if( aRbtFix.IsChecked() ) + if( m_pRbtFix->IsChecked() ) eType = SVXDATETYPE_FIX; else eType = SVXDATETYPE_VAR; - eFormat = (SvxDateFormat) ( aLbFormat.GetSelectEntryPos() + 2 ); + eFormat = (SvxDateFormat) ( m_pLbFormat->GetSelectEntryPos() + 2 ); pNewField = new SvxDateField( *pDateField ); ( (SvxDateField*) pNewField )->SetType( eType ); @@ -96,12 +88,12 @@ SvxFieldData* SdModifyFieldDlg::GetField() SvxTimeType eType; SvxTimeFormat eFormat; - if( aRbtFix.IsChecked() ) + if( m_pRbtFix->IsChecked() ) eType = SVXTIMETYPE_FIX; else eType = SVXTIMETYPE_VAR; - eFormat = (SvxTimeFormat) ( aLbFormat.GetSelectEntryPos() + 2 ); + eFormat = (SvxTimeFormat) ( m_pLbFormat->GetSelectEntryPos() + 2 ); pNewField = new SvxExtTimeField( *pTimeField ); ( (SvxExtTimeField*) pNewField )->SetType( eType ); @@ -113,12 +105,12 @@ SvxFieldData* SdModifyFieldDlg::GetField() SvxFileType eType; SvxFileFormat eFormat; - if( aRbtFix.IsChecked() ) + if( m_pRbtFix->IsChecked() ) eType = SVXFILETYPE_FIX; else eType = SVXFILETYPE_VAR; - eFormat = (SvxFileFormat) ( aLbFormat.GetSelectEntryPos() ); + eFormat = (SvxFileFormat) ( m_pLbFormat->GetSelectEntryPos() ); ::sd::DrawDocShell* pDocSh = PTR_CAST( ::sd::DrawDocShell, SfxObjectShell::Current() ); @@ -142,12 +134,12 @@ SvxFieldData* SdModifyFieldDlg::GetField() SvxAuthorType eType; SvxAuthorFormat eFormat; - if( aRbtFix.IsChecked() ) + if( m_pRbtFix->IsChecked() ) eType = SVXAUTHORTYPE_FIX; else eType = SVXAUTHORTYPE_VAR; - eFormat = (SvxAuthorFormat) ( aLbFormat.GetSelectEntryPos() ); + eFormat = (SvxAuthorFormat) ( m_pLbFormat->GetSelectEntryPos() ); // Get current state of address, not the old one SvtUserOptions aUserOptions; @@ -162,9 +154,9 @@ SvxFieldData* SdModifyFieldDlg::GetField() void SdModifyFieldDlg::FillFormatList() { - LanguageType eLangType = maLbLanguage.GetSelectLanguage(); + LanguageType eLangType = m_pLbLanguage->GetSelectLanguage(); - aLbFormat.Clear(); + m_pLbFormat->Clear(); if( pField->ISA( SvxDateField ) ) { @@ -173,24 +165,24 @@ void SdModifyFieldDlg::FillFormatList() //SVXDATEFORMAT_APPDEFAULT, // not used //SVXDATEFORMAT_SYSTEM, // not used - aLbFormat.InsertEntry( SD_RESSTR( STR_STANDARD_SMALL ) ); - aLbFormat.InsertEntry( SD_RESSTR( STR_STANDARD_BIG ) ); + m_pLbFormat->InsertEntry( SD_RESSTR( STR_STANDARD_SMALL ) ); + m_pLbFormat->InsertEntry( SD_RESSTR( STR_STANDARD_BIG ) ); SvNumberFormatter* pNumberFormatter = SD_MOD()->GetNumberFormatter(); aDateField.SetFormat( SVXDATEFORMAT_A ); // 13.02.96 - aLbFormat.InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); aDateField.SetFormat( SVXDATEFORMAT_B ); // 13.02.1996 - aLbFormat.InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); aDateField.SetFormat( SVXDATEFORMAT_C ); // 13.Feb 1996 - aLbFormat.InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); aDateField.SetFormat( SVXDATEFORMAT_D ); // 13.Februar 1996 - aLbFormat.InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); aDateField.SetFormat( SVXDATEFORMAT_E ); // Die, 13.Februar 1996 - aLbFormat.InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); aDateField.SetFormat( SVXDATEFORMAT_F ); // Dienstag, 13.Februar 1996 - aLbFormat.InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) ); - aLbFormat.SelectEntryPos( (sal_uInt16) ( pDateField->GetFormat() - 2 ) ); + m_pLbFormat->SelectEntryPos( (sal_uInt16) ( pDateField->GetFormat() - 2 ) ); } else if( pField->ISA( SvxExtTimeField ) ) { @@ -199,38 +191,38 @@ void SdModifyFieldDlg::FillFormatList() //SVXTIMEFORMAT_APPDEFAULT, // not used //SVXTIMEFORMAT_SYSTEM, // not used - aLbFormat.InsertEntry( SD_RESSTR( STR_STANDARD_NORMAL ) ); + m_pLbFormat->InsertEntry( SD_RESSTR( STR_STANDARD_NORMAL ) ); SvNumberFormatter* pNumberFormatter = SD_MOD()->GetNumberFormatter(); aTimeField.SetFormat( SVXTIMEFORMAT_24_HM ); // 13:49 - aLbFormat.InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); aTimeField.SetFormat( SVXTIMEFORMAT_24_HMS ); // 13:49:38 - aLbFormat.InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); aTimeField.SetFormat( SVXTIMEFORMAT_24_HMSH ); // 13:49:38.78 - aLbFormat.InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); aTimeField.SetFormat( SVXTIMEFORMAT_12_HM ); // 01:49 - aLbFormat.InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); aTimeField.SetFormat( SVXTIMEFORMAT_12_HMS ); // 01:49:38 - aLbFormat.InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); aTimeField.SetFormat( SVXTIMEFORMAT_12_HMSH ); // 01:49:38.78 - aLbFormat.InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); + m_pLbFormat->InsertEntry( aTimeField.GetFormatted( *pNumberFormatter, eLangType ) ); //SVXTIMEFORMAT_AM_HM, // 01:49 PM //SVXTIMEFORMAT_AM_HMS, // 01:49:38 PM //SVXTIMEFORMAT_AM_HMSH // 01:49:38.78 PM - aLbFormat.SelectEntryPos( (sal_uInt16) ( pTimeField->GetFormat() - 2 ) ); + m_pLbFormat->SelectEntryPos( (sal_uInt16) ( pTimeField->GetFormat() - 2 ) ); } else if( pField->ISA( SvxExtFileField ) ) { const SvxExtFileField* pFileField = (const SvxExtFileField*) pField; SvxExtFileField aFileField( *pFileField ); - aLbFormat.InsertEntry( SD_RESSTR( STR_FILEFORMAT_NAME_EXT ) ); - aLbFormat.InsertEntry( SD_RESSTR( STR_FILEFORMAT_FULLPATH ) ); - aLbFormat.InsertEntry( SD_RESSTR( STR_FILEFORMAT_PATH ) ); - aLbFormat.InsertEntry( SD_RESSTR( STR_FILEFORMAT_NAME ) ); + m_pLbFormat->InsertEntry( SD_RESSTR( STR_FILEFORMAT_NAME_EXT ) ); + m_pLbFormat->InsertEntry( SD_RESSTR( STR_FILEFORMAT_FULLPATH ) ); + m_pLbFormat->InsertEntry( SD_RESSTR( STR_FILEFORMAT_PATH ) ); + m_pLbFormat->InsertEntry( SD_RESSTR( STR_FILEFORMAT_NAME ) ); - aLbFormat.SelectEntryPos( (sal_uInt16) ( pFileField->GetFormat() ) ); + m_pLbFormat->SelectEntryPos( (sal_uInt16) ( pFileField->GetFormat() ) ); } else if( pField->ISA( SvxAuthorField ) ) { @@ -240,10 +232,10 @@ void SdModifyFieldDlg::FillFormatList() for( sal_uInt16 i = 0; i < 4; i++ ) { aAuthorField.SetFormat( (SvxAuthorFormat) i ); - aLbFormat.InsertEntry( aAuthorField.GetFormatted() ); + m_pLbFormat->InsertEntry( aAuthorField.GetFormatted() ); } - aLbFormat.SelectEntryPos( (sal_uInt16) ( pAuthorField->GetFormat() ) ); + m_pLbFormat->SelectEntryPos( (sal_uInt16) ( pAuthorField->GetFormat() ) ); } @@ -252,7 +244,7 @@ void SdModifyFieldDlg::FillFormatList() void SdModifyFieldDlg::FillControls() { - aLbFormat.Clear(); + m_pLbFormat->Clear(); if( pField->ISA( SvxDateField ) ) { @@ -260,9 +252,9 @@ void SdModifyFieldDlg::FillControls() SvxDateField aDateField( *pDateField ); if( pDateField->GetType() == SVXDATETYPE_FIX ) - aRbtFix.Check(); + m_pRbtFix->Check(); else - aRbtVar.Check(); + m_pRbtVar->Check(); } else if( pField->ISA( SvxExtTimeField ) ) { @@ -270,9 +262,9 @@ void SdModifyFieldDlg::FillControls() SvxExtTimeField aTimeField( *pTimeField ); if( pTimeField->GetType() == SVXTIMETYPE_FIX ) - aRbtFix.Check(); + m_pRbtFix->Check(); else - aRbtVar.Check(); + m_pRbtVar->Check(); } else if( pField->ISA( SvxExtFileField ) ) { @@ -280,9 +272,9 @@ void SdModifyFieldDlg::FillControls() SvxExtFileField aFileField( *pFileField ); if( pFileField->GetType() == SVXFILETYPE_FIX ) - aRbtFix.Check(); + m_pRbtFix->Check(); else - aRbtVar.Check(); + m_pRbtVar->Check(); } else if( pField->ISA( SvxAuthorField ) ) { @@ -290,21 +282,21 @@ void SdModifyFieldDlg::FillControls() SvxAuthorField aAuthorField( *pAuthorField ); if( pAuthorField->GetType() == SVXAUTHORTYPE_FIX ) - aRbtFix.Check(); + m_pRbtFix->Check(); else - aRbtVar.Check(); + m_pRbtVar->Check(); } - aRbtFix.SaveValue(); - aRbtVar.SaveValue(); + m_pRbtFix->SaveValue(); + m_pRbtVar->SaveValue(); const SfxPoolItem* pItem; if( SFX_ITEM_SET == maInputSet.GetItemState(EE_CHAR_LANGUAGE, sal_True, &pItem ) ) - maLbLanguage.SelectLanguage( static_cast(pItem)->GetLanguage() ); + m_pLbLanguage->SelectLanguage( static_cast(pItem)->GetLanguage() ); - maLbLanguage.SaveValue(); + m_pLbLanguage->SaveValue(); FillFormatList(); - aLbFormat.SaveValue(); + m_pLbFormat->SaveValue(); } @@ -319,9 +311,9 @@ SfxItemSet SdModifyFieldDlg::GetItemSet() { SfxItemSet aOutput( *maInputSet.GetPool(), EE_CHAR_LANGUAGE, EE_CHAR_LANGUAGE_CTL ); - if( maLbLanguage.GetSelectEntryPos() != maLbLanguage.GetSavedValue() ) + if( m_pLbLanguage->GetSelectEntryPos() != m_pLbLanguage->GetSavedValue() ) { - LanguageType eLangType = maLbLanguage.GetSelectLanguage(); + LanguageType eLangType = m_pLbLanguage->GetSelectLanguage(); SvxLanguageItem aItem( eLangType, EE_CHAR_LANGUAGE ); aOutput.Put( aItem ); diff --git a/sd/source/ui/dlg/dlgfield.src b/sd/source/ui/dlg/dlgfield.src index bca8ff7bc550..e69de29bb2d1 100644 --- a/sd/source/ui/dlg/dlgfield.src +++ b/sd/source/ui/dlg/dlgfield.src @@ -1,104 +0,0 @@ -/* -*- 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 . - */ - -#include "dlgfield.hrc" -ModalDialog DLG_FIELD_MODIFY -{ - HelpID = "sd:ModalDialog:DLG_FIELD_MODIFY"; - OutputSize = TRUE ; - SVLook = TRUE ; - Size = MAP_APPFONT ( 138 , 154 ) ; - Moveable = TRUE ; - Closeable = TRUE ; - FixedLine GRP_TYPE - { - Pos = MAP_APPFONT ( 6 , 3 ) ; - Size = MAP_APPFONT ( 70 , 8 ) ; - Text [ en-US ] = "Field type" ; - }; - RadioButton RBT_FIX - { - HelpID = "sd:RadioButton:DLG_FIELD_MODIFY:RBT_FIX"; - Pos = MAP_APPFONT ( 12 , 14 ) ; - Size = MAP_APPFONT ( 64 , 10 ) ; - TabStop = TRUE ; - Text [ en-US ] = "~Fixed" ; - }; - RadioButton RBT_VAR - { - HelpID = "sd:RadioButton:DLG_FIELD_MODIFY:RBT_VAR"; - Pos = MAP_APPFONT ( 12 , 25 ) ; - Size = MAP_APPFONT ( 64 , 10 ) ; - TabStop = TRUE ; - Text [ en-US ] = "~Variable" ; - }; - FixedText FT_LANGUAGE - { - Pos = MAP_APPFONT ( 6 , 67 ) ; - Size = MAP_APPFONT ( 40 , 10 ) ; - Text [ en-US ] = "~Language" ; - }; - - ListBox LB_LANGUAGE - { - HelpID = "sd:ListBox:DLG_FIELD_MODIFY:LB_LANGUAGE"; - Border = TRUE ; - Pos = MAP_APPFONT ( 52 , 65 ) ; - Size = MAP_APPFONT ( 80 , 70 ) ; - TabStop = TRUE ; - DropDown = TRUE ; - }; - - ListBox LB_FORMAT - { - HelpID = "sd:ListBox:DLG_FIELD_MODIFY:LB_FORMAT"; - Border = TRUE ; - Pos = MAP_APPFONT ( 6 , 94 ) ; - Size = MAP_APPFONT ( 126 , 54 ) ; - TabStop = TRUE ; - }; - FixedText FT_FORMAT - { - Pos = MAP_APPFONT ( 6 , 83 ) ; - Size = MAP_APPFONT ( 70 , 10 ) ; - Text [ en-US ] = "F~ormat" ; - }; - OKButton BTN_OK - { - Pos = MAP_APPFONT ( 82 , 6 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - TabStop = TRUE ; - DefButton = TRUE ; - }; - CancelButton BTN_CANCEL - { - Pos = MAP_APPFONT ( 82 , 23 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - TabStop = TRUE ; - }; - HelpButton BTN_HELP - { - Pos = MAP_APPFONT ( 82 , 43 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - TabStop = TRUE ; - }; - Text [ en-US ] = "Edit Field" ; -}; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/inc/dlgfield.hrc b/sd/source/ui/inc/dlgfield.hrc index be4dd9b2b99e..e69de29bb2d1 100644 --- a/sd/source/ui/inc/dlgfield.hrc +++ b/sd/source/ui/inc/dlgfield.hrc @@ -1,31 +0,0 @@ -/* -*- 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 . - */ -#define GRP_TYPE 1 -#define RBT_FIX 1 -#define RBT_VAR 2 -#define LB_FORMAT 1 -#define FT_FORMAT 1 -#define BTN_OK 1 -#define BTN_CANCEL 1 -#define BTN_HELP 1 -#define FT_LANGUAGE 2 -#define LB_LANGUAGE 3 -#define DLG_FIELD_MODIFY 448 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/inc/dlgfield.hxx b/sd/source/ui/inc/dlgfield.hxx index 6b2394f29ad6..a60f1f749996 100644 --- a/sd/source/ui/inc/dlgfield.hxx +++ b/sd/source/ui/inc/dlgfield.hxx @@ -36,16 +36,10 @@ class SvxFieldData; class SdModifyFieldDlg : public ModalDialog { private: - FixedLine aGrpType; - RadioButton aRbtFix; - RadioButton aRbtVar; - FixedText maFtLanguage; - SvxLanguageBox maLbLanguage; - FixedText aFtFormat; - ListBox aLbFormat; - OKButton aBtnOK; - CancelButton aBtnCancel; - HelpButton aBtnHelp; + RadioButton* m_pRbtFix; + RadioButton* m_pRbtVar; + SvxLanguageBox* m_pLbLanguage; + ListBox* m_pLbFormat; SfxItemSet maInputSet; const SvxFieldData* pField; diff --git a/sd/uiconfig/simpress/ui/dlgfield.ui b/sd/uiconfig/simpress/ui/dlgfield.ui new file mode 100644 index 000000000000..3ffef6c75837 --- /dev/null +++ b/sd/uiconfig/simpress/ui/dlgfield.ui @@ -0,0 +1,244 @@ + + + + + + False + 6 + Edit Field + dialog + + + False + 12 + + + False + vertical + start + + + gtk-ok + True + True + True + True + True + True + + + False + True + 0 + + + + + gtk-cancel + True + True + True + True + + + False + True + 1 + + + + + gtk-help + True + True + True + True + + + True + True + 2 + + + + + False + True + end + 0 + + + + + True + False + True + vertical + 12 + + + True + False + True + 0 + none + + + True + False + 6 + 12 + + + True + False + vertical + 6 + + + _Fixed + True + True + False + True + 0 + True + True + varRB + + + False + True + 0 + + + + + _Variable + True + True + False + True + 0 + True + True + fixedRB + + + False + True + 1 + + + + + + + + + True + False + Field type + + + + + + + + False + True + 0 + + + + + True + False + 12 + + + True + False + _Language + True + languageLB + + + False + True + 0 + + + + + True + False + + + False + True + 1 + + + + + False + True + 1 + + + + + True + False + 0 + none + + + True + False + 6 + 12 + + + True + False + + + + + + + True + False + F_ormat + True + + + + + + + + False + True + 2 + + + + + False + True + 1 + + + + + + ok + cancel + help + + + -- cgit