|
|
@@ -11,8 +11,8 @@
|
|
|
|
|
|
using namespace Framework;
|
|
|
|
|
|
-// Inhalt der ObjTabelle Klasse aus Tabelle.h
|
|
|
-// Konstruktor
|
|
|
+// Contents of the ObjTabelle class from Tabelle.h
|
|
|
+// Constructor
|
|
|
ObjTabelle::ObjTabelle()
|
|
|
: ZeichnungHintergrund(),
|
|
|
members(new RCArray<RCArray<Zeichnung>>()),
|
|
|
@@ -45,7 +45,7 @@ ObjTabelle::ObjTabelle()
|
|
|
| Style::MEIgnoreSichtbar | Style::MEIgnoreVerarbeitet;
|
|
|
}
|
|
|
|
|
|
-// Destruktor
|
|
|
+// Destructor
|
|
|
ObjTabelle::~ObjTabelle()
|
|
|
{
|
|
|
if (members) members->release();
|
|
|
@@ -65,7 +65,7 @@ ObjTabelle::~ObjTabelle()
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::doMausEreignis(
|
|
|
- MausEreignis& me, bool userRet) // verarbeitet Nachrichten
|
|
|
+ MausEreignis& me, bool userRet) // processes mouse events
|
|
|
{
|
|
|
if (!hatStyle(Style::Sichtbar) || !me.insideParent || me.verarbeitet
|
|
|
|| me.mx < 0 || me.my < 0 || me.mx >= gr.x || me.my >= gr.y || !userRet)
|
|
|
@@ -271,8 +271,8 @@ void ObjTabelle::doMausEreignis(
|
|
|
me.my = tmy;
|
|
|
}
|
|
|
|
|
|
-// nicht constant
|
|
|
-void ObjTabelle::addSpalte(const char* name) // Spalte hinzufuegen
|
|
|
+// non-constant
|
|
|
+void ObjTabelle::addSpalte(const char* name) // add column
|
|
|
{
|
|
|
addSpalte(spaltenAnzahl, name);
|
|
|
}
|
|
|
@@ -282,8 +282,7 @@ void ObjTabelle::addSpalte(Text* name)
|
|
|
addSpalte(spaltenAnzahl, name);
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::addSpalte(
|
|
|
- int sNum, const char* name) // Spalte bei sNum einfuegen
|
|
|
+void ObjTabelle::addSpalte(int sNum, const char* name) // insert column at sNum
|
|
|
{
|
|
|
if (sNum > spaltenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -313,7 +312,7 @@ void ObjTabelle::addSpalte(int sNum, Text* name)
|
|
|
name->release();
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::addZeile(const char* name) // Zeile Hinzufuegen
|
|
|
+void ObjTabelle::addZeile(const char* name) // add row
|
|
|
{
|
|
|
addZeile(zeilenAnzahl, name);
|
|
|
}
|
|
|
@@ -323,7 +322,7 @@ void ObjTabelle::addZeile(Text* name)
|
|
|
addZeile(zeilenAnzahl, name);
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::addZeile(int zNum, const char* name) // Zeile bei zNum einfuegen
|
|
|
+void ObjTabelle::addZeile(int zNum, const char* name) // insert row at zNum
|
|
|
{
|
|
|
if (zNum > zeilenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -349,7 +348,7 @@ void ObjTabelle::addZeile(int zNum, Text* name)
|
|
|
name->release();
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::removeSpalte(int sNum) // Spalte loeschen
|
|
|
+void ObjTabelle::removeSpalte(int sNum) // delete column
|
|
|
{
|
|
|
if (sNum >= spaltenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -378,7 +377,7 @@ void ObjTabelle::removeSpalte(Text* name)
|
|
|
removeSpalte(getSpaltenNummer(name));
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::removeZeile(int zNum) // Zeile loeschen
|
|
|
+void ObjTabelle::removeZeile(int zNum) // delete row
|
|
|
{
|
|
|
if (zNum >= zeilenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -409,7 +408,7 @@ void ObjTabelle::removeZeile(Text* name)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setSpaltePosition(
|
|
|
- const char* name, int pos) // setzt die Position einer Spalte
|
|
|
+ const char* name, int pos) // sets the position of a column
|
|
|
{
|
|
|
setSpaltePosition(getSpaltenNummer(name), pos);
|
|
|
}
|
|
|
@@ -451,7 +450,7 @@ void ObjTabelle::setSpaltePosition(int sNum, int pos)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setZeilePosition(
|
|
|
- const char* name, int pos) // setzt die Zeilen Position
|
|
|
+ const char* name, int pos) // sets the row position
|
|
|
{
|
|
|
setZeilePosition(getZeilenNummer(name), pos);
|
|
|
}
|
|
|
@@ -516,7 +515,7 @@ void ObjTabelle::setZeilePosition(int zNum, int pos)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setZeichnungZ(
|
|
|
- int sNum, int zNum, Zeichnung* obj) // setzt ein Zeichnung
|
|
|
+ int sNum, int zNum, Zeichnung* obj) // sets a drawing
|
|
|
{
|
|
|
if (sNum >= spaltenAnzahl || zNum >= zeilenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -550,7 +549,7 @@ void ObjTabelle::setZeichnungZ(
|
|
|
getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName), zZeichnung);
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::setSpaltenBreite(int sNum, int br) // setzt die Spaltenbreite
|
|
|
+void ObjTabelle::setSpaltenBreite(int sNum, int br) // sets the column width
|
|
|
{
|
|
|
if (sNum >= spaltenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -569,7 +568,7 @@ void ObjTabelle::setSpaltenBreite(Text* name, int br)
|
|
|
setSpaltenBreite(getSpaltenNummer(name), br);
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::setZeilenHeight(int zNum, int hi) // setzt die Zeilenhoehe
|
|
|
+void ObjTabelle::setZeilenHeight(int zNum, int hi) // sets the row height
|
|
|
{
|
|
|
if (zNum >= zeilenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -589,7 +588,7 @@ void ObjTabelle::setZeilenHeight(Text* name, int hi)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setMinSpaltenBreite(
|
|
|
- int sNum, int minBr) // setzt die mindest Spaltenbreite
|
|
|
+ int sNum, int minBr) // sets the minimum column width
|
|
|
{
|
|
|
if (sNum >= spaltenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -609,7 +608,7 @@ void ObjTabelle::setMinSpaltenBreite(Text* name, int minBr)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setMaxSpaltenBreite(
|
|
|
- int sNum, int maxBr) // setzt die maximale Spaltenbreite
|
|
|
+ int sNum, int maxBr) // sets the maximum column width
|
|
|
{
|
|
|
if (sNum >= spaltenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -629,7 +628,7 @@ void ObjTabelle::setMaxSpaltenBreite(Text* name, int maxBr)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setMinZeilenHeight(
|
|
|
- int zNum, int minHi) // setzt die mindest Zeilenhoehe
|
|
|
+ int zNum, int minHi) // sets the minimum row height
|
|
|
{
|
|
|
if (zNum >= zeilenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -649,7 +648,7 @@ void ObjTabelle::setMinZeilenHeight(Text* name, int minHi)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setMaxZeilenHeight(
|
|
|
- int zNum, int maxHi) // setzt die maximale Zeilenhoehe
|
|
|
+ int zNum, int maxHi) // sets the maximum row height
|
|
|
{
|
|
|
if (zNum >= zeilenAnzahl) return;
|
|
|
lockZeichnung();
|
|
|
@@ -695,41 +694,41 @@ void ObjTabelle::setRasterFarbe(int f) // settzt die Farbe des Rasters
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::setRasterBreite(int br) // setzt die Breite des Rasters
|
|
|
+void ObjTabelle::setRasterBreite(int br) // sets the width of the grid
|
|
|
{
|
|
|
rasterBreite = br;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::setARahmenZ(Rahmen* ram) // setzt den auswahl Rahmen
|
|
|
+void ObjTabelle::setARahmenZ(Rahmen* ram) // sets the selection border
|
|
|
{
|
|
|
if (aRam) aRam->release();
|
|
|
aRam = ram;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::setARFarbe(int f) // setzt die auswahl Rahmen Farbe
|
|
|
+void ObjTabelle::setARFarbe(int f) // sets the selection border color
|
|
|
{
|
|
|
if (!aRam) aRam = new LRahmen();
|
|
|
aRam->setFarbe(f);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::setARBreite(int br) // setzt die auswahl Rahmen Breite
|
|
|
+void ObjTabelle::setARBreite(int br) // sets the selection border width
|
|
|
{
|
|
|
if (!aRam) aRam = new LRahmen();
|
|
|
aRam->setRamenBreite(br);
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::setAAlphaFeldZ(AlphaFeld* af) // setzt das auswahl AlphaFeld
|
|
|
+void ObjTabelle::setAAlphaFeldZ(AlphaFeld* af) // sets the selection AlphaFeld
|
|
|
{
|
|
|
if (aAf) aAf->release();
|
|
|
aAf = af;
|
|
|
rend = 1;
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::setAAfFarbe(int f) // setzt die Farbe des auswahl AlphaFeldes
|
|
|
+void ObjTabelle::setAAfFarbe(int f) // sets the color of the selection AlphaFeld
|
|
|
{
|
|
|
if (!aAf) aAf = new AlphaFeld();
|
|
|
aAf->setFarbe(f);
|
|
|
@@ -737,7 +736,7 @@ void ObjTabelle::setAAfFarbe(int f) // setzt die Farbe des auswahl AlphaFeldes
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setAAfStrength(
|
|
|
- int st) // setzt die Staerke des auswahl AlphaFeldes
|
|
|
+ int st) // sets the strength of the selection AlphaFeld
|
|
|
{
|
|
|
if (!aAf) aAf = new AlphaFeld();
|
|
|
aAf->setStrength(st);
|
|
|
@@ -745,7 +744,7 @@ void ObjTabelle::setAAfStrength(
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setARahmenZ(
|
|
|
- int sNum, int zNum, Rahmen* ram) // setzt den auswahl Rahmen
|
|
|
+ int sNum, int zNum, Rahmen* ram) // sets the selection border
|
|
|
{
|
|
|
if (msaRam->z(sNum)) msaRam->z(sNum)->set(ram, zNum);
|
|
|
rend = 1;
|
|
|
@@ -765,7 +764,7 @@ void ObjTabelle::setARahmenZ(Text* spaltenName, Text* zeilenName, Rahmen* ram)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setARFarbe(
|
|
|
- int sNum, int zNum, int f) // setzt die auswahl Rahmen Farbe
|
|
|
+ int sNum, int zNum, int f) // sets the selection border color
|
|
|
{
|
|
|
if (msaRam->z(sNum))
|
|
|
{
|
|
|
@@ -792,7 +791,7 @@ void ObjTabelle::setARFarbe(Text* spaltenName, Text* zeilenName, int f)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setARBreite(
|
|
|
- int sNum, int zNum, int br) // setzt die auswahl Rahmen Breite
|
|
|
+ int sNum, int zNum, int br) // sets the selection border width
|
|
|
{
|
|
|
if (msaRam->z(sNum))
|
|
|
{
|
|
|
@@ -819,7 +818,7 @@ void ObjTabelle::setARBreite(Text* spaltenName, Text* zeilenName, int br)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setAAlphaFeldZ(
|
|
|
- int sNum, int zNum, AlphaFeld* af) // setzt das auswahl AlphaFeld
|
|
|
+ int sNum, int zNum, AlphaFeld* af) // sets the selection AlphaFeld
|
|
|
{
|
|
|
if (msaAf->z(sNum)) msaAf->z(sNum)->set(af, zNum);
|
|
|
rend = 1;
|
|
|
@@ -840,7 +839,7 @@ void ObjTabelle::setAAlphaFeldZ(
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setAAfFarbe(
|
|
|
- int sNum, int zNum, int f) // setzt die Farbe des auswahl AlphaFeldes
|
|
|
+ int sNum, int zNum, int f) // sets the color of the selection AlphaFeld
|
|
|
{
|
|
|
if (msaAf->z(sNum))
|
|
|
{
|
|
|
@@ -867,7 +866,7 @@ void ObjTabelle::setAAfFarbe(Text* spaltenName, Text* zeilenName, int f)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::setAAfStrength(
|
|
|
- int sNum, int zNum, int st) // setzt die Staerke des auswahl AlphaFeldes
|
|
|
+ int sNum, int zNum, int st) // sets the strength of the selection AlphaFeld
|
|
|
{
|
|
|
if (msaAf->z(sNum))
|
|
|
{
|
|
|
@@ -896,7 +895,7 @@ void ObjTabelle::setAAfStrength(Text* spaltenName, Text* zeilenName, int st)
|
|
|
}
|
|
|
|
|
|
void ObjTabelle::addMsStyle(
|
|
|
- int sNum, int zNum, __int64 style) // setzt den Style wenn Multistyled
|
|
|
+ int sNum, int zNum, __int64 style) // sets the style when Multistyled
|
|
|
{
|
|
|
if (sNum >= spaltenAnzahl || zNum >= zeilenAnzahl) return;
|
|
|
if (styles->z(sNum))
|
|
|
@@ -1062,7 +1061,7 @@ void ObjTabelle::doTastaturEreignis(TastaturEreignis& te)
|
|
|
te.verarbeitet = nTak(ntakParam, this, te);
|
|
|
}
|
|
|
|
|
|
-void ObjTabelle::render(Bild& zRObj) // zeichnet nach zRObj
|
|
|
+void ObjTabelle::render(Bild& zRObj) // renders the table into zRObj
|
|
|
{
|
|
|
if (hatStyleNicht(Style::Sichtbar)) return;
|
|
|
ZeichnungHintergrund::render(zRObj);
|
|
|
@@ -1160,18 +1159,18 @@ void ObjTabelle::render(Bild& zRObj) // zeichnet nach zRObj
|
|
|
}
|
|
|
|
|
|
// constant
|
|
|
-int ObjTabelle::getSpaltenAnzahl() const // gibt die Anzahl der Spalten zurueck
|
|
|
+int ObjTabelle::getSpaltenAnzahl() const // returns the number of columns
|
|
|
{
|
|
|
return spaltenAnzahl;
|
|
|
}
|
|
|
|
|
|
-int ObjTabelle::getZeilenAnzahl() const // gibt die Anzahl der Zeilen zurueck
|
|
|
+int ObjTabelle::getZeilenAnzahl() const // returns the number of rows
|
|
|
{
|
|
|
return zeilenAnzahl;
|
|
|
}
|
|
|
|
|
|
-int ObjTabelle::getSpaltenNummer(const char* name)
|
|
|
- const // gibt die Nummer der Spalte mit dem Namen name zurueck
|
|
|
+int ObjTabelle::getSpaltenNummer(
|
|
|
+ const char* name) const // returns the index of the column with the name
|
|
|
{
|
|
|
for (int i = 0; i < spaltenAnzahl; ++i)
|
|
|
{
|
|
|
@@ -1188,7 +1187,7 @@ int ObjTabelle::getSpaltenNummer(Text* name) const
|
|
|
}
|
|
|
|
|
|
Text* ObjTabelle::getSpaltenName(
|
|
|
- int num) const // gibt den Namen der Spalte mit Nummer num zurueck
|
|
|
+ int num) const // returns the name of the column with index num
|
|
|
{
|
|
|
return spaltenNamen->get(num);
|
|
|
}
|
|
|
@@ -1198,8 +1197,8 @@ Text* ObjTabelle::zSpaltenName(int num) const
|
|
|
return spaltenNamen->z(num);
|
|
|
}
|
|
|
|
|
|
-int ObjTabelle::getZeilenNummer(const char* name)
|
|
|
- const // gibt die Nummer der Zeile mit dem Namen name zurueck
|
|
|
+int ObjTabelle::getZeilenNummer(
|
|
|
+ const char* name) const // returns the index of the row with the name
|
|
|
{
|
|
|
for (int i = 0; i < zeilenAnzahl; ++i)
|
|
|
{
|
|
|
@@ -1216,7 +1215,7 @@ int ObjTabelle::getZeilenNummer(Text* name) const
|
|
|
}
|
|
|
|
|
|
Text* ObjTabelle::getZeilenName(
|
|
|
- int num) const // gibt den Namen der Zeile mit Nummer num zurueck
|
|
|
+ int num) const // returns the name of the row with index num
|
|
|
{
|
|
|
return zeilenNamen->get(num);
|
|
|
}
|
|
|
@@ -1227,7 +1226,7 @@ Text* ObjTabelle::zZeilenName(int num) const
|
|
|
}
|
|
|
|
|
|
Punkt ObjTabelle::getZeichnungPosition(
|
|
|
- Zeichnung* zObj) const // gibt die Position eines Zeichnungs zurueck
|
|
|
+ Zeichnung* zObj) const // returns the position of a drawing
|
|
|
{
|
|
|
for (int x = 0; x < spaltenAnzahl; ++x)
|
|
|
{
|
|
|
@@ -1240,7 +1239,7 @@ Punkt ObjTabelle::getZeichnungPosition(
|
|
|
}
|
|
|
|
|
|
Zeichnung* ObjTabelle::zZeichnung(
|
|
|
- int sNum, int zNum) const // gibt das Zeichnung auf der Position zurueck
|
|
|
+ int sNum, int zNum) const // returns the drawing at the position
|
|
|
{
|
|
|
if (sNum < 0 || zNum < 0 || sNum >= spaltenAnzahl || zNum >= zeilenAnzahl)
|
|
|
return 0;
|
|
|
@@ -1264,7 +1263,7 @@ Zeichnung* ObjTabelle::zZeichnung(Text* spaltenName, Text* zeilenName) const
|
|
|
}
|
|
|
|
|
|
Zeichnung* ObjTabelle::getZeichnung(
|
|
|
- int sNum, int zNum) const // gibt das Zeichnung auf der Position zurueck
|
|
|
+ int sNum, int zNum) const // returns the drawing at the position
|
|
|
{
|
|
|
if (!members->z(sNum)) return 0;
|
|
|
RCArray<Zeichnung>* tmp = members->z(sNum);
|
|
|
@@ -1286,7 +1285,7 @@ Zeichnung* ObjTabelle::getZeichnung(Text* spaltenName, Text* zeilenName) const
|
|
|
}
|
|
|
|
|
|
int ObjTabelle::getSpaltenBreite(
|
|
|
- int num) const // gibt die Breite der Spalte zurueck
|
|
|
+ int num) const // returns the width of the column
|
|
|
{
|
|
|
return spaltenBreite->get(num);
|
|
|
}
|
|
|
@@ -1301,7 +1300,7 @@ int ObjTabelle::getSpaltenBreite(Text* name) const
|
|
|
return getSpaltenBreite(getSpaltenNummer(name));
|
|
|
}
|
|
|
|
|
|
-int ObjTabelle::getZeilenHeight(int num) const // gibt die Hoehe der Zeile zurueck
|
|
|
+int ObjTabelle::getZeilenHeight(int num) const // returns the height of the row
|
|
|
{
|
|
|
return zeilenHeight->get(num);
|
|
|
}
|
|
|
@@ -1317,7 +1316,7 @@ int ObjTabelle::getZeilenHeight(Text* name) const
|
|
|
}
|
|
|
|
|
|
int ObjTabelle::getMinSpaltenBreite(
|
|
|
- int num) const // gibt die minimale Spaltengroesse zurueck
|
|
|
+ int num) const // returns the minimum column width
|
|
|
{
|
|
|
return minSpaltenBreite->get(num);
|
|
|
}
|
|
|
@@ -1333,7 +1332,7 @@ int ObjTabelle::getMinSpaltenBreite(Text* name) const
|
|
|
}
|
|
|
|
|
|
int ObjTabelle::getMaxSpaltenBreite(
|
|
|
- int num) const // gibt die maximale Spaltengroesse zurueck
|
|
|
+ int num) const // returns the maximum column width
|
|
|
{
|
|
|
return maxSpaltenBreite->get(num);
|
|
|
}
|
|
|
@@ -1349,7 +1348,7 @@ int ObjTabelle::getMaxSpaltenBreite(Text* name) const
|
|
|
}
|
|
|
|
|
|
int ObjTabelle::getMinZeilenHeight(
|
|
|
- int num) const // gibt die minimale Zeilenhoehe zurueck
|
|
|
+ int num) const // returns the minimum row height
|
|
|
{
|
|
|
return minZeilenHeight->get(num);
|
|
|
}
|
|
|
@@ -1365,7 +1364,7 @@ int ObjTabelle::getMinZeilenHeight(Text* name) const
|
|
|
}
|
|
|
|
|
|
int ObjTabelle::getMaxZeilenHeight(
|
|
|
- int num) const // gibt die maximale Zeilenhoehe zurueck
|
|
|
+ int num) const // returns the maximum row height
|
|
|
{
|
|
|
return maxZeilenHeight->get(num);
|
|
|
}
|
|
|
@@ -1415,7 +1414,7 @@ Text* ObjTabelle::zMausSpaltenName(int mx) const
|
|
|
}
|
|
|
|
|
|
double ObjTabelle::getMausZeile(
|
|
|
- int my) const // ermittelt die Zeile unter der Maus
|
|
|
+ int my) const // calculates the row under the mouse
|
|
|
{
|
|
|
if (my >= gr.y) return -1;
|
|
|
if (my < 0) return -1;
|
|
|
@@ -1449,22 +1448,22 @@ Text* ObjTabelle::zMausZeilenName(int my) const
|
|
|
}
|
|
|
|
|
|
const Punkt&
|
|
|
-ObjTabelle::getAuswahlPosition() const // gibt die Auswahl Position zurueck
|
|
|
+ObjTabelle::getAuswahlPosition() const // returns the selection position
|
|
|
{
|
|
|
return selected;
|
|
|
}
|
|
|
|
|
|
-int ObjTabelle::getRasterFarbe() const // gibt die Farbe des Rasters zurueck
|
|
|
+int ObjTabelle::getRasterFarbe() const // returns the color of the grid
|
|
|
{
|
|
|
return rasterFarbe;
|
|
|
}
|
|
|
|
|
|
-int ObjTabelle::getRasterBreite() const // gibt die Breite des Rasters zurueck
|
|
|
+int ObjTabelle::getRasterBreite() const // returns the width of the grid
|
|
|
{
|
|
|
return rasterBreite;
|
|
|
}
|
|
|
|
|
|
-Rahmen* ObjTabelle::getARahmen() const // gibt den auswahl Rahmen zurueck
|
|
|
+Rahmen* ObjTabelle::getARahmen() const // returns the selection border
|
|
|
{
|
|
|
return aRam ? dynamic_cast<Rahmen*>(aRam->getThis()) : 0;
|
|
|
}
|
|
|
@@ -1474,8 +1473,7 @@ Rahmen* ObjTabelle::zARahmen() const
|
|
|
return aRam;
|
|
|
}
|
|
|
|
|
|
-AlphaFeld*
|
|
|
-ObjTabelle::getAAlphaFeld() const // gibt das auswahl AlphaFeld zurueck
|
|
|
+AlphaFeld* ObjTabelle::getAAlphaFeld() const // returns the selection AlphaFeld
|
|
|
{
|
|
|
return aAf ? dynamic_cast<AlphaFeld*>(aAf->getThis()) : 0;
|
|
|
}
|
|
|
@@ -1486,7 +1484,7 @@ AlphaFeld* ObjTabelle::zAAlphaFeld() const
|
|
|
}
|
|
|
|
|
|
Rahmen* ObjTabelle::getARahmen(
|
|
|
- int sNum, int zNum) const // gibt den auswahl Rahmen zurueck
|
|
|
+ int sNum, int zNum) const // returns the selection border
|
|
|
{
|
|
|
RCArray<Rahmen>* tmp = msaRam->z(sNum);
|
|
|
return tmp ? tmp->get(zNum) : 0;
|
|
|
@@ -1499,7 +1497,7 @@ Rahmen* ObjTabelle::zARahmen(int sNum, int zNum) const
|
|
|
}
|
|
|
|
|
|
AlphaFeld* ObjTabelle::getAAlphaFeld(
|
|
|
- int sNum, int zNum) const // gibt das auswahl AlphaFeld zurueck
|
|
|
+ int sNum, int zNum) const // returns the selection AlphaFeld
|
|
|
{
|
|
|
RCArray<AlphaFeld>* tmp = msaAf->z(sNum);
|
|
|
return tmp ? tmp->get(zNum) : 0;
|
|
|
@@ -1511,7 +1509,7 @@ AlphaFeld* ObjTabelle::zAAlphaFeld(int sNum, int zNum) const
|
|
|
}
|
|
|
|
|
|
Rahmen* ObjTabelle::getARahmen(const char* spaltenName,
|
|
|
- const char* zeilenName) const // gibt den auswahl Rahmen zurueck
|
|
|
+ const char* zeilenName) const // returns the selection border
|
|
|
{
|
|
|
return getARahmen(
|
|
|
getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName));
|
|
|
@@ -1524,7 +1522,7 @@ Rahmen* ObjTabelle::zARahmen(
|
|
|
}
|
|
|
|
|
|
AlphaFeld* ObjTabelle::getAAlphaFeld(const char* spaltenName,
|
|
|
- const char* zeilenName) const // gibt das auswahl AlphaFeld zurueck
|
|
|
+ const char* zeilenName) const // returns the selection AlphaFeld
|
|
|
{
|
|
|
return getAAlphaFeld(
|
|
|
getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName));
|
|
|
@@ -1538,7 +1536,7 @@ AlphaFeld* ObjTabelle::zAAlphaFeld(
|
|
|
}
|
|
|
|
|
|
Rahmen* ObjTabelle::getARahmen(
|
|
|
- Text* spaltenName, Text* zeilenName) const // gibt den auswahl Rahmen zurueck
|
|
|
+ Text* spaltenName, Text* zeilenName) const // returns the selection border
|
|
|
{
|
|
|
return getARahmen(
|
|
|
getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName));
|
|
|
@@ -1550,7 +1548,7 @@ Rahmen* ObjTabelle::zARahmen(Text* spaltenName, Text* zeilenName) const
|
|
|
}
|
|
|
|
|
|
AlphaFeld* ObjTabelle::getAAlphaFeld(Text* spaltenName,
|
|
|
- Text* zeilenName) const // gibt das auswahl AlphaFeld zurueck
|
|
|
+ Text* zeilenName) const // returns the selection AlphaFeld
|
|
|
{
|
|
|
return getAAlphaFeld(
|
|
|
getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName));
|
|
|
@@ -1563,7 +1561,7 @@ AlphaFeld* ObjTabelle::zAAlphaFeld(Text* spaltenName, Text* zeilenName) const
|
|
|
}
|
|
|
|
|
|
bool ObjTabelle::hatMsStyle(
|
|
|
- int sNum, int zNum, __int64 style) const // prueft, ob style vorhanden ist
|
|
|
+ int sNum, int zNum, __int64 style) const // checks if style is present
|
|
|
{
|
|
|
__int64 s = styles->z(sNum) && styles->z(sNum)->hat(zNum)
|
|
|
? styles->z(sNum)->get(zNum)
|
|
|
@@ -1573,7 +1571,7 @@ bool ObjTabelle::hatMsStyle(
|
|
|
|
|
|
bool ObjTabelle::hatMsStyleNicht(int sNum,
|
|
|
int zNum,
|
|
|
- __int64 style) const // prueft, ob style nicht vorhanden ist
|
|
|
+ __int64 style) const // checks if style is not present
|
|
|
{
|
|
|
__int64 s = styles->z(sNum) && styles->z(sNum)->hat(zNum)
|
|
|
? styles->z(sNum)->get(zNum)
|
|
|
@@ -1583,7 +1581,7 @@ bool ObjTabelle::hatMsStyleNicht(int sNum,
|
|
|
|
|
|
bool ObjTabelle::hatMsStyle(const char* spaltenName,
|
|
|
const char* zeilenName,
|
|
|
- __int64 style) const // prueft, ob style vorhanden ist
|
|
|
+ __int64 style) const // checks if style is present
|
|
|
{
|
|
|
return hatMsStyle(
|
|
|
getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName), style);
|
|
|
@@ -1591,7 +1589,7 @@ bool ObjTabelle::hatMsStyle(const char* spaltenName,
|
|
|
|
|
|
bool ObjTabelle::hatMsStyleNicht(const char* spaltenName,
|
|
|
const char* zeilenName,
|
|
|
- __int64 style) const // prueft, ob style nicht vorhanden ist
|
|
|
+ __int64 style) const // checks if style is not present
|
|
|
{
|
|
|
return hatMsStyleNicht(
|
|
|
getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName), style);
|
|
|
@@ -1599,7 +1597,7 @@ bool ObjTabelle::hatMsStyleNicht(const char* spaltenName,
|
|
|
|
|
|
bool ObjTabelle::hatMsStyle(Text* spaltenName,
|
|
|
Text* zeilenName,
|
|
|
- __int64 style) const // prueft, ob style vorhanden ist
|
|
|
+ __int64 style) const // checks if style is present
|
|
|
{
|
|
|
return hatMsStyle(
|
|
|
getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName), style);
|
|
|
@@ -1607,13 +1605,13 @@ bool ObjTabelle::hatMsStyle(Text* spaltenName,
|
|
|
|
|
|
bool ObjTabelle::hatMsStyleNicht(Text* spaltenName,
|
|
|
Text* zeilenName,
|
|
|
- __int64 style) const // prueft, ob style nicht vorhanden ist
|
|
|
+ __int64 style) const // checks if style is not present
|
|
|
{
|
|
|
return hatMsStyleNicht(
|
|
|
getSpaltenNummer(spaltenName), getZeilenNummer(zeilenName), style);
|
|
|
}
|
|
|
|
|
|
-Zeichnung* ObjTabelle::dublizieren() const // Erzeugt eine Kopie des Zeichnungs
|
|
|
+Zeichnung* ObjTabelle::dublizieren() const // Creates a copy of the table
|
|
|
{
|
|
|
ObjTabelle* obj = new ObjTabelle();
|
|
|
obj->setPosition(pos);
|