66 references to StyleFilter
System.Web.Mobile (66)
UI\MobileControls\Adapters\XhtmlAdapters\Constants.cs (12)
43
internal static readonly
StyleFilter
Format =
StyleFilter
.None |
StyleFilter
.Italic |
StyleFilter
.Bold |
StyleFilter
.FontName |
StyleFilter
.FontSize |
StyleFilter
.BackgroundColor |
StyleFilter
.ForegroundColor;
44
internal static readonly
StyleFilter
Layout=
StyleFilter
.Wrapping |
StyleFilter
.Alignment;
45
internal static readonly
StyleFilter
All= XhtmlConstants.Format | XhtmlConstants.Layout;
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (1)
628
StyleFilter
filter = writer.CurrentStyleClass.GetFilter(Style);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicImageAdapter.cs (1)
38
StyleFilter
filter = writer.CurrentStyleClass.GetFilter(style);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicObjectListAdapter.cs (1)
632
writer.EnterStyleInternal(hruleStyle, "td",
StyleFilter
.BackgroundColor, additionalAttributes);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPhoneCallAdapter.cs (1)
38
StyleFilter
filter = writer.CurrentStyleClass.GetFilter(style);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (18)
225
if (styleClass.Filter ==
StyleFilter
.None) {
246
StyleFilter
filter = CurrentStyleClass.GetFilter(style);
252
StyleFilter
filter = CurrentStyleClass.GetFilter(style);
254
filter &= ~
StyleFilter
.Wrapping;
262
StyleFilter
filter = CurrentStyleClass.GetFilter(style);
264
filter &= ~
StyleFilter
.Wrapping;
278
StyleFilter
filter = CurrentStyleClass.GetFilter(style);
279
if (filter ==
StyleFilter
.None) {
281
_styleStack.Push(new StylePair(styleTag, style,
StyleFilter
.None));
290
if (styleClass.Filter ==
StyleFilter
.None) {
301
internal void EnterStyleInternal (Style style, String styleTag,
StyleFilter
filter) {
319
if (styleClass.Filter ==
StyleFilter
.None && !forceTag) { // value comparison
330
if (styleClass != null && styleClass != CurrentStyleClass && styleClass.Filter !=
StyleFilter
.None) {
342
internal void EnterStyleInternal (Style style, String styleTag,
StyleFilter
filter, NameValueCollection additionalAttributes) {
397
StyleFilter
filter = _defaultStyleClass.GetFilter(style);
399
if (filter ==
StyleFilter
.None) {
520
StyleFilter
filter = _defaultStyleClass.GetFilter(style);
825
internal StylePair (String styleTag, Style style,
StyleFilter
filter) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlStyleClass.cs (32)
30
private
StyleFilter
_filter;
34
public XhtmlStyleClass (Style source,
StyleFilter
filter) {
50
public
StyleFilter
Filter {
56
protected virtual void SetFilter(
StyleFilter
arg) {
96
if ((_filter &
StyleFilter
.Wrapping) == 0){
107
if ((_filter &
StyleFilter
.Alignment) == 0){
117
if ((_filter &
StyleFilter
.BackgroundColor) == 0){
127
if ((_filter &
StyleFilter
.ForegroundColor) == 0){
137
if ((_filter &
StyleFilter
.Italic) == 0){
149
if ((_filter &
StyleFilter
.Bold) == 0){
161
if ((_filter &
StyleFilter
.FontName) == 0){
170
if ((_filter &
StyleFilter
.FontSize) == 0){
191
public virtual
StyleFilter
GetFilter (Style style) {
193
StyleFilter
inheritanceFilter = GetFilterInternal(style);
197
StyleFilter
defaultFilter = XhtmlConstants.DefaultStyleClass.GetFilterInternal(style);
205
protected virtual
StyleFilter
GetFilterInternal (Style style) {
206
StyleFilter
returnValue =
StyleFilter
.None;
209
returnValue |=
StyleFilter
.Bold;
212
returnValue |=
StyleFilter
.Italic;
215
returnValue |=
StyleFilter
.FontName;
218
returnValue |=
StyleFilter
.FontSize;
221
returnValue |=
StyleFilter
.BackgroundColor;
224
returnValue |=
StyleFilter
.ForegroundColor;
228
returnValue |=
StyleFilter
.Alignment;
231
returnValue |=
StyleFilter
.Wrapping;
243
public XhtmlFormatStyleClass (Style source,
StyleFilter
filter) : base (source, filter){
251
public override
StyleFilter
GetFilter (Style style) {
252
StyleFilter
returnValue = GetFilterInternal(style);
268
public XhtmlLayoutStyleClass (Style source,
StyleFilter
filter) : base (source, filter){
276
public override
StyleFilter
GetFilter (Style style) {
277
StyleFilter
returnValue = GetFilterInternal(style);