summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/datanavi.cxx26
-rw-r--r--svx/source/form/datanavi.src69
2 files changed, 6 insertions, 89 deletions
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index bd2e530a1237..9820a0b3fba7 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -3583,28 +3583,14 @@ namespace svxform
// class AddModelDialog
//========================================================================
- AddModelDialog::AddModelDialog( Window* pParent, bool _bEdit ) :
-
- ModalDialog( pParent, SVX_RES( RID_SVXDLG_ADD_MODEL ) ),
-
- m_aModelFL ( this, SVX_RES( FL_MODEL ) ),
- m_aNameFT ( this, SVX_RES( FT_MODEL_NAME ) ),
- m_aNameED ( this, SVX_RES( ED_MODEL_NAME ) ),
- m_aModifyCB ( this, SVX_RES( CB_MODIFIES_DOCUMENT ) ),
- m_aButtonsFL ( this, SVX_RES( FL_DATANAV_BTN ) ),
- m_aOKBtn ( this, SVX_RES( BTN_DATANAV_OK ) ),
- m_aEscBtn ( this, SVX_RES( BTN_DATANAV_ESC ) ),
- m_aHelpBtn ( this, SVX_RES( BTN_DATANAV_HELP ) )
-
+ AddModelDialog::AddModelDialog(Window* pParent, bool bIsEdit)
+ : ModalDialog(pParent, "AddModelDialog", "svx/ui/addmodeldialog.ui")
{
- if ( _bEdit )
- SetText(SVX_RESSTR(STR_EDIT_TEXT));
-
- FreeResource();
- }
+ get(m_pNameED, "name");
+ get(m_pModifyCB, "modify");
- AddModelDialog::~AddModelDialog()
- {
+ if (bIsEdit)
+ SetText(get<FixedText>("alttitle")->GetText());
}
//========================================================================
diff --git a/svx/source/form/datanavi.src b/svx/source/form/datanavi.src
index 974924d07dbe..882b93a6d31a 100644
--- a/svx/source/form/datanavi.src
+++ b/svx/source/form/datanavi.src
@@ -868,75 +868,6 @@ ModalDialog RID_SVXDLG_ADD_SUBMISSION
};
};
-ModalDialog RID_SVXDLG_ADD_MODEL
-{
- HelpID = HID_XFORMS_ADDMODEL_DLG ;
- OutputSize = TRUE ;
- SVLook = TRUE ;
- Size = MAP_APPFONT ( 180 , 82 ) ;
- Text [ en-US ] = "Add Model" ;
- Moveable = TRUE ;
- FixedLine FL_INSTANCE
- {
- Pos = MAP_APPFONT ( 4 , 3 ) ;
- Size = MAP_APPFONT ( 172 , 8 ) ;
- Text [ en-US ] = "Model" ;
- };
- FixedText FT_INST_NAME
- {
- Pos = MAP_APPFONT ( 6 , 14 ) ;
- Size = MAP_APPFONT ( 51 , 12 ) ;
- LeftLabel = TRUE ;
- VCenter = TRUE;
- Text [ en-US ] = "~Name" ;
- };
- Edit ED_INST_NAME
- {
- HelpID = "svx:Edit:RID_SVXDLG_ADD_MODEL:ED_INST_NAME";
- Pos = MAP_APPFONT ( 60 , 14 ) ;
- Size = MAP_APPFONT ( 114 , 12 ) ;
- Border = TRUE ;
- };
- CheckBox CB_MODIFIES_DOCUMENT
- {
- HelpID = "svx:CheckBox:RID_SVXDLG_ADD_MODEL:CB_MODIFIES_DOCUMENT";
- Pos = MAP_APPFONT( 6, 32 );
- Size = MAP_APPFONT( 168, 16 );
- Top = TRUE;
- WordBreak = TRUE;
-
- Text [ en-US ] = "Model data updates change document's modification status";
- };
- FixedLine FL_DATANAV_BTN
- {
- Pos = MAP_APPFONT ( 4 , 51 ) ;
- Size = MAP_APPFONT ( 172 , 8 ) ;
- };
- OKButton BTN_DATANAV_OK
- {
- Pos = MAP_APPFONT ( 15 , 62 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- DefButton = TRUE ;
- };
- CancelButton BTN_DATANAV_ESC
- {
- Pos = MAP_APPFONT ( 68 , 62 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- };
- HelpButton BTN_DATANAV_HELP
- {
- Pos = MAP_APPFONT ( 124 , 62 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- };
- String STR_EDIT_TEXT
- {
- Text [ en-US ] = "Edit Model" ;
- };
-};
-
ModalDialog RID_SVXDLG_ADD_INSTANCE
{
HelpID = HID_XFORMS_ADDINSTANCE_DLG ;