Lines Matching refs:wprintJobParams

707         wprint_job_params_t *wprintJobParams) {  in _convertJobParams_to_C()  argument
708 if (!javaJobParams || !wprintJobParams) { in _convertJobParams_to_C()
719 memcpy(wprintJobParams, (const void *) nativeDataPtr, sizeof(wprint_job_params_t)); in _convertJobParams_to_C()
722 wprintJobParams->media_size = (media_size_t) (*env)->GetIntField( in _convertJobParams_to_C()
724 wprintJobParams->media_type = (media_type_t) (*env)->GetIntField( in _convertJobParams_to_C()
726 wprintJobParams->duplex = (duplex_t) (*env)->GetIntField( in _convertJobParams_to_C()
728 wprintJobParams->color_space = (color_space_t) (*env)->GetIntField( in _convertJobParams_to_C()
730 wprintJobParams->media_tray = (media_tray_t) (*env)->GetIntField( in _convertJobParams_to_C()
732 wprintJobParams->num_copies = (unsigned int) (*env)->GetIntField( in _convertJobParams_to_C()
734 wprintJobParams->borderless = (bool) (*env)->GetIntField(env, javaJobParams, in _convertJobParams_to_C()
736 wprintJobParams->render_flags = (unsigned int) (*env)->GetIntField( in _convertJobParams_to_C()
738 wprintJobParams->pdf_render_resolution = in _convertJobParams_to_C()
742 wprintJobParams->job_top_margin = (float) (*env)->GetFloatField( in _convertJobParams_to_C()
744 wprintJobParams->job_left_margin = (float) (*env)->GetFloatField( in _convertJobParams_to_C()
746 wprintJobParams->job_right_margin = (float) (*env)->GetFloatField( in _convertJobParams_to_C()
748 wprintJobParams->job_bottom_margin = (float) (*env)->GetFloatField( in _convertJobParams_to_C()
752 wprintJobParams->render_flags |= RENDER_FLAG_PORTRAIT_MODE; in _convertJobParams_to_C()
754 wprintJobParams->render_flags |= RENDER_FLAG_LANDSCAPE_MODE; in _convertJobParams_to_C()
756 wprintJobParams->render_flags |= RENDER_FLAG_AUTO_ROTATE; in _convertJobParams_to_C()
759 wprintJobParams->render_flags |= AUTO_SCALE_RENDER_FLAGS; in _convertJobParams_to_C()
761 wprintJobParams->render_flags |= AUTO_FIT_RENDER_FLAGS; in _convertJobParams_to_C()
763 wprintJobParams->render_flags |= RENDER_FLAG_DOCUMENT_SCALING; in _convertJobParams_to_C()
769 wprintJobParams->render_flags &= ~(RENDER_FLAG_CENTER_VERTICAL | in _convertJobParams_to_C()
775 wprintJobParams->render_flags |= RENDER_FLAG_CENTER_HORIZONTAL; in _convertJobParams_to_C()
780 wprintJobParams->render_flags |= RENDER_FLAG_CENTER_VERTICAL; in _convertJobParams_to_C()
785 wprintJobParams->render_flags |= RENDER_FLAG_CENTER_ON_ORIENTATION; in _convertJobParams_to_C()
791 wprintJobParams->render_flags &= ~RENDER_FLAG_CENTER_ON_ORIENTATION; in _convertJobParams_to_C()
792 wprintJobParams->render_flags |= (RENDER_FLAG_CENTER_VERTICAL | in _convertJobParams_to_C()
802 strncpy(wprintJobParams->docCategory, category, in _convertJobParams_to_C()
803 sizeof(wprintJobParams->docCategory) - 1); in _convertJobParams_to_C()
813 strncpy(wprintJobParams->job_name, name, sizeof(wprintJobParams->job_name) - 1); in _convertJobParams_to_C()
823 strncpy(wprintJobParams->job_originating_user_name, name, in _convertJobParams_to_C()
824 sizeof(wprintJobParams->job_originating_user_name) - 1); in _convertJobParams_to_C()
829 free(wprintJobParams->page_range); in _convertJobParams_to_C()
830 wprintJobParams->page_range = NULL; in _convertJobParams_to_C()
837 wprintJobParams->page_range = (char *) malloc(page_range_size + 1); in _convertJobParams_to_C()
838 memset(wprintJobParams->page_range, 0, page_range_size + 1); in _convertJobParams_to_C()
839 strncpy(wprintJobParams->page_range, (char *) pageRange, page_range_size); in _convertJobParams_to_C()
852 wprint_job_params_t *wprintJobParams) { in _covertJobParams_to_Java() argument
853 if (!javaJobParams || !wprintJobParams) { in _covertJobParams_to_Java()
868 memcpy((void *) nativeDataPtr, wprintJobParams, sizeof(wprint_job_params_t)); in _covertJobParams_to_Java()
873 (int) wprintJobParams->media_size); in _covertJobParams_to_Java()
875 (int) wprintJobParams->media_type); in _covertJobParams_to_Java()
877 (int) wprintJobParams->duplex); in _covertJobParams_to_Java()
879 (int) wprintJobParams->color_space); in _covertJobParams_to_Java()
881 (int) wprintJobParams->media_tray); in _covertJobParams_to_Java()
883 (int) wprintJobParams->num_copies); in _covertJobParams_to_Java()
885 (int) wprintJobParams->borderless); in _covertJobParams_to_Java()
887 (int) wprintJobParams->render_flags); in _covertJobParams_to_Java()
889 wprintJobParams->pdf_render_resolution); in _covertJobParams_to_Java()
891 (jboolean) ((wprintJobParams->render_flags & AUTO_FIT_RENDER_FLAGS) == in _covertJobParams_to_Java()
894 (jboolean) ((wprintJobParams->render_flags & AUTO_SCALE_RENDER_FLAGS) == in _covertJobParams_to_Java()
897 (jboolean) ((wprintJobParams->render_flags & RENDER_FLAG_AUTO_ROTATE) != 0)); in _covertJobParams_to_Java()
899 (wprintJobParams->render_flags & RENDER_FLAG_PORTRAIT_MODE) != 0)); in _covertJobParams_to_Java()
901 (wprintJobParams->render_flags & RENDER_FLAG_LANDSCAPE_MODE) != 0)); in _covertJobParams_to_Java()
905 (int) wprintJobParams->pixel_units); in _covertJobParams_to_Java()
907 (int) wprintJobParams->width); in _covertJobParams_to_Java()
909 (int) wprintJobParams->height); in _covertJobParams_to_Java()
913 wprintJobParams->page_width); in _covertJobParams_to_Java()
915 wprintJobParams->page_height); in _covertJobParams_to_Java()
917 wprintJobParams->page_top_margin); in _covertJobParams_to_Java()
919 wprintJobParams->page_left_margin); in _covertJobParams_to_Java()
921 wprintJobParams->page_right_margin); in _covertJobParams_to_Java()
923 wprintJobParams->page_bottom_margin); in _covertJobParams_to_Java()
926 wprintJobParams->job_top_margin); in _covertJobParams_to_Java()
928 wprintJobParams->job_left_margin); in _covertJobParams_to_Java()
930 wprintJobParams->job_right_margin); in _covertJobParams_to_Java()
932 wprintJobParams->job_bottom_margin); in _covertJobParams_to_Java()