format detection finished
| 61 | } |
| 62 | /// format detection finished |
| 63 | virtual void OnLoadFileFormatDetected( doc_format_t fileFormat ) |
| 64 | { |
| 65 | CRLog::info("DocViewCallback::OnLoadFileFormatDetected() called"); |
| 66 | jobject e = _env.enumByNativeId("org/coolreader/crengine/DocumentFormat", (int)fileFormat); |
| 67 | jstring css = (jstring)_env->CallObjectMethod(_obj, _OnLoadFileFormatDetected, e); |
| 68 | if ( css ) { |
| 69 | lString16 s = _env.fromJavaString(css); |
| 70 | CRLog::info("OnLoadFileFormatDetected: setting CSS for format %d", (int)fileFormat); |
| 71 | _docview->setStyleSheet( UnicodeToUtf8(s) ); |
| 72 | } |
| 73 | } |
| 74 | /// file loading is finished successfully - drawCoveTo() may be called there |
| 75 | virtual void OnLoadFileEnd() |
| 76 | { |
nothing calls this directly
no test coverage detected