Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Lyx/src/   (Lyx Textverarbeitung ©)  Datei vom 26.9.1998 mit Größe 1 kB image not shown  

Quellcode-Bibliothek lyxfr0.h   Sprache: C

 
// -*- C++ -*-
#ifndef _LYXFR0_H
#define _LYXFR0_H

#ifdef __GNUG__
#pragma interface
#endif

#include FORMS_H_LOCATION


/**
  LyXFindReplace0
 
  This is a virtual base class. It does not handle text specific
  items. It only manages the Find & Replace form and the variables.
  
To be added:

- Replace All lightbutton (checkbox)

- Confirm replace lightbutton (checkbox)

- A history list for search and replace strings.
These 2 stringlists should match, so that you can replay previous replaces.
If you select another search string, then the first choice should be the 
replace string you have typed before.

- regex searches

*/

class LyXFindReplace0 {
public:
 ///
 LyXFindReplace0();
 ///
 virtual ~LyXFindReplace0() {}; 
 
 /// Initialize internal variables and dialog
 virtual void StartSearch();

 // Callbacks from form
 ///
 virtual void SearchCancelCB();
 ///
 virtual void SearchCB(bool fForward) = 0;
 ///
 virtual void SearchReplaceCB() = 0;
protected:
 ///
 bool  fCaseSensitive;
 /// Match complete word only.
 bool  fMatchWord;
 /// replace buttons enabled?
 bool  fReplaceEnabled;
 /// search string
 LString  lsSearch;

 ///
 void SetReplaceEnabled(bool fEnabled);
 ///
 bool ReplaceEnabled() { return fReplaceEnabled; }

 /// Initialize search variables from Find & Replace form
 virtual void ReInitFromForm();

 // Return values
 ///
 bool CaseSensitive() { return fCaseSensitive; }
 ///
 bool MatchWord() { return fMatchWord; }
 ///
 LString const SearchString() { return lsSearch; }
 ///
 void SetSearchString(LString const &ls);
 ///
 LString const ReplaceString();

 ///
 bool ValidSearchData() { return !lsSearch.empty(); }   
};

#endif

100%


¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:  (vorverarbeitet)  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.