diff options
author | Release Engineers <releng@openoffice.org> | 2008-11-28 11:39:37 +0000 |
---|---|---|
committer | Release Engineers <releng@openoffice.org> | 2008-11-28 11:39:37 +0000 |
commit | 4bd944387888c0d6c0bde3de260546951c9a4031 (patch) | |
tree | 8952b1cec8eb02792a39a07a97b13a59637be27b /basic/inc | |
parent | 8e4829da0488ddfa68ee5e9f97682f4df44ce42c (diff) |
CWS-TOOLING: integrate CWS sqlsyntaxhighlighting
2008-11-20 17:23:29 +0100 mod r264074 : new colors by UX
2008-11-17 17:37:19 +0100 mod r263732 : revert manual fix for icu
2008-11-17 15:03:39 +0100 mod r263725 : manual fix for icu
2008-11-17 11:26:39 +0100 mod r263709 : manual fix for icu
2008-11-16 18:19:16 +0100 mod r263702 : `fix
2008-11-12 22:11:50 +0100 mod r263619 : CWS-TOOLING: rebase CWS sqlsyntaxhighlighting to trunk@263288 (milestone: DEV300:m35)
2008-11-12 11:04:33 +0100 mod r263578 : minor cleanup
2008-11-12 11:03:02 +0100 mod r263577 : seperate MulitLineEditSyntaxHighlighter into new file
2008-11-06 15:13:27 +0100 fs r263391 : merged from trunk
2008-11-06 15:09:20 +0100 fs r263390 : merged from trunk
2008-11-06 15:07:06 +0100 fs r263388 : reverted the change c262599. This seems to be a merge from trunk, but without properly setting svn:mergeinfo, thus it results in conflicts when doing a real 'svn merge'.
2008-11-06 15:03:19 +0100 fs r263387 : merged rev. 262769
2008-11-03 17:58:19 +0100 mod r263297 : little fixes
2008-11-03 17:56:49 +0100 mod r263296 : little fixes
2008-11-03 17:12:41 +0100 mod r263295 : new entry SQL comment for Tools-Appearance
2008-11-03 17:12:13 +0100 mod r263294 : different tokenizer based on language
2008-11-03 17:11:40 +0100 mod r263293 : new entry for Tools-Appearance: SQL Comment
2008-11-03 17:11:14 +0100 mod r263292 : get notification about color changes for sql view
2008-10-29 00:01:40 +0100 mod r262768 : string listbox
2008-10-28 23:57:45 +0100 mod r262767 : string listbox
2008-10-22 18:38:07 +0200 mod r262614 : source alignment fix
2008-10-22 18:37:23 +0200 mod r262613 : '' as string as well
2008-10-22 18:36:45 +0200 mod r262612 : get syntax highlighting in tools-sql...
2008-10-22 14:11:12 +0200 mod r262605 : formatting fix
2008-10-22 13:30:42 +0200 mod r262599 : additional entries for Tools-Options-Appearance
2008-10-19 22:53:50 +0200 mod r262302 : migration from cvs to svn
2008-10-19 22:37:45 +0200 mod r262301 : migration from cvs to svn
2008-10-19 22:36:04 +0200 mod r262300 : migration from cvs to svn
Diffstat (limited to 'basic/inc')
-rw-r--r-- | basic/inc/basic/hilight.hxx | 126 |
1 files changed, 0 insertions, 126 deletions
diff --git a/basic/inc/basic/hilight.hxx b/basic/inc/basic/hilight.hxx deleted file mode 100644 index b29d2135d069..000000000000 --- a/basic/inc/basic/hilight.hxx +++ /dev/null @@ -1,126 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: hilight.hxx,v $ - * $Revision: 1.3 $ - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _SB_HILIGHT_HXX -#define _SB_HILIGHT_HXX - -#include <tools/string.hxx> -#include <tools/gen.hxx> - -#include <svtools/svarray.hxx> - -//#include <sbxmod.cxx> -class SimpleTokenizer_Impl; - -// Token-Typen TT_... -enum TokenTypes -{ - TT_UNKNOWN, - TT_IDENTIFIER, - TT_WHITESPACE, - TT_NUMBER, - TT_STRING, - TT_EOL, - TT_COMMENT, - TT_ERROR, - TT_OPERATOR, - TT_KEYWORD -}; - -struct HighlightPortion { UINT16 nBegin; UINT16 nEnd; TokenTypes tokenType; }; - -SV_DECL_VARARR(HighlightPortions, HighlightPortion, 0, 16) - -// Sprachmodus des HighLighters (spaeter eventuell feiner -// differenzieren mit Keyword-Liste, C-Kommentar-Flag) -enum HighlighterLanguage -{ - HIGHLIGHT_BASIC -}; - -//*** SyntaxHighlighter-Klasse *** -// Konzept: Der Highlighter wird ueber alle Aenderungen im Source -// informiert (notifyChange) und liefert dem Aufrufer jeweils die -// Information zurueck, welcher Zeilen-Bereich des Source-Codes -// aufgrund dieser Aenderung neu gehighlighted werden muss. -// Dazu merkt sich Highlighter intern fuer jede Zeile, ob dort -// C-Kommentare beginnen oder enden. -class SyntaxHighlighter -{ - HighlighterLanguage eLanguage; - SimpleTokenizer_Impl* m_pSimpleTokenizer; - char* m_pKeyWords; - UINT16 m_nKeyWordCount; - -// void initializeKeyWords( HighlighterLanguage eLanguage ); - -public: - SyntaxHighlighter( void ); - ~SyntaxHighlighter( void ); - - // HighLighter (neu) initialisieren, die Zeilen-Tabelle wird - // dabei komplett geloescht, d.h. im Abschluss wird von einem - // leeren Source ausgegangen. In notifyChange() kann dann - // nur Zeile 0 angegeben werden. - void initialize( HighlighterLanguage eLanguage_ ); - - /** - * Aenderung im Source anzeigen - * @param nLine = Zeile, in der die Aenderung erfolgt, dies entspricht - * der Zeile, in der im Editor der Cursor steht. Index der 1. Zeile ist 0. - * @param nLineCountDifference = Anzahl der Zeilen, die im Rahmen der - * Aenderung nach nLine eingefuegt (positiver Wert) oder entfernt - * (negativer Wert) werden. 0, wenn von der Aenderung nur nLine - * betroffen ist. - * @param pChangedLines = Array der Zeilen, die von der Aenderung - * betroffen sind (das Array enthaelt die geaenderten Zeilen) - * - * @return Zeilen-Bereich des SourceCodes, dessen Syntax-Higlighting - * erneuert werden muss, z.B. weil ein C-Kommentar geoeffnet wurde. - */ - const Range notifyChange( UINT32 nLine, INT32 nLineCountDifference, - const String* pChangedLines, UINT32 nArrayLength); - - /** - * Higlighting durchfuehren - * @param nLine = Zeile, fuer die die Highlight-Tokens geliefert - * werden sollen. Index der 1. Zeile ist 0. - * @param rLine = Zeile, fuer die die Highlight-Tokens geliefert - * werden sollen. als String - * @param Ein VarArray von HighlightPortion, in das die Start- und - * die End-Indizes und die Typen der Token der Zeile eingetragen werden. - */ - void getHighlightPortions( UINT32 nLine, const String& rLine, - /*out*/HighlightPortions& pPortions ); - -}; - -#endif - |