basctl/source/dlged/managelang.cxx | 25 ------------------------- 1 file changed, 25 deletions(-)
New commits: commit af619501b790ef470828e280b3105a81542bec29 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Feb 11 14:03:35 2014 +0100 -Werror,-Wunused-function Change-Id: I0b3399478c00e7e6db8973e9e4811f3f75c5a3db diff --git a/basctl/source/dlged/managelang.cxx b/basctl/source/dlged/managelang.cxx index 3150bc9..e313641 100644 --- a/basctl/source/dlged/managelang.cxx +++ b/basctl/source/dlged/managelang.cxx @@ -54,31 +54,6 @@ bool localesAreEqual( const Locale& rLocaleLeft, const Locale& rLocaleRight ) return bRet; } -namespace { - long getLongestWordWidth( const OUString& rText, const Window& rWin ) - { - long nWidth = 0; - Reference< XBreakIterator > xBreakIter( vcl::unohelper::CreateBreakIterator() ); - sal_Int32 nStartPos = 0; - const Locale aLocale = Application::GetSettings().GetUILanguageTag().getLocale(); - Boundary aBoundary = xBreakIter->getWordBoundary( - rText, nStartPos, aLocale, WordType::ANYWORD_IGNOREWHITESPACES, true ); - - while ( aBoundary.startPos != aBoundary.endPos ) - { - nStartPos = aBoundary.endPos; - OUString sWord(rText.copy(aBoundary.startPos, aBoundary.endPos - aBoundary.startPos)); - long nTemp = rWin.GetCtrlTextWidth( sWord ); - if ( nTemp > nWidth ) - nWidth = nTemp; - aBoundary = xBreakIter->nextWord( - rText, nStartPos, aLocale, WordType::ANYWORD_IGNOREWHITESPACES ); - } - - return nWidth; - } -} - ManageLanguageDialog::ManageLanguageDialog(Window* pParent, boost::shared_ptr<LocalizationMgr> xLMgr) : ModalDialog(pParent, "ManageLanguagesDialog", "modules/BasicIDE/ui/managelanguages.ui") , m_xLocalizationMgr(xLMgr) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits