[Libreoffice-commits] core.git: 2 commits - vcl/inc vcl/source
Caolán McNamara
caolanm at redhat.com
Thu Apr 4 02:29:55 PDT 2013
vcl/inc/vcl/builder.hxx | 1 +
vcl/source/window/builder.cxx | 14 +++++++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
New commits:
commit 5a5777f0a75e512af35250e90bc2670492ba5c9b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Apr 4 09:58:29 2013 +0100
need to replace %OOOVENDOR in .ui strings
Change-Id: If44cc1750b8555eab6e3dc2659e60a8fff10b24c
diff --git a/vcl/inc/vcl/builder.hxx b/vcl/inc/vcl/builder.hxx
index 11693a3..c606055 100644
--- a/vcl/inc/vcl/builder.hxx
+++ b/vcl/inc/vcl/builder.hxx
@@ -197,6 +197,7 @@ private:
OString m_sID;
OString m_sHelpRoot;
OString m_sProductName;
+ OString m_sVendor;
Window *m_pParent;
bool m_bToplevelHasDeferredInit;
bool m_bToplevelParentFound;
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 3a09dad..75959b6 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -139,6 +139,7 @@ VclBuilder::VclBuilder(Window *pParent, OUString sUIDir, OUString sUIFile, OStri
: m_sID(sID)
, m_sHelpRoot(OUStringToOString(sUIFile, RTL_TEXTENCODING_UTF8))
, m_sProductName(OUStringToOString(utl::ConfigManager::getProductName(), RTL_TEXTENCODING_UTF8))
+ , m_sVendor(OUStringToOString(utl::ConfigManager::getVendor(), RTL_TEXTENCODING_UTF8))
, m_pParent(pParent)
, m_bToplevelParentFound(false)
, m_pParserState(new ParserState)
@@ -2402,7 +2403,9 @@ void VclBuilder::collectProperty(xmlreader::XmlReader &reader, const OString &rI
if (!sProperty.isEmpty())
{
sProperty = sProperty.replace('_', '-');
- rMap[sProperty] = sValue.replaceAll("%PRODUCTNAME", m_sProductName);
+ rMap[sProperty] = sValue.
+ replaceAll("%PRODUCTNAME", m_sProductName).
+ replaceAll("%OOOVENDOR", m_sVendor);
}
}
commit 8c4f20938bc5d4013126a00a02e8eca80b250284
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Apr 4 09:27:20 2013 +0100
Related: fdo#61688 get strict ordering right
Change-Id: Ibb3e74e98762358614713688d64e50db21025f1d
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index a971614..3a09dad 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1441,8 +1441,13 @@ bool VclBuilder::sortIntoBestTabTraversalOrder::operator()(const Window *pA, con
if (pA->GetParent() == pB->GetParent())
{
const VclFrame *pFrameParent = dynamic_cast<const VclFrame*>(pA->GetParent());
- if (pFrameParent && pA == pFrameParent->get_label_widget())
- return true;
+ if (pFrameParent)
+ {
+ const Window *pLabel = pFrameParent->get_label_widget();
+ int nFramePosA = (pA == pLabel) ? 0 : 1;
+ int nFramePosB = (pB == pLabel) ? 0 : 1;
+ return nFramePosA < nFramePosB;
+ }
}
return false;
}
More information about the Libreoffice-commits
mailing list