Files
mmd-pdf/Features/Search/ISearchHost.cs
T
kua-agent 6610acfa44 feat: rebrand to MMD PDF, single corporate theme, and remove original text under an edit
- Services/PdfRedactText.cs: strip text whose origin falls inside a CoverAnnotation
  from the page content stream at save time, hooked into PdfBurn.DrawAnnotationsIntoDoc.
  Fixes edited values staying recoverable by text extraction.
- Themes/MMD.xaml replaces all thirteen themes; picker and accent strip removed; no dark mode.
- Rename KillerPDF -> MMD PDF across code, resources, packaging and locale strings; new icon.
- Remove the upstream author credit and the in-app install button.
2026-08-27 07:37:09 +02:00

34 lines
1.4 KiB
C#

namespace MmdPdf.Features
{
/// <summary>
/// What SearchController needs from the window hosting it, beyond the shared shell services.
/// Values and intents only, never a control - the highlight painting itself stays in the
/// shell (Shell/Search.cs), because it draws onto the page overlay canvases.
/// </summary>
internal interface ISearchHost : IShellServices
{
/// <summary>Path of the working (temp) file the search reads. Null when no document.</summary>
string? CurrentFile { get; }
/// <summary>The page currently selected in the sidebar/page list.</summary>
int CurrentPageIndex { get; }
/// <summary>Navigates to the page (the match being stepped to lives there).</summary>
void GoToPage(int pageIdx);
/// <summary>Writes the result counter's text only ("", "No matches", "Search error"),
/// leaving the tooltip alone - mirrors what the old code did on those paths.</summary>
void SetResultText(string text);
/// <summary>Writes the "12 / 73" counter and its page-breakdown tooltip.</summary>
void SetResultCount(string text, string? tooltip);
/// <summary>Removes every highlight rectangle from the page overlays.</summary>
void ClearHighlights();
/// <summary>Repaints highlights on every page on screen right now, with the current
/// match emphasized.</summary>
void RepaintHighlights();
}
}