# rajorshidas/system_project_powerpoint_extention architecture

> Architecture diagram of the GitHub repository rajorshidas/system_project_powerpoint_extention, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rajorshidas/system_project_powerpoint_extention
- Repository: https://github.com/rajorshidas/system_project_powerpoint_extention

## Overview

This is a PowerPoint VSTO add-in for educators and presenters. Users invoke presentation tools from the “My Tools” ribbon; those tools read or modify the active presentation, while task-pane tools provide interactive controls. A distinct quiz workflow extracts active-slide text, sends it to Gemini for question generation, then displays the returned quiz. The graph preserves the documented image effects, navigation, agenda, QR, positioning and resizing capabilities. Some feature-to-ribbon links are documented rather than verified in handler excerpts.

Main entry points: [`PowerPointAddIn1/MyRibbon.cs`](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/MyRibbon.cs) (My Tools ribbon), [`PowerPointAddIn1/ThisAddIn.cs`](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ThisAddIn.cs) (Add-in startup), [`PowerPointAddIn1/QuizPaneControl.cs`](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QuizPaneControl.cs) (Quiz pane), [`PowerPointAddIn1/ResizeLabControl.cs`](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ResizeLabControl.cs) (Resize lab panel)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Add-in entry and UI"]
  node_addin["Add-in startup<br/>[ThisAddIn.cs]"]
  node_ribbon["My Tools ribbon<br/>[MyRibbon.cs]"]
end

subgraph group_effects["Slide effects"]
  node_blur["Blur effect<br/>[BlurFeature.cs]"]
  node_blursettings["Blur settings"]
  node_magnify["Magnify effect<br/>[MagnifyFeature.cs]"]
  node_magnifysettings["Magnify settings"]
  node_spotlight["Spotlight effect"]
  node_spotsettings["Spotlight settings"]
  node_zoom["Zoom feature<br/>[ZoomFeature.cs]"]
end

subgraph group_presentation["Presentation tools"]
  node_agenda["Agenda generator<br/>[AgendaGenerator.cs]"]
  node_qrcode["QR code control<br/>[QRCodeControl.cs]"]
  node_navbar["Navigation bar"]
  node_navsettings["Navigation settings<br/>[NavBarSettings.cs]"]
end

subgraph group_quiz["Interactive quiz"]
  node_quizpane["Quiz pane<br/>[QuizPaneControl.cs]"]
  node_slidetext["Slide text extraction"]
  node_quizservice["AI quiz service<br/>[QuizAiService.cs]"]
  node_quizset["Quiz set model<br/>[QuizSet.cs]"]
  node_question["Quiz question model<br/>[QuizQuestion.cs]"]
end

subgraph group_layout["Layout labs"]
  node_resizecontrol["Resize lab panel"]
  node_resize["Resize operations"]
  node_resizesettings["Resize settings"]
  node_positioncontrol["Position lab panel"]
  node_position["Position operations"]
end

node_powerpoint(("PowerPoint"))
node_gemini{{"Gemini API"}}

node_powerpoint -->|"loads add-in"| node_addin
node_addin -->|"creates ribbon"| node_ribbon
node_addin -->|"creates pane"| node_qrcode
node_addin -->|"creates pane"| node_positioncontrol
node_addin -->|"creates pane"| node_resizecontrol
node_addin -->|"creates pane"| node_quizpane
node_ribbon -.->|"opens feature"| node_blur
node_ribbon -.->|"opens feature"| node_magnify
node_ribbon -.->|"opens feature"| node_spotlight
node_ribbon -.->|"opens feature"| node_zoom
node_ribbon -.->|"runs generator"| node_agenda
node_ribbon -.->|"configures navigation"| node_navbar
node_ribbon -.->|"opens quiz"| node_quizpane
node_ribbon -.->|"opens lab"| node_resizecontrol
node_ribbon -.->|"opens lab"| node_positioncontrol
node_ribbon -.->|"opens QR tool"| node_qrcode
node_blur -->|"shows settings"| node_blursettings
node_magnify -->|"shows settings"| node_magnifysettings
node_spotlight -->|"uses settings"| node_spotsettings
node_navbar -->|"uses settings"| node_navsettings
node_quizpane -->|"extracts slide text"| node_slidetext
node_slidetext -->|"reads active slide"| node_powerpoint
node_quizpane -->|"requests quiz"| node_quizservice
node_quizservice -->|"sends prompt"| node_gemini
node_quizservice -->|"deserializes result"| node_quizset
node_quizset -->|"contains questions"| node_question
node_quizpane -->|"displays quiz"| node_quizset
node_resizecontrol -->|"uses operations"| node_resize
node_resizecontrol -->|"opens settings"| node_resizesettings
node_positioncontrol -->|"calls operations"| node_position
node_position -->|"moves shapes"| node_powerpoint
node_resize -->|"resizes shapes"| node_powerpoint

