diff --git a/extras/source/glade/libreoffice-catalog.xml.in b/extras/source/glade/libreoffice-catalog.xml.in index 95d441185645..267ad832797e 100644 --- a/extras/source/glade/libreoffice-catalog.xml.in +++ b/extras/source/glade/libreoffice-catalog.xml.in @@ -415,6 +415,10 @@ generic-name="Cursor Reference Edit" parent="foruilo-RefEdit" icon-name="widget-gtk-textentry"/> + + diff --git a/sw/UIConfig_swriter.mk b/sw/UIConfig_swriter.mk index b123a7e57f26..a56b10a749e7 100644 --- a/sw/UIConfig_swriter.mk +++ b/sw/UIConfig_swriter.mk @@ -128,6 +128,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\ sw/uiconfig/swriter/ui/rowheight \ sw/uiconfig/swriter/ui/saveashtmldialog \ sw/uiconfig/swriter/ui/savelabeldialog \ + sw/uiconfig/swriter/ui/sectionpage \ sw/uiconfig/swriter/ui/sidebarpage \ sw/uiconfig/swriter/ui/sidebarwrap \ sw/uiconfig/swriter/ui/sortdialog \ diff --git a/sw/inc/helpid.h b/sw/inc/helpid.h index d66894ce1185..fe6aee4505ad 100644 --- a/sw/inc/helpid.h +++ b/sw/inc/helpid.h @@ -167,7 +167,6 @@ #define HID_EDIT_FLD_REF "SW_HID_EDIT_FLD_REF" #define HID_REDLINE_CTRL "SW_HID_REDLINE_CTRL" #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_SECTION_PROPERTIES_DLG "SW_HID_SECTION_PROPERTIES_DLG" #define HID_TP_TOX_SELECT "SW_HID_TP_TOX_SELECT" diff --git a/sw/source/ui/dialog/regionsw.hrc b/sw/source/ui/dialog/regionsw.hrc index 8d79cbed2e61..b7d45f309c8d 100644 --- a/sw/source/ui/dialog/regionsw.hrc +++ b/sw/source/ui/dialog/regionsw.hrc @@ -21,38 +21,7 @@ #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 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 */ #define STR_REG_DUPLICATE (RC_REGIONSW_BEGIN+6) diff --git a/sw/source/ui/dialog/regionsw.src b/sw/source/ui/dialog/regionsw.src index a652597bb601..dfa4d0df2dd0 100644 --- a/sw/source/ui/dialog/regionsw.src +++ b/sw/source/ui/dialog/regionsw.src @@ -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 { HelpId = HID_SECTION_PROPERTIES_DLG; diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index 918dbff98ef0..8f7ca5ce37a3 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -1535,52 +1535,48 @@ short SwInsertSectionTabDialog::Ok() } SwInsertSectionTabPage::SwInsertSectionTabPage( - Window *pParent, const SfxItemSet &rAttrSet) : - SfxTabPage( pParent, SW_RES(TP_INSERT_SECTION), rAttrSet ), - aNameFL ( this, SW_RES( FL_NAME ) ), - aCurName ( this, SW_RES( ED_RNAME ) ), - aLinkFL ( this, SW_RES( FL_LINK ) ), - aFileCB ( this, SW_RES( CB_FILE ) ), - 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) + Window *pParent, const SfxItemSet &rAttrSet) + : SfxTabPage(pParent, "SectionPage", + "modules/swriter/ui/sectionpage.ui", rAttrSet) + , m_pWrtSh(0) + , m_pDocInserter(NULL) + , m_pOldDefDlgParent(NULL) { - FreeResource(); - - aProtectCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeProtectHdl)); - aPasswdCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangePasswdHdl)); - aPasswdPB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangePasswdHdl)); - aHideCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeHideHdl)); + get(m_pCurName, "sectionnames"); + m_pCurName->SetStyle(m_pCurName->GetStyle() | WB_SORT); + m_pCurName->set_height_request(m_pCurName->GetTextHeight() * 12); + get(m_pFileCB, "link"); + get(m_pDDECB, "dde"); + 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 - aEditInReadonlyCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeEditInReadonlyHdl)); - aFileCB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, UseFileHdl )); - aFilePB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, FileSearchHdl )); - aCurName.SetModifyHdl ( LINK( this, SwInsertSectionTabPage, NameEditHdl)); - aDDECB.SetClickHdl ( LINK( this, SwInsertSectionTabPage, DDEHdl )); - ChangeProtectHdl(&aProtectCB); - aPasswdPB.SetAccessibleRelationMemberOf(&aProtectFL); - aSubRegionED.EnableAutocomplete( sal_True, sal_True ); + get(m_pEditInReadonlyCB, "editable"); + + + + m_pProtectCB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangeProtectHdl)); + m_pPasswdCB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangePasswdHdl)); + m_pPasswdPB->SetClickHdl ( LINK( this, SwInsertSectionTabPage, ChangePasswdHdl)); + 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() @@ -1595,53 +1591,53 @@ void SwInsertSectionTabPage::SetWrtShell(SwWrtShell& rSh) bool bWeb = 0 != PTR_CAST(SwWebDocShell, m_pWrtSh->GetView().GetDocShell()); if(bWeb) { - aHideCB .Hide(); - aConditionED .Hide(); - aConditionFT .Hide(); - aDDECB .Hide(); - aDDECommandFT .Hide(); + m_pHideCB->Hide(); + m_pConditionED->Hide(); + m_pConditionFT->Hide(); + m_pDDECB->Hide(); + m_pDDECommandFT->Hide(); } - lcl_FillSubRegionList( *m_pWrtSh, aSubRegionED, &aCurName ); + lcl_FillSubRegionList(*m_pWrtSh, *m_pSubRegionED, m_pCurName); SwSectionData *const pSectionData = static_cast(GetTabDialog()) ->GetSectionData(); if (pSectionData) // something set? { - aCurName.SetText( + m_pCurName->SetText( rSh.GetUniqueSectionName(& pSectionData->GetSectionName())); - aProtectCB.Check( 0 != pSectionData->IsProtectFlag() ); + m_pProtectCB->Check( 0 != pSectionData->IsProtectFlag() ); m_sFileName = pSectionData->GetLinkFileName(); m_sFilePasswd = pSectionData->GetLinkFilePassword(); - aFileCB.Check( 0 != m_sFileName.Len() ); - aFileNameED.SetText( m_sFileName ); - UseFileHdl( &aFileCB ); + m_pFileCB->Check( 0 != m_sFileName.Len() ); + m_pFileNameED->SetText( m_sFileName ); + UseFileHdl(m_pFileCB); } else { - aCurName.SetText( rSh.GetUniqueSectionName() ); + m_pCurName->SetText( rSh.GetUniqueSectionName() ); } } sal_Bool SwInsertSectionTabPage::FillItemSet( SfxItemSet& ) { - SwSectionData aSection(CONTENT_SECTION, aCurName.GetText()); - aSection.SetCondition(aConditionED.GetText()); - sal_Bool bProtected = aProtectCB.IsChecked(); + SwSectionData aSection(CONTENT_SECTION, m_pCurName->GetText()); + aSection.SetCondition(m_pConditionED->GetText()); + sal_Bool bProtected = m_pProtectCB->IsChecked(); aSection.SetProtectFlag(bProtected); - aSection.SetHidden(aHideCB.IsChecked()); + aSection.SetHidden(m_pHideCB->IsChecked()); // edit in readonly sections - aSection.SetEditInReadonlyFlag(aEditInReadonlyCB.IsChecked()); + aSection.SetEditInReadonlyFlag(m_pEditInReadonlyCB->IsChecked()); if(bProtected) { aSection.SetPassword(m_aNewPasswd); } - String sFileName = aFileNameED.GetText(); - String sSubRegion = aSubRegionED.GetText(); - sal_Bool bDDe = aDDECB.IsChecked(); - if(aFileCB.IsChecked() && (sFileName.Len() || sSubRegion.Len() || bDDe)) + String sFileName = m_pFileNameED->GetText(); + String sSubRegion = m_pSubRegionED->GetText(); + sal_Bool bDDe = m_pDDECB->IsChecked(); + if(m_pFileCB->IsChecked() && (sFileName.Len() || sSubRegion.Len() || bDDe)) { String aLinkFile; if( bDDe ) @@ -1677,7 +1673,7 @@ sal_Bool SwInsertSectionTabPage::FillItemSet( SfxItemSet& ) aSection.SetLinkFileName(aLinkFile); if(aLinkFile.Len()) { - aSection.SetType( aDDECB.IsChecked() ? + aSection.SetType( m_pDDECB->IsChecked() ? DDE_LINK_SECTION : FILE_LINK_SECTION); } @@ -1699,8 +1695,8 @@ SfxTabPage* SwInsertSectionTabPage::Create( Window* pParent, IMPL_LINK( SwInsertSectionTabPage, ChangeHideHdl, CheckBox *, pBox ) { sal_Bool bHide = pBox->IsChecked(); - aConditionED.Enable(bHide); - aConditionFT.Enable(bHide); + m_pConditionED->Enable(bHide); + m_pConditionFT->Enable(bHide); return 0; } @@ -1712,15 +1708,15 @@ IMPL_LINK_NOARG(SwInsertSectionTabPage, ChangeEditInReadonlyHdl) IMPL_LINK( SwInsertSectionTabPage, ChangeProtectHdl, CheckBox *, pBox ) { sal_Bool bCheck = pBox->IsChecked(); - aPasswdCB.Enable(bCheck); - aPasswdPB.Enable(bCheck); + m_pPasswdCB->Enable(bCheck); + m_pPasswdPB->Enable(bCheck); return 0; } IMPL_LINK( SwInsertSectionTabPage, ChangePasswdHdl, Button *, pButton ) { - sal_Bool bChange = pButton == &aPasswdPB; - sal_Bool bSet = bChange ? bChange : aPasswdCB.IsChecked(); + sal_Bool bChange = pButton == m_pPasswdPB; + sal_Bool bSet = bChange ? bChange : m_pPasswdCB->IsChecked(); if(bSet) { if(!m_aNewPasswd.getLength() || bChange) @@ -1740,7 +1736,7 @@ IMPL_LINK( SwInsertSectionTabPage, ChangePasswdHdl, Button *, pButton ) } } else if(!bChange) - aPasswdCB.Check(sal_False); + m_pPasswdCB->Check(sal_False); } } else @@ -1750,8 +1746,8 @@ IMPL_LINK( SwInsertSectionTabPage, ChangePasswdHdl, Button *, pButton ) IMPL_LINK_NOARG_INLINE_START(SwInsertSectionTabPage, NameEditHdl) { - String aName=aCurName.GetText(); - GetTabDialog()->GetOKButton().Enable(aName.Len() && aCurName.GetEntryPos( aName ) == USHRT_MAX); + String aName=m_pCurName->GetText(); + GetTabDialog()->GetOKButton().Enable(aName.Len() && m_pCurName->GetEntryPos( aName ) == USHRT_MAX); return 0; } IMPL_LINK_NOARG_INLINE_END(SwInsertSectionTabPage, NameEditHdl) @@ -1766,22 +1762,22 @@ IMPL_LINK( SwInsertSectionTabPage, UseFileHdl, CheckBox *, pBox ) } sal_Bool bFile = pBox->IsChecked(); - aFileNameFT.Enable(bFile); - aFileNameED.Enable(bFile); - aFilePB.Enable(bFile); - aSubRegionFT.Enable(bFile); - aSubRegionED.Enable(bFile); - aDDECommandFT.Enable(bFile); - aDDECB.Enable(bFile); + m_pFileNameFT->Enable(bFile); + m_pFileNameED->Enable(bFile); + m_pFilePB->Enable(bFile); + m_pSubRegionFT->Enable(bFile); + m_pSubRegionED->Enable(bFile); + m_pDDECommandFT->Enable(bFile); + m_pDDECB->Enable(bFile); if( bFile ) { - aFileNameED.GrabFocus(); - aProtectCB.Check( sal_True ); + m_pFileNameED->GrabFocus(); + m_pProtectCB->Check( sal_True ); } else { - aDDECB.Check(sal_False); - DDEHdl(&aDDECB); + m_pDDECB->Check(sal_False); + DDEHdl(m_pDDECB); } return 0; } @@ -1800,26 +1796,26 @@ IMPL_LINK_NOARG(SwInsertSectionTabPage, FileSearchHdl) IMPL_LINK( SwInsertSectionTabPage, DDEHdl, CheckBox*, pBox ) { sal_Bool bDDE = pBox->IsChecked(); - sal_Bool bFile = aFileCB.IsChecked(); - aFilePB.Enable(!bDDE && bFile); + sal_Bool bFile = m_pFileCB->IsChecked(); + m_pFilePB->Enable(!bDDE && bFile); if(bDDE) { - aFileNameFT.Hide(); - aDDECommandFT.Enable(bDDE); - aDDECommandFT.Show(); - aSubRegionFT.Hide(); - aSubRegionED.Hide(); - aFileNameED.SetAccessibleName(aDDECommandFT.GetText()); + m_pFileNameFT->Hide(); + m_pDDECommandFT->Enable(bDDE); + m_pDDECommandFT->Show(); + m_pSubRegionFT->Hide(); + m_pSubRegionED->Hide(); + m_pFileNameED->SetAccessibleName(m_pDDECommandFT->GetText()); } else { - aDDECommandFT.Hide(); - aFileNameFT.Enable(bFile); - aFileNameFT.Show(); - aSubRegionFT.Show(); - aSubRegionED.Show(); - aSubRegionED.Enable(bFile); - aFileNameED.SetAccessibleName(aFileNameFT.GetText()); + m_pDDECommandFT->Hide(); + m_pFileNameFT->Enable(bFile); + m_pFileNameFT->Show(); + m_pSubRegionFT->Show(); + m_pSubRegionED->Show(); + m_pSubRegionED->Enable(bFile); + m_pFileNameED->SetAccessibleName(m_pFileNameFT->GetText()); } return 0; } @@ -1836,9 +1832,9 @@ IMPL_LINK( SwInsertSectionTabPage, DlgClosedHdl, sfx2::FileDialogHelper *, _pFil const SfxPoolItem* pItem; if ( SFX_ITEM_SET == pMedium->GetItemSet()->GetItemState( SID_PASSWORD, sal_False, &pItem ) ) 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 ) ); - ::lcl_ReadSections( *pMedium, aSubRegionED ); + ::lcl_ReadSections(*pMedium, *m_pSubRegionED); delete pMedium; } } diff --git a/sw/source/ui/inc/regionsw.hxx b/sw/source/ui/inc/regionsw.hxx index 1cb9509f5051..9258bc426378 100644 --- a/sw/source/ui/inc/regionsw.hxx +++ b/sw/source/ui/inc/regionsw.hxx @@ -144,38 +144,32 @@ public: *************************************************************************/ class SwInsertSectionTabPage : public SfxTabPage { - FixedLine aNameFL; - ComboBox aCurName; + ComboBox* m_pCurName; - FixedLine aLinkFL; - CheckBox aFileCB; - CheckBox aDDECB; - FixedText aDDECommandFT; - FixedText aFileNameFT; - Edit aFileNameED; - PushButton aFilePB; - FixedText aSubRegionFT; - ComboBox aSubRegionED; + CheckBox* m_pFileCB; + CheckBox* m_pDDECB; + FixedText* m_pDDECommandFT; + FixedText* m_pFileNameFT; + Edit* m_pFileNameED; + PushButton* m_pFilePB; + FixedText* m_pSubRegionFT; + ComboBox* m_pSubRegionED; - FixedLine aProtectFL; - CheckBox aProtectCB; - CheckBox aPasswdCB; - PushButton aPasswdPB; + CheckBox* m_pProtectCB; + CheckBox* m_pPasswdCB; + PushButton* m_pPasswdPB; - FixedLine aHideFL; - CheckBox aHideCB; - FixedText aConditionFT; - ConditionEdit aConditionED; + CheckBox* m_pHideCB; + FixedText* m_pConditionFT; + ConditionEdit* m_pConditionED; // #114856# edit in readonly sections - FixedLine aPropertiesFL; - CheckBox aEditInReadonlyCB; + CheckBox* m_pEditInReadonlyCB; String m_sFileName; String m_sFilterName; String m_sFilePasswd; -// SwFmtCol* pCols; ::com::sun::star::uno::Sequence m_aNewPasswd; SwWrtShell* m_pWrtSh; sfx2::DocumentInserter* m_pDocInserter; diff --git a/sw/uiconfig/swriter/ui/sectionpage.ui b/sw/uiconfig/swriter/ui/sectionpage.ui new file mode 100644 index 000000000000..2368791a89d7 --- /dev/null +++ b/sw/uiconfig/swriter/ui/sectionpage.ui @@ -0,0 +1,517 @@ + + + + + + True + False + True + True + 6 + 12 + + + True + False + True + True + 0 + none + + + True + False + True + True + 6 + 12 + + + True + False + True + True + True + 0 + 1 + False + 18 + + + False + + + + + + + + + True + False + New section + + + + + + + + 0 + 0 + 1 + 1 + + + + + True + False + True + 12 + + + True + False + True + 0 + none + + + True + False + True + 6 + 12 + + + True + False + True + 6 + 12 + + + _Link + True + True + False + True + 0 + True + + + 0 + 0 + 3 + 1 + + + + + DD_E + True + False + True + False + True + 0 + True + + + 0 + 1 + 3 + 1 + + + + + True + False + False + 0 + _Section + True + sectionname + + + 0 + 3 + 1 + 1 + + + + + True + False + True + True + + 18 + + + 1 + 2 + 1 + 1 + + + + + True + False + False + True + True + 0 + 1 + 18 + + + False + + + + + 1 + 3 + 1 + 1 + + + + + True + False + vertical + + + True + False + False + 0 + _File name + True + filename + + + False + True + 0 + + + + + False + True + 0 + DDE _command + True + filename + + + False + True + 1 + + + + + 0 + 2 + 1 + 1 + + + + + ... + True + False + True + True + True + + + 2 + 2 + 1 + 1 + + + + + + + + + + + + True + False + Link + + + + + + + + 0 + 0 + 1 + 1 + + + + + True + False + True + 0 + none + + + True + False + True + 6 + 12 + + + True + False + True + 6 + 12 + + + _Protect + True + True + False + True + 0 + True + + + 0 + 0 + 2 + 1 + + + + + ... + True + True + True + True + + + 1 + 1 + 1 + 1 + + + + + Wit_h password + True + True + False + 12 + True + True + 0 + True + + + 0 + 1 + 1 + 1 + + + + + + + + + True + False + Write protection + + + + + + + + 0 + 1 + 1 + 1 + + + + + True + False + True + 0 + none + + + True + False + True + 6 + 12 + + + True + False + True + 6 + 12 + + + True + False + True + True + 18 + + + 1 + 1 + 1 + 1 + + + + + H_ide + True + True + False + True + 0 + True + + + 0 + 0 + 2 + 1 + + + + + True + False + False + 0 + _With Condition + True + withcond + + + 0 + 1 + 1 + 1 + + + + + + + + + True + False + Hide + + + + + + + + 0 + 2 + 1 + 1 + + + + + True + False + True + 0 + none + + + True + False + True + 6 + 12 + + + E_ditable in read-only document + True + True + False + True + 0 + True + + + + + + + True + False + Properties + + + + + + + + 0 + 3 + 1 + 1 + + + + + 1 + 0 + 1 + 1 + + + + + + + + + + + +