text: /*
   * Copyright (c) 2011, The Iconfactory. All rights reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright notice,
   *    this list of conditions and the following disclaimer in the documentation
   *    and/or other materials provided with the distribution.
   *
   * 3. Neither the name of The Iconfactory nor the names of its contributors may
   *    be used to endorse or promote products derived from this software without
   *    specific prior written permission.
   *
   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
   * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE ICONFACTORY BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
   * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
   * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
   * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
   * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   */
  
  #import "UIView.h"
  
  typedef enum {
      UITableViewCellAccessoryNone,
      UITableViewCellAccessoryDisclosureIndicator,
      UITableViewCellAccessoryDetailDisclosureButton,
      UITableViewCellAccessoryCheckmark
  } UITableViewCellAccessoryType;
  
  typedef enum {
      UITableViewCellSeparatorStyleNone,
      UITableViewCellSeparatorStyleSingleLine,
      UITableViewCellSeparatorStyleSingleLineEtched
  } UITableViewCellSeparatorStyle;
  
  typedef enum {
      UITableViewCellStyleDefault,
      UITableViewCellStyleValue1,
      UITableViewCellStyleValue2,
      UITableViewCellStyleSubtitle
  } UITableViewCellStyle;
  
  typedef enum {
      UITableViewCellSelectionStyleNone,
      UITableViewCellSelectionStyleBlue,
      UITableViewCellSelectionStyleGray
  } UITableViewCellSelectionStyle;
  
  typedef enum {
      UITableViewCellEditingStyleNone,
      UITableViewCellEditingStyleDelete,
      UITableViewCellEditingStyleInsert
  } UITableViewCellEditingStyle;
  
  typedef enum {
      UITableViewCellSectionLocationUnique,
      UITableViewCellSectionLocationTop,
      UITableViewCellSectionLocationMiddle,
  	UITableViewCellSectionLocationBottom
  } UITableViewCellSectionLocation;
  
  enum {
      UITableViewCellStateDefaultMask                     = 0,
      UITableViewCellStateShowingEditControlMask          = 1 << 0,
      UITableViewCellStateShowingDeleteConfirmationMask   = 1 << 1
  };
  typedef NSUInteger UITableViewCellStateMask;
  
  @class UITableViewCellSeparator;
  @class UILabel;
  @class UIImageView;
  
  @interface UITableViewCell : UIView <NSCoding>
  
  - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier;
  - (void)setSelected:(BOOL)selected animated:(BOOL)animated;
  - (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated;
  - (void)prepareForReuse;
  
  @property (nonatomic, readonly, strong) UIView *contentView;
  @property (nonatomic, readonly, strong) UILabel *textLabel;
  @property (nonatomic, readonly, strong) UILabel *detailTextLabel;
  @property (nonatomic, readonly, strong) UIImageView *imageView;
  @property (nonatomic, strong) UIView *backgroundView;
  @property (nonatomic, strong) UIView *selectedBackgroundView;
  @property (nonatomic) UITableViewCellSelectionStyle selectionStyle;
  @property (nonatomic) UITableViewCellSectionLocation sectionLocation;
  @property (nonatomic) NSInteger indentationLevel;
  @property (nonatomic) UITableViewCellAccessoryType accessoryType;
  @property (nonatomic, strong) UIView *accessoryView;
  @property (nonatomic) UITableViewCellAccessoryType editingAccessoryType;
  @property (nonatomic, getter=isSelected) BOOL selected;
  @property (nonatomic, getter=isHighlighted) BOOL highlighted;
  @property (nonatomic, getter=isEditing) BOOL editing; // not yet implemented
  @property (nonatomic, readonly) BOOL showingDeleteConfirmation;  // not yet implemented
  @property (nonatomic, readonly, copy) NSString *reuseIdentifier;
  @property (nonatomic, assign) CGFloat indentationWidth; // 10 per default
  @property (nonatomic) BOOL shouldIndentWhileEditing;
  @property (nonatomic, readonly) UITableViewCellEditingStyle editingStyle;
  
  @property (nonatomic, retain) UIView* multipleSelectionBackgroundView;
  @property (nonatomic, retain) UIView* editingAccessoryView;
  @property (nonatomic) BOOL showsReorderControl;
  
  @end
  