1 /*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #include "bridge/declarative_frontend/jsview/models/richeditor_model_impl.h"
17
18 #include "core/components_ng/pattern/rich_editor/rich_editor_model.h"
19
20 namespace OHOS::Ace::Framework {
Create()21 void RichEditorModelImpl::Create() {}
22
GetRichEditorController()23 RefPtr<RichEditorControllerBase> RichEditorModelImpl::GetRichEditorController()
24 {
25 return nullptr;
26 }
27
SetOnReady(std::function<void ()> && func)28 void RichEditorModelImpl::SetOnReady(std::function<void()>&& func) {}
29
SetOnSelect(std::function<void (const BaseEventInfo *)> && func)30 void RichEditorModelImpl::SetOnSelect(std::function<void(const BaseEventInfo*)>&& func) {}
31
SetOnSelectionChange(std::function<void (const BaseEventInfo *)> && func)32 void RichEditorModelImpl::SetOnSelectionChange(std::function<void(const BaseEventInfo*)>&& func) {}
33
SetAboutToIMEInput(std::function<bool (const NG::RichEditorInsertValue &)> && func)34 void RichEditorModelImpl::SetAboutToIMEInput(std::function<bool(const NG::RichEditorInsertValue&)>&& func) {}
35
SetOnIMEInputComplete(std::function<void (const NG::RichEditorAbstractSpanResult &)> && func)36 void RichEditorModelImpl::SetOnIMEInputComplete(std::function<void(const NG::RichEditorAbstractSpanResult&)>&& func) {}
37
SetAboutToDelete(std::function<bool (const NG::RichEditorDeleteValue &)> && func)38 void RichEditorModelImpl::SetAboutToDelete(std::function<bool(const NG::RichEditorDeleteValue&)>&& func) {}
39
SetOnDeleteComplete(std::function<void ()> && func)40 void RichEditorModelImpl::SetOnDeleteComplete(std::function<void()>&& func) {}
41
SetCustomKeyboard(std::function<void ()> && func)42 void RichEditorModelImpl::SetCustomKeyboard(std::function<void()>&& func) {}
43
SetCopyOption(CopyOptions & copyOptions)44 void RichEditorModelImpl::SetCopyOption(CopyOptions& copyOptions) {}
45
BindSelectionMenu(NG::TextSpanType & editorType,NG::TextResponseType & responseType,std::function<void ()> & buildFunc,NG::SelectMenuParam & menuParam)46 void RichEditorModelImpl::BindSelectionMenu(NG::TextSpanType& editorType, NG::TextResponseType& responseType,
47 std::function<void()>& buildFunc, NG::SelectMenuParam& menuParam)
48 {}
49
SetOnPaste(std::function<void (NG::TextCommonEvent &)> && func)50 void RichEditorModelImpl::SetOnPaste(std::function<void(NG::TextCommonEvent&)>&& func) {}
51
SetTextDetectEnable(bool value)52 void RichEditorModelImpl::SetTextDetectEnable(bool value) {}
53
SetTextDetectConfig(const std::string & value,std::function<void (const std::string &)> && onResult)54 void RichEditorModelImpl::SetTextDetectConfig(const std::string& value,
55 std::function<void(const std::string&)>&& onResult) {}
56 } // namespace OHOS::Ace::Framework
57