diff options
author | Jack Leigh <leighman@gmx.se> | 2012-10-26 18:25:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-26 20:40:17 +0100 |
commit | 468cb30c109dc086e4dc319ab7013f14c559ddc2 (patch) | |
tree | d9fe39d22de4a6e3c22b8d9f3805298a7f04a0f7 /cui/source | |
parent | 4f94de16506b93da18179ec7c97d74f0f77b3413 (diff) |
migrate Insert Floating Frame dialog to .ui file
Change-Id: I732bd280295097fe098d3175127eb4d8a026dc32
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/insdlg.cxx | 188 | ||||
-rw-r--r-- | cui/source/dialogs/svuidlg.hrc | 23 | ||||
-rw-r--r-- | cui/source/dialogs/svuidlg.src | 187 | ||||
-rw-r--r-- | cui/source/inc/insdlg.hxx | 64 |
4 files changed, 97 insertions, 365 deletions
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index 9c42a48e3eca..83cd8d0c0678 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -509,97 +509,49 @@ short SvInsertPlugInDialog::Execute() SfxInsertFloatingFrameDialog::SfxInsertFloatingFrameDialog( Window *pParent, const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage ) - : InsertObjectDialog_Impl( pParent, CUI_RES( MD_INSERT_OBJECT_IFRAME ), xStorage ) - , aFTName ( this, CUI_RES( FT_FRAMENAME ) ) - , aEDName ( this, CUI_RES( ED_FRAMENAME ) ) - , aFTURL ( this, CUI_RES( FT_URL ) ) - , aEDURL ( this, CUI_RES( ED_URL ) ) - , aBTOpen ( this, CUI_RES(BT_FILEOPEN ) ) - - , aFLScrolling ( this, CUI_RES( GB_SCROLLING ) ) - , aRBScrollingOn ( this, CUI_RES( RB_SCROLLINGON ) ) - , aRBScrollingOff ( this, CUI_RES( RB_SCROLLINGOFF ) ) - , aRBScrollingAuto ( this, CUI_RES( RB_SCROLLINGAUTO ) ) - , aFLSepLeft( this, CUI_RES( FL_SEP_LEFT ) ) - , aFLFrameBorder( this, CUI_RES( GB_BORDER ) ) - , aRBFrameBorderOn ( this, CUI_RES( RB_FRMBORDER_ON ) ) - , aRBFrameBorderOff ( this, CUI_RES( RB_FRMBORDER_OFF ) ) - , aFLSepRight( this, CUI_RES( FL_SEP_RIGHT ) ) - , aFLMargin( this, CUI_RES( GB_MARGIN ) ) - , aFTMarginWidth ( this, CUI_RES( FT_MARGINWIDTH ) ) - , aNMMarginWidth ( this, CUI_RES( NM_MARGINWIDTH ) ) - , aCBMarginWidthDefault( this, CUI_RES( CB_MARGINWIDTHDEFAULT ) ) - , aFTMarginHeight ( this, CUI_RES( FT_MARGINHEIGHT ) ) - , aNMMarginHeight ( this, CUI_RES( NM_MARGINHEIGHT ) ) - , aCBMarginHeightDefault( this, CUI_RES( CB_MARGINHEIGHTDEFAULT ) ) - , aOKButton1( this, CUI_RES( 1 ) ) - , aCancelButton1( this, CUI_RES( 1 ) ) - , aHelpButton1( this, CUI_RES( 1 ) ) + : InsertObjectDialog_Impl( pParent, "InsertFloatingFrameDialog", "cui/ui/insertfloatingframe.ui", + xStorage ) { - FreeResource(); - - aFLSepLeft.SetStyle(aFLSepLeft.GetStyle()|WB_VERT); - aFLSepRight.SetStyle(aFLSepRight.GetStyle()|WB_VERT); - - Link aLink( STATIC_LINK( this, SfxInsertFloatingFrameDialog, CheckHdl ) ); - aCBMarginWidthDefault.SetClickHdl( aLink ); - aCBMarginHeightDefault.SetClickHdl( aLink ); - - aCBMarginWidthDefault.Check(); - aCBMarginHeightDefault.Check(); - aRBScrollingAuto.Check(); - aRBFrameBorderOn.Check(); - - aBTOpen.SetClickHdl( STATIC_LINK( this, SfxInsertFloatingFrameDialog, OpenHdl ) ); + Init(); } -SfxInsertFloatingFrameDialog::SfxInsertFloatingFrameDialog( Window *pParent, const uno::Reference < embed::XEmbeddedObject >& xObj ) - : InsertObjectDialog_Impl( pParent, CUI_RES( MD_INSERT_OBJECT_IFRAME ), uno::Reference < embed::XStorage >() ) - , aFTName ( this, CUI_RES( FT_FRAMENAME ) ) - , aEDName ( this, CUI_RES( ED_FRAMENAME ) ) - , aFTURL ( this, CUI_RES( FT_URL ) ) - , aEDURL ( this, CUI_RES( ED_URL ) ) - , aBTOpen ( this, CUI_RES(BT_FILEOPEN ) ) - - , aFLScrolling ( this, CUI_RES( GB_SCROLLING ) ) - , aRBScrollingOn ( this, CUI_RES( RB_SCROLLINGON ) ) - , aRBScrollingOff ( this, CUI_RES( RB_SCROLLINGOFF ) ) - , aRBScrollingAuto ( this, CUI_RES( RB_SCROLLINGAUTO ) ) - - , aFLSepLeft( this, CUI_RES( FL_SEP_LEFT ) ) - , aFLFrameBorder( this, CUI_RES( GB_BORDER ) ) - , aRBFrameBorderOn ( this, CUI_RES( RB_FRMBORDER_ON ) ) - , aRBFrameBorderOff ( this, CUI_RES( RB_FRMBORDER_OFF ) ) - - , aFLSepRight( this, CUI_RES( FL_SEP_RIGHT ) ) - , aFLMargin( this, CUI_RES( GB_MARGIN ) ) - , aFTMarginWidth ( this, CUI_RES( FT_MARGINWIDTH ) ) - , aNMMarginWidth ( this, CUI_RES( NM_MARGINWIDTH ) ) - , aCBMarginWidthDefault( this, CUI_RES( CB_MARGINWIDTHDEFAULT ) ) - , aFTMarginHeight ( this, CUI_RES( FT_MARGINHEIGHT ) ) - , aNMMarginHeight ( this, CUI_RES( NM_MARGINHEIGHT ) ) - , aCBMarginHeightDefault( this, CUI_RES( CB_MARGINHEIGHTDEFAULT ) ) - , aOKButton1( this, CUI_RES( 1 ) ) - , aCancelButton1( this, CUI_RES( 1 ) ) - , aHelpButton1( this, CUI_RES( 1 ) ) +SfxInsertFloatingFrameDialog::SfxInsertFloatingFrameDialog( Window *pParent, + const uno::Reference < embed::XEmbeddedObject >& xObj ) + : InsertObjectDialog_Impl( pParent, "InsertFloatingFrameDialog", "cui/ui/insertfloatingframe.ui", + uno::Reference < embed::XStorage >() ) { - FreeResource(); - m_xObj = xObj; - aFLSepLeft.SetStyle(aFLSepLeft.GetStyle()|WB_VERT); - aFLSepRight.SetStyle(aFLSepRight.GetStyle()|WB_VERT); + Init(); +} + +void SfxInsertFloatingFrameDialog::Init() +{ + get(m_pEDName, "edname"); + get(m_pEDURL, "edurl"); + get(m_pBTOpen, "buttonbrowse"); + get(m_pRBScrollingOn, "scrollbaron"); + get(m_pRBScrollingOff, "scrollbaroff"); + get(m_pRBScrollingAuto, "scrollbarauto"); + get(m_pRBFrameBorderOn, "borderon"); + get(m_pRBFrameBorderOff, "borderoff"); + get(m_pFTMarginWidth, "widthlabel"); + get(m_pNMMarginWidth, "width"); + get(m_pCBMarginWidthDefault, "defaultwidth"); + get(m_pFTMarginHeight, "heightlabel"); + get(m_pNMMarginHeight, "height"); + get(m_pCBMarginHeightDefault, "defaultheight"); Link aLink( STATIC_LINK( this, SfxInsertFloatingFrameDialog, CheckHdl ) ); - aCBMarginWidthDefault.SetClickHdl( aLink ); - aCBMarginHeightDefault.SetClickHdl( aLink ); + m_pCBMarginWidthDefault->SetClickHdl( aLink ); + m_pCBMarginHeightDefault->SetClickHdl( aLink ); - aCBMarginWidthDefault.Check(); - aCBMarginHeightDefault.Check(); - aRBScrollingAuto.Check(); - aRBFrameBorderOn.Check(); + m_pCBMarginWidthDefault->Check(); + m_pCBMarginHeightDefault->Check(); + m_pRBScrollingAuto->Check(); + m_pRBFrameBorderOn->Check(); - aBTOpen.SetClickHdl( STATIC_LINK( this, SfxInsertFloatingFrameDialog, OpenHdl ) ); + m_pBTOpen->SetClickHdl( STATIC_LINK( this, SfxInsertFloatingFrameDialog, OpenHdl ) ); } short SfxInsertFloatingFrameDialog::Execute() @@ -617,10 +569,10 @@ short SfxInsertFloatingFrameDialog::Execute() ::rtl::OUString aStr; uno::Any aAny = xSet->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FrameURL") ) ); if ( aAny >>= aStr ) - aEDURL.SetText( aStr ); + m_pEDURL->SetText( aStr ); aAny = xSet->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FrameName") ) ); if ( aAny >>= aStr ) - aEDName.SetText( aStr ); + m_pEDName->SetText( aStr ); sal_Int32 nSize = SIZE_NOT_SET; aAny = xSet->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FrameMarginWidth") ) ); @@ -628,26 +580,26 @@ short SfxInsertFloatingFrameDialog::Execute() if ( nSize == SIZE_NOT_SET ) { - aCBMarginWidthDefault.Check( sal_True ); - aNMMarginWidth.SetText( String::CreateFromInt32( DEFAULT_MARGIN_WIDTH ) ); - aFTMarginWidth.Enable( sal_False ); - aNMMarginWidth.Enable( sal_False ); + m_pCBMarginWidthDefault->Check( sal_True ); + m_pNMMarginWidth->SetText( String::CreateFromInt32( DEFAULT_MARGIN_WIDTH ) ); + m_pFTMarginWidth->Enable( sal_False ); + m_pNMMarginWidth->Enable( sal_False ); } else - aNMMarginWidth.SetText( String::CreateFromInt32( nSize ) ); + m_pNMMarginWidth->SetText( String::CreateFromInt32( nSize ) ); aAny = xSet->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FrameMarginHeight") ) ); aAny >>= nSize; if ( nSize == SIZE_NOT_SET ) { - aCBMarginHeightDefault.Check( sal_True ); - aNMMarginHeight.SetText( String::CreateFromInt32( DEFAULT_MARGIN_HEIGHT ) ); - aFTMarginHeight.Enable( sal_False ); - aNMMarginHeight.Enable( sal_False ); + m_pCBMarginHeightDefault->Check( sal_True ); + m_pNMMarginHeight->SetText( String::CreateFromInt32( DEFAULT_MARGIN_HEIGHT ) ); + m_pFTMarginHeight->Enable( sal_False ); + m_pNMMarginHeight->Enable( sal_False ); } else - aNMMarginHeight.SetText( String::CreateFromInt32( nSize ) ); + m_pNMMarginHeight->SetText( String::CreateFromInt32( nSize ) ); sal_Bool bScrollOn = sal_False; sal_Bool bScrollOff = sal_False; @@ -666,9 +618,9 @@ short SfxInsertFloatingFrameDialog::Execute() else bScrollAuto = sal_True; - aRBScrollingOn.Check( bScrollOn ); - aRBScrollingOff.Check( bScrollOff ); - aRBScrollingAuto.Check( bScrollAuto ); + m_pRBScrollingOn->Check( bScrollOn ); + m_pRBScrollingOff->Check( bScrollOff ); + m_pRBScrollingAuto->Check( bScrollAuto ); bSet = sal_False; aAny = xSet->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FrameIsAutoBorder") ) ); @@ -677,8 +629,8 @@ short SfxInsertFloatingFrameDialog::Execute() { aAny = xSet->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FrameIsBorder") ) ); aAny >>= bSet; - aRBFrameBorderOn.Check( bSet ); - aRBFrameBorderOff.Check( !bSet ); + m_pRBFrameBorderOn->Check( bSet ); + m_pRBFrameBorderOff->Check( !bSet ); } SetUpdateMode( sal_True ); @@ -698,12 +650,12 @@ short SfxInsertFloatingFrameDialog::Execute() if ( bOK && ( nRet = Dialog::Execute() ) == RET_OK ) { ::rtl::OUString aURL; - if ( aEDURL.GetText().Len() ) + if ( m_pEDURL->GetText().Len() ) { // URL can be a valid and absolute URL or a system file name INetURLObject aObj; aObj.SetSmartProtocol( INET_PROT_FILE ); - if ( aObj.SetSmartURL( aEDURL.GetText() ) ) + if ( aObj.SetSmartURL( m_pEDURL->GetText() ) ) aURL = aObj.GetMainURL( INetURLObject::NO_DECODE ); } @@ -726,26 +678,26 @@ short SfxInsertFloatingFrameDialog::Execute() if ( bIPActive ) m_xObj->changeState( embed::EmbedStates::RUNNING ); - ::rtl::OUString aName = aEDName.GetText(); + ::rtl::OUString aName = m_pEDName->GetText(); ScrollingMode eScroll = ScrollingNo; - if ( aRBScrollingOn.IsChecked() ) + if ( m_pRBScrollingOn->IsChecked() ) eScroll = ScrollingYes; - if ( aRBScrollingOff.IsChecked() ) + if ( m_pRBScrollingOff->IsChecked() ) eScroll = ScrollingNo; - if ( aRBScrollingAuto.IsChecked() ) + if ( m_pRBScrollingAuto->IsChecked() ) eScroll = ScrollingAuto; - sal_Bool bHasBorder = aRBFrameBorderOn.IsChecked(); + sal_Bool bHasBorder = m_pRBFrameBorderOn->IsChecked(); long lMarginWidth; - if ( !aCBMarginWidthDefault.IsChecked() ) - lMarginWidth = (long) aNMMarginWidth.GetText().ToInt32(); + if ( !m_pCBMarginWidthDefault->IsChecked() ) + lMarginWidth = (long) m_pNMMarginWidth->GetText().ToInt32(); else lMarginWidth = SIZE_NOT_SET; long lMarginHeight; - if ( !aCBMarginHeightDefault.IsChecked() ) - lMarginHeight = (long) aNMMarginHeight.GetText().ToInt32(); + if ( !m_pCBMarginHeightDefault->IsChecked() ) + lMarginHeight = (long) m_pNMMarginHeight->GetText().ToInt32(); else lMarginHeight = SIZE_NOT_SET; @@ -785,20 +737,20 @@ short SfxInsertFloatingFrameDialog::Execute() IMPL_STATIC_LINK( SfxInsertFloatingFrameDialog, CheckHdl, CheckBox*, pCB ) { - if ( pCB == &pThis->aCBMarginWidthDefault ) + if ( pCB == pThis->m_pCBMarginWidthDefault ) { if ( pCB->IsChecked() ) - pThis->aNMMarginWidth.SetText( String::CreateFromInt32( DEFAULT_MARGIN_WIDTH ) ); - pThis->aFTMarginWidth.Enable( !pCB->IsChecked() ); - pThis->aNMMarginWidth.Enable( !pCB->IsChecked() ); + pThis->m_pNMMarginWidth->SetText( String::CreateFromInt32( DEFAULT_MARGIN_WIDTH ) ); + pThis->m_pFTMarginWidth->Enable( !pCB->IsChecked() ); + pThis->m_pNMMarginWidth->Enable( !pCB->IsChecked() ); } - if ( pCB == &pThis->aCBMarginHeightDefault ) + if ( pCB == pThis->m_pCBMarginHeightDefault ) { if ( pCB->IsChecked() ) - pThis->aNMMarginHeight.SetText( String::CreateFromInt32( DEFAULT_MARGIN_HEIGHT ) ); - pThis->aFTMarginHeight.Enable( !pCB->IsChecked() ); - pThis->aNMMarginHeight.Enable( !pCB->IsChecked() ); + pThis->m_pNMMarginHeight->SetText( String::CreateFromInt32( DEFAULT_MARGIN_HEIGHT ) ); + pThis->m_pFTMarginHeight->Enable( !pCB->IsChecked() ); + pThis->m_pNMMarginHeight->Enable( !pCB->IsChecked() ); } return 0L; @@ -820,7 +772,7 @@ IMPL_STATIC_LINK( SfxInsertFloatingFrameDialog, OpenHdl, PushButton*, EMPTYARG ) // show the dialog if ( aFileDlg.Execute() == ERRCODE_NONE ) - pThis->aEDURL.SetText( + pThis->m_pEDURL->SetText( INetURLObject( aFileDlg.GetPath() ).GetMainURL( INetURLObject::DECODE_WITH_CHARSET ) ); Application::SetDefDialogParent( pOldParent ); diff --git a/cui/source/dialogs/svuidlg.hrc b/cui/source/dialogs/svuidlg.hrc index e2d69f463507..d473d6f9e4f1 100644 --- a/cui/source/dialogs/svuidlg.hrc +++ b/cui/source/dialogs/svuidlg.hrc @@ -84,26 +84,3 @@ #define GB_APPLET_OPTIONS 21 #define MD_INSERT_OBJECT_IFRAME 32011 -#define FT_FRAMENAME 3 -#define ED_FRAMENAME 4 -#define FT_URL 5 -#define ED_URL 6 -#define BT_FILEOPEN 7 -#define NM_MARGINHEIGHT 8 -#define FT_MARGINHEIGHT 9 -#define NM_MARGINWIDTH 10 -#define FT_MARGINWIDTH 11 -#define GB_MARGIN 12 -#define RB_SCROLLINGON 13 -#define RB_SCROLLINGOFF 14 -#define RB_SCROLLINGAUTO 15 -#define GB_SCROLLING 16 -#define GB_BORDER 17 -#define RB_FRMBORDER_ON 18 -#define RB_FRMBORDER_INHERIT 19 -#define RB_FRMBORDER_OFF 20 -#define CB_MARGINWIDTHDEFAULT 21 -#define CB_MARGINHEIGHTDEFAULT 22 -#define FL_SEP_LEFT 46 -#define FL_SEP_RIGHT 47 - diff --git a/cui/source/dialogs/svuidlg.src b/cui/source/dialogs/svuidlg.src index 7c5bce2cc91d..d8cd5ea013bb 100644 --- a/cui/source/dialogs/svuidlg.src +++ b/cui/source/dialogs/svuidlg.src @@ -393,193 +393,6 @@ Control TB_LINKS ClipChildren = TRUE ; }; -ModalDialog MD_INSERT_OBJECT_IFRAME -{ - HelpID = "cui:ModalDialog:MD_INSERT_OBJECT_IFRAME"; - Size = MAP_APPFONT ( 302 , 98 ) ; - Hide = TRUE ; - Moveable = TRUE ; - OutputSize = TRUE ; - SVLook = TRUE ; - Text [ en-US ] = "Floating Frame Properties" ; - OKButton 1 - { - Pos = MAP_APPFONT ( 246 , 6 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - DefButton = TRUE ; - }; - CancelButton 1 - { - Pos = MAP_APPFONT ( 246 , 23 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - }; - HelpButton 1 - { - Pos = MAP_APPFONT ( 246 , 43 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - }; - FixedText FT_FRAMENAME - { - Pos = MAP_APPFONT ( 6 , 7 ) ; - Size = MAP_APPFONT ( 36 , 10 ) ; - Text [ en-US ] = "~Name" ; - }; - Edit ED_FRAMENAME - { - HelpID = "cui:Edit:MD_INSERT_OBJECT_IFRAME:ED_FRAMENAME"; - Border = TRUE ; - Pos = MAP_APPFONT ( 45 , 6 ) ; - Size = MAP_APPFONT ( 178 , 12 ) ; - TabStop = TRUE ; - }; - FixedText FT_URL - { - Pos = MAP_APPFONT ( 6 , 25 ) ; - Size = MAP_APPFONT ( 36 , 10 ) ; - Text [ en-US ] = "~Contents" ; - }; - Edit ED_URL - { - HelpID = "cui:Edit:MD_INSERT_OBJECT_IFRAME:ED_URL"; - Border = TRUE ; - Pos = MAP_APPFONT ( 45 , 24 ) ; - Size = MAP_APPFONT ( 178 , 12 ) ; - TabStop = TRUE ; - }; - PushButton BT_FILEOPEN - { - HelpID = "cui:PushButton:MD_INSERT_OBJECT_IFRAME:BT_FILEOPEN"; - Pos = MAP_APPFONT ( 226 , 24 ) ; - Size = MAP_APPFONT ( 14 , 14 ) ; - Text = "~..." ; - TabStop = TRUE ; - }; - RadioButton RB_SCROLLINGON - { - HelpID = "cui:RadioButton:MD_INSERT_OBJECT_IFRAME:RB_SCROLLINGON"; - TabStop = TRUE ; - Pos = MAP_APPFONT ( 12 , 53 ) ; - Size = MAP_APPFONT ( 54 , 10 ) ; - Text [ en-US ] = "~On" ; - }; - RadioButton RB_SCROLLINGOFF - { - HelpID = "cui:RadioButton:MD_INSERT_OBJECT_IFRAME:RB_SCROLLINGOFF"; - TabStop = TRUE ; - Pos = MAP_APPFONT ( 12 , 66 ) ; - Size = MAP_APPFONT ( 54 , 10 ) ; - Text [ en-US ] = "O~ff" ; - }; - RadioButton RB_SCROLLINGAUTO - { - HelpID = "cui:RadioButton:MD_INSERT_OBJECT_IFRAME:RB_SCROLLINGAUTO"; - TabStop = TRUE ; - Pos = MAP_APPFONT ( 12 , 79 ) ; - Size = MAP_APPFONT ( 54 , 10 ) ; - Text [ en-US ] = "Au~tomatic" ; - }; - FixedLine GB_SCROLLING - { - Pos = MAP_APPFONT ( 6 , 42 ) ; - Size = MAP_APPFONT ( 63 , 8 ) ; - Text [ en-US ] = "Scroll bar" ; - }; - RadioButton RB_FRMBORDER_ON - { - HelpID = "cui:RadioButton:MD_INSERT_OBJECT_IFRAME:RB_FRMBORDER_ON"; - TabStop = TRUE ; - Pos = MAP_APPFONT ( 81 , 53 ) ; - Size = MAP_APPFONT ( 42 , 10 ) ; - Text [ en-US ] = "On" ; - }; - RadioButton RB_FRMBORDER_OFF - { - HelpID = "cui:RadioButton:MD_INSERT_OBJECT_IFRAME:RB_FRMBORDER_OFF"; - TabStop = TRUE ; - Pos = MAP_APPFONT ( 81 , 66 ) ; - Size = MAP_APPFONT ( 42 , 10 ) ; - Text [ en-US ] = "Off" ; - }; - FixedLine FL_SEP_LEFT - { - Pos = MAP_APPFONT ( 70 , 51 ) ; - Size = MAP_APPFONT ( 4 , 38 ) ; - }; - FixedLine GB_BORDER - { - Pos = MAP_APPFONT ( 75 , 42 ) ; - Size = MAP_APPFONT ( 49 , 8 ) ; - Text [ en-US ] = "Border" ; - }; - FixedText FT_MARGINWIDTH - { - Pos = MAP_APPFONT ( 136 , 56 ) ; - Size = MAP_APPFONT ( 28 , 10 ) ; - Text [ en-US ] = "~Width" ; - }; - NumericField NM_MARGINWIDTH - { - HelpID = "cui:NumericField:MD_INSERT_OBJECT_IFRAME:NM_MARGINWIDTH"; - Border = TRUE ; - Pos = MAP_APPFONT ( 167 , 54 ) ; - Size = MAP_APPFONT ( 20 , 12 ) ; - TabStop = TRUE ; - Repeat = TRUE ; - Spin = TRUE ; - Minimum = 0 ; - Maximum = 99 ; - Last = 10 ; - SpinSize = 1 ; - }; - CheckBox CB_MARGINWIDTHDEFAULT - { - HelpID = "cui:CheckBox:MD_INSERT_OBJECT_IFRAME:CB_MARGINWIDTHDEFAULT"; - TabStop = TRUE ; - Pos = MAP_APPFONT ( 190 , 56 ) ; - Size = MAP_APPFONT ( 50 , 10 ) ; - Text [ en-US ] = "~Default" ; - }; - FixedText FT_MARGINHEIGHT - { - Pos = MAP_APPFONT ( 136 , 74 ) ; - Size = MAP_APPFONT ( 28 , 10 ) ; - Text [ en-US ] = "H~eight" ; - }; - NumericField NM_MARGINHEIGHT - { - HelpID = "cui:NumericField:MD_INSERT_OBJECT_IFRAME:NM_MARGINHEIGHT"; - Border = TRUE ; - Pos = MAP_APPFONT ( 167 , 72 ) ; - Size = MAP_APPFONT ( 20 , 12 ) ; - TabStop = TRUE ; - Repeat = TRUE ; - Spin = TRUE ; - Minimum = 0 ; - Maximum = 99 ; - Last = 10 ; - SpinSize = 1 ; - }; - CheckBox CB_MARGINHEIGHTDEFAULT - { - HelpID = "cui:CheckBox:MD_INSERT_OBJECT_IFRAME:CB_MARGINHEIGHTDEFAULT"; - TabStop = TRUE ; - Pos = MAP_APPFONT ( 190 , 74 ) ; - Size = MAP_APPFONT ( 50 , 10 ) ; - Text [ en-US ] = "Defa~ult" ; - }; - FixedLine FL_SEP_RIGHT - { - Pos = MAP_APPFONT ( 125 , 51 ) ; - Size = MAP_APPFONT ( 4 , 38 ) ; - }; - FixedLine GB_MARGIN - { - Pos = MAP_APPFONT ( 130 , 42 ) ; - Size = MAP_APPFONT ( 110 , 8 ) ; - Text [ en-US ] = "Spacing to contents" ; - }; -}; - String MD_INSERT_OBJECT_IFRAME { Text [ en-US ] = "Select File for Floating Frame" ; diff --git a/cui/source/inc/insdlg.hxx b/cui/source/inc/insdlg.hxx index c4486c98de1a..1f9daae52ab0 100644 --- a/cui/source/inc/insdlg.hxx +++ b/cui/source/inc/insdlg.hxx @@ -116,45 +116,35 @@ public: class SfxInsertFloatingFrameDialog : public InsertObjectDialog_Impl { private: - FixedText aFTName; - Edit aEDName; - FixedText aFTURL; - Edit aEDURL; - PushButton aBTOpen; - - FixedLine aFLScrolling; - RadioButton aRBScrollingOn; - RadioButton aRBScrollingOff; - RadioButton aRBScrollingAuto; - - - FixedLine aFLSepLeft; - FixedLine aFLFrameBorder; - RadioButton aRBFrameBorderOn; - RadioButton aRBFrameBorderOff; - - FixedLine aFLSepRight; - FixedLine aFLMargin; - FixedText aFTMarginWidth; - NumericField aNMMarginWidth; - CheckBox aCBMarginWidthDefault; - FixedText aFTMarginHeight; - NumericField aNMMarginHeight; - CheckBox aCBMarginHeightDefault; - - OKButton aOKButton1; - CancelButton aCancelButton1; - HelpButton aHelpButton1; - - DECL_STATIC_LINK( SfxInsertFloatingFrameDialog, OpenHdl, PushButton* ); - DECL_STATIC_LINK( SfxInsertFloatingFrameDialog, CheckHdl, CheckBox* ); + Edit* m_pEDName; + Edit* m_pEDURL; + PushButton* m_pBTOpen; + + RadioButton* m_pRBScrollingOn; + RadioButton* m_pRBScrollingOff; + RadioButton* m_pRBScrollingAuto; + + RadioButton* m_pRBFrameBorderOn; + RadioButton* m_pRBFrameBorderOff; + + FixedText* m_pFTMarginWidth; + NumericField* m_pNMMarginWidth; + CheckBox* m_pCBMarginWidthDefault; + FixedText* m_pFTMarginHeight; + NumericField* m_pNMMarginHeight; + CheckBox* m_pCBMarginHeightDefault; + + DECL_STATIC_LINK(SfxInsertFloatingFrameDialog, OpenHdl, PushButton* ); + DECL_STATIC_LINK(SfxInsertFloatingFrameDialog, CheckHdl, CheckBox* ); + + void Init(); public: - SfxInsertFloatingFrameDialog( Window *pParent, - const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage ); - SfxInsertFloatingFrameDialog( Window* pParent, - const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObj ); - virtual short Execute(); + SfxInsertFloatingFrameDialog(Window *pParent, + const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage ); + SfxInsertFloatingFrameDialog( Window* pParent, + const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObj ); + virtual short Execute(); }; #endif // _SVX_INSDLG_HXX |