diff options
Diffstat (limited to 'dbaccess/source/ui/app/AppTitleWindow.cxx')
-rw-r--r-- | dbaccess/source/ui/app/AppTitleWindow.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/dbaccess/source/ui/app/AppTitleWindow.cxx b/dbaccess/source/ui/app/AppTitleWindow.cxx index 2bdcea9299bf..f3769cb0f509 100644 --- a/dbaccess/source/ui/app/AppTitleWindow.cxx +++ b/dbaccess/source/ui/app/AppTitleWindow.cxx @@ -18,14 +18,14 @@ */ #include "AppTitleWindow.hxx" -#include "moduledbu.hxx" +#include "core_resource.hxx" #include <vcl/svapp.hxx> #include <vcl/settings.hxx> namespace dbaui { -OTitleWindow::OTitleWindow(vcl::Window* _pParent,sal_uInt16 _nTitleId,WinBits _nBits,bool _bShift) +OTitleWindow::OTitleWindow(vcl::Window* _pParent, const char* pTitleId, WinBits _nBits, bool _bShift) : Window(_pParent,_nBits | WB_DIALOGCONTROL) , m_aSpace1(VclPtr<FixedText>::Create(this)) , m_aSpace2(VclPtr<FixedText>::Create(this)) @@ -33,8 +33,7 @@ OTitleWindow::OTitleWindow(vcl::Window* _pParent,sal_uInt16 _nTitleId,WinBits _n , m_pChild(nullptr) , m_bShift(_bShift) { - - setTitle(_nTitleId); + setTitle(pTitleId); SetBorderStyle(WindowBorderStyle::MONO); ImplInitSettings(); @@ -100,11 +99,11 @@ void OTitleWindow::Resize() } } -void OTitleWindow::setTitle(sal_uInt16 _nTitleId) +void OTitleWindow::setTitle(const char* pTitleId) { - if ( _nTitleId != 0 ) + if (pTitleId) { - m_aTitle->SetText(ModuleRes(_nTitleId)); + m_aTitle->SetText(DBA_RES(pTitleId)); } } |