123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808 |
- #ifndef Tabelle_H
- #define Tabelle_H
- #include "Array.h"
- #include "Zeichnung.h"
- namespace Framework
- {
- class Rahmen;
- class AlphaFeld;
- class VScrollBar;
- class HScrollBar;
- class Text;
- class ObjTabelle;
-
- class ObjTabelle : public ZeichnungHintergrund
- {
- public:
- class Style : public ZeichnungHintergrund::Style
- {
- public:
- static const __int64 SpaltenBreiteChangeable
- = 0x00001000;
-
-
- static const __int64 ZeilenHeightChangeable
- = 0x00002000;
-
-
- static const __int64 SpaltenBreiteMin
- = 0x00004000;
-
-
-
- static const __int64 SpaltenBreiteMax
- = 0x00008000;
-
-
-
- static const __int64 ZeilenHeightMin
- = 0x00010000;
-
-
-
- static const __int64 ZeilenHeightMax
- = 0x00020000;
-
-
-
- static const __int64 SpaltenBeweglich
- = 0x00040000;
-
-
- static const __int64 ZeilenBeweglich
- = 0x00800000;
-
-
- static const __int64 AuswahlRahmen
- = 0x0080000;
-
-
- static const __int64 AuswahlBuffer
- = 0x00100000;
-
-
- static const __int64 AuswahlMultistyled
- = 0x00200000;
-
-
- static const __int64 Raster
- = 0x00400000;
-
- static const __int64 beweglich
- = SpaltenBreiteChangeable | ZeilenHeightChangeable
- | SpaltenBeweglich
- | ZeilenBeweglich;
-
-
- static const __int64 min_max
- = SpaltenBreiteMax | SpaltenBreiteMin | ZeilenHeightMax
- | ZeilenHeightMax;
-
-
- static const __int64 scroll
- = VScroll | HScroll;
- static const __int64 normal
- = Rahmen | Erlaubt | Sichtbar | AuswahlBuffer | AuswahlRahmen
- | Raster | MEIgnoreInside | MEIgnoreParentInside
- | MEIgnoreSichtbar
- | MEIgnoreVerarbeitet;
-
-
- };
- private:
- RCArray<RCArray<Zeichnung>>* members;
- RCArray<Text>* spaltenNamen;
- RCArray<Text>* zeilenNamen;
- Array<int>* spaltenBreite;
- Array<int>* zeilenHeight;
- Array<int>* minSpaltenBreite;
- Array<int>* maxSpaltenBreite;
- Array<int>* minZeilenHeight;
- Array<int>* maxZeilenHeight;
- int spaltenAnzahl, zeilenAnzahl;
- int klickSpalte;
- int klickZeile;
- double mSpalte, mZeile;
- int mx, my;
- Punkt selected;
- int rasterFarbe;
- int rasterBreite;
- Rahmen* aRam;
- AlphaFeld* aAf;
- RCArray<RCArray<Rahmen>>* msaRam;
- RCArray<RCArray<AlphaFeld>>* msaAf;
- RCArray<Array<__int64>>* styles;
-
-
- DLLEXPORT void doMausEreignis(MausEreignis& me, bool userRet) override;
- public:
-
- DLLEXPORT ObjTabelle();
-
- DLLEXPORT virtual ~ObjTabelle();
-
-
- DLLEXPORT void addSpalte(const char* name);
-
-
- DLLEXPORT void addSpalte(Text* name);
-
-
-
- DLLEXPORT void addSpalte(int sNum, const char* name);
-
-
-
- DLLEXPORT void addSpalte(int sNum, Text* name);
-
-
- DLLEXPORT void addZeile(const char* name);
-
-
- DLLEXPORT void addZeile(Text* name);
-
-
-
- DLLEXPORT void addZeile(int zNum, const char* name);
-
-
-
- DLLEXPORT void addZeile(int zNum, Text* name);
-
-
- DLLEXPORT void removeSpalte(int sNum);
-
-
- DLLEXPORT void removeSpalte(const char* name);
-
-
- DLLEXPORT void removeSpalte(Text* name);
-
-
- DLLEXPORT void removeZeile(int zNum);
-
-
- DLLEXPORT void removeZeile(const char* name);
-
-
- DLLEXPORT void removeZeile(Text* name);
-
-
-
- DLLEXPORT void setSpaltePosition(const char* name, int pos);
-
-
-
- DLLEXPORT void setSpaltePosition(Text* name, int pos);
-
-
-
- DLLEXPORT void setSpaltePosition(int sNum, int pos);
-
-
-
- DLLEXPORT void setZeilePosition(const char* name, int pos);
-
-
-
- DLLEXPORT void setZeilePosition(Text* name, int pos);
-
-
-
- DLLEXPORT void setZeilePosition(int zNum, int pos);
-
-
-
-
-
- DLLEXPORT void setZeichnungZ(int sNum, int zNum, Zeichnung* obj);
-
-
-
-
-
- DLLEXPORT void setZeichnungZ(
- const char* spaltenName, const char* zeilenName, Zeichnung* obj);
-
-
-
-
-
- DLLEXPORT void setZeichnungZ(
- Text* spaltenName, Text* zeilenName, Zeichnung* obj);
-
-
-
- DLLEXPORT void setSpaltenBreite(int sNum, int br);
-
-
-
- DLLEXPORT void setSpaltenBreite(const char* name, int br);
-
-
-
- DLLEXPORT void setSpaltenBreite(Text* name, int br);
-
-
-
- DLLEXPORT void setZeilenHeight(int zNum, int hi);
-
-
-
- DLLEXPORT void setZeilenHeight(const char* name, int hi);
-
-
-
- DLLEXPORT void setZeilenHeight(Text* name, int hi);
-
-
-
- DLLEXPORT void setMinSpaltenBreite(int sNum, int minBr);
-
-
-
- DLLEXPORT void setMinSpaltenBreite(const char* name, int minBr);
-
-
-
- DLLEXPORT void setMinSpaltenBreite(Text* name, int minBr);
-
-
-
- DLLEXPORT void setMaxSpaltenBreite(int sNum, int maxBr);
-
-
-
- DLLEXPORT void setMaxSpaltenBreite(const char* name, int maxBr);
-
-
-
- DLLEXPORT void setMaxSpaltenBreite(Text* name, int maxBr);
-
-
-
- DLLEXPORT void setMinZeilenHeight(int zNum, int minHi);
-
-
-
- DLLEXPORT void setMinZeilenHeight(const char* name, int minHi);
-
-
-
- DLLEXPORT void setMinZeilenHeight(Text* name, int minHi);
-
-
-
- DLLEXPORT void setMaxZeilenHeight(int zNum, int maxHi);
-
-
-
- DLLEXPORT void setMaxZeilenHeight(const char* name, int maxHi);
-
-
-
- DLLEXPORT void setMaxZeilenHeight(Text* name, int maxHi);
-
-
-
- DLLEXPORT void setAuswahl(int sNum, int zNum);
-
-
-
- DLLEXPORT void setAuswahl(
- const char* spaltenName, const char* zeilenName);
-
-
-
- DLLEXPORT void setAuswahl(Text* spaltenName, Text* zeilenName);
-
-
- DLLEXPORT void setRasterFarbe(int f);
-
-
- DLLEXPORT void setRasterBreite(int br);
-
-
- DLLEXPORT void setARahmenZ(Rahmen* ram);
-
-
- DLLEXPORT void setARFarbe(int f);
-
-
- DLLEXPORT void setARBreite(int br);
-
-
- DLLEXPORT void setAAlphaFeldZ(AlphaFeld* af);
-
-
- DLLEXPORT void setAAfFarbe(int f);
-
-
- DLLEXPORT void setAAfStrength(int st);
-
-
-
-
- DLLEXPORT void setARahmenZ(int sNum, int zNum, Rahmen* ram);
-
-
-
-
-
- DLLEXPORT void setARahmenZ(
- const char* spaltenName, const char* zeilenName, Rahmen* ram);
-
-
-
-
-
- DLLEXPORT void setARahmenZ(
- Text* spaltenName, Text* zeilenName, Rahmen* ram);
-
-
-
-
-
- DLLEXPORT void setARFarbe(int sNum, int zNum, int f);
-
-
-
-
-
- DLLEXPORT void setARFarbe(
- const char* spaltenName, const char* zeilenName, int f);
-
-
-
-
-
- DLLEXPORT void setARFarbe(Text* spaltenName, Text* zeilenName, int f);
-
-
-
-
-
- DLLEXPORT void setARBreite(int sNum, int zNum, int br);
-
-
-
-
-
- DLLEXPORT void setARBreite(
- const char* spaltenName, const char* zeilenName, int br);
-
-
-
-
-
- DLLEXPORT void setARBreite(Text* spaltenName, Text* zeilenName, int br);
-
-
-
-
- DLLEXPORT void setAAlphaFeldZ(int sNum, int zNum, AlphaFeld* af);
-
-
-
-
- DLLEXPORT void setAAlphaFeldZ(
- const char* spaltenName, const char* zeilenName, AlphaFeld* af);
-
-
-
-
- DLLEXPORT void setAAlphaFeldZ(
- Text* spaltenName, Text* zeilenName, AlphaFeld* af);
-
-
-
-
-
- DLLEXPORT void setAAfFarbe(int sNum, int zNum, int f);
-
-
-
-
-
- DLLEXPORT void setAAfFarbe(
- const char* spaltenName, const char* zeilenName, int f);
-
-
-
-
-
- DLLEXPORT void setAAfFarbe(Text* spaltenName, Text* zeilenName, int f);
-
-
-
-
- DLLEXPORT void setAAfStrength(int sNum, int zNum, int st);
-
-
-
-
-
- DLLEXPORT void setAAfStrength(
- const char* spaltenName, const char* zeilenName, int st);
-
-
-
-
-
- DLLEXPORT void setAAfStrength(
- Text* spaltenName, Text* zeilenName, int st);
-
-
-
-
- DLLEXPORT void addMsStyle(int sNum, int zNum, __int64 style);
-
-
-
-
-
- DLLEXPORT void addMsStyle(
- const char* spaltenName, const char* zeilenName, __int64 style);
-
-
-
-
-
- DLLEXPORT void addMsStyle(
- Text* spaltenName, Text* zeilenName, __int64 style);
-
-
-
-
- DLLEXPORT void setMsStyle(int sNum, int zNum, __int64 style);
-
-
-
-
-
- DLLEXPORT void setMsStyle(
- const char* spaltenName, const char* zeilenName, __int64 style);
-
-
-
-
-
- DLLEXPORT void setMsStyle(
- Text* spaltenName, Text* zeilenName, __int64 style);
-
-
-
-
-
-
- DLLEXPORT void setMsStyle(
- int sNum, int zNum, __int64 style, bool add_remove);
-
-
-
-
-
-
-
- DLLEXPORT void setMsStyle(const char* spaltenName,
- const char* zeilenName,
- __int64 style,
- bool add_remove);
-
-
-
-
-
-
-
- DLLEXPORT void setMsStyle(Text* spaltenName,
- Text* zeilenName,
- __int64 style,
- bool add_remove);
-
-
-
-
- DLLEXPORT void removeMsStyle(int sNum, int zNum, __int64 style);
-
-
-
-
-
- DLLEXPORT void removeMsStyle(
- const char* spaltenName, const char* zeilenName, __int64 style);
-
-
-
-
-
- DLLEXPORT void removeMsStyle(
- Text* spaltenName, Text* zeilenName, __int64 style);
-
-
-
-
- DLLEXPORT bool tick(double tickVal) override;
-
-
-
- DLLEXPORT void doTastaturEreignis(TastaturEreignis& te) override;
-
-
- DLLEXPORT void render(Bild& zRObj) override;
-
- DLLEXPORT int getSpaltenAnzahl() const;
-
- DLLEXPORT int getZeilenAnzahl() const;
-
-
- DLLEXPORT int getSpaltenNummer(const char* name) const;
-
-
- DLLEXPORT int getSpaltenNummer(Text* name) const;
-
-
- DLLEXPORT Text* getSpaltenName(int num) const;
-
-
- DLLEXPORT Text* zSpaltenName(int num) const;
-
-
- DLLEXPORT int getZeilenNummer(const char* name) const;
-
-
- DLLEXPORT int getZeilenNummer(Text* name) const;
-
-
- DLLEXPORT Text* getZeilenName(int num) const;
-
-
- DLLEXPORT Text* zZeilenName(int num) const;
-
-
-
-
- DLLEXPORT Punkt getZeichnungPosition(Zeichnung* zObj) const;
-
-
-
- DLLEXPORT Zeichnung* zZeichnung(int sNum, int zNum) const;
-
-
-
-
- DLLEXPORT Zeichnung* zZeichnung(
- const char* spaltenName, const char* zeilenName) const;
-
-
-
-
- DLLEXPORT Zeichnung* zZeichnung(
- Text* spaltenName, Text* zeilenName) const;
-
-
-
- DLLEXPORT Zeichnung* getZeichnung(int sNum, int zNum) const;
-
-
-
- DLLEXPORT Zeichnung* getZeichnung(
- const char* spaltenName, const char* zeilenName) const;
-
-
-
- DLLEXPORT Zeichnung* getZeichnung(
- Text* spaltenName, Text* zeilenName) const;
-
-
- DLLEXPORT int getSpaltenBreite(int num) const;
-
-
- DLLEXPORT int getSpaltenBreite(const char* name) const;
-
-
- DLLEXPORT int getSpaltenBreite(Text* name) const;
-
-
- DLLEXPORT int getZeilenHeight(int num) const;
-
-
- DLLEXPORT int getZeilenHeight(const char* name) const;
-
-
- DLLEXPORT int getZeilenHeight(Text* name) const;
-
-
- DLLEXPORT int getMinSpaltenBreite(int num) const;
-
-
- DLLEXPORT int getMinSpaltenBreite(const char* name) const;
-
-
- DLLEXPORT int getMinSpaltenBreite(Text* name) const;
-
-
- DLLEXPORT int getMaxSpaltenBreite(int num) const;
-
-
- DLLEXPORT int getMaxSpaltenBreite(const char* name) const;
-
-
- DLLEXPORT int getMaxSpaltenBreite(Text* name) const;
-
-
- DLLEXPORT int getMinZeilenHeight(int num) const;
-
-
- DLLEXPORT int getMinZeilenHeight(const char* name) const;
-
-
- DLLEXPORT int getMinZeilenHeight(Text* name) const;
-
-
- DLLEXPORT int getMaxZeilenHeight(int num) const;
-
-
- DLLEXPORT int getMaxZeilenHeight(const char* name) const;
-
-
- DLLEXPORT int getMaxZeilenHeight(Text* name) const;
-
-
-
- DLLEXPORT double getMausSpalte(int mx) const;
-
-
-
- DLLEXPORT Text* getMausSpaltenName(int mx) const;
-
-
-
- DLLEXPORT Text* zMausSpaltenName(int mx) const;
-
-
-
- DLLEXPORT double getMausZeile(int my) const;
-
-
-
- DLLEXPORT Text* getMausZeilenName(int my) const;
-
-
-
- DLLEXPORT Text* zMausZeilenName(int my) const;
-
-
- DLLEXPORT const Punkt& getAuswahlPosition() const;
-
- DLLEXPORT int getRasterFarbe() const;
-
- DLLEXPORT int getRasterBreite() const;
-
-
- DLLEXPORT Rahmen* getARahmen() const;
-
-
- DLLEXPORT Rahmen* zARahmen() const;
-
-
- DLLEXPORT AlphaFeld* getAAlphaFeld() const;
-
-
- DLLEXPORT AlphaFeld* zAAlphaFeld() const;
-
-
-
-
- DLLEXPORT Rahmen* getARahmen(int sNum, int zNum) const;
-
-
-
-
- DLLEXPORT Rahmen* zARahmen(int sNum, int zNum) const;
-
-
-
-
- DLLEXPORT AlphaFeld* getAAlphaFeld(int sNum, int zNum) const;
-
-
-
-
- DLLEXPORT AlphaFeld* zAAlphaFeld(int sNum, int zNum) const;
-
-
-
-
- DLLEXPORT Rahmen* getARahmen(
- const char* spaltenName, const char* zeilenName) const;
-
-
-
-
- DLLEXPORT Rahmen* zARahmen(
- const char* spaltenName, const char* zeilenName) const;
-
-
-
-
- DLLEXPORT AlphaFeld* getAAlphaFeld(
- const char* spaltenName, const char* zeilenName) const;
-
-
-
-
- DLLEXPORT AlphaFeld* zAAlphaFeld(
- const char* spaltenName, const char* zeilenName) const;
-
-
-
-
- DLLEXPORT Rahmen* getARahmen(Text* spaltenName, Text* zeilenName) const;
-
-
-
-
- DLLEXPORT Rahmen* zARahmen(Text* spaltenName, Text* zeilenName) const;
-
-
-
-
- DLLEXPORT AlphaFeld* getAAlphaFeld(
- Text* spaltenName, Text* zeilenName) const;
-
-
-
-
- DLLEXPORT AlphaFeld* zAAlphaFeld(
- Text* spaltenName, Text* zeilenName) const;
-
-
-
-
- DLLEXPORT inline bool hatMsStyle(
- int sNum, int zNum, __int64 style) const;
-
-
-
-
- DLLEXPORT inline bool hatMsStyleNicht(
- int sNum, int zNum, __int64 style) const;
-
-
-
-
- DLLEXPORT inline bool hatMsStyle(const char* spaltenName,
- const char* zeilenName,
- __int64 style) const;
-
-
-
-
- DLLEXPORT inline bool hatMsStyleNicht(const char* spaltenName,
- const char* zeilenName,
- __int64 style) const;
-
-
-
-
- DLLEXPORT inline bool hatMsStyle(
- Text* spaltenName, Text* zeilenName, __int64 style) const;
-
-
-
-
- DLLEXPORT inline bool hatMsStyleNicht(
- Text* spaltenName, Text* zeilenName, __int64 style) const;
-
-
- DLLEXPORT Zeichnung* dublizieren() const override;
- };
- }
- #endif
|