[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source desktop/source embeddedobj/source extensions/source framework/source odk/examples offapi/com sfx2/Library_sfx.mk sfx2/source shell/source
cui/source/dialogs/SpellDialog.cxx|2 cui/source/dialogs/about.cxx |2 cui/source/options/optimprove.cxx |2 cui/source/options/optimprove2.cxx|2 cui/source/options/optlingu.cxx |2 desktop/source/deployment/gui/dp_gui_dialog2.cxx |2 desktop/source/deployment/gui/dp_gui_updatedialog.cxx |2 embeddedobj/source/msole/oleembed.cxx |2 extensions/source/update/check/updatecheck.cxx|2 framework/source/dispatch/mailtodispatcher.cxx|2 framework/source/dispatch/systemexec.cxx |2 framework/source/services/backingwindow.cxx |2 odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx |2 offapi/com/sun/star/system/SystemShellExecuteFlags.idl|6 offapi/com/sun/star/system/XSystemShellExecute.idl|6 sfx2/Library_sfx.mk |1 sfx2/source/appl/appopen.cxx | 195 +++--- sfx2/source/appl/appserv.cxx |4 sfx2/source/appl/openuriexternally.cxx| 99 + sfx2/source/appl/sfxhelp.cxx |2 sfx2/source/inc/openuriexternally.hxx | 57 ++ sfx2/source/view/view.hrc |2 sfx2/source/view/view.src | 18 sfx2/source/view/viewsh.cxx | 29 - shell/source/unix/exec/shellexec.cxx | 44 ++ shell/source/win32/SysShExec.cxx | 26 + shell/source/win32/SysShExec.hxx |6 shell/source/win32/SysShentry.cxx | 13 svtools/source/contnr/templwin.cxx|2 sw/source/ui/docvw/extedit.cxx|2 sw/source/ui/lingu/olmenu.cxx |2 swext/mediawiki/src/com/sun/star/wiki/Helper.java |2 toolkit/source/awt/vclxwindows.cxx|2 uui/source/newerverwarn.cxx |2 34 files changed, 343 insertions(+), 203 deletions(-) New commits: commit 4f1f9c6e6e6b07515bb601d7acbdb4705e266366 Author: Stephan Bergmann Date: Tue Mar 27 13:56:12 2012 +0200 Introduced SystemShellExecuteFlags::URIS_ONLY (cherry-picked from commit d4b67611c421ebe9b75284106fe389b434419961) Conflicts: extensions/source/update/check/updatecheck.cxx filter/source/xsltdialog/xmlfiltertestdialog.cxx sfx2/source/view/viewsh.cxx shell/source/unix/exec/shellexec.cxx Replaced master's new MSG_ERR_NO_ABS_URI_REF with re-using RID_SECURITY_WARNING_NO_HYPERLINKS, to avoid introducing new resources into the LO 3.5 series that require localization. New css.system.SystemShellExecuteFlags.URIS_ONLY remains @since LibreOffice 3.6. Officially, new features are only added when bumping the minor revision number, not the micro one (but backporting does not hurt here). Signed-off-by: Michael Meeks diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index feb6a7e..485105f 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -2147,7 +2147,7 @@ IMPL_LINK( SpellDialog, HandleHyperlink, svt::FixedHyperlink*, pHyperlink ) uno::Reference< com::sun::star::system::XSystemShellExecute > xSystemShellExecute( ::comphelper::getProcessServiceFactory()->createInstance( DEFINE_CONST_UNICODE("com.sun.star.system.SystemShellExecute") ), uno::UNO_QUERY_THROW ); -xSystemShellExecute->execute( sURL, rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::DEFAULTS ); +xSystemShellExecute->execute( sURL, rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::URIS_ONLY ); } catch ( uno::Exception& ) { diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 0355574..b327d72 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -267,7 +267,7 @@ IMPL_LINK( AboutDialog, HandleHyperlink, svt::FixedHyperlink*, pHyperlink ) uno::Reference< com::sun::star::system::XSystemShellExecute > xSystemShellExecute( ::comphelper::getProcessServiceFactory()->createInstance( DEFINE_CONST_UNICODE("com.sun.star.system.SystemShellExecute") ), uno::UNO_QUERY_THROW ); -xSystemShellExecute->execute( sURL, rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::DEFAULTS ); +xSystemShellExecute->ex
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source
cui/source/tabpages/tpline.cxx |1 + 1 file changed, 1 insertion(+) New commits: commit 14d47f6f6ed9f9e682136cc72d6fe44a9e0c7d9e Author: Kohei Yoshida Date: Mon Mar 26 16:26:32 2012 -0400 fdo#46942: Fix a regression caused by List removal. 3236c2c3af9355157c62f68fcbd429498f7f747b accidentally removed the gallery item count which was used to differentiate the gallery symbols from normal ones. Signed-off-by: Stephan Bergmann diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx index 3a27eaa..abb5df3 100644 --- a/cui/source/tabpages/tpline.cxx +++ b/cui/source/tabpages/tpline.cxx @@ -1464,6 +1464,7 @@ IMPL_LINK( SvxLineTabPage, MenuCreateHdl_Impl, MenuButton *, pButton ) String aEmptyStr; const String *pUIName = NULL; sal_uInt32 i = 0; +nNumMenuGalleryItems = aGrfNames.size(); for(std::vector::iterator it = aGrfNames.begin(); it != aGrfNames.end(); ++it, ++i) { pUIName = &(*it); ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source
cui/source/dialogs/SpellDialog.cxx | 175 ++--- 1 file changed, 86 insertions(+), 89 deletions(-) New commits: commit c2c65d4f30cddb0528e8e9ef24e3d42a68ada25c Author: Cédric Bosdonnat Date: Mon Feb 27 17:00:40 2012 +0100 fdo#46531: Fixed SpellCheck dialog display issues More robust, handling of the explanations message and link display. Signed-off-by: Michael Meeks diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index cb68f6b..feb6a7e 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -403,6 +403,92 @@ void SpellDialog::UpdateBoxes_Impl() aIgnoreRulePB.Enable(pSpellErrorDescription && pSpellErrorDescription->sRuleId.getLength()); aAutoCorrPB.Show( bShowChangeAll && rParent.HasAutoCorrection() ); +bool bHasGrammarChecking = rParent.HasGrammarChecking(); +aCheckGrammarCB.Show( bHasGrammarChecking ); +if( !bHasGrammarChecking ) +{ +//resize the dialog to hide the hidden area of the CheckBox +Size aBackSize = aBackgroundGB.GetSizePixel(); +sal_Int32 nDiff = aBackgroundGB.GetPosPixel().Y() + aBackSize.Height() +- aCheckGrammarCB.GetPosPixel().Y(); +aBackSize.Height() -= nDiff; +aBackgroundGB.SetSizePixel(aBackSize); +Button* aButtons[] = { &aHelpPB, &aOptionsPB, &aUndoPB, &aClosePB, 0 }; +sal_Int32 nButton = 0; +while( aButtons[nButton]) +{ +Point aPos = aButtons[nButton]->GetPosPixel(); +aPos.Y() -= nDiff; +aButtons[nButton]->SetPosPixel(aPos); +++nButton; +} +Size aDlgSize = GetSizePixel(); +aDlgSize.Height() -= nDiff; +SetSizePixel( aDlgSize ); +} +else +{ +bool bHasExplainLink = aExplainLink.GetURL().Len() != 0; +aExplainLink.Show( bHasExplainLink ); + +sal_Int32 nExplainWidth = aExplainLink.GetPosPixel().X() - aExplainFT.GetPosPixel().X(); +if ( !bHasExplainLink ) +nExplainWidth += aExplainLink.GetSizePixel().Width(); +sal_Int32 nExplainHeight = aExplainFT.GetActualHeight(); +sal_Int32 nCurrentHeight = aExplainFT.GetSizePixel().Height(); +if( aExplainFT.GetText().Len() == 0 ) +{ +nExplainHeight = 0; +aExplainFT.Hide(); +aExplainLink.Hide(); +} + +Size aCtlSize = aExplainFT.GetSizePixel(); +aCtlSize.Height() = nExplainHeight; +aCtlSize.Width() = nExplainWidth; +aExplainFT.SetSizePixel( aCtlSize ); + +aCtlSize = aExplainLink.GetSizePixel(); +aCtlSize.Height() = nExplainHeight; +aExplainLink.SetSizePixel( aCtlSize ); + +sal_Int32 nDiff = - ( nCurrentHeight - nExplainHeight ); +if ( nDiff != 0 ) +{ +Control* aControls[] = { +&aNotInDictFT, +&aSentenceED, +&aSuggestionFT, +&aSuggestionLB, +&aIgnorePB, +&aIgnoreAllPB, +&aIgnoreRulePB, +&aAddToDictMB, +&aChangePB, +&aChangeAllPB, +&aAutoCorrPB, +&aCheckGrammarCB, +&aHelpPB, +&aOptionsPB, +&aUndoPB, +&aClosePB, +&aBackgroundGB, +0 +}; +sal_Int32 nControl = 0; +while( aControls[nControl]) +{ +Point aPos = aControls[nControl]->GetPosPixel(); +aPos.Y() += nDiff; +aControls[nControl]->SetPosPixel(aPos); +++nControl; +} +Size aDlgSize = GetSizePixel(); +aDlgSize.Height() += nDiff; +SetSizePixel( aDlgSize ); +Invalidate(); +} +} } // --- @@ -469,95 +555,6 @@ IMPL_STATIC_LINK( SpellDialog, InitHdl, SpellDialog *, EMPTYARG ) pThis->aClosePB.GrabFocus(); pThis->LockFocusChanges(false); //show grammar CheckBox depending on the modules abilities -bool bHasGrammarChecking = pThis->rParent.HasGrammarChecking(); -pThis->aCheckGrammarCB.Show( bHasGrammarChecking ); -if( !bHasGrammarChecking ) -{ -//resize the dialog to hide the hidden area of the CheckBox -Size aBackSize = pThis->aBackgroundGB.GetSizePixel(); -sal_Int32 nDiff = pThis->aBackgroundGB.GetPosPixel().Y() + aBackSize.Height() -- pThis->aCheckGrammarCB.GetPosPixel().Y(); -aBackSize.Height() -= nDiff; -pThis->aBackgroundGB.SetSizePixel(aBackSize); -Button* aButtons[] = { &pThis->aHelpPB, &pThis->aOptionsPB, &pThis->aUndoPB, &pThis->aClosePB, 0 }; -sal_Int32 nButton = 0; -while( aButtons[nButto
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source
cui/source/tabpages/autocdlg.cxx |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commits: commit 3a90b7fea7de8860dfdb92925df39dac3d0ed4fc Author: Szabolcs Dezsi Date: Fri Feb 24 16:42:35 2012 +0100 Reduced loadtime of autocorrect tables Signed-off-by: Andras Timar diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 147a18f..764203a 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -1225,7 +1225,7 @@ void OfaAutocorrReplacePage::RefillReplaceBox(sal_Bool bFromReset, { SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect(); SvxAutocorrWordList* pWordList = pAutoCorrect->LoadAutocorrWordList(eLang); - +aReplaceTLB.SetUpdateMode(sal_False); for(sal_uInt16 i = 0; i < pWordList->Count(); i++) { SvxAutocorrWordPtr pWordPtr = pWordList->GetObject(i); @@ -1248,7 +1248,7 @@ void OfaAutocorrReplacePage::RefillReplaceBox(sal_Bool bFromReset, } aNewReplacePB.Enable(sal_False); aDeleteReplacePB.Enable(sal_False); - +aReplaceTLB.SetUpdateMode(sal_True); } SfxViewShell* pViewShell = SfxViewShell::Current(); ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source
cui/source/options/optgdlg.hrc |3 +-- cui/source/options/optgdlg.src |4 ++-- cui/source/options/optsave.src |4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) New commits: commit 537169e64f34353dab8c6dcacc088fba61729392 Author: Ivan Timofeev Date: Sun Feb 5 11:51:09 2012 +0400 fix various overlapped controls in the Options dialog Signed-off-by: Andras Timar diff --git a/cui/source/options/optgdlg.hrc b/cui/source/options/optgdlg.hrc index 5e54e0b..d870e29 100644 --- a/cui/source/options/optgdlg.hrc +++ b/cui/source/options/optgdlg.hrc @@ -64,8 +64,7 @@ #define ROW11 (ROW10+RSC_CD_CHECKBOX_HEIGHT+ROWSPACE) #define ROW12 (ROW11+RSC_CD_CHECKBOX_HEIGHT+ROWSPACE) #define ROW13 (ROW12+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE) -#define ROW14 (ROW13+RSC_CD_CHECKBOX_HEIGHT+ROWSPACE) -#define ROW15 (ROW14+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE) +#define ROW14 (ROW13+RSC_CD_CHECKBOX_HEIGHT+ROWSPACE+6) #define DIFF(v1,v2) (v2-v1) #define OFFS_TEXTBOX_FIXEDTEXT(base) (base+(RSC_CD_TEXTBOX_HEIGHT-RSC_CD_FIXEDTEXT_HEIGHT)/2) diff --git a/cui/source/options/optgdlg.src b/cui/source/options/optgdlg.src index 730aa24..0e01fe0 100644 --- a/cui/source/options/optgdlg.src +++ b/cui/source/options/optgdlg.src @@ -188,7 +188,7 @@ TabPage OFA_TP_MISC }; CheckBox CB_EXPERIMENTAL { -Pos = MAP_APPFONT( COL1, ROW15 ); +Pos = MAP_APPFONT( COL1, ROW14 ); Size = MAP_APPFONT( WHOLE_WIDTH - COL1, RSC_CD_CHECKBOX_HEIGHT ); Text [ en-US ] = "Enable experimental (unstable) features"; }; @@ -456,7 +456,7 @@ TabPage OFA_TP_VIEW { HelpID = "cui:CheckBox:OFA_TP_VIEW:CB_SELECTION"; Pos = MAP_APPFONT ( 139, ROW_CB_SELECTION + (((12 - RSC_CD_CHECKBOX_HEIGHT) / 2) + 1)) ; -Size = MAP_APPFONT ( 118 - 34 , RSC_CD_CHECKBOX_HEIGHT ) ; +Size = MAP_APPFONT ( 83 , RSC_CD_CHECKBOX_HEIGHT ) ; Text [ en-US ] = "Transparency" ; }; diff --git a/cui/source/options/optsave.src b/cui/source/options/optsave.src index da94bd4..845336f 100644 --- a/cui/source/options/optsave.src +++ b/cui/source/options/optsave.src @@ -101,7 +101,7 @@ TabPage RID_SFXPAGE_SAVE { HelpID = "cui:NumericField:RID_SFXPAGE_SAVE:ED_AUTOSAVE"; Border = TRUE ; -Pos = MAP_APPFONT ( 210 , 61 ) ; +Pos = MAP_APPFONT ( 210 , 62 ) ; Size = MAP_APPFONT ( 21 , 12 ) ; Left = TRUE ; Repeat = TRUE ; @@ -116,7 +116,7 @@ TabPage RID_SFXPAGE_SAVE }; FixedText FT_MINUTE { -Pos = MAP_APPFONT ( 234 , 63 ) ; +Pos = MAP_APPFONT ( 234 , 64 ) ; Size = MAP_APPFONT ( 35 , 8 ) ; Text [ en-US ] = "Minutes" ; }; ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source
cui/source/customize/eventdlg.src |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit bdc4f5c2c235ce5e7f501986d6593ef9dab47d33 Author: Ivan Timofeev Date: Thu Jan 12 18:08:11 2012 +0400 move overlapped controls diff --git a/cui/source/customize/eventdlg.src b/cui/source/customize/eventdlg.src index c4ef082..4159a2d 100644 --- a/cui/source/customize/eventdlg.src +++ b/cui/source/customize/eventdlg.src @@ -65,7 +65,7 @@ TabPage RID_SVXPAGE_EVENTS { HelpID = "cui:ListBox:RID_SVXPAGE_EVENTS:LB_SAVEIN"; Border = TRUE ; -Pos = MAP_APPFONT ( 54 , 238 ) ; +Pos = MAP_APPFONT ( 62 , 238 ) ; Size = MAP_APPFONT ( 132 , 53 ) ; DropDown = TRUE ; }; ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source
cui/source/dialogs/about.src |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commits: commit d4f161ed509071ee01798f3bf2d686826089 Author: Andras Timar Date: Mon Jan 9 18:57:17 2012 +0100 bump LibreOffice copyright year to 2012 diff --git a/cui/source/dialogs/about.src b/cui/source/dialogs/about.src index 8db6636..37e5f4d 100644 --- a/cui/source/dialogs/about.src +++ b/cui/source/dialogs/about.src @@ -78,11 +78,11 @@ ModalDialog RID_DEFAULTABOUT }; String ABOUT_STR_COPYRIGHT { -Text[ en-US ] = "LibreOffice is copyright © 2000, 2011 LibreOffice contributors and/or their affiliates. All rights reserved."; +Text[ en-US ] = "LibreOffice is copyright © 2000, 2012 LibreOffice contributors and/or their affiliates. All rights reserved."; }; String ABOUT_STR_COPYRIGHT_DERIVED { -Text[ en-US ] = "%PRODUCTNAME is derived from LibreOffice. LibreOffice is copyright © 2000, 2011 LibreOffice contributors and/or their affiliates. All rights reserved."; +Text[ en-US ] = "%PRODUCTNAME is derived from LibreOffice. LibreOffice is copyright © 2000, 2012 LibreOffice contributors and/or their affiliates. All rights reserved."; }; String ABOUT_STR_COPYRIGHT_ORACLE_DERIVED { ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source desktop/source
cui/source/tabpages/tabarea.src |8 cui/source/tabpages/textanim.src |2 +- desktop/source/app/desktop.src |2 +- 3 files changed, 6 insertions(+), 6 deletions(-) New commits: commit daab19c2ae13245318b8fcd1a5468cae7ab43348 Author: Andras Timar Date: Sat Jan 7 22:56:54 2012 +0100 yet another few strings to localize diff --git a/cui/source/tabpages/tabarea.src b/cui/source/tabpages/tabarea.src index a3e1e54..b1117b1 100644 --- a/cui/source/tabpages/tabarea.src +++ b/cui/source/tabpages/tabarea.src @@ -1309,7 +1309,7 @@ TabPage RID_SVXPAGE_COLOR { Pos = MAP_APPFONT ( 142 , 89 ) ; Size = MAP_APPFONT ( 15 , 8 ) ; -Text = "~C" ; +Text [ en-US ] = "~C" ; }; MetricField MTR_FLD_1 { @@ -1329,7 +1329,7 @@ TabPage RID_SVXPAGE_COLOR { Pos = MAP_APPFONT ( 142 , 105 ) ; Size = MAP_APPFONT ( 15 , 8 ) ; -Text = "~M" ; +Text [ en-US ] = "~M" ; }; MetricField MTR_FLD_2 { @@ -1349,7 +1349,7 @@ TabPage RID_SVXPAGE_COLOR { Pos = MAP_APPFONT ( 142 , 121 ) ; Size = MAP_APPFONT ( 15 , 8 ) ; -Text = "~Y" ; +Text [ en-US ] = "~Y" ; }; MetricField MTR_FLD_3 { @@ -1369,7 +1369,7 @@ TabPage RID_SVXPAGE_COLOR { Pos = MAP_APPFONT ( 142 , 137 ) ; Size = MAP_APPFONT ( 15 , 8 ) ; -Text = "~K" ; +Text [ en-US ] = "~K" ; }; MetricField MTR_FLD_4 { diff --git a/cui/source/tabpages/textanim.src b/cui/source/tabpages/textanim.src index f015028..b330565 100644 --- a/cui/source/tabpages/textanim.src +++ b/cui/source/tabpages/textanim.src @@ -272,7 +272,7 @@ TabPage RID_SVXPAGE_TEXTANIMATION Spinsize = 50 ; StrictFormat = TRUE ; Unit = FUNIT_CUSTOM ; -CustomUnitText = " ms" ; +CustomUnitText [ en-US ] = " ms" ; Maximum = 3 ; Last = 3 ; }; diff --git a/desktop/source/app/desktop.src b/desktop/source/app/desktop.src index 98ee686..0b6bc3f 100644 --- a/desktop/source/app/desktop.src +++ b/desktop/source/app/desktop.src @@ -160,7 +160,7 @@ InfoBox INFOBOX_CMDLINEHELP ModalDialog DLG_CMDLINEHELP { HelpID = "desktop:ModalDialog:DLG_CMDLINEHELP"; -Text = "Help Message..."; +Text [ en-US ] = "Help Message..."; Size = MAP_APPFONT(250, 365); Border = True; SVLook = True; ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source
cui/source/options/optdict.src |8 1 file changed, 4 insertions(+), 4 deletions(-) New commits: commit 5907a4c1b8af1f73e966b4c1fe517dee0a3815f1 Author: Ivan Timofeev Date: Sat Jan 7 09:29:29 2012 +0400 move overlapped controls diff --git a/cui/source/options/optdict.src b/cui/source/options/optdict.src index 31a8f9a..009aa34 100644 --- a/cui/source/options/optdict.src +++ b/cui/source/options/optdict.src @@ -122,8 +122,8 @@ ModalDialog RID_SFXDLG_EDITDICT { HelpID = "cui:ListBox:RID_SFXDLG_EDITDICT:LB_ALLDICTS"; Border = TRUE ; -Pos = MAP_APPFONT ( 82 , 9 ) ; -Size = MAP_APPFONT ( 121 , 62 ) ; +Pos = MAP_APPFONT ( 100 , 9 ) ; +Size = MAP_APPFONT ( 103 , 62 ) ; DropDown = TRUE ; }; FixedText FT_DICTLANG @@ -136,8 +136,8 @@ ModalDialog RID_SFXDLG_EDITDICT { HelpID = "cui:ListBox:RID_SFXDLG_EDITDICT:LB_DICTLANG"; Border = TRUE ; -Pos = MAP_APPFONT ( 82 , 25 ) ; -Size = MAP_APPFONT ( 121 , 66 ) ; +Pos = MAP_APPFONT ( 100 , 25 ) ; +Size = MAP_APPFONT ( 103 , 66 ) ; DropDown = TRUE ; }; ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source dbaccess/source extensions/source sc/source sd/source svx/source sw/source
cui/source/customize/cfg.src | 61 - cui/source/dialogs/sdrcelldlg.src |6 -- cui/source/options/optgdlg.src |1 cui/source/tabpages/autocdlg.src |2 dbaccess/source/ui/app/app.src |1 extensions/source/bibliography/toolbar.src |1 sc/source/ui/src/sortdlg.src |3 - sd/source/ui/dlg/celltempl.src |4 - svx/source/dialog/linkwarn.src |4 - sw/source/ui/config/optload.src|1 sw/source/ui/misc/pggrid.src |2 11 files changed, 86 deletions(-) New commits: commit 2650c803fa62bbf9d4138ead30de5ba3a2896856 Author: Lior Kaplan Date: Mon Jan 2 22:35:33 2012 +0200 Clean non English strings in the code we do translation differently. (cherry picked from commit 14c0e038c9c33dc59cbf6e5ec81d36779f28b004) diff --git a/cui/source/customize/cfg.src b/cui/source/customize/cfg.src index 66ac237..4fe3b13 100644 --- a/cui/source/customize/cfg.src +++ b/cui/source/customize/cfg.src @@ -31,7 +31,6 @@ TabDialog RID_SVXDLG_CUSTOMIZE { OutputSize = TRUE ; -Text [ de ] = "Anpassen" ; Text [ en-US ] = "Customize" ; Moveable = TRUE ; SvLook = TRUE ; @@ -43,28 +42,24 @@ TabDialog RID_SVXDLG_CUSTOMIZE PageItem { Identifier = RID_SVXPAGE_MENUS ; -Text [ de ] = "Menüs" ; Text [ en-US ] = "Menus" ; PageResID = 300 ; }; PageItem { Identifier = RID_SVXPAGE_KEYBOARD ; -Text [ de ] = "Tastatur" ; Text [ en-US ] = "Keyboard" ; PageResID = 301 ; }; PageItem { Identifier = RID_SVXPAGE_TOOLBARS ; -Text [ de ] = "Symbolleisten" ; Text [ en-US ] = "Toolbars" ; PageResID = 302 ; }; PageItem { Identifier = RID_SVXPAGE_EVENTS ; -Text [ de ] = "Ereignisse" ; Text [ en-US ] = "Events" ; PageResID = 303 ; }; @@ -73,47 +68,36 @@ TabDialog RID_SVXDLG_CUSTOMIZE }; #define TEXT_MENU \ -Text [ de ] = "Menü" ; \ Text [ en-US ] = "Menu" ;\ #define TEXT_BEGIN_GROUP \ -Text [ de ] = "Gruppe beginnen" ; \ Text [ en-US ] = "Begin a Group" ;\ #define TEXT_RENAME \ -Text [ de ] = "Umbenennen..." ; \ Text [ en-US ] = "Rename..." ;\ #define TEXT_DELETE \ -Text [ de ] = "Entfernen..." ; \ Text [ en-US ] = "Delete..." ;\ #define TEXT_DELETE_NODOTS \ -Text [ de ] = "Entfernen" ; \ Text [ en-US ] = "Delete" ;\ #define TEXT_MOVE \ -Text [ de ] = "Verschieben..." ; \ Text [ en-US ] = "Move..." ;\ #define TEXT_DEFAULT_STYLE \ -Text [ de ] = "Standard Einstellungen herstellen" ; \ Text [ en-US ] = "Restore Default Settings" ;\ #define TEXT_DEFAULT_COMMAND \ -Text [ de ] = "Standardbefehl ~wiederherstellen" ; \ Text [ en-US ] = "Restore Default Command" ;\ #define TEXT_TEXT_ONLY \ -Text [ de ] = "Nur Text" ; \ Text [ en-US ] = "Text only" ;\ #define TEXT_TOOLBAR_NAME \ -Text [ de ] = "Name der Symbolleiste" ; \ Text [ en-US ] = "Toolbar Name" ;\ #define TEXT_SAVE_IN \ -Text [ de ] = "Speichern in" ; \ Text [ en-US ] = "Save In" ;\ TabPage RID_SVXPAGE_MENUS @@ -125,7 +109,6 @@ TabPage RID_SVXPAGE_MENUS { Pos = MAP_APPFONT ( 6 , 11 ) ; Size = MAP_APPFONT ( 261 , 8 ) ; -Text [ de ] = "%PRODUCTNAME %MODULENAME Menüs" ; Text [ en-US ] = "%PRODUCTNAME %MODULENAME Menus" ; }; FixedText FT_MENUS @@ -148,7 +131,6 @@ TabPage RID_SVXPAGE_MENUS Pos = MAP_APPFONT ( 192 , 22 ) ; Size = MAP_APPFONT ( 75 , 14 ) ; TabStop = TRUE ; -Text [ de ] = "Neu..." ; Text [ en-US ] = "New..." ; }; MenuButton BTN_CHANGE @@ -163,7 +145,6 @@ TabPage RID_SVXPAGE_MENUS { Pos = MAP_APPFONT ( 6 , 56 ) ; Size = MAP_APPFONT ( 261 , 8 ) ; -Text [ de ] = "Menüinhalt" ; Text [ en-US ] = "Menu Content" ; }; FixedText GRP_MENU_ENTRIES @@ -171,7 +152,6 @@ TabPage RID_SVXPAGE_MENUS Pos = MAP_APPFONT ( 9 , 67 ) ; Size = MAP_APPFONT ( 55 , 8 ) ; Group = TRUE ; -Text [ de ] = "Einträge" ; Text [ en-US ] = "Entries" ; }; Control BOX_ENTRIES @@ -188,7 +168,6 @@ TabPage RID_SVXPAGE_MENUS Pos = MAP_APPFONT ( 192 , 67 ) ; Size = MAP_APPFONT ( 75 , 14 ) ; TabStop = TRUE ; -Text [ de ] = "Hinzufügen..." ; Text [ en-US ] = "Add..." ; }; MenuButton BTN_CHANGE_ENTRY @@ -197,7 +176,6 @@ TabPage RID_SVXPAGE_MENUS Pos = MAP_APPFONT ( 192 , 84 ) ; Size = MAP_APPFONT ( 75 ,
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source
cui/source/dialogs/about.src |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit addbbdf95b9ff30999b98eb03be9d9ff09f0dcb2 Author: Andras Timar Date: Fri Dec 16 15:03:01 2011 +0100 nobody has ever translated this string, in fact it is not for localization diff --git a/cui/source/dialogs/about.src b/cui/source/dialogs/about.src index 86f3811..8db6636 100644 --- a/cui/source/dialogs/about.src +++ b/cui/source/dialogs/about.src @@ -70,7 +70,7 @@ ModalDialog RID_DEFAULTABOUT }; String ABOUT_STR_VERSION { -Text[ en-US ] = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX %PRODUCTEXTENSION"; +Text = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX %PRODUCTEXTENSION"; }; String ABOUT_STR_VENDOR { ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source desktop/source instsetoo_native/util officecfg/registry solenv/bin unotools/inc unotools/source
cui/source/dialogs/about.src |2 +- desktop/source/app/app.cxx |5 + desktop/source/deployment/gui/dp_gui_service.cxx |5 + instsetoo_native/util/openoffice.lst |5 + officecfg/registry/data/org/openoffice/Setup.xcu |3 +++ officecfg/registry/schema/org/openoffice/Setup.xcs |7 +++ solenv/bin/modules/installer/download.pm |1 + unotools/inc/unotools/configmgr.hxx|2 ++ unotools/source/config/configmgr.cxx |7 +++ 9 files changed, 36 insertions(+), 1 deletion(-) New commits: commit 8c7ca43f690b12043d78a698f622eb565f305782 Author: Petr Mladek Date: Fri Dec 16 14:08:38 2011 +0100 add version suffix (beta1) to about dialog configurable at build time via ABOUTBOXPRODUCTVERSIONSUFFIX in instsetoo_native/util/openoffice.lst configurable at runtime via registry/data/org/openoffice/Setup.xcu and ooSetupVersionAboutBoxSuffix property diff --git a/cui/source/dialogs/about.src b/cui/source/dialogs/about.src index 8ee4862..86f3811 100644 --- a/cui/source/dialogs/about.src +++ b/cui/source/dialogs/about.src @@ -70,7 +70,7 @@ ModalDialog RID_DEFAULTABOUT }; String ABOUT_STR_VERSION { -Text[ en-US ] = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION %PRODUCTEXTENSION"; +Text[ en-US ] = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX %PRODUCTEXTENSION"; }; String ABOUT_STR_VENDOR { diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 9e9f656..ada6c82 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -330,6 +330,8 @@ namespace : public rtl::Static< String, Version > {}; struct AboutBoxVersion : public rtl::Static< String, AboutBoxVersion > {}; +struct AboutBoxVersionSuffix +: public rtl::Static< String, AboutBoxVersionSuffix > {}; struct OOOVendor : public rtl::Static< String, OOOVendor > {}; struct Extension @@ -352,6 +354,7 @@ void ReplaceStringHookProc( UniString& rStr ) String rBrandName = BrandName::get(); String rVersion = Version::get(); String rAboutBoxVersion = AboutBoxVersion::get(); +String rAboutBoxVersionSuffix = AboutBoxVersionSuffix::get(); String rExtension = Extension::get(); String rXMLFileFormatName = XMLFileFormatName::get(); String rXMLFileFormatVersion = XMLFileFormatVersion::get(); @@ -364,6 +367,7 @@ void ReplaceStringHookProc( UniString& rStr ) utl::ConfigManager::getProductXmlFileFormatVersion(); rVersion = utl::ConfigManager::getProductVersion(); rAboutBoxVersion = utl::ConfigManager::getAboutBoxProductVersion(); +rAboutBoxVersionSuffix = utl::ConfigManager::getAboutBoxProductVersionSuffix(); if ( !rExtension.Len() ) { rExtension = utl::ConfigManager::getProductExtension(); @@ -373,6 +377,7 @@ void ReplaceStringHookProc( UniString& rStr ) nPro++; rStr.SearchAndReplaceAllAscii( "%PRODUCTNAME", rBrandName ); rStr.SearchAndReplaceAllAscii( "%PRODUCTVERSION", rVersion ); +rStr.SearchAndReplaceAllAscii( "%ABOUTBOXPRODUCTVERSIONSUFFIX", rAboutBoxVersionSuffix ); rStr.SearchAndReplaceAllAscii( "%ABOUTBOXPRODUCTVERSION", rAboutBoxVersion ); rStr.SearchAndReplaceAllAscii( "%PRODUCTEXTENSION", rExtension ); rStr.SearchAndReplaceAllAscii( "%PRODUCTXMLFILEFORMATNAME", rXMLFileFormatName ); diff --git a/desktop/source/deployment/gui/dp_gui_service.cxx b/desktop/source/deployment/gui/dp_gui_service.cxx index 8108e74..1e98df4 100644 --- a/desktop/source/deployment/gui/dp_gui_service.cxx +++ b/desktop/source/deployment/gui/dp_gui_service.cxx @@ -92,6 +92,8 @@ namespace : public rtl::Static< String, Version > {}; struct AboutBoxVersion : public rtl::Static< String, AboutBoxVersion > {}; +struct AboutBoxVersionSuffix +: public rtl::Static< String, AboutBoxVersionSuffix > {}; struct OOOVendor : public rtl::Static< String, OOOVendor > {}; struct Extension @@ -108,6 +110,7 @@ void ReplaceProductNameHookProc( String& rStr ) String rProductName = ProductName::get(); String rVersion = Version::get(); String rAboutBoxVersion = AboutBoxVersion::get(); +String rAboutBoxVersionSuffix = AboutBoxVersionSuffix::get(); String rExtension = Extension::get(); String rOOOVendor = OOOVendor::get(); @@ -116,6 +119,7 @@ void ReplaceProductNameHookProc( String& rStr ) rProductName = utl::ConfigManager::getProductName(); rVersion = utl::ConfigManager::getProductVersion(); rAboutBoxVersion = utl::ConfigManager::getAboutBoxProductVersion(); +rAboutBoxVersionSuffix = utl::ConfigManager::getAboutBoxProductVersion
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source
cui/source/options/treeopt.src |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit d8be0409037279154d6ae619e04f97e45018326d Author: Lior Kaplan Date: Tue Dec 13 00:55:01 2011 +0200 fdo#39452: 'Back' is misleading, use 'Revert' instead diff --git a/cui/source/options/treeopt.src b/cui/source/options/treeopt.src index 62be8ce..1de1ca6 100644 --- a/cui/source/options/treeopt.src +++ b/cui/source/options/treeopt.src @@ -67,7 +67,7 @@ ModalDialog RID_OFADLG_OPTIONS_TREE Pos = MAP_APPFONT ( COL_10, ROW_3 ) ; Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; TabStop = TRUE ; -Text [ en-US ] = "~Back" ; +Text [ en-US ] = "~Revert" ; }; //TreeListBox Control TLB_PAGES ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cui/source i18npool/inc i18npool/source svtools/inc svtools/source
cui/source/options/optgdlg.cxx |4 ++-- i18npool/inc/i18npool/mslangid.hxx | 15 +-- i18npool/source/isolang/mslangid.cxx |5 +++-- svtools/inc/svtools/langtab.hxx |8 +++- svtools/source/misc/langtab.cxx |4 ++-- svtools/source/misc/langtab.src |1 + 6 files changed, 28 insertions(+), 9 deletions(-) New commits: commit eea858f6c7696becab4e67ca00f5ee0293e63718 Author: Eike Rathke Date: Fri Dec 9 22:33:50 2011 +0100 fixed fdo#37349 present Catalan (Valencian) as selectable UI language Catalan (Valencian) has no ISO 639 code assigned and the UI localization uses the ca-XV hack where XV is of the reserved ISO 3166 user-assigned range. This should not escape to document content therefor internally a replacement to ca-ES is done for all locale attribution. For the UI localization to be distinguishable under Tools->Options->LanguageSettings->UserInterface this needed a special handling to allow Catalan (Valencian) again. diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index dabc5a7..79c41d8 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -1280,7 +1280,7 @@ OfaLanguagesTabPage::OfaLanguagesTabPage( Window* pParent, const SfxItemSet& rSe String aUILang(aStr); aUILang += String::CreateFromAscii(" - "); -aUILang += pLanguageTable->GetString( Application::GetSettings().GetUILanguage() ); +aUILang += pLanguageTable->GetString( Application::GetSettings().GetUILanguage(), true ); aUserInterfaceLB.InsertEntry(aUILang); aUserInterfaceLB.SetEntryData(0, 0); @@ -1308,7 +1308,7 @@ OfaLanguagesTabPage::OfaLanguagesTabPage( Window* pParent, const SfxItemSet& rSe if (aLang != LANGUAGE_DONTKNOW) { //sal_uInt16 p = aUserInterfaceLB.InsertLanguage(aLang); -String aLangStr( pLanguageTable->GetString( aLang ) ); +String aLangStr( pLanguageTable->GetString( aLang, true ) ); sal_uInt16 p = aUserInterfaceLB.InsertEntry(aLangStr); aUserInterfaceLB.SetEntryData(p, (void*)(i+1)); } diff --git a/i18npool/inc/i18npool/mslangid.hxx b/i18npool/inc/i18npool/mslangid.hxx index 717a5bb..f1da981 100644 --- a/i18npool/inc/i18npool/mslangid.hxx +++ b/i18npool/inc/i18npool/mslangid.hxx @@ -203,8 +203,19 @@ public: /** Map an obsolete user defined LANGID (see lang.h LANGUAGE_OBSOLETE_USER_...) to the new value defined by MS in the -meantime. */ -static LanguageType getReplacementForObsoleteLanguage( LanguageType nLang ); +meantime. + +Also used to map UI localizations using reserved ISO codes to something +"official" but not identical in order to not pollute documents with +invalid ISO codes. + +@param bUserInterfaceSelection +If TRUE, don't replace such UI-only locale. Only use for + Tools->Options->LanguageSettings->UserInterface listbox. +If FALSE, do replace. + */ +static LanguageType getReplacementForObsoleteLanguage( LanguageType nLang, +bool bUserInterfaceSelection = false ); /** @ATTENTION: these are _ONLY_ to be called by the application's diff --git a/i18npool/source/isolang/mslangid.cxx b/i18npool/source/isolang/mslangid.cxx index 06941b6..e5661da 100644 --- a/i18npool/source/isolang/mslangid.cxx +++ b/i18npool/source/isolang/mslangid.cxx @@ -379,7 +379,7 @@ sal_Int16 MsLangId::getScriptType( LanguageType nLang ) // static -LanguageType MsLangId::getReplacementForObsoleteLanguage( LanguageType nLang ) +LanguageType MsLangId::getReplacementForObsoleteLanguage( LanguageType nLang, bool bUserInterfaceSelection ) { switch (nLang) { @@ -433,7 +433,8 @@ LanguageType MsLangId::getReplacementForObsoleteLanguage( LanguageType nLang ) // Do not use ca-XV for document content. /* TODO: remove in case we implement BCP47 language tags. */ case LANGUAGE_USER_CATALAN_VALENCIAN: -nLang = LANGUAGE_CATALAN; +if (!bUserInterfaceSelection) +nLang = LANGUAGE_CATALAN; break; } return nLang; diff --git a/svtools/inc/svtools/langtab.hxx b/svtools/inc/svtools/langtab.hxx index 9b38297..5785322 100644 --- a/svtools/inc/svtools/langtab.hxx +++ b/svtools/inc/svtools/langtab.hxx @@ -43,7 +43,13 @@ public: SvtLanguageTable(); ~SvtLanguageTable(); -const String& GetString( const LanguageType eType ) const; +/** +@param bUserInterfaceSelection +If TRUE, don't replace an UI-only locale. Only use for + Tools->Options->LanguageSettings->UserInterface listbox. +If FALSE, do replace. + */ +const String& GetString( const LanguageType eType, bool bUserInterfaceSelection = false ) const; LanguageTypeGetType( const Str