summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-22 12:33:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:20 +0100
commita983689039321013117a69ac2eba6ecbf85773ac (patch)
treeada44bcd91458ee987e56c78798a8c0773178312 /tools
parenta3b7b56eaaf6adce8efbbd1d40a06cc703311ee3 (diff)
Implement conversion scheme for dialogs without changing their code
This supports a scheme where we can change over a dialog to GtkBuilder xml without touching its code by the presence of a .ui file in the right place e.g. share/config/soffice.cfg/cui/10000.ui for the zoom dialog
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/resmgr.hxx3
-rw-r--r--tools/source/rc/resmgr.cxx5
2 files changed, 7 insertions, 1 deletions
diff --git a/tools/inc/tools/resmgr.hxx b/tools/inc/tools/resmgr.hxx
index 283be1aa744f..5d46d0f26577 100644
--- a/tools/inc/tools/resmgr.hxx
+++ b/tools/inc/tools/resmgr.hxx
@@ -186,7 +186,8 @@ public:
sal_uInt32 GetRemainSize();
- const rtl::OUString&GetFileName() const;
+ const rtl::OUString& GetFileName() const;
+ rtl::OUString getPrefixName() const;
sal_Int16 ReadShort();
sal_Int32 ReadLong();
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 8ba791a9a948..50179eaa29c8 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -1601,6 +1601,11 @@ ResMgr* ResMgr::CreateResMgr( const sal_Char* pPrefixName,
return pImp ? new ResMgr( pImp ) : NULL;
}
+rtl::OUString ResMgr::getPrefixName() const
+{
+ return pImpRes->aPrefix;
+}
+
ResMgr* ResMgr::SearchCreateResMgr(
const sal_Char* pPrefixName,
com::sun::star::lang::Locale& rLocale )