diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-11 14:03:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-11 14:03:35 +0100 |
commit | af619501b790ef470828e280b3105a81542bec29 (patch) | |
tree | dd9815646ef2e600e7d0d3ea9d21b48885339f3c /basctl/source | |
parent | 55c413b9cb2692b784c6c43a519be08146438237 (diff) |
-Werror,-Wunused-function
Change-Id: I0b3399478c00e7e6db8973e9e4811f3f75c5a3db
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/dlged/managelang.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/basctl/source/dlged/managelang.cxx b/basctl/source/dlged/managelang.cxx index 3150bc9c5dc5..e31364102b3f 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) |