|
LibreOffice Module sd (master) 1
|
#include <fuhhconv.hxx>
Public Member Functions | |
| void | StartConversion (LanguageType nSourceLanguage, LanguageType nTargetLanguage, const vcl::Font *pTargetFont, sal_Int32 nOptions, bool bIsInteractive) |
| Search and replace. More... | |
| void | StartChineseConversion () |
| void | ConvertStyles (LanguageType nTargetLanguage, const vcl::Font *pTargetFont) |
Public Member Functions inherited from sd::FuPoor | |
| virtual void | DoExecute (SfxRequest &rReq) |
| void | SetMouseButtonCode (sal_uInt16 nNew) |
| sal_uInt16 | GetMouseButtonCode () const |
| DrawDocShell * | GetDocSh () |
| virtual void | DoCut () |
| Cut object to clipboard. More... | |
| virtual void | DoCopy () |
| Copy object to clipboard. More... | |
| virtual void | DoPaste () |
| Paste object from clipboard. More... | |
| virtual void | DoPasteUnformatted () |
| Paste unformatted text from clipboard. More... | |
| virtual bool | KeyInput (const KeyEvent &rKEvt) |
| handle keyboard events More... | |
| virtual bool | MouseMove (const MouseEvent &) |
| virtual bool | MouseButtonUp (const MouseEvent &rMEvt) |
| virtual bool | MouseButtonDown (const MouseEvent &rMEvt) |
| virtual bool | Command (const CommandEvent &rCEvt) |
| virtual bool | RequestHelp (const HelpEvent &rHEvt) |
| virtual void | ReceiveRequest (SfxRequest &rReq) |
| virtual void | Activate () |
| activates the function More... | |
| virtual void | Deactivate () |
| deactivates the function More... | |
| void | SetWindow (::sd::Window *pWin) |
| virtual void | SelectionHasChanged () |
| sal_uInt16 | GetSlotID () const |
| void | StartDelayToScrollTimer () |
| virtual rtl::Reference< SdrObject > | CreateDefaultObject (const sal_uInt16 nID, const ::tools::Rectangle &rRectangle) |
| virtual bool | cancel () |
| is called when the current function should be aborted. More... | |
| virtual bool | doConstructOrthogonal () const |
| Decide if the object to be created should be created orthogonal. More... | |
Public Member Functions inherited from sd::SimpleReferenceComponent | |
| SimpleReferenceComponent () | |
| void | acquire () |
| @ATTENTION The results are undefined if, for any individual instance of SimpleReferenceComponent, the total number of calls to acquire() exceeds the total number of calls to release() by a platform dependent amount (which, hopefully, is quite large). More... | |
| void | release () |
| void | Dispose () |
| bool | isDisposed () const |
Static Public Member Functions | |
| static rtl::Reference< FuPoor > | Create (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) |
Private Member Functions | |
| virtual | ~FuHangulHanjaConversion () override |
| FuHangulHanjaConversion (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
Private Attributes | |
| SdOutliner * | pSdOutliner |
| bool | bOwnOutliner |
Additional Inherited Members | |
Static Public Attributes inherited from sd::FuPoor | |
| static const int | HITPIX = 2 |
| static const int | HITLOG = 53 |
| static const int | DRGLOG = 53 |
Protected Member Functions inherited from sd::FuPoor | |
| FuPoor (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
| virtual | ~FuPoor () override |
| DECL_LINK (DelayHdl, Timer *, void) | |
| void | SwitchLayer (sal_Int32 nOffset) |
| Switch to another layer. More... | |
| DECL_LINK (ScrollHdl, Timer *, void) | |
| void | ForceScroll (const Point &aPixPos) |
| scroll when approached the border of the window; is called by MouseMove More... | |
| DECL_LINK (DragHdl, Timer *, void) | |
Protected Member Functions inherited from sd::SimpleReferenceComponent | |
| virtual void | disposing () |
| virtual | ~SimpleReferenceComponent () |
Static Protected Member Functions inherited from sd::FuPoor | |
| static void | ImpForceQuadratic (::tools::Rectangle &rRect) |
Protected Attributes inherited from sd::FuPoor | |
| ::sd::View * | mpView |
| ViewShell * | mpViewShell |
| VclPtr< ::sd::Window > | mpWindow |
| DrawDocShell * | mpDocSh |
| SdDrawDocument * | mpDoc |
| sal_uInt16 | nSlotId |
| Timer | aScrollTimer |
| for auto-scrolling More... | |
| Timer | aDragTimer |
| for Drag&Drop More... | |
| bool | bIsInDragMode |
| Point | aMDPos |
| position of MouseButtonDown More... | |
| bool | bNoScrollUntilInside |
| Flag to prevent auto-scrolling until one drags from outside into the window. More... | |
| Timer | aDelayToScrollTimer |
| timer to delay scrolling (~ 1 sec) when dragging out of the window More... | |
| bool | bScrollable |
| bool | bDelayActive |
| bool | bFirstMouseMove |
Definition at line 28 of file fuhhconv.hxx.
|
overrideprivatevirtual |
Definition at line 79 of file fuhhconv.cxx.
References bOwnOutliner, SdOutliner::EndConversion(), and pSdOutliner.
|
private |
Definition at line 54 of file fuhhconv.cxx.
References bOwnOutliner, SdDrawDocument::GetOutliner(), sd::FuPoor::mpDoc, sd::FuPoor::mpViewShell, SdOutliner::PrepareSpelling(), and pSdOutliner.
Referenced by Create().
| void sd::FuHangulHanjaConversion::ConvertStyles | ( | LanguageType | nTargetLanguage, |
| const vcl::Font * | pTargetFont | ||
| ) |
Definition at line 149 of file fuhhconv.cxx.
References EE_CHAR_FONTINFO_CJK(), EE_CHAR_LANGUAGE_CJK(), SfxStyleSheetBasePool::First(), SfxItemSet::Get(), vcl::Font::GetCharSet(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), SfxStyleSheetBase::GetItemSet(), SfxItemSet::GetItemState(), SfxStyleSheetBase::GetParent(), vcl::Font::GetPitch(), vcl::Font::GetStyleName(), SdrModel::GetStyleSheetPool(), sd::FuPoor::mpDoc, SfxStyleSheetBasePool::Next(), SfxItemSet::Put(), rSet, SvxFontItem::SetCharSet(), SvxFontItem::SetFamily(), SvxFontItem::SetFamilyName(), SdDrawDocument::SetLanguage(), SvxFontItem::SetPitch(), and SvxFontItem::SetStyleName().
Referenced by StartChineseConversion().
|
static |
Definition at line 88 of file fuhhconv.cxx.
References FuHangulHanjaConversion().
Referenced by sd::DrawDocShell::Execute().
| void sd::FuHangulHanjaConversion::StartChineseConversion | ( | ) |
Definition at line 187 of file fuhhconv.cxx.
References aSeq, ConvertStyles(), Exception, OutputDevice::GetDefaultFont(), comphelper::InitAnyPropertySequence(), LANGUAGE_CHINESE_SIMPLIFIED, LANGUAGE_CHINESE_TRADITIONAL, RET_OK, and StartConversion().
| void sd::FuHangulHanjaConversion::StartConversion | ( | LanguageType | nSourceLanguage, |
| LanguageType | nTargetLanguage, | ||
| const vcl::Font * | pTargetFont, | ||
| sal_Int32 | nOptions, | ||
| bool | bIsInteractive | ||
| ) |
Search and replace.
Definition at line 97 of file fuhhconv.cxx.
References SdOutliner::BeginConversion(), SdrEditView::BegUndo(), bOwnOutliner, SfxViewShell::Current(), SdOutliner::EndConversion(), SdrEditView::EndUndo(), sd::ViewShell::GetActiveWindow(), sd::ViewShellBase::GetMainViewShell(), SdDrawDocument::GetOutliner(), sd::ViewShell::GetView(), sd::FuPoor::mpDoc, sd::FuPoor::mpView, sd::FuPoor::mpViewShell, sd::FuPoor::mpWindow, pSdOutliner, SdResId(), and SdOutliner::StartConversion().
Referenced by StartChineseConversion().
|
private |
Definition at line 45 of file fuhhconv.hxx.
Referenced by FuHangulHanjaConversion(), StartConversion(), and ~FuHangulHanjaConversion().
|
private |
Definition at line 44 of file fuhhconv.hxx.
Referenced by FuHangulHanjaConversion(), StartConversion(), and ~FuHangulHanjaConversion().