diff options
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/cuigaldlg.cxx | 59 | ||||
-rw-r--r-- | cui/source/dialogs/gallery.src | 80 | ||||
-rw-r--r-- | cui/source/inc/cuigaldlg.hxx | 18 | ||||
-rw-r--r-- | cui/source/inc/gallery.hrc | 14 | ||||
-rw-r--r-- | cui/source/inc/helpid.hrc | 2 |
5 files changed, 26 insertions, 147 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index b176f40b9568..d7f09cd709a8 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -614,8 +614,6 @@ GalleryThemeProperties::GalleryThemeProperties(Window* pParent, SetText( aText ); } - - void GalleryThemeProperties::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) { if (nId == m_nGeneralPageId) @@ -624,36 +622,20 @@ void GalleryThemeProperties::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) ( (TPGalleryThemeProperties&) rPage ).SetXChgData( pData ); } - // - TPGalleryThemeGeneral - - - -TPGalleryThemeGeneral::TPGalleryThemeGeneral( Window* pParent, const SfxItemSet& rSet ) : - SfxTabPage ( pParent, CUI_RES( RID_SVXTABPAGE_GALLERY_GENERAL ), rSet ), - aFiMSImage ( this, CUI_RES( FI_MS_IMAGE ) ), - aEdtMSName ( this, CUI_RES( EDT_MS_NAME ) ), - aFlMSGeneralFirst ( this, CUI_RES( FL_MS_GENERAL_FIRST ) ), - aFtMSType ( this, CUI_RES( FT_MS_TYPE ) ), - aFtMSShowType ( this, CUI_RES( FT_MS_SHOW_TYPE ) ), - aFtMSPath ( this, CUI_RES( FT_MS_PATH ) ), - aFtMSShowPath ( this, CUI_RES( FT_MS_SHOW_PATH ) ), - aFtMSContent ( this, CUI_RES( FT_MS_CONTENT ) ), - aFtMSShowContent ( this, CUI_RES( FT_MS_SHOW_CONTENT ) ), - aFlMSGeneralSecond ( this, CUI_RES( FL_MS_GENERAL_SECOND ) ), - aFtMSChangeDate ( this, CUI_RES( FT_MS_CHANGEDATE ) ), - aFtMSShowChangeDate ( this, CUI_RES( FT_MS_SHOW_CHANGEDATE ) ), - pData(NULL) +TPGalleryThemeGeneral::TPGalleryThemeGeneral(Window* pParent, const SfxItemSet& rSet) + : SfxTabPage(pParent, "GalleryGeneralPage", + "cui/ui/gallerygeneralpage.ui", rSet) + , pData(NULL) { - FreeResource(); - - OUString aAccName(SVX_RES(RID_SVXSTR_GALLERY_THEMENAME)); - aEdtMSName.SetAccessibleName(aAccName); - aFiMSImage.SetAccessibleName(aAccName); - aEdtMSName.SetAccessibleRelationLabeledBy( &aFiMSImage ); + get(m_pFiMSImage, "image"); + get(m_pEdtMSName, "name"); + get(m_pFtMSShowType, "type"); + get(m_pFtMSShowPath, "location"); + get(m_pFtMSShowContent, "contents"); + get(m_pFtMSShowChangeDate, "modified"); } - - void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData ) { pData = _pData; @@ -665,20 +647,19 @@ void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData ) OUString aType( SVX_RES( RID_SVXSTR_GALLERYPROPS_GALTHEME ) ); sal_Bool bReadOnly = pThm->IsReadOnly(); - aEdtMSName.SetHelpId( HID_GALLERY_EDIT_MSNAME ); - aEdtMSName.SetText( pThm->GetName() ); - aEdtMSName.SetReadOnly( bReadOnly ); + m_pEdtMSName->SetText( pThm->GetName() ); + m_pEdtMSName->SetReadOnly( bReadOnly ); if( bReadOnly ) - aEdtMSName.Disable(); + m_pEdtMSName->Disable(); else - aEdtMSName.Enable(); + m_pEdtMSName->Enable(); if( pThm->IsReadOnly() ) aType += CUI_RES( RID_SVXSTR_GALLERY_READONLY ); - aFtMSShowType.SetText( aType ); - aFtMSShowPath.SetText( pThm->GetSdgURL().GetMainURL( INetURLObject::DECODE_UNAMBIGUOUS ) ); + m_pFtMSShowType->SetText( aType ); + m_pFtMSShowPath->SetText( pThm->GetSdgURL().GetMainURL( INetURLObject::DECODE_UNAMBIGUOUS ) ); // singular or plural? if ( 1 == pThm->GetObjectCount() ) @@ -688,7 +669,7 @@ void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData ) aOutStr += " " + aObjStr; - aFtMSShowContent.SetText( aOutStr ); + m_pFtMSShowContent->SetText( aOutStr ); // get locale wrapper (singleton) const SvtSysLocale aSysLocale; @@ -696,7 +677,7 @@ void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData ) // ChangeDate/Time aAccess = aLocaleData.getDate( pData->aThemeChangeDate ) + ", " + aLocaleData.getTime( pData->aThemeChangeTime ); - aFtMSShowChangeDate.SetText( aAccess ); + m_pFtMSShowChangeDate->SetText( aAccess ); // set image sal_uInt16 nId; @@ -708,14 +689,14 @@ void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData ) else nId = RID_SVXBMP_THEME_NORMAL_BIG; - aFiMSImage.SetImage( Image( Bitmap( CUI_RES( nId ) ), COL_LIGHTMAGENTA ) ); + m_pFiMSImage->SetImage( Image( Bitmap( CUI_RES( nId ) ), COL_LIGHTMAGENTA ) ); } sal_Bool TPGalleryThemeGeneral::FillItemSet( SfxItemSet& /*rSet*/ ) { - pData->aEditedTitle = aEdtMSName.GetText(); + pData->aEditedTitle = m_pEdtMSName->GetText(); return sal_True; } diff --git a/cui/source/dialogs/gallery.src b/cui/source/dialogs/gallery.src index 076b9496b12c..b7cc83c0edb6 100644 --- a/cui/source/dialogs/gallery.src +++ b/cui/source/dialogs/gallery.src @@ -27,86 +27,6 @@ /******************************************************************************/ -TabPage RID_SVXTABPAGE_GALLERY_GENERAL -{ - HelpId = HID_GALLERY_PROPERTIES_GENERAL; - SVLook = TRUE ; - Hide = TRUE ; - Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ; - FixedImage FI_MS_IMAGE - { - Pos = MAP_APPFONT ( 6 , 6 ) ; - Size = MAP_APPFONT ( 20 , 20 ) ; - }; - Edit EDT_MS_NAME - { - HelpID = "cui:Edit:RID_SVXTABPAGE_GALLERY_GENERAL:EDT_MS_NAME"; - Border = TRUE ; - Pos = MAP_APPFONT ( 60 , 10 ) ; - Size = MAP_APPFONT ( 194 , 12 ) ; - }; - FixedLine FL_MS_GENERAL_FIRST - { - Pos = MAP_APPFONT ( 6 , 36 ) ; - Size = MAP_APPFONT ( 248 , 1 ) ; - }; - FixedText FT_MS_TYPE - { - Pos = MAP_APPFONT ( 6 , 43 ) ; - Size = MAP_APPFONT ( 51 , 10 ) ; - LeftLabel = TRUE ; - Text [ en-US ] = "Type:" ; - }; - FixedText FT_MS_SHOW_TYPE - { - Pos = MAP_APPFONT ( 60 , 43 ) ; - Size = MAP_APPFONT ( 194 , 10 ) ; - }; - FixedText FT_MS_PATH - { - Pos = MAP_APPFONT ( 6 , 57 ) ; - Size = MAP_APPFONT ( 51 , 10 ) ; - LeftLabel = TRUE ; - Text [ en-US ] = "Location:" ; - }; - FixedText FT_MS_SHOW_PATH - { - Pos = MAP_APPFONT ( 60 , 57 ) ; - Size = MAP_APPFONT ( 194 , 10 ) ; - }; - FixedText FT_MS_CONTENT - { - Pos = MAP_APPFONT ( 6 , 71 ) ; - Size = MAP_APPFONT ( 51 , 10 ) ; - LeftLabel = TRUE ; - Text [ en-US ] = "Contents:" ; - }; - FixedText FT_MS_SHOW_CONTENT - { - Pos = MAP_APPFONT ( 60 , 71 ) ; - Size = MAP_APPFONT ( 194 , 10 ) ; - }; - FixedLine FL_MS_GENERAL_SECOND - { - Pos = MAP_APPFONT ( 6 , 91 ) ; - Size = MAP_APPFONT ( 248 , 1 ) ; - }; - FixedText FT_MS_CHANGEDATE - { - Pos = MAP_APPFONT ( 6 , 98 ) ; - Size = MAP_APPFONT ( 51 , 10 ) ; - LeftLabel = TRUE ; - Text [ en-US ] = "Modified:" ; - }; - FixedText FT_MS_SHOW_CHANGEDATE - { - Pos = MAP_APPFONT ( 60 , 98 ) ; - Size = MAP_APPFONT ( 194 , 10 ) ; - }; -}; - -/******************************************************************************/ - TabPage RID_SVXTABPAGE_GALLERYTHEME_FILES { HelpId = HID_GALLERY_BROWSER ; diff --git a/cui/source/inc/cuigaldlg.hxx b/cui/source/inc/cuigaldlg.hxx index eb242ef7dece..969ce2b38b54 100644 --- a/cui/source/inc/cuigaldlg.hxx +++ b/cui/source/inc/cuigaldlg.hxx @@ -210,18 +210,12 @@ class TPGalleryThemeGeneral : public SfxTabPage { private: - FixedImage aFiMSImage; - Edit aEdtMSName; - FixedLine aFlMSGeneralFirst; - FixedText aFtMSType; - FixedText aFtMSShowType; - FixedText aFtMSPath; - FixedText aFtMSShowPath; - FixedText aFtMSContent; - FixedText aFtMSShowContent; - FixedLine aFlMSGeneralSecond; - FixedText aFtMSChangeDate; - FixedText aFtMSShowChangeDate; + FixedImage* m_pFiMSImage; + Edit* m_pEdtMSName; + FixedText* m_pFtMSShowType; + FixedText* m_pFtMSShowPath; + FixedText* m_pFtMSShowContent; + FixedText* m_pFtMSShowChangeDate; ExchangeData* pData; virtual void Reset( const SfxItemSet& ) {} diff --git a/cui/source/inc/gallery.hrc b/cui/source/inc/gallery.hrc index d142711d4f9c..74cf43c0d101 100644 --- a/cui/source/inc/gallery.hrc +++ b/cui/source/inc/gallery.hrc @@ -59,18 +59,4 @@ #define FL_ACTUALIZE_PROGRESS 1 #define FT_ACTUALIZE_FILE 1 -// Gallery-TabDialog -#define FI_MS_IMAGE 1 -#define EDT_MS_NAME 1 -#define FL_MS_GENERAL_FIRST 1 -#define FT_MS_TYPE 2 -#define FT_MS_SHOW_TYPE 3 -#define FT_MS_PATH 4 -#define FT_MS_SHOW_PATH 5 -#define FT_MS_CONTENT 6 -#define FT_MS_SHOW_CONTENT 7 -#define FL_MS_GENERAL_SECOND 2 -#define FT_MS_CHANGEDATE 10 -#define FT_MS_SHOW_CHANGEDATE 11 - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/inc/helpid.hrc b/cui/source/inc/helpid.hrc index e2917dc9e3b2..6181d49c21f8 100644 --- a/cui/source/inc/helpid.hrc +++ b/cui/source/inc/helpid.hrc @@ -132,7 +132,6 @@ #define HID_CONFIG_EVENT_DOCUMENT_BASED "CUI_HID_CONFIG_EVENT_DOCUMENT_BASED" #define HID_SVX_CONFIG_TOOLBAR "CUI_HID_SVX_CONFIG_TOOLBAR" #define HID_SVX_CONFIG_TOOLBAR_CONTENTS "CUI_HID_SVX_CONFIG_TOOLBAR_CONTENTS" -#define HID_GALLERY_EDIT_MSNAME "CUI_HID_GALLERY_EDIT_MSNAME" #define HID_SVX_CONFIG_MENU_CONTENTS "CUI_HID_SVX_CONFIG_MENU_CONTENTS" #define HID_GALLERY_NEWTHEME_FINDFILES "CUI_HID_GALLERY_NEWTHEME_FINDFILES" #define HID_GALLERY_NEWTHEME_ADDFILES "CUI_HID_GALLERY_NEWTHEME_ADDFILES" @@ -166,7 +165,6 @@ #define HID_FM_DLG_SEARCH "CUI_HID_FM_DLG_SEARCH" #define HID_SEARCH_TEXT "CUI_HID_SEARCH_TEXT" #define HID_SEARCH_ALLFIELDS "CUI_HID_SEARCH_ALLFIELDS" -#define HID_GALLERY_PROPERTIES_GENERAL "CUI_HID_GALLERY_PROPERTIES_GENERAL" #define HID_SEARCH_FIELDSELECTION "CUI_HID_SEARCH_FIELDSELECTION" #define HID_SEARCH_POSITION "CUI_HID_SEARCH_POSITION" #define HID_SEARCH_FORMATTER "CUI_HID_SEARCH_FORMATTER" |