summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_caret.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_caret.cpp')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_caret.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_caret.cpp b/fpdfsdk/pdfwindow/cpwl_caret.cpp
index def479a4df..2e56450fb3 100644
--- a/fpdfsdk/pdfwindow/cpwl_caret.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_caret.cpp
@@ -24,10 +24,6 @@ CFX_ByteString CPWL_Caret::GetClassName() const {
return "CPWL_Caret";
}
-void CPWL_Caret::GetThisAppearanceStream(std::ostringstream* psAppStream) {
- GetCaretApp(CFX_PointF(), psAppStream);
-}
-
void CPWL_Caret::DrawThisAppearance(CFX_RenderDevice* pDevice,
CFX_Matrix* pUser2Device) {
if (!IsVisible() || !m_bFlash)
@@ -58,36 +54,6 @@ void CPWL_Caret::DrawThisAppearance(CFX_RenderDevice* pDevice,
FXFILL_ALTERNATE);
}
-void CPWL_Caret::GetCaretApp(const CFX_PointF& ptOffset,
- std::ostringstream* psAppStream) {
- if (!IsVisible() || !m_bFlash)
- return;
-
- CFX_FloatRect rcRect = GetCaretRect();
- CFX_FloatRect rcClip = GetClipRect();
-
- rcRect.Translate(ptOffset.x, ptOffset.y);
- rcClip.Translate(ptOffset.x, ptOffset.y);
-
- *psAppStream << "q\n";
- if (!rcClip.IsEmpty()) {
- *psAppStream << rcClip.left << " " << rcClip.bottom + 2.5f << " "
- << rcClip.right - rcClip.left << " "
- << rcClip.top - rcClip.bottom - 4.5f << " re W n\n";
- }
- *psAppStream << m_fWidth << " w\n0 G\n"
- << rcRect.left + m_fWidth / 2 << " " << rcRect.bottom << " m\n"
- << rcRect.left + m_fWidth / 2 << " " << rcRect.top
- << " l S\nQ\n";
-}
-
-CFX_ByteString CPWL_Caret::GetCaretAppearanceStream(
- const CFX_PointF& ptOffset) {
- std::ostringstream sCaret;
- GetCaretApp(ptOffset, &sCaret);
- return CFX_ByteString(sCaret);
-}
-
void CPWL_Caret::TimerProc() {
if (m_nDelay > 0) {
m_nDelay--;