LibreOffice Module sd (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
sd::AnnotationWindow Class Referencefinal

#include <annotationwindow.hxx>

Collaboration diagram for sd::AnnotationWindow:
[legend]

Public Member Functions

 AnnotationWindow (weld::Window *pParent, const ::tools::Rectangle &rRect, DrawDocShell *pDocShell, const css::uno::Reference< css::office::XAnnotation > &xAnnotation)
 
void connect_closed (const Link< weld::Popover &, void > &rLink)
 
void DoResize ()
 
void ResizeIfNecessary (::tools::Long aOldHeight, ::tools::Long aNewHeight)
 
void SetScrollbar ()
 
void StartEdit ()
 
const css::uno::Reference< css::office::XAnnotation > & getAnnotation () const
 
void SaveToDocument ()
 
::tools::Long GetPostItTextHeight ()
 
DrawDocShellDocShell ()
 
void SetLanguage (const SvxLanguageItem &aNewItem)
 
void Rescale ()
 
void ToggleInsMode ()
 
bool IsProtected () const
 
OutlinerViewGetOutlinerView ()
 
::OutlinerGetOutliner ()
 
 ~AnnotationWindow ()
 
void SetColor ()
 

Public Attributes

Color maColor
 
Color maColorDark
 
Color maColorLight
 

Private Member Functions

 DECL_LINK (ScrollHdl, weld::ScrolledWindow &, void)
 
 DECL_LINK (MenuItemSelectedHdl, const OUString &, void)
 
void FillMenuButton ()
 
void InitControls ()
 
void SetMapMode (const MapMode &rNewMapMode)
 
void setAnnotation (const css::uno::Reference< css::office::XAnnotation > &xAnnotation)
 

Static Private Member Functions

static sal_Int32 GetPrefScrollbarWidth ()
 

Private Attributes

std::unique_ptr< weld::BuildermxBuilder
 
std::unique_ptr< weld::PopovermxPopover
 
std::unique_ptr< weld::WidgetmxContainer
 
DrawDocShellmpDocShell
 
SdDrawDocumentmpDoc
 
bool mbReadonly
 
bool mbProtected
 
css::uno::Reference< css::office::XAnnotation > mxAnnotation
 
vcl::Font maLabelFont
 
std::unique_ptr< OutlinerViewmpOutlinerView
 
std::unique_ptr<::OutlinermpOutliner
 
std::unique_ptr< weld::ScrolledWindowmxVScrollbar
 
std::unique_ptr< WeldEditViewmxTextControl
 
std::unique_ptr< weld::CustomWeldmxTextControlWin
 
std::unique_ptr< weld::LabelmxMeta
 
std::unique_ptr< weld::MenuButtonmxMenuButton
 

Detailed Description

Definition at line 62 of file annotationwindow.hxx.

Constructor & Destructor Documentation

◆ AnnotationWindow()

sd::AnnotationWindow::AnnotationWindow ( weld::Window pParent,
const ::tools::Rectangle rRect,
DrawDocShell pDocShell,
const css::uno::Reference< css::office::XAnnotation > &  xAnnotation 
)

◆ ~AnnotationWindow()

sd::AnnotationWindow::~AnnotationWindow ( )

Definition at line 231 of file annotationwindow.cxx.

Member Function Documentation

◆ connect_closed()

void sd::AnnotationWindow::connect_closed ( const Link< weld::Popover &, void > &  rLink)
inline

Definition at line 108 of file annotationwindow.hxx.

References mxPopover.

◆ DECL_LINK() [1/2]

sd::AnnotationWindow::DECL_LINK ( MenuItemSelectedHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [2/2]

sd::AnnotationWindow::DECL_LINK ( ScrollHdl  ,
weld::ScrolledWindow ,
void   
)
private

◆ DocShell()

DrawDocShell * sd::AnnotationWindow::DocShell ( )
inline

◆ DoResize()

void sd::AnnotationWindow::DoResize ( )

◆ FillMenuButton()

void sd::AnnotationWindow::FillMenuButton ( )
private

◆ getAnnotation()

const css::uno::Reference< css::office::XAnnotation > & sd::AnnotationWindow::getAnnotation ( ) const
inline

Definition at line 115 of file annotationwindow.hxx.

References mxAnnotation.

Referenced by sd::AnnotationTextWindow::Command().

◆ GetOutliner()

::Outliner * sd::AnnotationWindow::GetOutliner ( )
inline

Definition at line 132 of file annotationwindow.hxx.

References mpOutliner.

Referenced by sd::AnnotationTextWindow::Command().

◆ GetOutlinerView()

OutlinerView * sd::AnnotationWindow::GetOutlinerView ( )
inline

◆ GetPostItTextHeight()

tools::Long sd::AnnotationWindow::GetPostItTextHeight ( )

◆ GetPrefScrollbarWidth()

static sal_Int32 sd::AnnotationWindow::GetPrefScrollbarWidth ( )
inlinestaticprivate

Definition at line 103 of file annotationwindow.hxx.

Referenced by SetColor().

◆ InitControls()

void sd::AnnotationWindow::InitControls ( )
private

◆ IsProtected()

bool sd::AnnotationWindow::IsProtected ( ) const
inline

◆ Rescale()

void sd::AnnotationWindow::Rescale ( )

◆ ResizeIfNecessary()

void sd::AnnotationWindow::ResizeIfNecessary ( ::tools::Long  aOldHeight,
::tools::Long  aNewHeight 
)

Definition at line 439 of file annotationwindow.cxx.

References DoResize(), and SetScrollbar().

Referenced by sd::AnnotationTextWindow::KeyInput().

◆ SaveToDocument()

void sd::AnnotationWindow::SaveToDocument ( )

◆ setAnnotation()

void sd::AnnotationWindow::setAnnotation ( const css::uno::Reference< css::office::XAnnotation > &  xAnnotation)
private

◆ SetColor()

void sd::AnnotationWindow::SetColor ( )

◆ SetLanguage()

void sd::AnnotationWindow::SetLanguage ( const SvxLanguageItem aNewItem)

◆ SetMapMode()

void sd::AnnotationWindow::SetMapMode ( const MapMode rNewMapMode)
private

Definition at line 355 of file annotationwindow.cxx.

References mxTextControl, and OutputDevice::SetMapMode().

Referenced by Rescale().

◆ SetScrollbar()

void sd::AnnotationWindow::SetScrollbar ( )

◆ StartEdit()

void sd::AnnotationWindow::StartEdit ( )

◆ ToggleInsMode()

void sd::AnnotationWindow::ToggleInsMode ( )

Member Data Documentation

◆ maColor

Color sd::AnnotationWindow::maColor

Definition at line 78 of file annotationwindow.hxx.

Referenced by sd::AnnotationTextWindow::Paint(), and SetColor().

◆ maColorDark

Color sd::AnnotationWindow::maColorDark

Definition at line 79 of file annotationwindow.hxx.

Referenced by SetColor().

◆ maColorLight

Color sd::AnnotationWindow::maColorLight

Definition at line 80 of file annotationwindow.hxx.

Referenced by sd::AnnotationTextWindow::Paint(), and SetColor().

◆ maLabelFont

vcl::Font sd::AnnotationWindow::maLabelFont
private

Definition at line 83 of file annotationwindow.hxx.

Referenced by InitControls(), and Rescale().

◆ mbProtected

bool sd::AnnotationWindow::mbProtected
private

Definition at line 73 of file annotationwindow.hxx.

Referenced by IsProtected(), and setAnnotation().

◆ mbReadonly

bool sd::AnnotationWindow::mbReadonly
private

Definition at line 72 of file annotationwindow.hxx.

Referenced by FillMenuButton(), and InitControls().

◆ mpDoc

SdDrawDocument* sd::AnnotationWindow::mpDoc
private

Definition at line 70 of file annotationwindow.hxx.

Referenced by InitControls(), SaveToDocument(), and SetColor().

◆ mpDocShell

DrawDocShell* sd::AnnotationWindow::mpDocShell
private

Definition at line 69 of file annotationwindow.hxx.

Referenced by DocShell(), SaveToDocument(), and ToggleInsMode().

◆ mpOutliner

std::unique_ptr<::Outliner> sd::AnnotationWindow::mpOutliner
private

◆ mpOutlinerView

std::unique_ptr<OutlinerView> sd::AnnotationWindow::mpOutlinerView
private

◆ mxAnnotation

css::uno::Reference< css::office::XAnnotation > sd::AnnotationWindow::mxAnnotation
private

◆ mxBuilder

std::unique_ptr<weld::Builder> sd::AnnotationWindow::mxBuilder
private

Definition at line 65 of file annotationwindow.hxx.

Referenced by InitControls().

◆ mxContainer

std::unique_ptr<weld::Widget> sd::AnnotationWindow::mxContainer
private

Definition at line 67 of file annotationwindow.hxx.

Referenced by AnnotationWindow(), and DoResize().

◆ mxMenuButton

std::unique_ptr<weld::MenuButton> sd::AnnotationWindow::mxMenuButton
private

Definition at line 92 of file annotationwindow.hxx.

Referenced by FillMenuButton(), InitControls(), and SetColor().

◆ mxMeta

std::unique_ptr<weld::Label> sd::AnnotationWindow::mxMeta
private

Definition at line 91 of file annotationwindow.hxx.

Referenced by InitControls(), Rescale(), setAnnotation(), and SetColor().

◆ mxPopover

std::unique_ptr<weld::Popover> sd::AnnotationWindow::mxPopover
private

Definition at line 66 of file annotationwindow.hxx.

Referenced by AnnotationWindow(), connect_closed(), and SetColor().

◆ mxTextControl

std::unique_ptr<WeldEditView> sd::AnnotationWindow::mxTextControl
private

◆ mxTextControlWin

std::unique_ptr<weld::CustomWeld> sd::AnnotationWindow::mxTextControlWin
private

Definition at line 90 of file annotationwindow.hxx.

Referenced by InitControls().

◆ mxVScrollbar

std::unique_ptr<weld::ScrolledWindow> sd::AnnotationWindow::mxVScrollbar
private

Definition at line 88 of file annotationwindow.hxx.

Referenced by DoResize(), InitControls(), SetColor(), and SetScrollbar().


The documentation for this class was generated from the following files: