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 .
|
|
|
|
*/
|
2000-09-18 16:15:01 +00:00
|
|
|
#ifndef _SHELLRES_HXX
|
|
|
|
#define _SHELLRES_HXX
|
|
|
|
|
2012-07-02 02:23:04 +02:00
|
|
|
#include <swdllapi.h>
|
2013-10-20 15:15:42 +01:00
|
|
|
#include <rtl/ustring.hxx>
|
2012-07-02 02:23:04 +02:00
|
|
|
#include <tools/rc.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <vcl/bitmap.hxx>
|
|
|
|
|
2009-01-05 14:06:42 +00:00
|
|
|
struct SW_DLLPUBLIC ShellResource : public Resource
|
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_VarNFnd;
|
|
|
|
OUString aCalc_Overflow;
|
|
|
|
OUString aCalc_WrongTime;
|
|
|
|
OUString aCalc_Default;
|
|
|
|
OUString aCalc_Error;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 20:18:04 +02:00
|
|
|
// For GetRefField - up/down.
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString aGetRefFld_Up;
|
|
|
|
OUString aGetRefFld_Down;
|
2011-04-18 20:18:04 +02:00
|
|
|
// For GetRefField - referenced item not found.
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString aGetRefFld_RefItemNotFound;
|
2011-04-18 20:18:04 +02:00
|
|
|
// For dynamic menu - string "all".
|
2013-10-10 14:27:20 +02:00
|
|
|
OUString aStrAllPageHeadFoot;
|
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;
|
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.
|
2013-10-10 14:27:20 +02:00
|
|
|
inline const std::vector<OUString>& GetAutoFmtNameLst() 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();
|
|
|
|
~ShellResource();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void _GetAutoFmtNameLst() const;
|
2013-10-10 14:27:20 +02:00
|
|
|
mutable std::vector<OUString> *pAutoFmtNameLst;
|
|
|
|
OUString sPageDescFirstName;
|
|
|
|
OUString sPageDescFollowName;
|
|
|
|
OUString sPageDescName;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2013-10-10 14:27:20 +02:00
|
|
|
inline const std::vector<OUString>& ShellResource::GetAutoFmtNameLst() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
if( !pAutoFmtNameLst )
|
|
|
|
_GetAutoFmtNameLst();
|
|
|
|
return *pAutoFmtNameLst;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SHELLRES_HXX
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|