summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-10 22:04:29 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:10 +0100
commit58afbc05934d06d284523a99935b21dea92ea8a4 (patch)
tree392782167ebf4ee87701d0fedc10d2bfd88de46c /sw/source
parent40a02b83f307c07a0886ecd1894441516983fdc4 (diff)
convert SwCharURLPage
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/chrdlg/chardlg.cxx78
-rw-r--r--sw/source/ui/inc/chrdlg.hxx3
2 files changed, 59 insertions, 22 deletions
diff --git a/sw/source/ui/chrdlg/chardlg.cxx b/sw/source/ui/chrdlg/chardlg.cxx
index 94c466210be2..96e494046c33 100644
--- a/sw/source/ui/chrdlg/chardlg.cxx
+++ b/sw/source/ui/chrdlg/chardlg.cxx
@@ -147,32 +147,66 @@ void SwCharDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
}
}
-SwCharURLPage::SwCharURLPage( Window* pParent,
- const SfxItemSet& rCoreSet ) :
- SfxTabPage( pParent, SW_RES( TP_CHAR_URL ), rCoreSet ),
- aURLFL ( this, SW_RES(FL_URL)),
-
- aURLFT( this, SW_RES(FT_URL )),
- aURLED( this, SW_RES(ED_URL )),
- aTextFT( this, SW_RES(FT_TEXT )),
- aTextED( this, SW_RES(ED_TEXT )),
- aNameFT( this, SW_RES(FT_NAME )),
- aNameED( this, SW_RES(ED_NAME)),
- aTargetFrmFT( this, SW_RES(FT_TARGET )),
- aTargetFrmLB( this, SW_RES(LB_TARGET )),
- aURLPB( this, SW_RES(PB_URL )),
- aEventPB( this, SW_RES(PB_EVENT )),
- aStyleFL( this, SW_RES(FL_STYLE )),
- aVisitedFT( this, SW_RES(FT_VISITED )),
- aVisitedLB( this, SW_RES(LB_VISITED )),
- aNotVisitedFT( this, SW_RES(FT_NOT_VISITED)),
- aNotVisitedLB( this, SW_RES(LB_NOT_VISITED)),
- pINetItem(0),
- bModified(sal_False)
+SwCharURLPage::SwCharURLPage(Window* pParent, const SfxItemSet& rCoreSet)
+ : SfxTabPage(pParent, SW_RES(TP_CHAR_URL), rCoreSet)
+ , m_aBox(this, false, 7)
+ , m_aGrid(&m_aBox)
+ , aURLFL(&m_aGrid, SW_RES(FL_URL))
+ , aURLFT(&m_aGrid, SW_RES(FT_URL))
+ , aURLED(&m_aGrid, SW_RES(ED_URL))
+ , aTextFT(&m_aGrid, SW_RES(FT_TEXT))
+ , aTextED(&m_aGrid, SW_RES(ED_TEXT))
+ , aNameFT(&m_aGrid, SW_RES(FT_NAME))
+ , aNameED(&m_aGrid, SW_RES(ED_NAME))
+ , aTargetFrmFT(&m_aGrid, SW_RES(FT_TARGET))
+ , aTargetFrmLB(&m_aGrid, SW_RES(LB_TARGET))
+ , aURLPB(&m_aGrid, SW_RES(PB_URL))
+ , aEventPB(&m_aGrid, SW_RES(PB_EVENT))
+ , aStyleFL(&m_aGrid, SW_RES(FL_STYLE))
+ , aVisitedFT(&m_aGrid, SW_RES(FT_VISITED))
+ , aVisitedLB(&m_aGrid, SW_RES(LB_VISITED))
+ , aNotVisitedFT(&m_aGrid, SW_RES(FT_NOT_VISITED))
+ , aNotVisitedLB(&m_aGrid, SW_RES(LB_NOT_VISITED))
+ , pINetItem(0)
+ , bModified(sal_False)
{
FreeResource();
+ rtl::OString sFill(RTL_CONSTASCII_STRINGPARAM("fill"));
+ rtl::OString sExpand(RTL_CONSTASCII_STRINGPARAM("expand"));
+
+ m_aBox.setChildProperty(sFill, true);
+ m_aBox.setChildProperty(sExpand, true);
+
+ m_aGrid.set_column_spacing(7);
+ m_aGrid.set_row_spacing(2);
+
+ setGridAttach(aURLFL, 0, 0, 3);
+
+ setGridAttach(aURLFT, 0, 1);
+ setGridAttach(aURLED, 1, 1);
+ setGridAttach(aURLPB, 2, 1);
+
+ setGridAttach(aTextFT, 0, 2);
+ setGridAttach(aTextED, 1, 2);
+
+ setGridAttach(aNameFT, 0, 3);
+ setGridAttach(aNameED, 1, 3);
+
+ setGridAttach(aTargetFrmFT, 0, 4);
+ setGridAttach(aTargetFrmLB, 1, 4);
+
+ setGridAttach(aEventPB, 0, 5);
+
+ setGridAttach(aStyleFL, 0, 6, 3);
+
+ setGridAttach(aVisitedFT, 0, 7);
+ setGridAttach(aVisitedLB, 1, 7);
+
+ setGridAttach(aNotVisitedFT, 0, 8);
+ setGridAttach(aNotVisitedLB, 1, 8);
+
aEventPB.SetAccessibleRelationMemberOf(&aURLFL);
const SfxPoolItem* pItem;
diff --git a/sw/source/ui/inc/chrdlg.hxx b/sw/source/ui/inc/chrdlg.hxx
index 26062f0a707d..dcefa97f1af4 100644
--- a/sw/source/ui/inc/chrdlg.hxx
+++ b/sw/source/ui/inc/chrdlg.hxx
@@ -60,6 +60,9 @@ public:
class SwCharURLPage : public SfxTabPage
{
+ VBox m_aBox;
+ Grid m_aGrid;
+
FixedLine aURLFL;
FixedText aURLFT;