diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-07 15:42:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-07 16:10:46 +0000 |
commit | 321d970e2f8ce0f78238d7c41202f96690e7222c (patch) | |
tree | 08ee234f34d2e905c09480624108785dc83efdce /sw/source/uibase/utlui | |
parent | 2ec697a77f77caceec0a8cf6b6c68ae11a269a03 (diff) |
flatten ShellResource resource
Change-Id: Ib071a21778289f4dc68273cb305d38bf260a31a7
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r-- | sw/source/uibase/utlui/initui.cxx | 10 | ||||
-rw-r--r-- | sw/source/uibase/utlui/initui.hrc | 58 | ||||
-rw-r--r-- | sw/source/uibase/utlui/initui.src | 332 |
3 files changed, 165 insertions, 235 deletions
diff --git a/sw/source/uibase/utlui/initui.cxx b/sw/source/uibase/utlui/initui.cxx index 017254284fac..519019dde26a 100644 --- a/sw/source/uibase/utlui/initui.cxx +++ b/sw/source/uibase/utlui/initui.cxx @@ -30,7 +30,6 @@ #include <gloslst.hxx> #include <utlui.hrc> -#include <initui.hrc> #include <comcore.hrc> #include <authfld.hxx> #include <dbmgr.hxx> @@ -175,8 +174,7 @@ void InitUI() } ShellResource::ShellResource() - : Resource( SW_RES(RID_SW_SHELLRES) ), - aPostItAuthor( SW_RES( STR_POSTIT_AUTHOR ) ), + : aPostItAuthor( SW_RES( STR_POSTIT_AUTHOR ) ), aPostItPage( SW_RES( STR_POSTIT_PAGE ) ), aPostItLine( SW_RES( STR_POSTIT_LINE ) ), @@ -222,12 +220,6 @@ ShellResource::ShellResource() for(sal_uInt16 i = 0; i < nCount; ++i) aDocInfoLst.push_back(OUString(SW_RESSTR(FLD_DOCINFO_BEGIN + i))); - - FreeResource(); -} - -ShellResource::~ShellResource() -{ } OUString ShellResource::GetPageDescName(sal_uInt16 nNo, PageNameMode eMode) diff --git a/sw/source/uibase/utlui/initui.hrc b/sw/source/uibase/utlui/initui.hrc deleted file mode 100644 index bd9f60e4a07c..000000000000 --- a/sw/source/uibase/utlui/initui.hrc +++ /dev/null @@ -1,58 +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 . - */ - -#ifndef INCLUDED_SW_SOURCE_UIBASE_UTLUI_INITUI_HRC -#define INCLUDED_SW_SOURCE_UIBASE_UTLUI_INITUI_HRC - -// Local Resources for the shells: -#define STR_POSTIT_PAGE 1 -#define STR_POSTIT_AUTHOR 2 -#define STR_CALC_SYNTAX 3 -#define STR_CALC_ZERODIV 4 -#define STR_CALC_BRACK 5 -#define STR_CALC_POW 6 -#define STR_CALC_VARNFND 7 -#define STR_CALC_OVERFLOW 8 -#define STR_CALC_WRONGTIME 9 -#define STR_CALC_DEFAULT 10 -#define STR_CALC_ERROR 11 -#define STR_GETREFFLD_UP 12 -#define STR_GETREFFLD_DOWN 13 -#define STR_ALLPAGE_HEADFOOT 14 -#define STR_TEMPLATE_NONE 15 -#define STR_POSTIT_LINE 16 -#define STR_FIELD_FIXED 17 -#define STR_TOI 18 -#define STR_TOU 19 -#define STR_TOC 20 -#define STR_TOX_ILL 21 -#define STR_TOX_OBJ 22 -#define STR_TOX_TBL 23 -#define STR_TOX_AUTH 24 -#define STR_PAGEDESC_NAME 25 -#define STR_PAGEDESC_FIRSTNAME 26 -#define STR_PAGEDESC_FOLLOWNAME 27 -#define STR_LINK_CTRL_CLICK 28 -#define STR_LINK_CLICK 29 -#define STR_GETREFFLD_REFITEMNOTFOUND 30 -#define STR_DURATION_FORMAT 31 -#define STR_TOX_CITATION 32 -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/utlui/initui.src b/sw/source/uibase/utlui/initui.src index faf968106932..676dc10c8b3a 100644 --- a/sw/source/uibase/utlui/initui.src +++ b/sw/source/uibase/utlui/initui.src @@ -20,185 +20,181 @@ #include "globals.hrc" #include "utlui.hrc" #include "helpid.h" -#include "initui.hrc" // Error calculator -Resource RID_SW_SHELLRES -{ - String STR_POSTIT_PAGE - { - Text [ en-US ] = "Page" ; - }; - String STR_POSTIT_LINE - { - Text [ en-US ] = "Line" ; - }; - String STR_POSTIT_AUTHOR - { - Text [ en-US ] = "Author" ; - }; - String STR_CALC_SYNTAX - { - Text [ en-US ] = "** Syntax Error **" ; - }; - String STR_CALC_ZERODIV - { - Text [ en-US ] = "** Division by zero **" ; - }; - String STR_CALC_BRACK - { - Text [ en-US ] = "** Wrong use of brackets **" ; - }; - String STR_CALC_POW - { - Text [ en-US ] = "** Square function overflow **" ; - }; - String STR_CALC_VARNFND - { - Text [ en-US ] = "** Variable not found **" ; - }; - String STR_CALC_OVERFLOW - { - Text [ en-US ] = "** Overflow **" ; - }; - String STR_CALC_WRONGTIME - { - Text [ en-US ] = "** Wrong time format **" ; - }; - String STR_CALC_DEFAULT - { - Text [ en-US ] = "** Error **" ; - }; - String STR_CALC_ERROR - { - Text [ en-US ] = "** Expression is faulty **" ; - }; - String STR_GETREFFLD_UP - { - Text [ en-US ] = "above" ; - }; - String STR_GETREFFLD_DOWN - { - Text [ en-US ] = "below" ; - }; - String STR_GETREFFLD_REFITEMNOTFOUND - { - Text [ en-US ] = "Error: Reference source not found" ; - }; - String STR_ALLPAGE_HEADFOOT - { - Text [ en-US ] = "All" ; - }; - String STR_TEMPLATE_NONE - { - Text [ en-US ] = "None" ; - }; - String STR_FIELD_FIXED - { - Text [ en-US ] = "(fixed)" ; - }; - String STR_DURATION_FORMAT - { - Text [en-US] = " Y: %1 M: %2 D: %3 H: %4 M: %5 S: %6"; - }; - String STR_TOI - { - Text [ en-US ] = "Alphabetical Index" ; - }; +String STR_POSTIT_PAGE +{ + Text [ en-US ] = "Page" ; +}; +String STR_POSTIT_LINE +{ + Text [ en-US ] = "Line" ; +}; +String STR_POSTIT_AUTHOR +{ + Text [ en-US ] = "Author" ; +}; +String STR_CALC_SYNTAX +{ + Text [ en-US ] = "** Syntax Error **" ; +}; +String STR_CALC_ZERODIV +{ + Text [ en-US ] = "** Division by zero **" ; +}; +String STR_CALC_BRACK +{ + Text [ en-US ] = "** Wrong use of brackets **" ; +}; +String STR_CALC_POW +{ + Text [ en-US ] = "** Square function overflow **" ; +}; +String STR_CALC_VARNFND +{ + Text [ en-US ] = "** Variable not found **" ; +}; +String STR_CALC_OVERFLOW +{ + Text [ en-US ] = "** Overflow **" ; +}; +String STR_CALC_WRONGTIME +{ + Text [ en-US ] = "** Wrong time format **" ; +}; +String STR_CALC_DEFAULT +{ + Text [ en-US ] = "** Error **" ; +}; +String STR_CALC_ERROR +{ + Text [ en-US ] = "** Expression is faulty **" ; +}; +String STR_GETREFFLD_UP +{ + Text [ en-US ] = "above" ; +}; +String STR_GETREFFLD_DOWN +{ + Text [ en-US ] = "below" ; +}; +String STR_GETREFFLD_REFITEMNOTFOUND +{ + Text [ en-US ] = "Error: Reference source not found" ; +}; +String STR_ALLPAGE_HEADFOOT +{ + Text [ en-US ] = "All" ; +}; +String STR_TEMPLATE_NONE +{ + Text [ en-US ] = "None" ; +}; +String STR_FIELD_FIXED +{ + Text [ en-US ] = "(fixed)" ; +}; +String STR_DURATION_FORMAT +{ + Text [en-US] = " Y: %1 M: %2 D: %3 H: %4 M: %5 S: %6"; +}; +String STR_TOI +{ + Text [ en-US ] = "Alphabetical Index" ; +}; - String STR_TOU - { - Text [ en-US ] = "User-Defined" ; - }; +String STR_TOU +{ + Text [ en-US ] = "User-Defined" ; +}; - String STR_TOC - { - Text [ en-US ] = "Table of Contents" ; - }; +String STR_TOC +{ + Text [ en-US ] = "Table of Contents" ; +}; - String STR_TOX_AUTH - { - Text [ en-US ] = "Bibliography"; - }; +String STR_TOX_AUTH +{ + Text [ en-US ] = "Bibliography"; +}; - String STR_TOX_CITATION - { - Text [ en-US ] = "Citation"; - }; +String STR_TOX_CITATION +{ + Text [ en-US ] = "Citation"; +}; - String STR_TOX_TBL - { - Text [ en-US ] = "Index of Tables"; - }; - String STR_TOX_OBJ - { - Text [ en-US ] = "Table of Objects"; - }; - String STR_TOX_ILL - { - Text [ en-US ] = "Illustration Index"; - }; - String STR_LINK_CTRL_CLICK - { - Text [ en-US ] = "%s-Click to follow link"; - }; - String STR_LINK_CLICK - { - Text [ en-US ] = "Click to follow link"; - }; +String STR_TOX_TBL +{ + Text [ en-US ] = "Index of Tables"; +}; +String STR_TOX_OBJ +{ + Text [ en-US ] = "Table of Objects"; +}; +String STR_TOX_ILL +{ + Text [ en-US ] = "Illustration Index"; +}; +String STR_LINK_CTRL_CLICK +{ + Text [ en-US ] = "%s-Click to follow link"; +}; +String STR_LINK_CLICK +{ + Text [ en-US ] = "Click to follow link"; +}; - // SubType DocInfo + // SubType DocInfo - String FLD_DOCINFO_TITEL - { - Text [ en-US ] = "Title" ; - }; - String FLD_DOCINFO_THEMA - { - Text [ en-US ] = "Subject" ; - }; - String FLD_DOCINFO_KEYS - { - Text [ en-US ] = "Keywords" ; - }; - String FLD_DOCINFO_COMMENT - { - Text [ en-US ] = "Comments" ; - }; - String FLD_DOCINFO_CREATE - { - Text [ en-US ] = "Created" ; - }; - String FLD_DOCINFO_CHANGE - { - Text [ en-US ] = "Modified" ; - }; - String FLD_DOCINFO_PRINT - { - Text [ en-US ] = "Last printed" ; - }; - String FLD_DOCINFO_DOCNO - { - Text [ en-US ] = "Revision number" ; - }; - String FLD_DOCINFO_EDIT - { - Text [ en-US ] = "Total editing time" ; - }; +String FLD_DOCINFO_TITEL +{ + Text [ en-US ] = "Title" ; +}; +String FLD_DOCINFO_THEMA +{ + Text [ en-US ] = "Subject" ; +}; +String FLD_DOCINFO_KEYS +{ + Text [ en-US ] = "Keywords" ; +}; +String FLD_DOCINFO_COMMENT +{ + Text [ en-US ] = "Comments" ; +}; +String FLD_DOCINFO_CREATE +{ + Text [ en-US ] = "Created" ; +}; +String FLD_DOCINFO_CHANGE +{ + Text [ en-US ] = "Modified" ; +}; +String FLD_DOCINFO_PRINT +{ + Text [ en-US ] = "Last printed" ; +}; +String FLD_DOCINFO_DOCNO +{ + Text [ en-US ] = "Revision number" ; +}; +String FLD_DOCINFO_EDIT +{ + Text [ en-US ] = "Total editing time" ; +}; - String STR_PAGEDESC_NAME - { - Text [ en-US ] = "Convert $(ARG1)"; - }; - String STR_PAGEDESC_FIRSTNAME - { - Text [ en-US ] = "First convert $(ARG1)"; - }; - String STR_PAGEDESC_FOLLOWNAME - { - Text [ en-US ] = "Next convert $(ARG1)"; - }; +String STR_PAGEDESC_NAME +{ + Text [ en-US ] = "Convert $(ARG1)"; +}; +String STR_PAGEDESC_FIRSTNAME +{ + Text [ en-US ] = "First convert $(ARG1)"; +}; +String STR_PAGEDESC_FOLLOWNAME +{ + Text [ en-US ] = "Next convert $(ARG1)"; }; String STR_AUTH_TYPE_ARTICLE |