summaryrefslogtreecommitdiff
path: root/cui/source/customize
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-16 10:31:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-16 11:45:37 +0000
commit02975b8ff9274515cee6aa0691d45c4e6a286c32 (patch)
tree06149b8242fc5472c7e0bb3bead14671e7af1101 /cui/source/customize
parent8dda567746f119cca68d95ca6fdbc335cffb07f8 (diff)
unwind resource
Change-Id: I7a951548204745035bd69e4311e5fa1fe91b2d32
Diffstat (limited to 'cui/source/customize')
-rw-r--r--cui/source/customize/acccfg.cxx1
-rw-r--r--cui/source/customize/acccfg.hrc25
-rw-r--r--cui/source/customize/acccfg.src40
-rw-r--r--cui/source/customize/cfgutil.cxx9
4 files changed, 3 insertions, 72 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx
index b0d27edc18a3..e7578c997dcd 100644
--- a/cui/source/customize/acccfg.cxx
+++ b/cui/source/customize/acccfg.cxx
@@ -36,7 +36,6 @@
#include <vcl/builderfactory.hxx>
#include "cuires.hrc"
-#include "acccfg.hrc"
#include <svx/svxids.hrc>
diff --git a/cui/source/customize/acccfg.hrc b/cui/source/customize/acccfg.hrc
deleted file mode 100644
index 4dfc8032b9b5..000000000000
--- a/cui/source/customize/acccfg.hrc
+++ /dev/null
@@ -1,25 +0,0 @@
-/* -*- 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 .
- */
-
-#define STR_GROUP_STYLES 58
-
-#define STR_BASICMACROS 67
-#define STR_HUMAN_APPNAME 69
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/customize/acccfg.src b/cui/source/customize/acccfg.src
deleted file mode 100644
index 74dafebecfcd..000000000000
--- a/cui/source/customize/acccfg.src
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- 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 "helpid.hrc"
-#include "cuires.hrc"
-#include "acccfg.hrc"
-
-Resource RID_SVXPAGE_CONFIGGROUPBOX
-{
- String STR_BASICMACROS
- {
- Text [ en-US ] = "BASIC Macros" ;
- };
- String STR_HUMAN_APPNAME
- {
- Text = "%PRODUCTNAME" ;
- };
- String STR_GROUP_STYLES
- {
- Text [ en-US ] = "Styles" ;
- };
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index 06356ac2e2ef..8fc79412dbf9 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -37,7 +37,6 @@
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/ui/theUICategoryDescription.hpp>
-#include "acccfg.hrc"
#include "helpid.hrc"
#include <basic/sbx.hxx>
#include <basic/basicmanagerrepository.hxx>
@@ -340,7 +339,7 @@ void SfxConfigFunctionListBox::SetStylesInfo(SfxStylesInfo_Impl* pStyles)
pStylesInfo = pStyles;
}
-struct SvxConfigGroupBoxResource_Impl : public Resource
+struct SvxConfigGroupBoxResource_Impl
{
Image m_hdImage;
Image m_libImage;
@@ -358,20 +357,18 @@ struct SvxConfigGroupBoxResource_Impl : public Resource
};
SvxConfigGroupBoxResource_Impl::SvxConfigGroupBoxResource_Impl() :
- Resource(CUI_RES(RID_SVXPAGE_CONFIGGROUPBOX)),
m_hdImage(BitmapEx(CUI_RES(RID_CUIBMP_HARDDISK))),
m_libImage(BitmapEx(CUI_RES(RID_CUIBMP_LIB))),
m_macImage(BitmapEx(CUI_RES(RID_CUIBMP_MACRO))),
m_docImage(BitmapEx(CUI_RES(RID_CUIBMP_DOC))),
m_sMyMacros(CUI_RESSTR(RID_SVXSTR_MYMACROS)),
m_sProdMacros(CUI_RESSTR(RID_SVXSTR_PRODMACROS)),
- m_sMacros(CUI_RESSTR(STR_BASICMACROS)),
+ m_sMacros(CUI_RESSTR(RID_SVXSTR_BASICMACROS)),
m_sDlgMacros(CUI_RESSTR(RID_SVXSTR_PRODMACROS)),
- m_aStrGroupStyles(CUI_RESSTR(STR_GROUP_STYLES)),
+ m_aStrGroupStyles(CUI_RESSTR(RID_SVXSTR_GROUP_STYLES)),
m_collapsedImage(BitmapEx(CUI_RES(RID_CUIBMP_COLLAPSED))),
m_expandedImage(BitmapEx(CUI_RES(RID_CUIBMP_EXPANDED)))
{
- FreeResource();
}
SfxConfigGroupListBox::SfxConfigGroupListBox(vcl::Window* pParent, WinBits nStyle)