CPDFHeaderFooterAddController.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // HeaderFooterAlertViewController.h
  3. // PDFViewer
  4. //
  5. // Created by kdanmobile_2 on 2022/11/16.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import <ComPDFKit/CPDFHeaderFooter.h>
  9. #import <ComPDFKit/ComPDFKit.h>
  10. #import "CPDFHeaderFooterAddView.h"
  11. #import "CPDFHeaderFooterModel.h"
  12. #import "CPDFHeaderFooterTextTableView.h"
  13. #import "CPDFPageFomatModel.h"
  14. #import "Masonry.h"
  15. NS_ASSUME_NONNULL_BEGIN
  16. #define kFormat @"^[ ]+$"
  17. typedef enum CGLocation {
  18. kHeader = 0,
  19. kFooter,
  20. }CGLocation;
  21. typedef enum CGAligment {
  22. kLeft = 0,
  23. kCenter,
  24. kRinght,
  25. }CGAligment;
  26. typedef struct PositionRec {
  27. CGLocation location;
  28. CGAligment aligment;
  29. }PositionRec;
  30. @interface CPDFHeaderFooterAddController : UIViewController <UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate>
  31. - (id)initWithIamge:(UIImage *)image WithSize:(CGSize)size;
  32. - (void)initIamge;
  33. - (void)initNavigation;
  34. - (void)textFieldDidBeginEditing:(UITextField *)textField;
  35. - (void)cancelClick:(UIBarButtonItem *)btn;
  36. - (void)sliderChange:(UISlider *)slider;
  37. - (void)changeLocation:(UISegmentedControl *)sender;
  38. - (void)changeAligbment:(UISegmentedControl *)sender;
  39. - (void)showPages;
  40. - (void)initShowLabel;
  41. @property (nonatomic,assign) CGSize size;
  42. @property (nonatomic,strong) UIImage *image;
  43. @property (nonatomic,assign) PositionRec position;
  44. @property (nonatomic,strong) UILabel *showLabel;
  45. @property (nonatomic,strong) UIImageView *imageView;
  46. @property (nonatomic,strong) CPDFHeaderFooterModel *modelData;
  47. @end
  48. NS_ASSUME_NONNULL_END