convertion section page to .ui format
Change-Id: I26990ba16ba70683960685d8c26bbfd2d66d6132
This commit is contained in:
@@ -415,6 +415,10 @@
|
|||||||
generic-name="Cursor Reference Edit" parent="foruilo-RefEdit"
|
generic-name="Cursor Reference Edit" parent="foruilo-RefEdit"
|
||||||
icon-name="widget-gtk-textentry"/>
|
icon-name="widget-gtk-textentry"/>
|
||||||
|
|
||||||
|
<glade-widget-class title="Condition Edit" name="swlo-ConditionEdit"
|
||||||
|
generic-name="Condition Edit" parent="GtkEntry"
|
||||||
|
icon-name="widget-gtk-textentry"/>
|
||||||
|
|
||||||
<glade-widget-class title="Text View" name="sclo-ScEditWindow"
|
<glade-widget-class title="Text View" name="sclo-ScEditWindow"
|
||||||
generic-name="Text View" parent="GtkTextView"
|
generic-name="Text View" parent="GtkTextView"
|
||||||
icon-name="widget-gtk-textentry"/>
|
icon-name="widget-gtk-textentry"/>
|
||||||
|
@@ -128,6 +128,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
|
|||||||
sw/uiconfig/swriter/ui/rowheight \
|
sw/uiconfig/swriter/ui/rowheight \
|
||||||
sw/uiconfig/swriter/ui/saveashtmldialog \
|
sw/uiconfig/swriter/ui/saveashtmldialog \
|
||||||
sw/uiconfig/swriter/ui/savelabeldialog \
|
sw/uiconfig/swriter/ui/savelabeldialog \
|
||||||
|
sw/uiconfig/swriter/ui/sectionpage \
|
||||||
sw/uiconfig/swriter/ui/sidebarpage \
|
sw/uiconfig/swriter/ui/sidebarpage \
|
||||||
sw/uiconfig/swriter/ui/sidebarwrap \
|
sw/uiconfig/swriter/ui/sidebarwrap \
|
||||||
sw/uiconfig/swriter/ui/sortdialog \
|
sw/uiconfig/swriter/ui/sortdialog \
|
||||||
|
@@ -167,7 +167,6 @@
|
|||||||
#define HID_EDIT_FLD_REF "SW_HID_EDIT_FLD_REF"
|
#define HID_EDIT_FLD_REF "SW_HID_EDIT_FLD_REF"
|
||||||
#define HID_REDLINE_CTRL "SW_HID_REDLINE_CTRL"
|
#define HID_REDLINE_CTRL "SW_HID_REDLINE_CTRL"
|
||||||
#define HID_OPTCAPTION_PAGE "SW_HID_OPTCAPTION_PAGE"
|
#define HID_OPTCAPTION_PAGE "SW_HID_OPTCAPTION_PAGE"
|
||||||
#define HID_INSERT_SECTION_PAGE "SW_HID_INSERT_SECTION_PAGE"
|
|
||||||
#define HID_INSERT_SECTION_DLG "SW_HID_INSERT_SECTION_DLG"
|
#define HID_INSERT_SECTION_DLG "SW_HID_INSERT_SECTION_DLG"
|
||||||
#define HID_SECTION_PROPERTIES_DLG "SW_HID_SECTION_PROPERTIES_DLG"
|
#define HID_SECTION_PROPERTIES_DLG "SW_HID_SECTION_PROPERTIES_DLG"
|
||||||
#define HID_TP_TOX_SELECT "SW_HID_TP_TOX_SELECT"
|
#define HID_TP_TOX_SELECT "SW_HID_TP_TOX_SELECT"
|
||||||
|
@@ -21,38 +21,7 @@
|
|||||||
|
|
||||||
#include "dialog.hrc"
|
#include "dialog.hrc"
|
||||||
|
|
||||||
|
|
||||||
#define CB_DDE 1
|
|
||||||
#define CB_DISMISS 2
|
|
||||||
#define CB_FILE 5
|
|
||||||
#define CB_HIDE 8
|
|
||||||
#define CB_PASSWD 9
|
|
||||||
#define CB_PROTECT 10
|
|
||||||
#define ED_CONDITION 13
|
|
||||||
#define ED_FILE 16
|
|
||||||
#define ED_RANAME 19
|
|
||||||
#define ED_RNAME 20
|
|
||||||
#define FT_CONDITION 21
|
|
||||||
#define FT_DDE 25
|
|
||||||
#define FT_FILE 29
|
|
||||||
#define FT_SUBREG 34
|
|
||||||
#define LB_SUBREG 38
|
|
||||||
#define PB_CANCEL 39
|
|
||||||
#define PB_FILE 40
|
|
||||||
#define PB_HELP 41
|
|
||||||
#define PB_OK 42
|
|
||||||
#define PB_OPTIONS 43
|
|
||||||
#define ST_INSERT 45
|
#define ST_INSERT 45
|
||||||
#define TLB_SECTION 46
|
|
||||||
#define FL_NAME 47
|
|
||||||
#define FL_LINK 48
|
|
||||||
#define FL_PROTECT 49
|
|
||||||
#define FL_HIDE 50
|
|
||||||
#define PB_PASSWD 51
|
|
||||||
#define IL_BITMAPS 54
|
|
||||||
// #114856# edit in readonly sections
|
|
||||||
#define FL_PROPERTIES 56
|
|
||||||
#define CB_EDIT_IN_READONLY 57
|
|
||||||
|
|
||||||
/* global resources */
|
/* global resources */
|
||||||
#define STR_REG_DUPLICATE (RC_REGIONSW_BEGIN+6)
|
#define STR_REG_DUPLICATE (RC_REGIONSW_BEGIN+6)
|
||||||
|
@@ -166,180 +166,6 @@ TabDialog DLG_INSERT_SECTION
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
TabPage TP_INSERT_SECTION
|
|
||||||
{
|
|
||||||
HelpID = HID_INSERT_SECTION_PAGE;
|
|
||||||
SVLook = TRUE ;
|
|
||||||
Pos = MAP_APPFONT ( 0 , 0 ) ;
|
|
||||||
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
|
|
||||||
Hide = TRUE ;
|
|
||||||
FixedLine FL_NAME
|
|
||||||
{
|
|
||||||
OutputSize = TRUE ;
|
|
||||||
Pos = MAP_APPFONT ( 6 , 3 ) ;
|
|
||||||
Size = MAP_APPFONT ( 78 , 8 ) ;
|
|
||||||
Text [ en-US ] = "New section" ;
|
|
||||||
};
|
|
||||||
ComboBox ED_RNAME
|
|
||||||
{
|
|
||||||
HelpID = "sw:ComboBox:TP_INSERT_SECTION:ED_RNAME";
|
|
||||||
Pos = MAP_APPFONT ( 12 , 14 ) ;
|
|
||||||
Size = MAP_APPFONT ( 69 , 140 ) ;
|
|
||||||
TabStop = TRUE ;
|
|
||||||
AutoHScroll = TRUE ;
|
|
||||||
SORT = TRUE ;
|
|
||||||
};
|
|
||||||
FixedLine FL_LINK
|
|
||||||
{
|
|
||||||
OutputSize = TRUE ;
|
|
||||||
Pos = MAP_APPFONT ( 90 , 3 ) ;
|
|
||||||
Size = MAP_APPFONT ( 164 , 8 ) ;
|
|
||||||
FL_FILE_TEXT
|
|
||||||
};
|
|
||||||
CheckBox CB_FILE
|
|
||||||
{
|
|
||||||
HelpID = "sw:CheckBox:TP_INSERT_SECTION:CB_FILE";
|
|
||||||
Pos = MAP_APPFONT ( 96 , 14 ) ;
|
|
||||||
Size = MAP_APPFONT ( 60 , 10 ) ;
|
|
||||||
TabStop = TRUE ;
|
|
||||||
CB_FILE_TEXT
|
|
||||||
};
|
|
||||||
CheckBox CB_DDE
|
|
||||||
{
|
|
||||||
HelpID = "sw:CheckBox:TP_INSERT_SECTION:CB_DDE";
|
|
||||||
Pos = MAP_APPFONT ( 96 , 28) ;
|
|
||||||
Size = MAP_APPFONT ( 60 , 10 ) ;
|
|
||||||
Disable = TRUE ;
|
|
||||||
CB_DDE_TEXT
|
|
||||||
};
|
|
||||||
FixedText FT_DDE
|
|
||||||
{
|
|
||||||
Pos = MAP_APPFONT ( 96 , 44 ) ;
|
|
||||||
Size = MAP_APPFONT ( 50 , 8 ) ;
|
|
||||||
Hide = TRUE ;
|
|
||||||
FT_DDE_TEXT
|
|
||||||
};
|
|
||||||
FixedText FT_FILE
|
|
||||||
{
|
|
||||||
Pos = MAP_APPFONT ( 96 , 44 ) ;
|
|
||||||
Size = MAP_APPFONT ( 50 , 8 ) ;
|
|
||||||
Disable = TRUE ;
|
|
||||||
FT_FILE_TEXT
|
|
||||||
};
|
|
||||||
Edit ED_FILE
|
|
||||||
{
|
|
||||||
HelpID = "sw:Edit:TP_INSERT_SECTION:ED_FILE";
|
|
||||||
Border = TRUE ;
|
|
||||||
Pos = MAP_APPFONT ( 160 , 42 ) ;
|
|
||||||
Size = MAP_APPFONT ( 76 , 12 ) ;
|
|
||||||
Disable = TRUE ;
|
|
||||||
TabStop = TRUE ;
|
|
||||||
};
|
|
||||||
PushButton PB_FILE
|
|
||||||
{
|
|
||||||
HelpID = "sw:PushButton:TP_INSERT_SECTION:PB_FILE";
|
|
||||||
Pos = MAP_APPFONT ( 239 , 42 ) ;
|
|
||||||
Size = MAP_APPFONT ( 12 , 12 ) ;
|
|
||||||
Disable = TRUE ;
|
|
||||||
TabStop = TRUE ;
|
|
||||||
Text = "...";
|
|
||||||
};
|
|
||||||
FixedText FT_SUBREG
|
|
||||||
{
|
|
||||||
Pos = MAP_APPFONT ( 96 , 60 ) ;
|
|
||||||
Size = MAP_APPFONT ( 50 , 8 ) ;
|
|
||||||
Disable = TRUE ;
|
|
||||||
FT_SUBREG_TEXT
|
|
||||||
};
|
|
||||||
ComboBox LB_SUBREG
|
|
||||||
{
|
|
||||||
HelpID = "sw:ComboBox:TP_INSERT_SECTION:LB_SUBREG";
|
|
||||||
Pos = MAP_APPFONT ( 160 , 58 ) ;
|
|
||||||
Size = MAP_APPFONT ( 76 , 50 ) ;
|
|
||||||
DropDown = TRUE ;
|
|
||||||
Disable = TRUE ;
|
|
||||||
TabStop = TRUE ;
|
|
||||||
Sort = TRUE ;
|
|
||||||
};
|
|
||||||
FixedLine FL_PROTECT
|
|
||||||
{
|
|
||||||
OutputSize = TRUE ;
|
|
||||||
Pos = MAP_APPFONT ( 90 , 76 ) ;
|
|
||||||
Size = MAP_APPFONT ( 164 , 8 ) ;
|
|
||||||
FL_PROTECT_TEXT
|
|
||||||
};
|
|
||||||
CheckBox CB_PROTECT
|
|
||||||
{
|
|
||||||
HelpID = "sw:CheckBox:TP_INSERT_SECTION:CB_PROTECT";
|
|
||||||
Pos = MAP_APPFONT ( 96 , 87 ) ;
|
|
||||||
Size = MAP_APPFONT ( 100 , 10 ) ;
|
|
||||||
TabStop = TRUE ;
|
|
||||||
Text [ en-US ] = "~Protect";
|
|
||||||
};
|
|
||||||
CheckBox CB_PASSWD
|
|
||||||
{
|
|
||||||
HelpID = "sw:CheckBox:TP_INSERT_SECTION:CB_PASSWD";
|
|
||||||
Pos = MAP_APPFONT ( 105 , 101 ) ;
|
|
||||||
Size = MAP_APPFONT ( 100 , 10 ) ;
|
|
||||||
TabStop = TRUE ;
|
|
||||||
CB_PASSWD_TEXT
|
|
||||||
};
|
|
||||||
PushButton PB_PASSWD
|
|
||||||
{
|
|
||||||
HelpID = "sw:PushButton:TP_INSERT_SECTION:PB_PASSWD";
|
|
||||||
Pos = MAP_APPFONT ( 239 , 99 ) ;
|
|
||||||
Size = MAP_APPFONT ( 12 , 12 ) ;
|
|
||||||
TabStop = TRUE ;
|
|
||||||
Text = "..." ;
|
|
||||||
};
|
|
||||||
FixedLine FL_HIDE
|
|
||||||
{
|
|
||||||
OutputSize = TRUE ;
|
|
||||||
Pos = MAP_APPFONT ( 90 , 117 ) ;
|
|
||||||
Size = MAP_APPFONT ( 164 , 8 ) ;
|
|
||||||
FL_HIDE_TEXT
|
|
||||||
};
|
|
||||||
CheckBox CB_HIDE
|
|
||||||
{
|
|
||||||
HelpID = "sw:CheckBox:TP_INSERT_SECTION:CB_HIDE";
|
|
||||||
Pos = MAP_APPFONT ( 96 , 128 ) ;
|
|
||||||
Size = MAP_APPFONT ( 100 , 10 ) ;
|
|
||||||
CB_HIDE_TEXT
|
|
||||||
};
|
|
||||||
FixedText FT_CONDITION
|
|
||||||
{
|
|
||||||
Pos = MAP_APPFONT ( 96 , 144 ) ;
|
|
||||||
Size = MAP_APPFONT ( 60 , 8 ) ;
|
|
||||||
Disable = TRUE ;
|
|
||||||
CB_CONDITION_TEXT
|
|
||||||
};
|
|
||||||
Edit ED_CONDITION
|
|
||||||
{
|
|
||||||
HelpID = "sw:Edit:TP_INSERT_SECTION:ED_CONDITION";
|
|
||||||
Border = TRUE ;
|
|
||||||
Pos = MAP_APPFONT ( 160 , 142 ) ;
|
|
||||||
Size = MAP_APPFONT ( 91 , 12 ) ;
|
|
||||||
Disable = TRUE ;
|
|
||||||
TabStop = TRUE ;
|
|
||||||
};
|
|
||||||
|
|
||||||
FixedLine FL_PROPERTIES
|
|
||||||
{
|
|
||||||
OutputSize = TRUE ;
|
|
||||||
Pos = MAP_APPFONT ( 90 , 159 ) ;
|
|
||||||
Size = MAP_APPFONT ( 164 , 8 ) ;
|
|
||||||
FL_PROPERTIES_TEXT
|
|
||||||
};
|
|
||||||
CheckBox CB_EDIT_IN_READONLY
|
|
||||||
{
|
|
||||||
HelpID = "sw:CheckBox:TP_INSERT_SECTION:CB_EDIT_IN_READONLY";
|
|
||||||
Pos = MAP_APPFONT ( 96 , 170 ) ;
|
|
||||||
Size = MAP_APPFONT ( 158 , 10 ) ;
|
|
||||||
CB_EDIT_IN_READONLY_TEXT
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
TabDialog DLG_SECTION_PROPERTIES
|
TabDialog DLG_SECTION_PROPERTIES
|
||||||
{
|
{
|
||||||
HelpId = HID_SECTION_PROPERTIES_DLG;
|
HelpId = HID_SECTION_PROPERTIES_DLG;
|
||||||
|
@@ -1535,52 +1535,48 @@ short SwInsertSectionTabDialog::Ok()
|
|||||||
}
|
}
|
||||||
|
|
||||||
SwInsertSectionTabPage::SwInsertSectionTabPage(
|
SwInsertSectionTabPage::SwInsertSectionTabPage(
|
||||||
Window *pParent, const SfxItemSet &rAttrSet) :
|
Window *pParent, const SfxItemSet &rAttrSet)
|
||||||
SfxTabPage( pParent, SW_RES(TP_INSERT_SECTION), rAttrSet ),
|
: SfxTabPage(pParent, "SectionPage",
|
||||||
aNameFL ( this, SW_RES( FL_NAME ) ),
|
"modules/swriter/ui/sectionpage.ui", rAttrSet)
|
||||||
aCurName ( this, SW_RES( ED_RNAME ) ),
|
, m_pWrtSh(0)
|
||||||
aLinkFL ( this, SW_RES( FL_LINK ) ),
|
, m_pDocInserter(NULL)
|
||||||
aFileCB ( this, SW_RES( CB_FILE ) ),
|
, m_pOldDefDlgParent(NULL)
|
||||||
aDDECB ( this, SW_RES( CB_DDE ) ) ,
|
|
||||||
aDDECommandFT ( this, SW_RES( FT_DDE ) ) ,
|
|
||||||
aFileNameFT ( this, SW_RES( FT_FILE ) ) ,
|
|
||||||
aFileNameED ( this, SW_RES( ED_FILE ) ),
|
|
||||||
aFilePB ( this, SW_RES( PB_FILE ) ),
|
|
||||||
aSubRegionFT ( this, SW_RES( FT_SUBREG ) ) ,
|
|
||||||
aSubRegionED ( this, SW_RES( LB_SUBREG ) ) ,
|
|
||||||
|
|
||||||
aProtectFL ( this, SW_RES( FL_PROTECT ) ),
|
|
||||||
aProtectCB ( this, SW_RES( CB_PROTECT ) ),
|
|
||||||
aPasswdCB ( this, SW_RES( CB_PASSWD ) ),
|
|
||||||
aPasswdPB ( this, SW_RES( PB_PASSWD ) ),
|
|
||||||
|
|
||||||
aHideFL ( this, SW_RES( FL_HIDE ) ),
|
|
||||||
aHideCB ( this, SW_RES( CB_HIDE ) ),
|
|
||||||
aConditionFT ( this, SW_RES( FT_CONDITION ) ),
|
|
||||||
aConditionED ( this, SW_RES( ED_CONDITION ) ),
|
|
||||||
// edit in readonly sections
|
|
||||||
aPropertiesFL ( this, SW_RES( FL_PROPERTIES ) ),
|
|
||||||
aEditInReadonlyCB ( this, SW_RES( CB_EDIT_IN_READONLY ) ),
|
|
||||||
|
|
||||||
m_pWrtSh(0),
|
|
||||||
m_pDocInserter(NULL),
|
|
||||||
m_pOldDefDlgParent(NULL)
|
|
||||||
{
|
{
|
||||||
FreeResource();
|
get(m_pCurName, "sectionnames");
|
||||||
|
m_pCurName->SetStyle(m_pCurName->GetStyle() | WB_SORT);
|
||||||
aProtectCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeProtectHdl));
|
m_pCurName->set_height_request(m_pCurName->GetTextHeight() * 12);
|
||||||
aPasswdCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangePasswdHdl));
|
get(m_pFileCB, "link");
|
||||||
aPasswdPB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangePasswdHdl));
|
get(m_pDDECB, "dde");
|
||||||
aHideCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeHideHdl));
|
get(m_pDDECommandFT, "ddelabel");
|
||||||
|
get(m_pFileNameFT, "filelabel");
|
||||||
|
get(m_pFileNameED, "filename");
|
||||||
|
get(m_pFilePB, "selectfile");
|
||||||
|
get(m_pSubRegionFT, "sectionlabel");
|
||||||
|
get(m_pSubRegionED, "sectionname");
|
||||||
|
m_pSubRegionED->SetStyle(m_pSubRegionED->GetStyle() | WB_SORT);
|
||||||
|
get(m_pProtectCB, "protect");
|
||||||
|
get(m_pPasswdCB, "withpassword");
|
||||||
|
get(m_pPasswdPB, "selectpassword");
|
||||||
|
get(m_pHideCB, "hide");
|
||||||
|
get(m_pConditionFT, "condlabel");
|
||||||
|
get(m_pConditionED, "withcond");
|
||||||
// edit in readonly sections
|
// edit in readonly sections
|
||||||
aEditInReadonlyCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeEditInReadonlyHdl));
|
get(m_pEditInReadonlyCB, "editable");
|
||||||
aFileCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, UseFileHdl ));
|
|
||||||
aFilePB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, FileSearchHdl ));
|
|
||||||
aCurName.SetModifyHdl ( LINK( this, SwInsertSectionTabPage, NameEditHdl));
|
|
||||||
aDDECB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, DDEHdl ));
|
m_pProtectCB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeProtectHdl));
|
||||||
ChangeProtectHdl(&aProtectCB);
|
m_pPasswdCB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangePasswdHdl));
|
||||||
aPasswdPB.SetAccessibleRelationMemberOf(&aProtectFL);
|
m_pPasswdPB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangePasswdHdl));
|
||||||
aSubRegionED.EnableAutocomplete( sal_True, sal_True );
|
m_pHideCB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeHideHdl));
|
||||||
|
// edit in readonly sections
|
||||||
|
m_pEditInReadonlyCB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeEditInReadonlyHdl));
|
||||||
|
m_pFileCB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, UseFileHdl ));
|
||||||
|
m_pFilePB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, FileSearchHdl ));
|
||||||
|
m_pCurName->SetModifyHdl ( LINK( this, SwInsertSectionTabPage, NameEditHdl));
|
||||||
|
m_pDDECB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, DDEHdl ));
|
||||||
|
ChangeProtectHdl(m_pProtectCB);
|
||||||
|
m_pSubRegionED->EnableAutocomplete( sal_True, sal_True );
|
||||||
}
|
}
|
||||||
|
|
||||||
SwInsertSectionTabPage::~SwInsertSectionTabPage()
|
SwInsertSectionTabPage::~SwInsertSectionTabPage()
|
||||||
@@ -1595,53 +1591,53 @@ void SwInsertSectionTabPage::SetWrtShell(SwWrtShell& rSh)
|
|||||||
bool bWeb = 0 != PTR_CAST(SwWebDocShell, m_pWrtSh->GetView().GetDocShell());
|
bool bWeb = 0 != PTR_CAST(SwWebDocShell, m_pWrtSh->GetView().GetDocShell());
|
||||||
if(bWeb)
|
if(bWeb)
|
||||||
{
|
{
|
||||||
aHideCB .Hide();
|
m_pHideCB->Hide();
|
||||||
aConditionED .Hide();
|
m_pConditionED->Hide();
|
||||||
aConditionFT .Hide();
|
m_pConditionFT->Hide();
|
||||||
aDDECB .Hide();
|
m_pDDECB->Hide();
|
||||||
aDDECommandFT .Hide();
|
m_pDDECommandFT->Hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
lcl_FillSubRegionList( *m_pWrtSh, aSubRegionED, &aCurName );
|
lcl_FillSubRegionList(*m_pWrtSh, *m_pSubRegionED, m_pCurName);
|
||||||
|
|
||||||
SwSectionData *const pSectionData =
|
SwSectionData *const pSectionData =
|
||||||
static_cast<SwInsertSectionTabDialog*>(GetTabDialog())
|
static_cast<SwInsertSectionTabDialog*>(GetTabDialog())
|
||||||
->GetSectionData();
|
->GetSectionData();
|
||||||
if (pSectionData) // something set?
|
if (pSectionData) // something set?
|
||||||
{
|
{
|
||||||
aCurName.SetText(
|
m_pCurName->SetText(
|
||||||
rSh.GetUniqueSectionName(& pSectionData->GetSectionName()));
|
rSh.GetUniqueSectionName(& pSectionData->GetSectionName()));
|
||||||
aProtectCB.Check( 0 != pSectionData->IsProtectFlag() );
|
m_pProtectCB->Check( 0 != pSectionData->IsProtectFlag() );
|
||||||
m_sFileName = pSectionData->GetLinkFileName();
|
m_sFileName = pSectionData->GetLinkFileName();
|
||||||
m_sFilePasswd = pSectionData->GetLinkFilePassword();
|
m_sFilePasswd = pSectionData->GetLinkFilePassword();
|
||||||
aFileCB.Check( 0 != m_sFileName.Len() );
|
m_pFileCB->Check( 0 != m_sFileName.Len() );
|
||||||
aFileNameED.SetText( m_sFileName );
|
m_pFileNameED->SetText( m_sFileName );
|
||||||
UseFileHdl( &aFileCB );
|
UseFileHdl(m_pFileCB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
aCurName.SetText( rSh.GetUniqueSectionName() );
|
m_pCurName->SetText( rSh.GetUniqueSectionName() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SwInsertSectionTabPage::FillItemSet( SfxItemSet& )
|
sal_Bool SwInsertSectionTabPage::FillItemSet( SfxItemSet& )
|
||||||
{
|
{
|
||||||
SwSectionData aSection(CONTENT_SECTION, aCurName.GetText());
|
SwSectionData aSection(CONTENT_SECTION, m_pCurName->GetText());
|
||||||
aSection.SetCondition(aConditionED.GetText());
|
aSection.SetCondition(m_pConditionED->GetText());
|
||||||
sal_Bool bProtected = aProtectCB.IsChecked();
|
sal_Bool bProtected = m_pProtectCB->IsChecked();
|
||||||
aSection.SetProtectFlag(bProtected);
|
aSection.SetProtectFlag(bProtected);
|
||||||
aSection.SetHidden(aHideCB.IsChecked());
|
aSection.SetHidden(m_pHideCB->IsChecked());
|
||||||
// edit in readonly sections
|
// edit in readonly sections
|
||||||
aSection.SetEditInReadonlyFlag(aEditInReadonlyCB.IsChecked());
|
aSection.SetEditInReadonlyFlag(m_pEditInReadonlyCB->IsChecked());
|
||||||
|
|
||||||
if(bProtected)
|
if(bProtected)
|
||||||
{
|
{
|
||||||
aSection.SetPassword(m_aNewPasswd);
|
aSection.SetPassword(m_aNewPasswd);
|
||||||
}
|
}
|
||||||
String sFileName = aFileNameED.GetText();
|
String sFileName = m_pFileNameED->GetText();
|
||||||
String sSubRegion = aSubRegionED.GetText();
|
String sSubRegion = m_pSubRegionED->GetText();
|
||||||
sal_Bool bDDe = aDDECB.IsChecked();
|
sal_Bool bDDe = m_pDDECB->IsChecked();
|
||||||
if(aFileCB.IsChecked() && (sFileName.Len() || sSubRegion.Len() || bDDe))
|
if(m_pFileCB->IsChecked() && (sFileName.Len() || sSubRegion.Len() || bDDe))
|
||||||
{
|
{
|
||||||
String aLinkFile;
|
String aLinkFile;
|
||||||
if( bDDe )
|
if( bDDe )
|
||||||
@@ -1677,7 +1673,7 @@ sal_Bool SwInsertSectionTabPage::FillItemSet( SfxItemSet& )
|
|||||||
aSection.SetLinkFileName(aLinkFile);
|
aSection.SetLinkFileName(aLinkFile);
|
||||||
if(aLinkFile.Len())
|
if(aLinkFile.Len())
|
||||||
{
|
{
|
||||||
aSection.SetType( aDDECB.IsChecked() ?
|
aSection.SetType( m_pDDECB->IsChecked() ?
|
||||||
DDE_LINK_SECTION :
|
DDE_LINK_SECTION :
|
||||||
FILE_LINK_SECTION);
|
FILE_LINK_SECTION);
|
||||||
}
|
}
|
||||||
@@ -1699,8 +1695,8 @@ SfxTabPage* SwInsertSectionTabPage::Create( Window* pParent,
|
|||||||
IMPL_LINK( SwInsertSectionTabPage, ChangeHideHdl, CheckBox *, pBox )
|
IMPL_LINK( SwInsertSectionTabPage, ChangeHideHdl, CheckBox *, pBox )
|
||||||
{
|
{
|
||||||
sal_Bool bHide = pBox->IsChecked();
|
sal_Bool bHide = pBox->IsChecked();
|
||||||
aConditionED.Enable(bHide);
|
m_pConditionED->Enable(bHide);
|
||||||
aConditionFT.Enable(bHide);
|
m_pConditionFT->Enable(bHide);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1712,15 +1708,15 @@ IMPL_LINK_NOARG(SwInsertSectionTabPage, ChangeEditInReadonlyHdl)
|
|||||||
IMPL_LINK( SwInsertSectionTabPage, ChangeProtectHdl, CheckBox *, pBox )
|
IMPL_LINK( SwInsertSectionTabPage, ChangeProtectHdl, CheckBox *, pBox )
|
||||||
{
|
{
|
||||||
sal_Bool bCheck = pBox->IsChecked();
|
sal_Bool bCheck = pBox->IsChecked();
|
||||||
aPasswdCB.Enable(bCheck);
|
m_pPasswdCB->Enable(bCheck);
|
||||||
aPasswdPB.Enable(bCheck);
|
m_pPasswdPB->Enable(bCheck);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
IMPL_LINK( SwInsertSectionTabPage, ChangePasswdHdl, Button *, pButton )
|
IMPL_LINK( SwInsertSectionTabPage, ChangePasswdHdl, Button *, pButton )
|
||||||
{
|
{
|
||||||
sal_Bool bChange = pButton == &aPasswdPB;
|
sal_Bool bChange = pButton == m_pPasswdPB;
|
||||||
sal_Bool bSet = bChange ? bChange : aPasswdCB.IsChecked();
|
sal_Bool bSet = bChange ? bChange : m_pPasswdCB->IsChecked();
|
||||||
if(bSet)
|
if(bSet)
|
||||||
{
|
{
|
||||||
if(!m_aNewPasswd.getLength() || bChange)
|
if(!m_aNewPasswd.getLength() || bChange)
|
||||||
@@ -1740,7 +1736,7 @@ IMPL_LINK( SwInsertSectionTabPage, ChangePasswdHdl, Button *, pButton )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(!bChange)
|
else if(!bChange)
|
||||||
aPasswdCB.Check(sal_False);
|
m_pPasswdCB->Check(sal_False);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -1750,8 +1746,8 @@ IMPL_LINK( SwInsertSectionTabPage, ChangePasswdHdl, Button *, pButton )
|
|||||||
|
|
||||||
IMPL_LINK_NOARG_INLINE_START(SwInsertSectionTabPage, NameEditHdl)
|
IMPL_LINK_NOARG_INLINE_START(SwInsertSectionTabPage, NameEditHdl)
|
||||||
{
|
{
|
||||||
String aName=aCurName.GetText();
|
String aName=m_pCurName->GetText();
|
||||||
GetTabDialog()->GetOKButton().Enable(aName.Len() && aCurName.GetEntryPos( aName ) == USHRT_MAX);
|
GetTabDialog()->GetOKButton().Enable(aName.Len() && m_pCurName->GetEntryPos( aName ) == USHRT_MAX);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
IMPL_LINK_NOARG_INLINE_END(SwInsertSectionTabPage, NameEditHdl)
|
IMPL_LINK_NOARG_INLINE_END(SwInsertSectionTabPage, NameEditHdl)
|
||||||
@@ -1766,22 +1762,22 @@ IMPL_LINK( SwInsertSectionTabPage, UseFileHdl, CheckBox *, pBox )
|
|||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool bFile = pBox->IsChecked();
|
sal_Bool bFile = pBox->IsChecked();
|
||||||
aFileNameFT.Enable(bFile);
|
m_pFileNameFT->Enable(bFile);
|
||||||
aFileNameED.Enable(bFile);
|
m_pFileNameED->Enable(bFile);
|
||||||
aFilePB.Enable(bFile);
|
m_pFilePB->Enable(bFile);
|
||||||
aSubRegionFT.Enable(bFile);
|
m_pSubRegionFT->Enable(bFile);
|
||||||
aSubRegionED.Enable(bFile);
|
m_pSubRegionED->Enable(bFile);
|
||||||
aDDECommandFT.Enable(bFile);
|
m_pDDECommandFT->Enable(bFile);
|
||||||
aDDECB.Enable(bFile);
|
m_pDDECB->Enable(bFile);
|
||||||
if( bFile )
|
if( bFile )
|
||||||
{
|
{
|
||||||
aFileNameED.GrabFocus();
|
m_pFileNameED->GrabFocus();
|
||||||
aProtectCB.Check( sal_True );
|
m_pProtectCB->Check( sal_True );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
aDDECB.Check(sal_False);
|
m_pDDECB->Check(sal_False);
|
||||||
DDEHdl(&aDDECB);
|
DDEHdl(m_pDDECB);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -1800,26 +1796,26 @@ IMPL_LINK_NOARG(SwInsertSectionTabPage, FileSearchHdl)
|
|||||||
IMPL_LINK( SwInsertSectionTabPage, DDEHdl, CheckBox*, pBox )
|
IMPL_LINK( SwInsertSectionTabPage, DDEHdl, CheckBox*, pBox )
|
||||||
{
|
{
|
||||||
sal_Bool bDDE = pBox->IsChecked();
|
sal_Bool bDDE = pBox->IsChecked();
|
||||||
sal_Bool bFile = aFileCB.IsChecked();
|
sal_Bool bFile = m_pFileCB->IsChecked();
|
||||||
aFilePB.Enable(!bDDE && bFile);
|
m_pFilePB->Enable(!bDDE && bFile);
|
||||||
if(bDDE)
|
if(bDDE)
|
||||||
{
|
{
|
||||||
aFileNameFT.Hide();
|
m_pFileNameFT->Hide();
|
||||||
aDDECommandFT.Enable(bDDE);
|
m_pDDECommandFT->Enable(bDDE);
|
||||||
aDDECommandFT.Show();
|
m_pDDECommandFT->Show();
|
||||||
aSubRegionFT.Hide();
|
m_pSubRegionFT->Hide();
|
||||||
aSubRegionED.Hide();
|
m_pSubRegionED->Hide();
|
||||||
aFileNameED.SetAccessibleName(aDDECommandFT.GetText());
|
m_pFileNameED->SetAccessibleName(m_pDDECommandFT->GetText());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
aDDECommandFT.Hide();
|
m_pDDECommandFT->Hide();
|
||||||
aFileNameFT.Enable(bFile);
|
m_pFileNameFT->Enable(bFile);
|
||||||
aFileNameFT.Show();
|
m_pFileNameFT->Show();
|
||||||
aSubRegionFT.Show();
|
m_pSubRegionFT->Show();
|
||||||
aSubRegionED.Show();
|
m_pSubRegionED->Show();
|
||||||
aSubRegionED.Enable(bFile);
|
m_pSubRegionED->Enable(bFile);
|
||||||
aFileNameED.SetAccessibleName(aFileNameFT.GetText());
|
m_pFileNameED->SetAccessibleName(m_pFileNameFT->GetText());
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -1836,9 +1832,9 @@ IMPL_LINK( SwInsertSectionTabPage, DlgClosedHdl, sfx2::FileDialogHelper *, _pFil
|
|||||||
const SfxPoolItem* pItem;
|
const SfxPoolItem* pItem;
|
||||||
if ( SFX_ITEM_SET == pMedium->GetItemSet()->GetItemState( SID_PASSWORD, sal_False, &pItem ) )
|
if ( SFX_ITEM_SET == pMedium->GetItemSet()->GetItemState( SID_PASSWORD, sal_False, &pItem ) )
|
||||||
m_sFilePasswd = ( (SfxStringItem*)pItem )->GetValue();
|
m_sFilePasswd = ( (SfxStringItem*)pItem )->GetValue();
|
||||||
aFileNameED.SetText( INetURLObject::decode(
|
m_pFileNameED->SetText( INetURLObject::decode(
|
||||||
m_sFileName, INET_HEX_ESCAPE, INetURLObject::DECODE_UNAMBIGUOUS, RTL_TEXTENCODING_UTF8 ) );
|
m_sFileName, INET_HEX_ESCAPE, INetURLObject::DECODE_UNAMBIGUOUS, RTL_TEXTENCODING_UTF8 ) );
|
||||||
::lcl_ReadSections( *pMedium, aSubRegionED );
|
::lcl_ReadSections(*pMedium, *m_pSubRegionED);
|
||||||
delete pMedium;
|
delete pMedium;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -144,38 +144,32 @@ public:
|
|||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
class SwInsertSectionTabPage : public SfxTabPage
|
class SwInsertSectionTabPage : public SfxTabPage
|
||||||
{
|
{
|
||||||
FixedLine aNameFL;
|
ComboBox* m_pCurName;
|
||||||
ComboBox aCurName;
|
|
||||||
|
|
||||||
FixedLine aLinkFL;
|
CheckBox* m_pFileCB;
|
||||||
CheckBox aFileCB;
|
CheckBox* m_pDDECB;
|
||||||
CheckBox aDDECB;
|
FixedText* m_pDDECommandFT;
|
||||||
FixedText aDDECommandFT;
|
FixedText* m_pFileNameFT;
|
||||||
FixedText aFileNameFT;
|
Edit* m_pFileNameED;
|
||||||
Edit aFileNameED;
|
PushButton* m_pFilePB;
|
||||||
PushButton aFilePB;
|
FixedText* m_pSubRegionFT;
|
||||||
FixedText aSubRegionFT;
|
ComboBox* m_pSubRegionED;
|
||||||
ComboBox aSubRegionED;
|
|
||||||
|
|
||||||
FixedLine aProtectFL;
|
CheckBox* m_pProtectCB;
|
||||||
CheckBox aProtectCB;
|
CheckBox* m_pPasswdCB;
|
||||||
CheckBox aPasswdCB;
|
PushButton* m_pPasswdPB;
|
||||||
PushButton aPasswdPB;
|
|
||||||
|
|
||||||
FixedLine aHideFL;
|
CheckBox* m_pHideCB;
|
||||||
CheckBox aHideCB;
|
FixedText* m_pConditionFT;
|
||||||
FixedText aConditionFT;
|
ConditionEdit* m_pConditionED;
|
||||||
ConditionEdit aConditionED;
|
|
||||||
|
|
||||||
// #114856# edit in readonly sections
|
// #114856# edit in readonly sections
|
||||||
FixedLine aPropertiesFL;
|
CheckBox* m_pEditInReadonlyCB;
|
||||||
CheckBox aEditInReadonlyCB;
|
|
||||||
|
|
||||||
String m_sFileName;
|
String m_sFileName;
|
||||||
String m_sFilterName;
|
String m_sFilterName;
|
||||||
String m_sFilePasswd;
|
String m_sFilePasswd;
|
||||||
|
|
||||||
// SwFmtCol* pCols;
|
|
||||||
::com::sun::star::uno::Sequence <sal_Int8 > m_aNewPasswd;
|
::com::sun::star::uno::Sequence <sal_Int8 > m_aNewPasswd;
|
||||||
SwWrtShell* m_pWrtSh;
|
SwWrtShell* m_pWrtSh;
|
||||||
sfx2::DocumentInserter* m_pDocInserter;
|
sfx2::DocumentInserter* m_pDocInserter;
|
||||||
|
517
sw/uiconfig/swriter/ui/sectionpage.ui
Normal file
517
sw/uiconfig/swriter/ui/sectionpage.ui
Normal file
@@ -0,0 +1,517 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<interface>
|
||||||
|
<!-- interface-requires gtk+ 3.0 -->
|
||||||
|
<!-- interface-requires LibreOffice 1.0 -->
|
||||||
|
<object class="GtkGrid" id="SectionPage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="vexpand">True</property>
|
||||||
|
<property name="border_width">6</property>
|
||||||
|
<property name="column_spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkFrame" id="section">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="vexpand">True</property>
|
||||||
|
<property name="label_xalign">0</property>
|
||||||
|
<property name="shadow_type">none</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAlignment" id="alignment3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="vexpand">True</property>
|
||||||
|
<property name="top_padding">6</property>
|
||||||
|
<property name="left_padding">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="VclComboBoxText" id="sectionnames">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="vexpand">True</property>
|
||||||
|
<property name="has_entry">True</property>
|
||||||
|
<property name="entry_text_column">0</property>
|
||||||
|
<property name="id_column">1</property>
|
||||||
|
<property name="dropdown">False</property>
|
||||||
|
<property name="max_width_chars">18</property>
|
||||||
|
<child internal-child="entry">
|
||||||
|
<object class="GtkEntry" id="comboboxtext-entry">
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child type="label">
|
||||||
|
<object class="GtkLabel" id="label4">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="label" translatable="yes">New section</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkGrid" id="grid1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="row_spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkFrame" id="section1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="label_xalign">0</property>
|
||||||
|
<property name="shadow_type">none</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAlignment" id="alignment1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="top_padding">6</property>
|
||||||
|
<property name="left_padding">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkGrid" id="grid2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="row_spacing">6</property>
|
||||||
|
<property name="column_spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCheckButton" id="link">
|
||||||
|
<property name="label" translatable="yes">_Link</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">False</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="draw_indicator">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="width">3</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCheckButton" id="dde">
|
||||||
|
<property name="label" translatable="yes">DD_E</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">False</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="draw_indicator">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="width">3</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="sectionlabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="label" translatable="yes">_Section</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="mnemonic_widget">sectionname</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkEntry" id="filename">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="invisible_char">●</property>
|
||||||
|
<property name="width_chars">18</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="VclComboBoxText" id="sectionname">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="has_entry">True</property>
|
||||||
|
<property name="entry_text_column">0</property>
|
||||||
|
<property name="id_column">1</property>
|
||||||
|
<property name="max_width_chars">18</property>
|
||||||
|
<child internal-child="entry">
|
||||||
|
<object class="GtkEntry" id="comboboxtext-entry1">
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="box1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="filelabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="label" translatable="yes">_File name</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="mnemonic_widget">filename</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="ddelabel">
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="label" translatable="yes">DDE _command</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="mnemonic_widget">filename</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="selectfile">
|
||||||
|
<property name="label" translatable="yes">...</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">2</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<placeholder/>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child type="label">
|
||||||
|
<object class="GtkLabel" id="label1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Link</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkFrame" id="section2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="label_xalign">0</property>
|
||||||
|
<property name="shadow_type">none</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAlignment" id="alignment2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="top_padding">6</property>
|
||||||
|
<property name="left_padding">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkGrid" id="grid3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="row_spacing">6</property>
|
||||||
|
<property name="column_spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCheckButton" id="protect">
|
||||||
|
<property name="label" translatable="yes">_Protect</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">False</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="draw_indicator">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="width">2</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="selectpassword">
|
||||||
|
<property name="label" translatable="yes">...</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCheckButton" id="withpassword">
|
||||||
|
<property name="label" translatable="yes">Wit_h password</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">False</property>
|
||||||
|
<property name="margin_left">12</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="draw_indicator">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child type="label">
|
||||||
|
<object class="GtkLabel" id="label2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Write protection</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkFrame" id="section3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="label_xalign">0</property>
|
||||||
|
<property name="shadow_type">none</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAlignment" id="alignment4">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="top_padding">6</property>
|
||||||
|
<property name="left_padding">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkGrid" id="grid4">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="row_spacing">6</property>
|
||||||
|
<property name="column_spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="swlo-ConditionEdit" id="withcond">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="width_chars">18</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCheckButton" id="hide">
|
||||||
|
<property name="label" translatable="yes">H_ide</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">False</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="draw_indicator">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="width">2</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="condlabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="label" translatable="yes">_With Condition</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="mnemonic_widget">withcond</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child type="label">
|
||||||
|
<object class="GtkLabel" id="label3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Hide</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkFrame" id="section4">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="label_xalign">0</property>
|
||||||
|
<property name="shadow_type">none</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAlignment" id="alignment5">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="top_padding">6</property>
|
||||||
|
<property name="left_padding">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCheckButton" id="editable">
|
||||||
|
<property name="label" translatable="yes">E_ditable in read-only document</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">False</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="draw_indicator">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child type="label">
|
||||||
|
<object class="GtkLabel" id="label5">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Properties</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
<property name="width">1</property>
|
||||||
|
<property name="height">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<object class="GtkSizeGroup" id="sizegroup1">
|
||||||
|
<widgets>
|
||||||
|
<widget name="sectionlabel"/>
|
||||||
|
<widget name="filelabel"/>
|
||||||
|
<widget name="ddelabel"/>
|
||||||
|
<widget name="condlabel"/>
|
||||||
|
</widgets>
|
||||||
|
</object>
|
||||||
|
</interface>
|
Reference in New Issue
Block a user