Kaydet (Commit) c0bf396a authored tarafından Eike Rathke's avatar Eike Rathke

Ditch now unused class UserInformation and userinformation.?xx

... one class with one member variable holding one string for one
instantiation ...

Change-Id: I033312ed1c05c181e7077b4b1a0d988cfb80eb33
Reviewed-on: https://gerrit.libreoffice.org/61734Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: Jenkins
üst e888ed18
...@@ -121,7 +121,6 @@ $(eval $(call gb_Library_add_exception_objects,dba,\ ...@@ -121,7 +121,6 @@ $(eval $(call gb_Library_add_exception_objects,dba,\
dbaccess/source/core/misc/PropertyForward \ dbaccess/source/core/misc/PropertyForward \
dbaccess/source/core/misc/sdbcoretools \ dbaccess/source/core/misc/sdbcoretools \
dbaccess/source/core/misc/services \ dbaccess/source/core/misc/services \
dbaccess/source/core/misc/userinformation \
dbaccess/source/core/misc/veto \ dbaccess/source/core/misc/veto \
dbaccess/source/core/recovery/dbdocrecovery \ dbaccess/source/core/recovery/dbdocrecovery \
dbaccess/source/core/recovery/settingsimport \ dbaccess/source/core/recovery/settingsimport \
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "datasource.hxx" #include "datasource.hxx"
#include <stringconstants.hxx> #include <stringconstants.hxx>
#include <ModelImpl.hxx> #include <ModelImpl.hxx>
#include <userinformation.hxx>
#include <sdbcoretools.hxx> #include <sdbcoretools.hxx>
#include <com/sun/star/beans/PropertyBag.hpp> #include <com/sun/star/beans/PropertyBag.hpp>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
#include "datasource.hxx" #include "datasource.hxx"
#include <userinformation.hxx>
#include "commandcontainer.hxx" #include "commandcontainer.hxx"
#include <stringconstants.hxx> #include <stringconstants.hxx>
#include <core_resource.hxx> #include <core_resource.hxx>
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_DBACCESS_SOURCE_CORE_INC_USERINFORMATION_HXX
#define INCLUDED_DBACCESS_SOURCE_CORE_INC_USERINFORMATION_HXX
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
class UserInformation
{
css::lang::Locale m_aUserLocale;
public:
UserInformation();
const css::lang::Locale& getUserLanguage() const { return m_aUserLocale; }
};
#endif // INCLUDED_DBACCESS_SOURCE_CORE_INC_USERINFORMATION_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <userinformation.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <unotools/configmgr.hxx>
using namespace ::utl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
UserInformation::UserInformation():
m_aUserLocale( LanguageTag( ConfigManager::getWorkLocale()).getLocale())
{}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -3138,7 +3138,6 @@ dbaccess/source/core/inc/sdbcoretools.hxx ...@@ -3138,7 +3138,6 @@ dbaccess/source/core/inc/sdbcoretools.hxx
dbaccess/source/core/inc/statement.hxx dbaccess/source/core/inc/statement.hxx
dbaccess/source/core/inc/table.hxx dbaccess/source/core/inc/table.hxx
dbaccess/source/core/inc/tablecontainer.hxx dbaccess/source/core/inc/tablecontainer.hxx
dbaccess/source/core/inc/userinformation.hxx
dbaccess/source/core/inc/veto.hxx dbaccess/source/core/inc/veto.hxx
dbaccess/source/core/inc/viewcontainer.hxx dbaccess/source/core/inc/viewcontainer.hxx
dbaccess/source/core/misc/ContainerMediator.cxx dbaccess/source/core/misc/ContainerMediator.cxx
...@@ -3149,7 +3148,6 @@ dbaccess/source/core/misc/dsntypes.cxx ...@@ -3149,7 +3148,6 @@ dbaccess/source/core/misc/dsntypes.cxx
dbaccess/source/core/misc/objectnameapproval.cxx dbaccess/source/core/misc/objectnameapproval.cxx
dbaccess/source/core/misc/sdbcoretools.cxx dbaccess/source/core/misc/sdbcoretools.cxx
dbaccess/source/core/misc/services.cxx dbaccess/source/core/misc/services.cxx
dbaccess/source/core/misc/userinformation.cxx
dbaccess/source/core/misc/veto.cxx dbaccess/source/core/misc/veto.cxx
dbaccess/source/core/recovery/dbdocrecovery.cxx dbaccess/source/core/recovery/dbdocrecovery.cxx
dbaccess/source/core/recovery/settingsimport.cxx dbaccess/source/core/recovery/settingsimport.cxx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment