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>
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <tools/string.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
|
|
|
{
|
|
|
|
String aPostItAuthor;
|
|
|
|
String aPostItPage;
|
|
|
|
String aPostItLine;
|
|
|
|
|
2011-04-18 20:18:04 +02:00
|
|
|
// Calc error-strings.
|
2000-09-18 16:15:01 +00:00
|
|
|
String aCalc_Syntax;
|
|
|
|
String aCalc_ZeroDiv;
|
|
|
|
String aCalc_Brack;
|
|
|
|
String aCalc_Pow;
|
|
|
|
String aCalc_VarNFnd;
|
|
|
|
String aCalc_Overflow;
|
|
|
|
String aCalc_WrongTime;
|
|
|
|
String aCalc_Default;
|
|
|
|
String aCalc_Error;
|
|
|
|
|
2011-04-18 20:18:04 +02:00
|
|
|
// For GetRefField - up/down.
|
2007-09-27 07:09:56 +00:00
|
|
|
String aGetRefFld_Up;
|
|
|
|
String aGetRefFld_Down;
|
2011-04-18 20:18:04 +02:00
|
|
|
// For GetRefField - referenced item not found.
|
2008-02-26 09:31:58 +00:00
|
|
|
String aGetRefFld_RefItemNotFound;
|
2011-04-18 20:18:04 +02:00
|
|
|
// For dynamic menu - string "all".
|
2000-09-18 16:15:01 +00:00
|
|
|
String aStrAllPageHeadFoot;
|
2011-04-18 20:18:04 +02:00
|
|
|
// For some list boxes - string "none"
|
2000-09-18 16:15:01 +00:00
|
|
|
String aStrNone;
|
2011-04-18 20:18:04 +02:00
|
|
|
// For fixed fields.
|
2000-09-18 16:15:01 +00:00
|
|
|
String aFixedStr;
|
2011-04-18 20:18:04 +02:00
|
|
|
// Custom fields of type css::util::Duration.
|
2009-11-26 12:52:39 +01:00
|
|
|
String sDurationFormat;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 20:18:04 +02:00
|
|
|
//Names of TOXs.
|
2000-09-18 16:15:01 +00:00
|
|
|
String aTOXIndexName;
|
2013-10-09 09:50:37 +01:00
|
|
|
OUString aTOXUserName;
|
2000-09-18 16:15:01 +00:00
|
|
|
String aTOXContentName;
|
|
|
|
String aTOXIllustrationsName;
|
|
|
|
String aTOXObjectsName;
|
|
|
|
String aTOXTablesName;
|
|
|
|
String aTOXAuthoritiesName;
|
|
|
|
|
2013-07-13 20:12:42 +01:00
|
|
|
OUString aHyperlinkClick;
|
2007-06-27 12:14:13 +00:00
|
|
|
|
2012-01-13 18:14:36 -05:00
|
|
|
std::vector<String> aDocInfoLst;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-18 20:18:04 +02:00
|
|
|
// The autoFormat-Redline comments.
|
2012-01-13 18:14:36 -05:00
|
|
|
inline const std::vector<String>& 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;
|
2012-12-01 12:18:53 +00:00
|
|
|
mutable std::vector<String> *pAutoFmtNameLst;
|
2007-09-27 07:09:56 +00:00
|
|
|
String sPageDescFirstName;
|
|
|
|
String sPageDescFollowName;
|
|
|
|
String sPageDescName;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2012-01-13 18:14:36 -05:00
|
|
|
inline const std::vector<String>& 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: */
|