The Style Class


Style Methods
static int getExtension(string filename)
void checkExtension(string)
void reportExtension() const
virtual void cmntCheck() =0
virtual void Colourizer() =0
void numCheck()
void strCheck()
void keysCheck()
void Angle_Brackets()
bool isInsideString(int index)
void colour_CMNT(int start)
void colour_NUM(int start, int fin)
void colour_STR(int start, int fin)
void mkMargin()
void toggleMargin()
void toggleIswitch()
void toggleOswitch()
bool isIstd()
bool isOstd()
void openhtml(string name)
void closehtml()


Style Data Members
CFfile fIO
Colour ColourOf
string buffer
string picture
bool hyper
int filetype
int lncnt
bool margin
bool redir_I
bool redir_O




Statistics
0 (Con/de)structors
1 Static methods
0 Constant methods
2 Virtual methods
2 Pure virtual methods
21 Methods total





Header Source
/* webCpp
 * Copyright (C) 2001 Jeffrey Bakker
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef STYLE_H
#define STYLE_H

#include <string>
#include "cffile.h"
#include "colour.h"
using namespace std;


class Style {

 public:

  static int getExtension(string filename);
  void checkExtension(string);
  void reportExtension() const;

  virtual void cmntCheck()  =0;
  virtual void Colourizer() =0;

  void numCheck();
  void strCheck();
  void keysCheck();
  void Angle_Brackets();
  bool isInsideString(int index);

  void colour_CMNT(int start);
  void colour_NUM(int start, int fin);
  void colour_STR(int start, int fin);

  void mkMargin();
  void toggleMargin();
  void toggleIswitch();
  void toggleOswitch();
  bool isIstd();
  bool isOstd();

  void openhtml(string name);
  void closehtml();

  CFfile fIO;
  Colour ColourOf;
  string buffer;
  string picture;
  bool hyper;

 protected:

  int filetype;
  int lncnt;
  bool margin;
  bool redir_I;
  bool redir_O;

};

#endif  // STYLE_H