click node_addin "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ThisAddIn.cs"
click node_ribbon "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/MyRibbon.cs"
click node_blur "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/BlurFeature.cs"
click node_blursettings "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/BlurSettingsForm.cs"
click node_magnify "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/MagnifyFeature.cs"
click node_magnifysettings "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/MagnifySettingsForm.cs"
click node_spotlight "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/SpotlightFeature.cs"
click node_spotsettings "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/SpotlightSettingsForm.cs"
click node_zoom "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ZoomFeature.cs"
click node_agenda "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/AgendaGenerator.cs"
click node_qrcode "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QRCodeControl.cs"
click node_navbar "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/NavBarColorSettings.cs"
click node_navsettings "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/NavBarSettings.cs"
click node_quizpane "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QuizPaneControl.cs"
click node_slidetext "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/SlideTextService.cs"
click node_quizservice "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QuizAiService.cs"
click node_quizset "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QuizSet.cs"
click node_question "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QuizQuestion.cs"
click node_resizecontrol "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ResizeLabControl.cs"
click node_resize "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ResizeLabService.cs"
click node_resizesettings "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ResizeLabSettingsForm.cs"
click node_positioncontrol "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/PositionsLabControl.cs"
click node_position "https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/PositionLabService.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_addin,node_ribbon toneBlue
class node_blur,node_blursettings,node_magnify,node_magnifysettings,node_spotlight,node_spotsettings,node_zoom toneAmber
class node_agenda,node_qrcode,node_navbar,node_navsettings,node_gemini toneMint
class node_quizpane,node_slidetext,node_quizservice,node_quizset,node_question toneRose
class node_resizecontrol,node_resize,node_resizesettings,node_positioncontrol,node_position,node_powerpoint toneIndigo
```

## Components

### Add-in entry and UI

- [Add-in startup](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ThisAddIn.cs): `PowerPointAddIn1/ThisAddIn.cs`
- [My Tools ribbon](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/MyRibbon.cs): `PowerPointAddIn1/MyRibbon.cs`

### Slide effects

- [Blur effect](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/BlurFeature.cs): `PowerPointAddIn1/BlurFeature.cs`
- [Blur settings](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/BlurSettingsForm.cs): `PowerPointAddIn1/BlurSettingsForm.cs`
- [Magnify effect](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/MagnifyFeature.cs): `PowerPointAddIn1/MagnifyFeature.cs`
- [Magnify settings](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/MagnifySettingsForm.cs): `PowerPointAddIn1/MagnifySettingsForm.cs`
- [Spotlight effect](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/SpotlightFeature.cs): `PowerPointAddIn1/SpotlightFeature.cs`
- [Spotlight settings](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/SpotlightSettingsForm.cs): `PowerPointAddIn1/SpotlightSettingsForm.cs`
- [Zoom feature](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ZoomFeature.cs): `PowerPointAddIn1/ZoomFeature.cs`

### Presentation tools

- [Agenda generator](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/AgendaGenerator.cs): `PowerPointAddIn1/AgendaGenerator.cs`
- [QR code control](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QRCodeControl.cs): `PowerPointAddIn1/QRCodeControl.cs`
- [Navigation bar](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/NavBarColorSettings.cs): `PowerPointAddIn1/NavBarColorSettings.cs`
- [Navigation settings](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/NavBarSettings.cs): `PowerPointAddIn1/NavBarSettings.cs`

### Interactive quiz

- [Quiz pane](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QuizPaneControl.cs): `PowerPointAddIn1/QuizPaneControl.cs`
- [Slide text extraction](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/SlideTextService.cs): `PowerPointAddIn1/SlideTextService.cs`
- [AI quiz service](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QuizAiService.cs): `PowerPointAddIn1/QuizAiService.cs`
- [Quiz set model](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QuizSet.cs): `PowerPointAddIn1/QuizSet.cs`
- [Quiz question model](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/QuizQuestion.cs): `PowerPointAddIn1/QuizQuestion.cs`

### Layout labs

- [Resize lab panel](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ResizeLabControl.cs): `PowerPointAddIn1/ResizeLabControl.cs`
- [Resize operations](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ResizeLabService.cs): `PowerPointAddIn1/ResizeLabService.cs`
- [Resize settings](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/ResizeLabSettingsForm.cs): `PowerPointAddIn1/ResizeLabSettingsForm.cs`
- [Position lab panel](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/PositionsLabControl.cs): `PowerPointAddIn1/PositionsLabControl.cs`
- [Position operations](https://github.com/rajorshidas/system_project_powerpoint_extention/blob/master/PowerPointAddIn1/PositionLabService.cs): `PowerPointAddIn1/PositionLabService.cs`

### Other components

- **PowerPoint**
- **Gemini API**

## Connections

- PowerPoint → Add-in startup: loads add-in (evidence: `PowerPointAddIn1/ThisAddIn.cs`)
- Add-in startup → My Tools ribbon: creates ribbon (evidence: `PowerPointAddIn1/ThisAddIn.cs`)
- Add-in startup → QR code control: creates pane (evidence: `PowerPointAddIn1/ThisAddIn.cs`)
- Add-in startup → Position lab panel: creates pane (evidence: `PowerPointAddIn1/ThisAddIn.cs`)
- Add-in startup → Resize lab panel: creates pane (evidence: `PowerPointAddIn1/ThisAddIn.cs`)
- Add-in startup → Quiz pane: creates pane (evidence: `PowerPointAddIn1/ThisAddIn.cs`)
- My Tools ribbon → Blur effect: opens feature (evidence: `PowerPointAddIn1/MyRibbon.cs`)
- My Tools ribbon → Magnify effect: opens feature (evidence: `PowerPointAddIn1/MyRibbon.cs`)
- My Tools ribbon → Spotlight effect: opens feature (evidence: `PowerPointAddIn1/MyRibbon.cs`)
- My Tools ribbon → Zoom feature: opens feature (evidence: `PowerPointAddIn1/MyRibbon.cs`)
- My Tools ribbon → Agenda generator: runs generator (evidence: `PowerPointAddIn1/MyRibbon.cs`)
- My Tools ribbon → Navigation bar: configures navigation (evidence: `PowerPointAddIn1/MyRibbon.cs`)
- My Tools ribbon → Quiz pane: opens quiz
- My Tools ribbon → Resize lab panel: opens lab
- My Tools ribbon → Position lab panel: opens lab
- My Tools ribbon → QR code control: opens QR tool
- Blur effect → Blur settings: shows settings (evidence: `PowerPointAddIn1/BlurFeature.cs`)
- Magnify effect → Magnify settings: shows settings (evidence: `PowerPointAddIn1/MagnifyFeature.cs`)
- Spotlight effect → Spotlight settings: uses settings (evidence: `PowerPointAddIn1/SpotlightFeature.cs`)
- Navigation bar → Navigation settings: uses settings (evidence: `PowerPointAddIn1/NavBarColorSettings.cs`)
- Quiz pane → Slide text extraction: extracts slide text (evidence: `PowerPointAddIn1/QuizPaneControl.cs`)
- Slide text extraction → PowerPoint: reads active slide (evidence: `PowerPointAddIn1/SlideTextService.cs`)
- Quiz pane → AI quiz service: requests quiz (evidence: `PowerPointAddIn1/QuizPaneControl.cs`)
- AI quiz service → Gemini API: sends prompt (evidence: `PowerPointAddIn1/QuizAiService.cs`)
- AI quiz service → Quiz set model: deserializes result (evidence: `PowerPointAddIn1/QuizAiService.cs`)
- Quiz set model → Quiz question model: contains questions (evidence: `PowerPointAddIn1/QuizSet.cs`)
- Quiz pane → Quiz set model: displays quiz (evidence: `PowerPointAddIn1/QuizPaneControl.cs`)
- Resize lab panel → Resize operations: uses operations (evidence: `PowerPointAddIn1/ResizeLabControl.cs`)
- Resize lab panel → Resize settings: opens settings (evidence: `PowerPointAddIn1/ResizeLabControl.cs`)
- Position lab panel → Position operations: calls operations (evidence: `PowerPointAddIn1/PositionsLabControl.cs`)
- Position operations → PowerPoint: moves shapes (evidence: `PowerPointAddIn1/PositionLabService.cs`)
- Resize operations → PowerPoint: resizes shapes (evidence: `PowerPointAddIn1/ResizeLabService.cs`)
