2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_INC_SHELLRES_HXX
|
|
|
|
#define INCLUDED_SW_INC_SHELLRES_HXX
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2017-04-14 08:42:15 +10:00
|
|
|
#include <memory>
|
2017-10-23 22:30:30 +02:00
|
|
|
#include "swdllapi.h"
|
2013-10-20 15:15:42 +01:00
|
|
|
#include <rtl/ustring.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2017-02-07 15:42:22 +00:00
|
|
|
struct SW_DLLPUBLIC ShellResource
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString aPostItAuthor;
|
|
|
|
OUString aPostItPage;
|
|
|
|
OUString aPostItLine;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 20:18:04 +02:00
|
|
|
// Calc error-strings.
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString aCalc_Syntax;
|
|
|
|
OUString aCalc_ZeroDiv;
|
|
|
|
OUString aCalc_Brack;
|
|
|
|
OUString aCalc_Pow;
|
|
|
|
OUString aCalc_Overflow;
|
|
|
|
OUString aCalc_Default;
|
|
|
|
OUString aCalc_Error;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 20:18:04 +02:00
|
|
|
// For GetRefField - referenced item not found.
|
2015-05-20 13:05:49 +02:00
|
|
|
OUString aGetRefField_RefItemNotFound;
|
2011-04-18 20:18:04 +02:00
|
|
|
// For some list boxes - string "none"
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString aStrNone;
|
2011-04-18 20:18:04 +02:00
|
|
|
// For fixed fields.
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString aFixedStr;
|
2011-04-18 20:18:04 +02:00
|
|
|
// Custom fields of type css::util::Duration.
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString sDurationFormat;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 20:18:04 +02:00
|
|
|
//Names of TOXs.
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString aTOXIndexName;
|
2013-10-09 09:50:37 +01:00
|
|
|
OUString aTOXUserName;
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString aTOXContentName;
|
|
|
|
OUString aTOXIllustrationsName;
|
|
|
|
OUString aTOXObjectsName;
|
|
|
|
OUString aTOXTablesName;
|
|
|
|
OUString aTOXAuthoritiesName;
|
2014-03-12 15:07:38 +05:30
|
|
|
OUString aTOXCitationName;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-10-24 10:34:13 +01:00
|
|
|
OUString aLinkCtrlClick;
|
|
|
|
OUString aLinkClick;
|
2007-06-27 12:14:13 +00:00
|
|
|
|
2013-10-10 14:27:20 +02:00
|
|
|
std::vector<OUString> aDocInfoLst;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 20:18:04 +02:00
|
|
|
// The autoFormat-Redline comments.
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const std::vector<OUString>& GetAutoFormatNameLst() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-12-20 17:10:42 +00:00
|
|
|
enum PageNameMode
|
|
|
|
{
|
|
|
|
NORMAL_PAGE,
|
|
|
|
FIRST_PAGE,
|
|
|
|
FOLLOW_PAGE
|
|
|
|
};
|
2011-04-18 20:18:04 +02:00
|
|
|
// Returns for the specific filter the new names of pagedescs
|
2001-01-26 14:44:02 +00:00
|
|
|
// This method is for the old code of the specific filters with
|
2011-04-18 20:18:04 +02:00
|
|
|
// now localized names.
|
2013-10-07 10:12:16 +01:00
|
|
|
OUString GetPageDescName(sal_uInt16 nNo, PageNameMode eMode);
|
2001-01-26 14:44:02 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
ShellResource();
|
|
|
|
|
|
|
|
private:
|
2016-04-22 10:08:07 +02:00
|
|
|
void GetAutoFormatNameLst_() const;
|
2017-01-18 09:46:39 +02:00
|
|
|
mutable std::unique_ptr<std::vector<OUString>> pAutoFormatNameLst;
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString sPageDescFirstName;
|
|
|
|
OUString sPageDescFollowName;
|
|
|
|
OUString sPageDescName;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const std::vector<OUString>& ShellResource::GetAutoFormatNameLst() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2015-05-20 13:05:49 +02:00
|
|
|
if( !pAutoFormatNameLst )
|
2016-04-22 10:08:07 +02:00
|
|
|
GetAutoFormatNameLst_();
|
2015-05-20 13:05:49 +02:00
|
|
|
return *pAutoFormatNameLst;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
2013-11-05 02:17:53 +01:00
|
|
|
#endif // INCLUDED_SW_INC_SHELLRES_HXX
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|