Kaydet (Commit) 99595346 authored tarafından Caolán McNamara's avatar Caolán McNamara

convert copy table page to .ui

Change-Id: Id537486dcaf0d3c6ab850a9fb50cef3d995ad51f
üst 2fa751ba
......@@ -15,6 +15,7 @@ $(eval $(call gb_UIConfig_add_uifiles,dbaccess, \
dbaccess/uiconfig/ui/applycolpage \
dbaccess/uiconfig/ui/choosedatasourcedialog \
dbaccess/uiconfig/ui/colwidthdialog \
dbaccess/uiconfig/ui/copytablepage \
dbaccess/uiconfig/ui/dbaseindexdialog \
dbaccess/uiconfig/ui/directsqldialog \
dbaccess/uiconfig/ui/fielddialog \
......
......@@ -104,8 +104,6 @@
#define HID_TAB_WIZ_TYPE_SELECT "DBACCESS_HID_TAB_WIZ_TYPE_SELECT"
#define HID_TAB_NAMEMATCHING_COLS_AVAIL "DBACCESS_HID_TAB_NAMEMATCHING_COLS_AVAIL"
#define HID_TAB_NAMEMATCHING_COLS_ASSIGN "DBACCESS_HID_TAB_NAMEMATCHING_COLS_ASSIGN"
#define HID_TAB_WIZ_COPYTABLE "DBACCESS_HID_TAB_WIZ_COPYTABLE"
#define HID_TAB_WIZ_TABLENAME_EDIT "DBACCESS_HID_TAB_WIZ_TABLENAME_EDIT"
#define HID_CTL_RELATIONTAB "DBACCESS_HID_CTL_RELATIONTAB"
#define HID_RELATIONDIALOG_LEFTFIELDCELL "DBACCESS_HID_RELATIONDIALOG_LEFTFIELDCELL"
#define HID_RELATIONDIALOG_RIGHTFIELDCELL "DBACCESS_HID_RELATIONDIALOG_RIGHTFIELDCELL"
......
......@@ -34,24 +34,22 @@ namespace dbaui
class OCopyTable : public OWizardPage
{
protected:
FixedText m_ftTableName;
Edit m_edTableName;
FixedLine m_aFL_Options;
RadioButton m_aRB_DefData;
RadioButton m_aRB_Def;
RadioButton m_aRB_View;
RadioButton m_aRB_AppendData;
CheckBox m_aCB_UseHeaderLine;
CheckBox m_aCB_PrimaryColumn;
FixedText m_aFT_KeyName;
Edit m_edKeyName;
sal_Int16 m_nOldOperation;
Edit* m_pEdTableName;
RadioButton* m_pRB_DefData;
RadioButton* m_pRB_Def;
RadioButton* m_pRB_View;
RadioButton* m_pRB_AppendData;
CheckBox* m_pCB_UseHeaderLine;
CheckBox* m_pCB_PrimaryColumn;
FixedText* m_pFT_KeyName;
Edit* m_pEdKeyName;
sal_Int16 m_nOldOperation;
OWizColumnSelect* m_pPage2;
OWizNormalExtend* m_pPage3;
OWizColumnSelect* m_pPage2;
OWizNormalExtend* m_pPage3;
bool m_bPKeyAllowed;
bool m_bUseHeaderAllowed;
bool m_bPKeyAllowed;
bool m_bUseHeaderAllowed;
DECL_LINK( AppendDataClickHdl, Button* );
DECL_LINK( RadioChangeHdl, Button* );
......@@ -69,22 +67,22 @@ namespace dbaui
OCopyTable( Window * pParent );
virtual ~OCopyTable();
inline bool IsOptionDefData() const { return m_aRB_DefData.IsChecked(); }
inline bool IsOptionDef() const { return m_aRB_Def.IsChecked(); }
inline bool IsOptionAppendData() const { return m_aRB_AppendData.IsChecked(); }
inline bool IsOptionView() const { return m_aRB_View.IsChecked(); }
inline bool UseHeaderLine() const { return m_aCB_UseHeaderLine.IsChecked(); }
OUString GetKeyName() const { return m_edKeyName.GetText(); }
bool IsOptionDefData() const { return m_pRB_DefData->IsChecked(); }
bool IsOptionDef() const { return m_pRB_Def->IsChecked(); }
bool IsOptionAppendData() const { return m_pRB_AppendData->IsChecked(); }
bool IsOptionView() const { return m_pRB_View->IsChecked(); }
bool UseHeaderLine() const { return m_pCB_UseHeaderLine->IsChecked(); }
OUString GetKeyName() const { return m_pEdKeyName->GetText(); }
void setCreateStyleAction();
inline void disallowViews()
{
m_aRB_View.Disable();
m_pRB_View->Disable();
}
inline void disallowUseHeaderLine()
{
m_bUseHeaderAllowed = false;
m_aCB_UseHeaderLine.Disable();
m_pCB_UseHeaderLine->Disable();
}
void setCreatePrimaryKey( bool _bDoCreate, const OUString& _rSuggestedName );
......
......@@ -104,7 +104,7 @@
// FREE
#define TAB_WIZ_TYPE_SELECT RID_PAGE_START + 10
#define TAB_WIZ_NAME_MATCHING RID_PAGE_START + 11
#define TAB_WIZ_COPYTABLE RID_PAGE_START + 12
// FREE
// FREE
#define PAGE_LDAP RID_PAGE_START + 15
#define TAB_PAGE_USERADMIN RID_PAGE_START + 16
......
......@@ -35,25 +35,13 @@
#define PB_NONE 17
#define ET_AUTO 1
#define ET_TABLENAME 2
#define ET_KEYNAME 3
#define FT_AUTO 1
#define FT_TABLE_LEFT 2
#define FT_TABLE_RIGHT 3
#define FT_TABLENAME 4
#define FT_KEYNAME 5
#define FL_COLUMN_NAME 2
#define FL_AUTO_TYPE 3
#define FL_OPTIONS 5
#define RB_DEFDATA 1
#define RB_DEF 2
#define RB_VIEW 3
#define RB_APPENDDATA 4
#define CB_PRIMARY_COLUMN 5
#define CB_USEHEADERLINE 6
#define CONTROL_CONTAINER 1
// controls
......
......@@ -327,99 +327,6 @@ TabPage TAB_WIZ_NAME_MATCHING
};
};
TabPage TAB_WIZ_COPYTABLE
{
SVLook = TRUE ;
Size = MAP_APPFONT ( WINDOW_SIZE_X, WINDOW_SIZE_Y ) ;
HelpId = HID_TAB_WIZ_COPYTABLE;
Hide = TRUE;
FixedText FT_TABLENAME
{
Pos = MAP_APPFONT ( 12 , 11) ;
Size = MAP_APPFONT ( 60 , 8 ) ;
Text [ en-US ] = "Ta~ble name";
};
Edit ET_TABLENAME
{
HelpId = HID_TAB_WIZ_TABLENAME_EDIT;
Border = TRUE ;
Pos = MAP_APPFONT ( 80 , 9) ;
Size = MAP_APPFONT ( WINDOW_SIZE_X - 92 , 12 ) ;
TabStop = TRUE ;
};
FixedLine FL_OPTIONS
{
Pos = MAP_APPFONT ( 6 , 24 ) ;
Size = MAP_APPFONT ( WINDOW_SIZE_X - 12 , 8 ) ;
Text [ en-US ] = "Options" ;
};
RadioButton RB_DEFDATA
{
HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_DEFDATA";
Pos = MAP_APPFONT ( 12 , 35 ) ;
Size = MAP_APPFONT ( 73 , 10 ) ;
Text [ en-US ] = "De~finition and data" ;
};
RadioButton RB_DEF
{
HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_DEF";
Pos = MAP_APPFONT ( 12, 49 ) ;
Size = MAP_APPFONT ( 73 , 10 ) ;
Text [ en-US ] = "Def~inition" ;
};
RadioButton RB_VIEW
{
HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_VIEW";
Pos = MAP_APPFONT ( 12, 63 ) ;
Size = MAP_APPFONT ( 73 , 10 ) ;
Text [ en-US ] = "A~s table view";
};
RadioButton RB_APPENDDATA
{
HelpID = "dbaccess:RadioButton:TAB_WIZ_COPYTABLE:RB_APPENDDATA";
Pos = MAP_APPFONT ( 12, 77 ) ;
Size = MAP_APPFONT ( 73 , 10 ) ;
Text [ en-US ] = "Append ~data" ;
};
CheckBox CB_USEHEADERLINE
{
HelpID = "dbaccess:CheckBox:TAB_WIZ_COPYTABLE:CB_USEHEADERLINE";
Pos = MAP_APPFONT ( 12, 93 ) ;
Size = MAP_APPFONT ( WINDOW_SIZE_X - 18, 10 ) ;
Text [ en-US ] = "Use first ~line as column names" ;
};
CheckBox CB_PRIMARY_COLUMN
{
HelpID = "dbaccess:CheckBox:TAB_WIZ_COPYTABLE:CB_PRIMARY_COLUMN";
Pos = MAP_APPFONT ( 12, 107 ) ;
Size = MAP_APPFONT ( 90 , 10 ) ;
Text [ en-US ] = "Crea~te primary key";
};
FixedText FT_KEYNAME
{
Pos = MAP_APPFONT ( 21 , 122 ) ;
Size = MAP_APPFONT ( 39 , 8 ) ;
Text [ en-US ] = "Name";
};
Edit ET_KEYNAME
{
HelpID = "dbaccess:Edit:TAB_WIZ_COPYTABLE:ET_KEYNAME";
Pos = MAP_APPFONT ( 80, 120 ) ;
Size = MAP_APPFONT ( 65 , 12 ) ;
TabStop = TRUE ;
Border = TRUE ;
};
};
String STR_WIZ_TABLE_COPY
{
Text [ en-US ] = "Copy table" ;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment