首页 > 其他分享 >UniPDFFrame1(72)

UniPDFFrame1(72)

时间:2023-12-14 20:14:05浏览次数:31  
标签:style UniPDFFrame1 JSName UniSession 72 document AddJS

procedure TfrmSysDeptAdd.UniPDFFrame1FrameLoaded(Sender: TObject);
begin
  // download button
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("download").style.display = "none"');
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("secondaryDownload").style.display = "none"');

  // print button
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("print").style.display = "none"');
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("secondaryPrint").style.display = "none"');

  // open file button
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("openFile").style.display = "none"');
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("secondaryOpenFile").style.display = "none"');

  // view bookmark button
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("viewBookmark").style.display = "none"');
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("secondaryViewBookmark").style.display = "none"');

  // documentProperties
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("documentProperties").style.display = "none"');

  // presentationMode
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("presentationMode").style.display = "none"');

  // secondaryPresentationMode
  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("secondaryPresentationMode").style.display = "none"');
end;

 

标签:style,UniPDFFrame1,JSName,UniSession,72,document,AddJS
From: https://www.cnblogs.com/tulater/p/17901905.html

相关文章

  • luogu1972题解
    还是先写被卡的做法吧。节点的区间用了现用现计算卡常过了。被卡了一上午,难过。话说有人说我码风有点抽象。思路主席树做法。a[i]是贝壳序列。先求出nxt,即与a[i]相同的下一个a[j]的下标j。用p114514[i]记了值为\(i\)的数的下标,循环到序列第\(j\)个数的时候,先......
  • 「杂题乱刷」CF1272D
    题目链接CF1272DRemoveOneElement题意简述给定一个长度为\(n\)的序列,你需要求出至多删除一个数后的这个序列的最长上升子串。解题思路首先我们可以想一下这题的弱化版,给定一个长度为\(n\)的序列,你需要求出至多删除一个数后的这个序列的最长上升子序列。这题我们可以......
  • 飞凌OK113i-C全志T113-i开发板 rtl8723du WIFI 功能测试及蓝牙驱动移植
    飞凌OK113i-C全志T113-i开发板板载一个RTL8723duwifi/蓝牙二合一模块,板子出厂已经移植好了WIFI驱动但是蓝牙驱动没有,所以这篇文章我们主要做蓝牙驱动的移植和功能验证。./build.shmenuconfig在DeviceDrivers>Networkdevicesupport>WirelessLAN下找到Realtek8723DU......
  • CF1672F1
    我们知道要是任意位置交换就是环长-1那我们肯定要让环尽量少即可那我们的环最多就是出现最多的那个数字的次数构造策略就是把其他不同的数字都提出来然后往后挪一下就可以构造出环了voidsolve(){intn;cin>>n;vector<int>a(n+1),v[n+1];for(inti=1;i<=n......
  • P1725-DP【绿】
    这道题最开始我用记搜写的,然后WA了一些点,后来看了半天才发现是数组开小了,原来他给了两个数据范围,一个是60%数据的数据范围,另一个是100%数据的数据范围。我没仔细看,没看见后面那行,把60%数据当成本题数据范围了....自然WA了(不过有点好奇为什么不是RE,但是不重要,这种情况不罕见)然后,增......
  • CW初中-C102B(加强版)(CF1720D2-Trie树)
    前言这道题的弱化版CF1720D1出现在模拟赛上,大家都用了弱化版的思路即向前扫描256个元素暴力计算DP。如果想具体了解的就去看看弱化版的题解吧。但弱化版的思路(除DP外)在此题几乎毫无落脚之地,甚至毫无关系。我在考场上曾对$0\leqa_i\leq10^2$感到了疑惑——甚至都没......
  • leetcode-1572-easy
    MatrixDiagonalSumGivenasquarematrixmat,returnthesumofthematrixdiagonals.Onlyincludethesumofalltheelementsontheprimarydiagonalandalltheelementsonthesecondarydiagonalthatarenotpartoftheprimarydiagonal.Example1:......
  • //编写一个函数,它可以求出给定数的所有因子,如下形式显示其结果:72=2*2*2*3*3;
    #include<stdio.h>intmain(){  intn,i;  printf("请输入n:");  scanf_s("%d",&n);  if(n==1)  {    printf("1=1*1,请重新输入一个数。");  }  for(i=2;n!=1;i++)  {    while(n%i==0) ......
  • 代码随想训练营第五十六天(Python)| 583. 两个字符串的删除操作、72. 编辑距离
    583.两个字符串的删除操作classSolution:defminDistance(self,word1:str,word2:str)->int:n,m=len(word1),len(word2)#dp数组代表使得word1以i-1结尾和word2以j-1结尾相同的最小步数dp=[[0]*(m+1)for_inrange(n+......
  • P1572 计算分数
    P1572计算分数看似数学题,实则数学思路很好想,主要是字符串处理难。就只谈谈读入,读入一堆分数,又要判/又要判正负号。纯用字符串一个个搞,麻烦的要死。这时候就要借用语言本身对于数字的处理,对于数字就直接读数字类型,然后中间的读字符类型,这样判断正负号等难题都交给语言本身了......