LibreOffice Module sd (master) 1
|
#include <annotationwindow.hxx>
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 () |
DrawDocShell * | DocShell () |
void | SetLanguage (const SvxLanguageItem &aNewItem) |
void | Rescale () |
void | ToggleInsMode () |
bool | IsProtected () const |
OutlinerView * | GetOutlinerView () |
::Outliner * | GetOutliner () |
~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::Builder > | mxBuilder |
std::unique_ptr< weld::Popover > | mxPopover |
std::unique_ptr< weld::Widget > | mxContainer |
DrawDocShell * | mpDocShell |
SdDrawDocument * | mpDoc |
bool | mbReadonly |
bool | mbProtected |
css::uno::Reference< css::office::XAnnotation > | mxAnnotation |
vcl::Font | maLabelFont |
std::unique_ptr< OutlinerView > | mpOutlinerView |
std::unique_ptr<::Outliner > | mpOutliner |
std::unique_ptr< weld::ScrolledWindow > | mxVScrollbar |
std::unique_ptr< WeldEditView > | mxTextControl |
std::unique_ptr< weld::CustomWeld > | mxTextControlWin |
std::unique_ptr< weld::Label > | mxMeta |
std::unique_ptr< weld::MenuButton > | mxMenuButton |
Definition at line 62 of file annotationwindow.hxx.
sd::AnnotationWindow::AnnotationWindow | ( | weld::Window * | pParent, |
const ::tools::Rectangle & | rRect, | ||
DrawDocShell * | pDocShell, | ||
const css::uno::Reference< css::office::XAnnotation > & | xAnnotation | ||
) |
Definition at line 208 of file annotationwindow.cxx.
References DoResize(), FillMenuButton(), InitControls(), IsReadOnly(), mxContainer, mxContainer, mxPopover, mxTextControl, and setAnnotation().
sd::AnnotationWindow::~AnnotationWindow | ( | ) |
Definition at line 231 of file annotationwindow.cxx.
|
inline |
Definition at line 108 of file annotationwindow.hxx.
References mxPopover.
|
private |
|
private |
|
inline |
Definition at line 121 of file annotationwindow.hxx.
References mpDocShell.
Referenced by sd::AnnotationTextWindow::Command(), and sd::AnnotationTextWindow::KeyInput().
void sd::AnnotationWindow::DoResize | ( | ) |
Definition at line 377 of file annotationwindow.cxx.
References OutputDevice::LogicToPixel(), mpOutliner, mpOutlinerView, mxContainer, mxTextControl, mxVScrollbar, OutputDevice::PixelToLogic(), and POSTIT_META_HEIGHT.
Referenced by AnnotationWindow(), sd::AnnotationTextWindow::Command(), and ResizeIfNecessary().
|
private |
Definition at line 328 of file annotationwindow.cxx.
References aStr, SvtUserOptions::GetFullName(), mbReadonly, mxAnnotation, mxMenuButton, and SdResId().
Referenced by AnnotationWindow().
|
inline |
Definition at line 115 of file annotationwindow.hxx.
References mxAnnotation.
Referenced by sd::AnnotationTextWindow::Command().
|
inline |
Definition at line 132 of file annotationwindow.hxx.
References mpOutliner.
Referenced by sd::AnnotationTextWindow::Command().
|
inline |
Definition at line 131 of file annotationwindow.hxx.
References mpOutlinerView.
Referenced by sd::AnnotationTextWindow::Command(), sd::AnnotationTextWindow::GetEditEngine(), sd::AnnotationTextWindow::GetEditView(), SetLanguage(), and StartEdit().
tools::Long sd::AnnotationWindow::GetPostItTextHeight | ( | ) |
Definition at line 473 of file annotationwindow.cxx.
References OutputDevice::LogicToPixel(), mpOutliner, and mxTextControl.
Referenced by sd::AnnotationTextWindow::KeyInput().
|
inlinestaticprivate |
Definition at line 103 of file annotationwindow.hxx.
Referenced by SetColor().
|
private |
Definition at line 235 of file annotationwindow.cxx.
References COL_TRANSPARENT(), EE_CHAR_LANGUAGE(), sd::GetAnnotationPool(), StyleSettings::GetLabelFont(), SdDrawDocument::GetLanguage(), AllSettings::GetLayoutRTL(), SdrModel::GetRefDevice(), Application::GetSettings(), AllSettings::GetStyleSettings(), LINK, maLabelFont, mbReadonly, METABUTTON_HEIGHT, METABUTTON_WIDTH, mpDoc, mpOutliner, mpOutlinerView, mxBuilder, mxMenuButton, mxMeta, mxTextControl, mxTextControlWin, mxVScrollbar, oox::core::Outliner, OutputDevice::PixelToLogic(), Rescale(), SdDrawDocument::SetCalcFieldValueHdl(), vcl::Font::SetFontHeight(), and SetLanguage().
Referenced by AnnotationWindow().
|
inline |
Definition at line 129 of file annotationwindow.hxx.
References mbProtected.
Referenced by sd::AnnotationTextWindow::Command(), and sd::AnnotationTextWindow::KeyInput().
void sd::AnnotationWindow::Rescale | ( | ) |
Definition at line 361 of file annotationwindow.cxx.
References vcl::Font::GetFontHeight(), MapMode::GetScaleY(), maLabelFont, mpOutliner, mxMeta, vcl::Font::SetFontHeight(), SetMapMode(), and MapMode::SetOrigin().
Referenced by InitControls().
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().
void sd::AnnotationWindow::SaveToDocument | ( | ) |
Definition at line 566 of file annotationwindow.cxx.
References SdrModel::BegUndo(), SdrModel::EndUndo(), sd::getCurrentDateTime(), sd::getTextApiObject(), SdrModel::IsUndoEnabled(), mpDoc, mpDocShell, mpOutliner, mxAnnotation, std::optional< OutlinerParaObject >::reset(), SdResId(), sd::DrawDocShell::SetModified(), and sd::TextApiObject::SetText().
|
private |
Definition at line 495 of file annotationwindow.cxx.
References sd::TextApiObject::CreateText(), sd::getAnnotationDateTimeString(), SvtUserOptions::GetFullName(), sd::getTextApiObject(), mbProtected, mpOutliner, mxAnnotation, mxMeta, and SetColor().
Referenced by AnnotationWindow().
void sd::AnnotationWindow::SetColor | ( | ) |
Definition at line 534 of file annotationwindow.cxx.
References SdDrawDocument::GetAnnotationAuthorIndex(), sd::AnnotationManagerImpl::GetColor(), sd::AnnotationManagerImpl::GetColorDark(), sd::AnnotationManagerImpl::GetColorLight(), StyleSettings::GetHighContrastMode(), SvtAccessibilityOptions::GetIsAutomaticFontColor(), GetPrefScrollbarWidth(), Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), StyleSettings::GetWindowTextColor(), maColor, maColorDark, maColorLight, mpDoc, mpOutliner, mxAnnotation, mxMenuButton, mxMeta, mxPopover, and mxVScrollbar.
Referenced by setAnnotation().
void sd::AnnotationWindow::SetLanguage | ( | const SvxLanguageItem & | aNewItem | ) |
Definition at line 447 of file annotationwindow.cxx.
References aNewSelection, EE_TEXTPOS_ALL, GetOutlinerView(), OutlinerView::GetSelection(), mpOutliner, mxTextControl, SfxItemSet::Put(), OutlinerView::SetAttribs(), and OutlinerView::SetSelection().
Referenced by InitControls().
|
private |
Definition at line 355 of file annotationwindow.cxx.
References mxTextControl, and OutputDevice::SetMapMode().
Referenced by Rescale().
void sd::AnnotationWindow::SetScrollbar | ( | ) |
Definition at line 434 of file annotationwindow.cxx.
References mpOutlinerView, and mxVScrollbar.
Referenced by sd::AnnotationTextWindow::EditViewScrollStateChange(), and ResizeIfNecessary().
void sd::AnnotationWindow::StartEdit | ( | ) |
Definition at line 349 of file annotationwindow.cxx.
References EE_PARA_MAX_COUNT, EE_TEXTPOS_MAX_COUNT, GetOutlinerView(), OutlinerView::SetSelection(), and OutlinerView::ShowCursor().
void sd::AnnotationWindow::ToggleInsMode | ( | ) |
Definition at line 463 of file annotationwindow.cxx.
References SfxViewFrame::GetBindings(), sd::ViewShell::GetViewFrame(), sd::DrawDocShell::GetViewShell(), SfxBindings::Invalidate(), mpDocShell, mpOutlinerView, and SfxBindings::Update().
Referenced by sd::AnnotationTextWindow::KeyInput().
Color sd::AnnotationWindow::maColor |
Definition at line 78 of file annotationwindow.hxx.
Referenced by sd::AnnotationTextWindow::Paint(), and SetColor().
Color sd::AnnotationWindow::maColorDark |
Definition at line 79 of file annotationwindow.hxx.
Referenced by SetColor().
Color sd::AnnotationWindow::maColorLight |
Definition at line 80 of file annotationwindow.hxx.
Referenced by sd::AnnotationTextWindow::Paint(), and SetColor().
|
private |
Definition at line 83 of file annotationwindow.hxx.
Referenced by InitControls(), and Rescale().
|
private |
Definition at line 73 of file annotationwindow.hxx.
Referenced by IsProtected(), and setAnnotation().
|
private |
Definition at line 72 of file annotationwindow.hxx.
Referenced by FillMenuButton(), and InitControls().
|
private |
Definition at line 70 of file annotationwindow.hxx.
Referenced by InitControls(), SaveToDocument(), and SetColor().
|
private |
Definition at line 69 of file annotationwindow.hxx.
Referenced by DocShell(), SaveToDocument(), and ToggleInsMode().
|
private |
Definition at line 86 of file annotationwindow.hxx.
Referenced by DoResize(), GetOutliner(), GetPostItTextHeight(), InitControls(), Rescale(), SaveToDocument(), setAnnotation(), SetColor(), and SetLanguage().
|
private |
Definition at line 85 of file annotationwindow.hxx.
Referenced by DoResize(), GetOutlinerView(), InitControls(), SetScrollbar(), and ToggleInsMode().
|
private |
Definition at line 75 of file annotationwindow.hxx.
Referenced by FillMenuButton(), getAnnotation(), SaveToDocument(), setAnnotation(), and SetColor().
|
private |
Definition at line 65 of file annotationwindow.hxx.
Referenced by InitControls().
|
private |
Definition at line 67 of file annotationwindow.hxx.
Referenced by AnnotationWindow(), and DoResize().
|
private |
Definition at line 92 of file annotationwindow.hxx.
Referenced by FillMenuButton(), InitControls(), and SetColor().
|
private |
Definition at line 91 of file annotationwindow.hxx.
Referenced by InitControls(), Rescale(), setAnnotation(), and SetColor().
|
private |
Definition at line 66 of file annotationwindow.hxx.
Referenced by AnnotationWindow(), connect_closed(), and SetColor().
|
private |
Definition at line 89 of file annotationwindow.hxx.
Referenced by AnnotationWindow(), DoResize(), GetPostItTextHeight(), InitControls(), SetLanguage(), and SetMapMode().
|
private |
Definition at line 90 of file annotationwindow.hxx.
Referenced by InitControls().
|
private |
Definition at line 88 of file annotationwindow.hxx.
Referenced by DoResize(), InitControls(), SetColor(), and SetScrollbar().