|
@@ -44,6 +44,7 @@ import com.compdfkit.tools.common.contextmenu.impl.ComboBoxContextMenuView;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuCheckBoxProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuCheckBoxProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuComboBoxProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuComboBoxProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuEditImageProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuEditImageProvider;
|
|
|
|
+import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuEditPathProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuEditTextProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuEditTextProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuFormSignProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuFormSignProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuFreeTextProvider;
|
|
import com.compdfkit.tools.common.contextmenu.interfaces.ContextMenuFreeTextProvider;
|
|
@@ -214,6 +215,15 @@ public class CPDFContextMenuHelper extends CPDFContextMenuShowHelper {
|
|
return super.getEditImageAreaContentView(pageView, layoutInflater, area);
|
|
return super.getEditImageAreaContentView(pageView, layoutInflater, area);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public View getEditPathAreaContentView(final CPDFPageView pageView, LayoutInflater layoutInflater) {
|
|
|
|
+ this.pageView = pageView;
|
|
|
|
+ if (helperParams.editPathProvider != null) {
|
|
|
|
+ return helperParams.editPathProvider.createEditPathAreaContentView(this, pageView, null);
|
|
|
|
+ }
|
|
|
|
+ return super.getEditImageAreaContentView(pageView, layoutInflater, null);
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public View getCropImageAreaContentView(final CPDFPageView pageView, LayoutInflater layoutInflater) {
|
|
public View getCropImageAreaContentView(final CPDFPageView pageView, LayoutInflater layoutInflater) {
|
|
this.pageView = pageView;
|
|
this.pageView = pageView;
|
|
@@ -435,6 +445,11 @@ public class CPDFContextMenuHelper extends CPDFContextMenuShowHelper {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public Builder setEditPathContentMenu(ContextMenuEditPathProvider editPathProvider){
|
|
|
|
+ this.params.editPathProvider = editPathProvider;
|
|
|
|
+ return this;
|
|
|
|
+ }
|
|
|
|
+
|
|
public Builder setTextFieldsContentMenu(ContextMenuTextFieldProvider textFieldProvider){
|
|
public Builder setTextFieldsContentMenu(ContextMenuTextFieldProvider textFieldProvider){
|
|
this.params.textFieldProvider = textFieldProvider;
|
|
this.params.textFieldProvider = textFieldProvider;
|
|
return this;
|
|
return this;
|