Kaydet (Commit) f64dc2c9 authored tarafından Caolán McNamara's avatar Caolán McNamara

I believe the src charset pragma is archaic and unused

üst 3a17760c
......@@ -24,11 +24,10 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <cuires.hrc>
#include "helpid.hrc"
#include "SpellDialog.hrc"
// pragma ----------------------------------------------------------------
// RID_SVXDLG_SPELLCHECK -------------------------------------------------
......
......@@ -24,10 +24,9 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include "helpid.hrc"
#include "cuiimapdlg.hrc"
// pragma ----------------------------------------------------------------
ModalDialog RID_SVXDLG_IMAPURL
{
......
......@@ -25,16 +25,9 @@
*
************************************************************************/
// include ------------------------------------------------------------------
#include "fontsubs.hrc"
#include "helpid.hrc"
// pragma -------------------------------------------------------------------
/**************************************************************************/
TabPage RID_SVX_FONT_SUBSTITUTION
......
......@@ -24,12 +24,11 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <sfx2/sfx.hrc>
#include "helpid.hrc"
#include <cuires.hrc>
#include "optcolor.hrc"
// pragma ----------------------------------------------------------------
TabPage RID_SVXPAGE_COLORCONFIG
{
......
......@@ -24,12 +24,11 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <sfx2/sfx.hrc>
#include "helpid.hrc"
#include <cuires.hrc>
#include "optdict.hrc"
// pragma ----------------------------------------------------------------
// RID_SFXDLG_NEWDICT ----------------------------------------------------
ModalDialog RID_SFXDLG_NEWDICT
......
......@@ -24,10 +24,9 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include -----------------------------------------------------------------
#include "optfltr.hrc"
#include <cuires.hrc>
// pragma ------------------------------------------------------------------
// RID_OFAPAGE_MSFILTEROPT -----------------------------------------------------
TabPage RID_OFAPAGE_MSFILTEROPT
......
......@@ -24,12 +24,11 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ------------------------------------------------------------------
#include <sfx2/sfx.hrc>
#include "helpid.hrc"
#include <cuires.hrc>
#include "optinet2.hrc"
// pragma -------------------------------------------------------------------
/************************************************************************/
/* */
......
......@@ -24,13 +24,12 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ------------------------------------------------------------------
#include "autocdlg.hrc"
#include <cuires.hrc>
#include "helpid.hrc"
#include <svx/svxids.hrc> // SID_AUTOFORMAT
// pragma -------------------------------------------------------------------
/**************************************************************************/
/* */
/* TabDialog RID_OFA_AUTOCORR_DLG */
......
......@@ -24,7 +24,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <svtools/controldims.hrc>
#include "helpid.hrc"
#include <cuires.hrc>
......@@ -35,8 +35,6 @@
#define UNLINKED_IMAGE \
Text [ en-US ] = "Unlinked graphic" ; \
// pragma ----------------------------------------------------------------
// RID_SVXPAGE_BACKGROUND ------------------------------------------------
TabPage RID_SVXPAGE_BACKGROUND
{
......
......@@ -24,9 +24,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// pragma ----------------------------------------------------------------
// include ---------------------------------------------------------------
#include <svtools/controldims.hrc>
#include "connect.hrc"
#include <cuires.hrc>
......
......@@ -24,14 +24,13 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <cuires.hrc>
#include "measure.hrc"
#include "helpid.hrc"
#include <svx/dialogs.hrc>
#define DELTA 20
// pragma ----------------------------------------------------------------
// RID_SVXPAGE_MEASURE ---------------------------------------------------
TabPage RID_SVXPAGE_MEASURE
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// pragma ----------------------------------------------------------------
#include <svtools/controldims.hrc>
#include <cuires.hrc>
......
......@@ -24,9 +24,8 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ------------------------------------------------------------------
#include <editeng/editrids.hrc>
// pragma -------------------------------------------------------------------
// Value strings ------------------------------------------------------------
String RID_SVXITEMS_TRUE
......
......@@ -24,9 +24,8 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <editeng/editrids.hrc>
// pragma ----------------------------------------------------------------
// QueryBoxen ---------------------------------------------------------------
QueryBox RID_SVXQB_CONTINUE
......
......@@ -447,7 +447,7 @@ Export::Export( const ByteString &rOutput, sal_Bool bWrite,
if ( bEnableExport ) {
aOutput.Open( String( rOutput, RTL_TEXTENCODING_ASCII_US ), STREAM_STD_WRITE | STREAM_TRUNC );
if( !aOutput.IsOpen() ) {
printf("ERROR : Can't open file %s\n",rOutput.GetBuffer());
fprintf(stderr, "ERROR : Can't open file %s\n",rOutput.GetBuffer());
exit ( -1 );
}
aOutput.SetStreamCharSet( RTL_TEXTENCODING_UTF8 );
......@@ -1111,25 +1111,8 @@ int Export::Execute( int nToken, const char * pToken )
break;
case PRAGMA : {
bDontWriteOutput = sal_False;
while( sToken.SearchAndReplace( "\t", " " ) != STRING_NOTFOUND ) {};
while( sToken.SearchAndReplace( " ", " " ) != STRING_NOTFOUND ) {};
sToken.EraseLeadingChars( ' ' );
sToken.EraseTrailingChars( ' ' );
ByteString sCharset = getToken(sToken, 1, ' ');
ByteString sSet = getToken(sToken, 2, ' ');
if (( sCharset.ToUpperAscii() == "CHARSET_IBMPC" ) ||
( sCharset == "RTL_TEXTENCODING_IBM_850" ) ||
(( sCharset == "CHARSET" ) && ( sSet.ToUpperAscii() == "IBMPC" )))
{
aCharSet = RTL_TEXTENCODING_IBM_850;
}
else if (( sCharset == "CHARSET_ANSI" ) ||
( sCharset == "RTL_TEXTENCODING_MS_1252" ) ||
(( sCharset == "CHARSET" ) && ( sSet.ToUpperAscii() == "ANSI" )))
{
aCharSet = RTL_TEXTENCODING_MS_1252;
}
fprintf(stderr, "ERROR: archaic PRAGMA %s\n", sToken.GetBuffer());
exit(-1);
}
break;
case TEXTREFID : {
......
......@@ -24,12 +24,10 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include "sc.hrc"
#include "dwfunctr.hrc"
// pragma ----------------------------------------------------------------
// RID_SVXDLG_CALCFUNC --------------------------------------------------
DockingWindow FID_FUNCTION_BOX
{
......
......@@ -24,11 +24,10 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <sfx2/sfx.hrc>
#include "helpid.hrc"
#include "mgetempl.hrc"
// pragma ----------------------------------------------------------------
// TP_MANAGE_STYLES ------------------------------------------------------
TabPage TP_MANAGE_STYLES
......
......@@ -24,12 +24,11 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <sfx2/sfx.hrc>
#include "doc.hrc"
#include "docvor.hrc"
#include "helpid.hrc"
// pragma ----------------------------------------------------------------
// DLG_ORGANIZE ----------------------------------------------------------
......
......@@ -24,14 +24,12 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <sfx2/sfx.hrc>
#include "doc.hrc"
#include "new.hrc"
#include <sfx2/sfxcommands.h>
// pragma ----------------------------------------------------------------
// DLG_NEW_FILE ----------------------------------------------------------
ModalDialog DLG_NEW_FILE
{
......
......@@ -29,8 +29,6 @@
#include <svtools/svtools.hrc>
#include <svtools/sfxecode.hxx>
// pragma ----------------------------------------------------------------
String STR_ERR_HDLMESS
{
Text = "$(ACTION)$(ERROR)" ;
......
......@@ -24,12 +24,11 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <svx/svxids.hrc>
#include <svx/dialogs.hrc>
#include "fontwork.hrc"
#include "helpid.hrc"
// pragma ----------------------------------------------------------------
// RID_SVXDLG_FONTWORK ---------------------------------------------------
DockingWindow RID_SVXDLG_FONTWORK
......
......@@ -24,11 +24,10 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include "helpid.hrc"
#include <svx/dialogs.hrc>
#include "hdft.hrc"
// pragma ----------------------------------------------------------------
#define _TEXT_FT_LMARGIN \
Text [ en-US ] = "~Left margin" ; \
......
......@@ -24,10 +24,9 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include "helpid.hrc"
#include "imapdlg.hrc"
// pragma ----------------------------------------------------------------
// RID_SVXDLG_IMAP ----------------------------------------------------
ModelessDialog RID_SVXDLG_IMAP
......
......@@ -25,9 +25,7 @@
*
************************************************************************/
// include ---------------------------------------------------------------
#include <svx/dialogs.hrc>
// pragma ----------------------------------------------------------------
// Language-Strings ------------------------------------------------------
......
......@@ -24,12 +24,11 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <sfx2/sfx.hrc>
#include "helpid.hrc"
#include <svx/dialogs.hrc>
#include "optgrid.hrc"
// pragma ----------------------------------------------------------------
TabPage RID_SVXPAGE_GRID
{
......
......@@ -24,11 +24,10 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <svx/dialogs.hrc>
#include "helpid.hrc"
#include "passwd.hrc"
// pragma ----------------------------------------------------------------
// RID_SVXDLG_PASSWORD ---------------------------------------------------
ModalDialog RID_SVXDLG_PASSWORD
......
......@@ -24,9 +24,8 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ------------------------------------------------------------------
#include <svx/dialogs.hrc>
// pragma -------------------------------------------------------------------
// Strings for the Draw-Dialog --------------------------------------------
String RID_SVXSTR_SOLID
......
......@@ -24,9 +24,8 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ------------------------------------------------------------------
#include <svx/dialogs.hrc>
// pragma -------------------------------------------------------------------
// Strings for the Draw Dialog --------------------------------------------
String RID_SVX_3D_CREATE_LATHE
......
......@@ -24,14 +24,12 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#define __RSC
#include "svx/svxerr.hxx"
#include <svx/dialogs.hrc>
#include <editeng/editerr.hxx>
// pragma ----------------------------------------------------------------
// Error-Context ---------------------------------------------------------
Resource RID_SVXERRCTX
{
......
......@@ -29,7 +29,6 @@
#include <svtools/svtools.hrc>
#include <svtools/sfxecode.hxx>
// pragma ----------------------------------------------------------------
Resource RID_ERRCTX
{
String ERRCTX_ERROR
......
......@@ -24,11 +24,10 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <svx/dialogs.hrc>
#include "helpid.hrc"
#include "stbctrls.h"
// pragma ----------------------------------------------------------------
// Strings ---------------------------------------------------------------
String RID_SVXSTR_INSERT_TEXT
......
......@@ -27,7 +27,6 @@
#include <svx/dialogs.hrc>
#include "helpid.hrc"
// pragma ----------------------------------------------------------------
// RID_SVXCTRL_COLOR -----------------------------------------------------
DockingWindow RID_SVXCTRL_COLOR
......
......@@ -24,10 +24,9 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include <svx/dialogs.hrc>
#include <helpid.hrc>
// pragma ----------------------------------------------------------------
/*
* Bitmaps f"ur SvxFrameWindow
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// #pragma ******************************************************************
#include "globals.hrc"
#include "chrdlg.hrc"
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// #pragma ******************************************************************
#include "globals.hrc"
#include "chrdlg.hrc"
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// #pragma ******************************************************************
#include "dbui.hrc"
#include "helpid.h"
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// #pragma ******************************************************************
#include "envelp.hrc"
#include "globals.hrc"
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// #pragma ******************************************************************
#include "envfmt.hrc"
#include "helpid.h"
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// #pragma ******************************************************************
#include "envlop.hrc"
#include "helpid.h"
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// #pragma *****************************************************************
#include "envprt.hrc"
#include "helpid.h"
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// #pragma ******************************************************************
#include "label.hrc"
#include "globals.hrc"
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// #pragma ******************************************************************
#include "labfmt.hrc"
#include "helpid.h"
......
......@@ -24,7 +24,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// #pragma ******************************************************************
#include "labprt.hrc"
#include "helpid.h"
......
......@@ -24,11 +24,10 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
// include ---------------------------------------------------------------
#include "javaedit.hrc"
#include "fldui.hrc"
#include "helpid.h"
// pragma ----------------------------------------------------------------
// RID_SVXDLG_POSTIT -----------------------------------------------------
ModalDialog DLG_JAVAEDIT
......
......@@ -29,7 +29,6 @@
#include "frmui.hrc"
#include "cption.hrc"
#include "cmdid.h"
// #pragma ******************************************************************
// ModalDialog **************************************************************
ModalDialog DLG_CAPTION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment