Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : Corretto salvataggio campi report con ombreggiatura git-svn-id: svn://10.65.10.50/trunk@20364 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
fc3e7ef2bb
commit
38ed5dbe2a
@ -1,4 +1,3 @@
|
|||||||
#include <stdio.h>
|
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
|
|
||||||
bool TAutomask::error_box(const char* fmt, ...)
|
bool TAutomask::error_box(const char* fmt, ...)
|
||||||
|
@ -1226,6 +1226,13 @@ void TReport_field::unmap_font()
|
|||||||
_print_font->unmap();
|
_print_font->unmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TReport_field::set_shadow_offset(int s)
|
||||||
|
{
|
||||||
|
_shadow_offset = s;
|
||||||
|
if (s != 0 && pattern() == PAT_HOLLOW)
|
||||||
|
set_pattern(PAT_SOLID);
|
||||||
|
}
|
||||||
|
|
||||||
const TString& TReport_field::prescript() const
|
const TString& TReport_field::prescript() const
|
||||||
{ return _prescript.get(); }
|
{ return _prescript.get(); }
|
||||||
|
|
||||||
@ -1792,6 +1799,7 @@ void TReport_field::save(TXmlItem& root) const
|
|||||||
// DO NOT break!
|
// DO NOT break!
|
||||||
default :
|
default :
|
||||||
fld.SetAttr("pattern", pattern());
|
fld.SetAttr("pattern", pattern());
|
||||||
|
fld.SetAttr("shade_offset", shadow_offset());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -466,7 +466,7 @@ public:
|
|||||||
PAT_STYLE pattern() const { return _pattern; }
|
PAT_STYLE pattern() const { return _pattern; }
|
||||||
void set_radius(int r) { _radius = r; }
|
void set_radius(int r) { _radius = r; }
|
||||||
short radius() const { return _radius; }
|
short radius() const { return _radius; }
|
||||||
void set_shadow_offset(int s) { _shadow_offset = s; }
|
void set_shadow_offset(int s);
|
||||||
int shadow_offset() const { return _shadow_offset; }
|
int shadow_offset() const { return _shadow_offset; }
|
||||||
void set_shade_angle(int a) { _shade_angle = a; }
|
void set_shade_angle(int a) { _shade_angle = a; }
|
||||||
int shade_angle() const { return _shade_angle; }
|
int shade_angle() const { return _shade_angle; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user